/* Final responsive contract. Loaded after legacy storefront styles so mobile/desktop behavior is deterministic. */

html,
body,
main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  min-width: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
}

/* Bottom navigation is mobile-only. Earlier styles accidentally forced it onto desktop. */
.mobile-bottom-nav {
  display: none !important;
}

/* Desktop drawer widths */
.header-panel.myntra-sidebar-panel {
  width: min(420px, 92vw) !important;
  max-width: 420px !important;
}

.header-panel.myntra-style-menu,
.header-panel.search-panel {
  padding: 0 !important;
}

.myntra-menu-container,
.live-search-wrapper {
  width: 100%;
  max-width: 100%;
}

.myntra-user-banner {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.search-panel .header-panel-title {
  padding: 18px 18px 14px;
}

.search-panel .live-search {
  padding: 16px 18px 22px;
}

.search-panel .live-search form {
  width: 100%;
  min-width: 0;
}

.search-panel .live-search form input {
  min-width: 0;
  width: 100% !important;
}

/* Hero: desktop media is wide, mobile source is handled by <picture>. */
.hero-banner-only {
  width: 100% !important;
  max-width: 1440px;
  overflow: hidden;
}

.hero-banner-only .hero-slide {
  aspect-ratio: 16 / 6.2;
  min-height: 0 !important;
}

.hero-banner-link,
.hero-banner-link picture,
.hero-banner-link img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-banner-link img {
  object-fit: cover;
}

/* Collection toolbar + filter rail */
.collection-toolbar {
  min-width: 0;
}

.toolbar-left,
.sort-select-wrapper {
  min-width: 0;
}

.collection-sort-dropdown {
  max-width: 100%;
}

.myntra-archive {
  min-width: 0;
}

.collection-grid,
.product-grid,
.product-card,
.product-info {
  min-width: 0;
}

/* PDP image contract. Avoid legacy .gallery rules hiding/cropping the new ProductGallery. */
.product-gallery {
  width: 100%;
  min-width: 0;
}

.product-gallery .gallery-main {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #f7f7f7;
}

.product-gallery .gallery-primary-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff;
}

.product-gallery .gallery-thumbnails {
  width: 100%;
  max-width: 100%;
}

.pdp-cart-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.pdp-cart-actions .button {
  min-width: 0 !important;
  width: 100%;
  padding-inline: 10px;
  white-space: normal;
  line-height: 1.15;
}

/* Premium category circles */
.category-track {
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.premium-circle-pill {
  scroll-snap-align: start;
}

.premium-circle-pill .circle {
  border: 1px solid #e7e2d8 !important;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .08), inset 0 0 0 4px #fff !important;
  background: linear-gradient(145deg, #fff, #f6f2eb) !important;
}

.premium-circle-pill .circle img {
  transform: scale(.94);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.premium-circle-pill:hover .circle img {
  transform: scale(1);
}

/* Slower premium marquee motion */
.text-marquee-track {
  animation-duration: 42s !important;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .text-marquee-track {
    animation: none !important;
    transform: none !important;
  }
  .hero-banner-link img,
  .product-card,
  .premium-circle-pill .circle img {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .desktop-filter-rail {
    display: none !important;
  }

  .myntra-archive {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .mobile-filter-trigger {
    display: inline-flex !important;
  }

  .collection-grid.columns-2,
  .collection-grid.columns-3,
  .collection-grid.columns-4,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  :root {
    --mobile-header-height: 58px;
    --mobile-nav-height: 66px;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .section {
    padding-block: 24px;
  }

  /* Keep the real announcement visible on phones, but compact. */
  .top-strip {
    display: block !important;
  }

  .top-strip .container {
    width: 100% !important;
    min-height: 28px;
    padding-inline: 10px;
  }

  .top-strip a {
    padding: 7px 4px !important;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-row {
    width: 100% !important;
    min-height: var(--mobile-header-height) !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 6px !important;
    padding-inline: 12px;
  }

  .header-utilities {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .header-utilities .modern-menu-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #111111 !important;
  }

  .header-utilities .desktop-nav-label,
  .header-utilities .desktop-search-util-btn {
    display: none !important;
  }

  .brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 128px !important;
    min-height: 48px !important;
    justify-self: center;
  }

  .main-nav {
    display: none !important;
  }

  .nav-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .nav-actions .header-text-link,
  .nav-actions a[aria-label="Account"],
  .nav-actions .wishlist-nav,
  .nav-actions a[aria-label^="Wishlist"] {
    display: none !important;
  }

  .nav-actions .pro-search-trigger,
  .nav-actions .cart-nav-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    color: #111111 !important;
    position: relative !important;
  }

  /* Full-bleed drawers; no mystery left padding. */
  .header-panel.myntra-sidebar-panel {
    width: 88vw !important;
    max-width: 360px !important;
    padding: 0 !important;
  }

  .header-panel.search-panel {
    width: min(92vw, 390px) !important;
    max-width: 390px !important;
    padding: 0 !important;
  }

  .myntra-user-banner {
    padding: 22px 18px 18px !important;
  }

  .search-panel .header-panel-title {
    padding: 16px 14px 12px !important;
  }

  .search-panel .live-search {
    padding: 12px 0 18px !important;
  }

  .search-panel .live-search form {
    padding-inline: 0 !important;
    margin: 0 !important;
  }

  .search-panel .live-search form input {
    height: 46px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    padding-left: 14px !important;
  }

  .search-panel .live-search form button {
    right: 12px !important;
  }

  .search-quick-pills,
  .search-results {
    margin-inline: 14px;
  }

  /* Mobile hero is 1:1 square and uses the dedicated mobile WordPress image source. */
  .hero-banner-only,
  .hero-carousel-section {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .hero-banner-only .hero-slide,
  .hero-carousel-section .hero-slide-item {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
  }

  .hero-banner-only .hero-arrows,
  .hero-carousel-section .hero-arrows-group {
    display: none !important;
  }

  .hero-banner-only .hero-dots,
  .hero-carousel-section .hero-dots-group {
    bottom: 10px !important;
  }

  .hero-banner-only .hero-dot,
  .hero-carousel-section .hero-dot-indicator {
    width: 24px !important;
  }

  .text-marquee-bar {
    padding: 8px 0 !important;
  }

  .marquee-item {
    font-size: 9px !important;
  }

  /* Collection header and toolbar */
  .collection-heading {
    padding: 22px 0 14px !important;
    text-align: left !important;
  }

  .collection-heading h1 {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.05;
  }

  .collection-heading p {
    font-size: 12px;
    line-height: 1.55;
  }

  .collection-toolbar {
    position: sticky !important;
    top: calc(var(--mobile-header-height) + 28px) !important;
    z-index: 45 !important;
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    border-inline: 0 !important;
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(12px);
  }

  .toolbar-left {
    display: grid !important;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr) !important;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
  }

  .toolbar-left > * {
    min-width: 0;
  }

  .mobile-filter-trigger {
    min-height: 40px;
    justify-content: center;
    border: 1px solid #d9d9d9 !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .sort-select-wrapper {
    width: 100%;
  }

  .collection-sort-dropdown {
    width: 100% !important;
    height: 40px !important;
    padding: 0 26px 0 9px !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    text-overflow: ellipsis;
  }

  .toolbar-count,
  .grid-switcher {
    display: none !important;
  }

  .archive-layout,
  .myntra-archive {
    padding-top: 14px !important;
  }

  .collection-grid.columns-2,
  .collection-grid.columns-3,
  .collection-grid.columns-4,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 8px !important;
    width: 100% !important;
  }

  .product-card {
    width: 100%;
    max-width: 100%;
    border-color: #ececec;
    transform: none !important;
  }

  .product-media {
    aspect-ratio: 4 / 5 !important;
  }

  .product-info {
    min-height: 0 !important;
    padding: 9px 8px 10px !important;
  }

  .product-info h3 {
    min-height: 34px !important;
    margin: 4px 0 6px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  .product-brand {
    font-size: 8.5px !important;
  }

  .price-row {
    gap: 4px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    min-height: 40px;
  }

  .price {
    font-size: 13px !important;
  }

  .old-price,
  .discount-text {
    font-size: 9px !important;
  }

  .card-variants {
    max-height: 34px;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }

  .card-variants::-webkit-scrollbar {
    display: none;
  }

  .product-stock-line {
    margin-block: 5px;
    font-size: 9px;
  }

  .card-purchase-row {
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 5px !important;
    width: 100%;
  }

  .card-quantity {
    min-width: 0 !important;
    width: 62px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .card-quantity button {
    width: 20px;
    min-width: 20px;
  }

  .card-quick-add {
    min-width: 0 !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 4px 5px !important;
    gap: 3px !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    text-align: center;
  }

  .card-quick-add svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
  }

  .card-buy-now {
    min-height: 34px !important;
    font-size: 9px !important;
  }

  /* Premium horizontal category strip */
  .category-section-wrapper .container {
    width: 100% !important;
  }

  .category-section-wrapper .section-title {
    padding-inline: 12px;
  }

  .category-section-wrapper .section-title h2 {
    font-size: 27px !important;
  }

  .category-section-wrapper .carousel-actions button {
    display: none !important;
  }

  .category-track {
    gap: 14px !important;
    padding: 4px 12px 10px !important;
    scroll-padding-inline: 12px;
  }

  .premium-circle-pill {
    width: 82px !important;
    flex: 0 0 82px !important;
  }

  .premium-circle-pill .circle {
    width: 74px !important;
    height: 74px !important;
  }

  .premium-circle-pill strong {
    max-width: 82px !important;
    font-size: 9.5px !important;
    line-height: 1.25;
  }

  /* PDP: always show the main image on touch screens. */
  .product-page-shell {
    width: 100% !important;
    padding-bottom: 24px;
  }

  .product-page-shell > .breadcrumbs,
  .product-page-shell > .product-detail,
  .product-page-shell > .related-products-section {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .product-detail.professional-pdp {
    display: block !important;
    padding: 8px 0 28px !important;
  }

  .product-gallery .gallery-main {
    aspect-ratio: 4 / 5 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .product-gallery .gallery-primary-img {
    transform: none !important;
    transform-origin: center !important;
    object-fit: contain !important;
    background: #fff;
  }

  .product-gallery .gallery-thumbnails {
    display: flex !important;
    gap: 7px !important;
    overflow-x: auto !important;
    padding: 9px 0 4px !important;
    scrollbar-width: none;
  }

  .product-gallery .gallery-thumbnails::-webkit-scrollbar {
    display: none;
  }

  .product-gallery .gallery-thumbnails button {
    flex: 0 0 58px;
    width: 58px !important;
    height: 68px !important;
  }

  .product-gallery .gallery-zoom {
    top: 10px !important;
    right: 10px !important;
  }

  .product-gallery .gallery-arrow {
    width: 34px !important;
    height: 34px !important;
  }

  .product-summary {
    position: static !important;
    width: 100%;
    padding: 18px 0 0 !important;
  }

  .product-summary h1 {
    font-size: 24px !important;
    line-height: 1.15;
  }

  .pdp-meta-row {
    flex-wrap: wrap;
  }

  .pdp-price-row {
    display: block !important;
  }

  .pdp-price-row .mrp-note {
    display: block;
    margin-top: 6px;
    line-height: 1.5;
  }

  .qty-row,
  .pdp-purchase-panel .qty-row {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) 42px !important;
    gap: 7px !important;
    align-items: stretch;
  }

  .pdp-quantity {
    min-width: 0;
    width: 82px;
  }

  .pdp-cart-actions {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }

  .pdp-cart-actions .button {
    min-height: 42px;
    font-size: 9px;
    text-transform: uppercase;
  }

  .pdp-wishlist {
    width: 42px !important;
    height: 42px !important;
  }

  /* Filter drawer */
  .filter-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
  }

  .filter-drawer-backdrop.open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .filter-drawer-sheet {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(88vw, 380px) !important;
    max-width: 380px !important;
    height: 100% !important;
    background: #ffffff !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 100000 !important;
  }

  .filter-drawer-backdrop.open .filter-drawer-sheet {
    transform: translateX(0) !important;
  }

  .mobile-filter-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: #ffffff !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  }

  .mobile-filter-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .mobile-filter-close-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
  }

  .mobile-filter-close-btn:active {
    background: #e2e8f0 !important;
    transform: scale(0.95) !important;
  }

  .mobile-filter-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px 18px 24px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mobile-filter-body .filter-title {
    display: none !important;
  }

  .filter-drawer-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 50 !important;
    background: #ffffff !important;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04) !important;
  }

  .apply-filters-btn {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: #d50012 !important;
    color: #ffffff !important;
    border: 0 !important;
  }

  /* Bottom nav: six items, clean dividers, WhatsApp remains last/right. */
  .mobile-bottom-nav.divided-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 150 !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 -5px 22px rgba(15,23,42,.08) !important;
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav .bottom-nav-item {
    min-width: 0;
    min-height: 52px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px !important;
    border: 0 !important;
    border-right: 1px solid #ececec !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6b7280;
    font-size: 8.5px !important;
    line-height: 1;
  }

  .mobile-bottom-nav .bottom-nav-item:last-child {
    border-right: 0 !important;
  }

  .mobile-bottom-nav .bottom-nav-item.active {
    color: #111827 !important;
  }

  .mobile-bottom-nav .mobile-whatsapp {
    color: #000000 !important;
  }

  .mobile-bottom-nav .bottom-nav-item svg {
    width: 18px;
    height: 18px;
  }

  /* Footer and SEO blocks */
  .white-theme-footer {
    padding-bottom: 22px !important;
  }

  .white-theme-footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 14px !important;
  }

  .white-theme-footer .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-intro-bar {
    padding-bottom: 24px !important;
  }

  .home-seo-block,
  .collection-bottom-seo {
    overflow: hidden;
  }

  .home-seo-block h1,
  .collection-bottom-seo h2 {
    font-family: var(--font-editorial), Georgia, serif;
    line-height: 1.15;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 18px) !important;
  }

  .brand {
    width: 112px !important;
  }

  .toolbar-left {
    grid-template-columns: 42% minmax(0, 1fr) !important;
  }

  .collection-grid.columns-2,
  .collection-grid.columns-3,
  .collection-grid.columns-4,
  .product-grid {
    gap: 16px 6px !important;
  }

  .product-info {
    padding-inline: 6px !important;
  }

  .card-quick-add {
    font-size: 8.5px !important;
  }

  .card-quick-add svg {
    display: none;
  }

  .qty-row,
  .pdp-purchase-panel .qty-row {
    grid-template-columns: 76px minmax(0, 1fr) 40px !important;
  }

  .pdp-quantity {
    width: 76px;
  }

  .pdp-wishlist {
    width: 40px !important;
  }

  .mobile-bottom-nav .bottom-nav-item {
    font-size: 8px !important;
  }
}

/* Mobile 2-Column Product Grid Contract (Strict 2 Items Per Row on Mobile) */
@media (max-width: 768px) {
  .wooden-products-grid,
  .products-grid,
  .product-grid,
  .collection-grid,
  .shop-products-grid,
  .home-quick-product-grid,
  .wooden-category-grid,
  .myntra-products-grid,
  .wooden-promo-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px !important;
    width: 100% !important;
  }

  .product-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px !important;
    border-radius: 8px !important;
  }

  .product-card .product-media-wrapper {
    min-width: 0 !important;
    width: 100% !important;
    position: relative !important;
  }

  .product-card .product-media {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-height: 160px !important;
  }

  .product-card .product-info {
    min-width: 0 !important;
    padding: 6px 4px 2px !important;
  }

  .product-card .product-brand-row {
    font-size: 0.7rem !important;
    margin-bottom: 2px !important;
  }

  .product-card .product-title-link h3 {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 2px 0 4px !important;
    height: 2.5em !important;
  }

  .product-card .price-row {
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
  }

  .product-card .price {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
  }

  .product-card .old-price {
    font-size: 0.72rem !important;
  }

  .product-card .card-variant-mini-row {
    display: none !important;
  }

  .product-card .product-stock-line {
    font-size: 0.68rem !important;
    margin: 2px 0 6px !important;
  }

  .product-card .button,
  .product-card .card-choose-options-btn,
  .product-card .add-to-cart-drawer button {
    font-size: 0.72rem !important;
    padding: 6px 4px !important;
    min-height: 32px !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 6px !important;
  }
}

/* Comprehensive Blog Article & Grid Styling (Desktop & Mobile) */
.blog-article {
  padding-bottom: 60px;
  background: #ffffff;
}

.blog-article-header {
  max-width: 860px !important;
  margin-inline: auto !important;
  padding-top: 32px !important;
  padding-bottom: 20px !important;
}

.blog-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-decoration: none !important;
  margin-bottom: 14px !important;
}

.blog-article-header .eyebrow {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #d50012 !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

.blog-article-header h1 {
  font-size: clamp(24px, 3.5vw, 40px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #0f172a !important;
  margin: 0 0 14px !important;
}

.blog-subtitle {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 0 18px !important;
}

.blog-meta-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e2e8f0 !important;
  font-size: 13px !important;
  color: #64748b !important;
}

.blog-meta-bar > div {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.blog-featured {
  max-width: 1040px !important;
  margin-inline: auto !important;
  margin-block: 20px 32px !important;
}

.blog-featured img {
  width: 100% !important;
  max-height: 480px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
}

/* Desktop Grid Layout for Blog Detail */
.blog-reading-layout {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 40px !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
  align-items: start !important;
}

.blog-sticky-sidebar {
  position: sticky !important;
  top: 100px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.sidebar-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.share-btn.whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.sidebar-promo {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 18px !important;
  background: #f8fafc !important;
}

.sidebar-promo strong {
  display: block !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-block: 8px 4px !important;
}

.sidebar-promo p {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #64748b !important;
  margin: 0 0 14px !important;
}

.sidebar-shop-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 38px !important;
  border-radius: 6px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.blog-content {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  min-width: 0 !important;
  width: 100% !important;
}

.blog-content h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-block: 30px 12px !important;
  line-height: 1.3 !important;
}

.blog-content h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-block: 22px 10px !important;
}

.blog-content p {
  margin-bottom: 18px !important;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 20px !important;
  padding-left: 22px !important;
}

.blog-content li {
  margin-bottom: 8px !important;
}

.blog-article-footer {
  max-width: 860px !important;
  margin-inline: auto !important;
  margin-top: 44px !important;
  padding-top: 24px !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

/* Mobile Responsiveness for Blog (< 980px & < 640px) */
@media (max-width: 980px) {
  .blog-reading-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .blog-sticky-sidebar {
    position: static !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    order: 2 !important;
  }

  .blog-content {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    order: 1 !important;
  }

  .blog-article-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .blog-article-footer a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .blog-article-header h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  .blog-subtitle {
    font-size: 13.5px !important;
  }

  .blog-meta-bar {
    gap: 10px !important;
    font-size: 11.5px !important;
  }

  .blog-featured img {
    max-height: 240px !important;
    border-radius: 8px !important;
  }
}
