/* ================================================================
   SYLVARA CHARMS — mobile-fixes.css  v4.0  COMPLETE RESPONSIVE FIX
   ================================================================
   Covers ALL pages: index, shop, product, cart, shipping,
   contact, about, faq, best-sellers, track-order
   ================================================================ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. NAVBAR — Desktop: balanced flex, logo dead-centred
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Give site-nav a positioning context for the absolute logo */
.site-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
}

/* Equal-width left & right wings → logo perfectly centred */
.nav-left {
  flex: 1 1 0 !important;
  justify-content: flex-start !important;
}

.nav-right {
  flex: 1 1 0 !important;
  justify-content: flex-end !important;
  margin-left: 0 !important;
}

/* Logo: absolute so it doesn't push either wing */
.site-nav > .logo {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. NAVBAR — Mobile ≤ 900px
   Layout: [☰ hamburger]  [logo — absolute centre]  [icons]
   Trick : .nav-right becomes the FULL-WIDTH flex row.
           hamburger order:-1 sits at the left edge.
           nav-icons sit at the right edge.
           Logo stays absolute left:50% → true centre.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {

  /* Nav bar sizing */
  .site-nav {
    height: 58px !important;
    padding: 0 !important;
    /* Keep flex + space-between so nav-left(hidden) and nav-right stretch */
  }

  /* Hide desktop text-link groups */
  .nav-left,
  .nav-right-links {
    display: none !important;
  }

  /* nav-right stretches full width so hamburger & icons sit at edges */
  .nav-right {
    flex: 1 1 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    gap: 0 !important;
    z-index: 2 !important;
  }

  /* Hamburger – leftmost via order */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    order: -1 !important;
    background: none !important;
    border: none !important;
    padding: 10px 8px !important;
    cursor: pointer !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
  }

  .hamburger span {
    display: block !important;
    width: 22px !important;
    height: 1.5px !important;
    background: var(--silver-mid, #aaaaaa) !important;
    border-radius: 2px !important;
    transition: all 0.25s ease !important;
  }

  /* Logo stays absolute → always at true 50% of viewport/nav */
  .site-nav > .logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: clamp(16px, 5vw, 21px) !important;
    letter-spacing: 0.06em !important;
    text-align: center !important;
    pointer-events: auto !important;
    z-index: 1 !important;
    white-space: nowrap !important;
  }

  .site-nav > .logo .logo-sub {
    font-size: 7px !important;
    letter-spacing: 0.18em !important;
  }

  /* Icons group – rightmost (natural order) */
  .nav-icons {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    order: 1 !important;
  }

  .nav-icon-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. NAVBAR — Small phones ≤ 480px
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
  .site-nav {
    height: 74px !important;
  }

  .site-nav > .logo {
    font-size: clamp(15px, 4.5vw, 19px) !important;
    letter-spacing: 0.05em !important;
  }

  .nav-right {
    padding: 0 6px !important;
  }

  .nav-icon-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3b. NAVBAR — Very small phones ≤ 360px
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 360px) {
  .site-nav {
    height: 80px !important;
  }

  .site-nav > .logo {
    font-size: 14px !important;
    letter-spacing: 0.04em !important;
  }

  /* Hide search on very small screens to avoid logo overlap */
  .nav-icon-btn.search-trigger {
    display: none !important;
  }

  .nav-icon-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .hamburger span {
    width: 20px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. MOBILE DRAWER — Slide-in animation + polish
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mobile-nav {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: visibility 0s linear 0.38s;
}

.mobile-nav.open {
  pointer-events: auto !important;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-nav-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.mobile-nav.open .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav-drawer {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(300px, 82vw) !important;
  background: #0c0c0c !important;
  border-left: 1px solid rgba(192, 192, 192, 0.09) !important;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 72px 28px 40px !important;
  gap: 0 !important;
  transform: translateX(100%) !important;
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-drawer {
  transform: translateX(0) !important;
}

/* Thin silver line at drawer top */
.mobile-nav-drawer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,192,192,0.22), transparent);
  pointer-events: none;
}

/* Close button */
.mobile-nav-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(192, 192, 192, 0.13) !important;
  background: transparent !important;
  color: rgba(192, 192, 192, 0.45) !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.mobile-nav-close:hover {
  background: rgba(192, 192, 192, 0.09) !important;
  color: #e8e8e8 !important;
  border-color: rgba(192, 192, 192, 0.25) !important;
}

/* Drawer links */
.mobile-nav-drawer a {
  font-family: var(--f-display, 'Cormorant Garamond', serif) !important;
  font-size: clamp(22px, 6vw, 27px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  color: rgba(192, 192, 192, 0.5) !important;
  text-decoration: none !important;
  display: block !important;
  padding: 11px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: color 0.2s ease, padding-left 0.25s ease !important;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a:active {
  color: #f0f0f0 !important;
  padding-left: 8px !important;
}

.mobile-nav-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin: 10px 0 !important;
}

.mobile-whatsapp-link { color: #25d366 !important; }
.mobile-whatsapp-link:hover { color: #1fb554 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. ANNOUNCE BAR — show on desktop only
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (min-width: 901px) {
  .announce-bar { display: block; }
}
@media (max-width: 900px) {
  .announce-whatsapp span { display: none; }
  .announce-whatsapp { padding: 0 20px 0 16px; }
}
@media (max-width: 600px) {
  .announce-whatsapp { display: none; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. HERO — Centred on all screen sizes
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hp-hero {
  align-items: center !important;
}

.hp-hero-content {
  max-width: 760px !important;
  width: 100%;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.hp-hero-eyebrow,
.hp-hero-h1,
.hp-hero-desc {
  text-align: center !important;
  width: 100%;
}

.hp-hero-btns {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap;
  width: 100%;
}

.hp-hero-badges {
  left: 50% !important;
  transform: translateX(-50%) !important;
  justify-content: center !important;
  width: max-content;
  max-width: 92vw;
}

/* Hero mobile */
@media (max-width: 600px) {
  .hp-hero {
    padding: 64px 20px 100px !important;
    min-height: 85vh !important;
  }

  .hp-hero-content {
    padding: 0 !important;
  }

  .hp-hero-h1 {
    font-size: clamp(36px, 10vw, 54px) !important;
    line-height: 1.05 !important;
  }

  .hp-hero-desc {
    font-size: 14px !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hp-hero-btns {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    max-width: 340px;
  }

  .hp-hero-cta,
  .hp-hero-ghost {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 15px 24px !important;
    font-size: 12px !important;
  }

  .hp-hero-badges {
    gap: 14px !important;
    bottom: 22px !important;
  }
}

@media (max-width: 400px) {
  .hp-hero-badges {
    display: none !important;
  }

  .hp-hero-h1 {
    font-size: 34px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. COLLECTIONS GRID
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .hp-coll-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .hp-coll-card {
    padding: 20px 18px;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .hp-coll-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
  }
  .hp-coll-card {
    padding: 16px 14px;
    gap: 10px;
  }
  .hp-coll-num {
    font-size: 18px;
    min-width: 28px;
  }
  .hp-coll-info h3 {
    font-size: 14px;
  }
  .hp-coll-info p {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .hp-coll-arrow {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .hp-coll-card {
    padding: 12px 10px;
    gap: 8px;
  }
  .hp-coll-num {
    font-size: 15px;
    min-width: 22px;
  }
  .hp-coll-info h3 {
    font-size: 12px;
  }
  .hp-coll-info p {
    display: none;
  }
  .hp-coll-arrow {
    display: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. PRODUCT GRIDS & CAROUSEL (Homepage)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1100px) {
  .hp-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Carousel: native horizontal scroll on mobile */
  .hp-carousel-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hp-carousel-wrap::-webkit-scrollbar { display: none; }
  .hp-carousel-track { transform: none !important; }
  .hp-carousel-track .hp-carousel-item {
    min-width: 200px !important;
    width: 200px !important;
  }
}

@media (max-width: 600px) {
  .hp-grid-4,
  .hp-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .hp-carousel-track .hp-carousel-item {
    min-width: 168px !important;
    width: 168px !important;
  }
}

@media (max-width: 400px) {
  .hp-grid-4,
  .hp-grid-3 {
    gap: 10px !important;
  }
  .hp-carousel-track .hp-carousel-item {
    min-width: 148px !important;
    width: 148px !important;
  }
}

/* Product card — ensure text/buttons fit on small screens */
@media (max-width: 400px) {
  .card-name, .product-card-name {
    font-size: 12px !important;
  }
  .card-price, .product-card-price {
    font-size: 13px !important;
  }
  .product-card-btn {
    font-size: 10px !important;
    padding: 8px 0 !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. WHY SYLVARA CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1100px) {
  .hp-why-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hp-why-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .hp-why-card {
    padding: 24px 20px;
    text-align: left;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }
  .hp-why-ico {
    margin: 0;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
  }
  .hp-why-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .hp-why-card p {
    font-size: 13px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. STATS STRIP
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .hp-stats-row {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
  }
  .hp-stat {
    padding: 24px 28px;
    min-width: 50%;
    flex: 0 0 50%;
    border-bottom: 1px solid var(--border);
    border-right: none;
  }
  .hp-stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .hp-stat-div { display: none; }
}

@media (max-width: 600px) {
  .hp-stat {
    padding: 20px 16px;
    flex: 0 0 50%;
  }
  .hp-stat-num {
    font-size: 38px;
  }
}

@media (max-width: 380px) {
  .hp-stat {
    flex: 0 0 100%;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. ABOUT STRIP
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .hp-about-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .hp-about-visual { display: none; }
  .hp-about-h2 { font-size: 32px; }
}

@media (max-width: 600px) {
  .hp-about-h2 {
    font-size: 26px !important;
    margin-bottom: 16px;
  }
  .hp-about-p {
    font-size: 14px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. TESTIMONIALS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .hp-testi-row {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .hp-tcard {
    padding: 24px 20px;
  }
  .hp-tcard-body {
    font-size: 14px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. BUDGET BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .hp-budget-row {
    gap: 8px;
    padding: 0 4px;
  }
  .hp-budget-btn {
    font-size: 12px !important;
    padding: 10px 16px !important;
  }
}

@media (max-width: 380px) {
  .hp-budget-row {
    flex-direction: column;
    align-items: center;
  }
  .hp-budget-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. NEWSLETTER SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .hp-nl-h2 {
    font-size: 22px !important;
    margin-bottom: 24px;
  }
  .hp-nl-row {
    flex-direction: column !important;
    border: none !important;
    gap: 0 !important;
    max-width: 100% !important;
  }
  .hp-nl-input {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--r-sm) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
  }
  .hp-nl-btn {
    border-radius: var(--r-sm) !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    padding: 14px !important;
    font-size: 12px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. SECTION PADDING — tighten on mobile
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .hp-sec { padding: 52px 0; }
  .hp-collections { padding: 52px 0; }
  .hp-stats { padding: 36px 0; }
  .hp-about-strip { padding: 52px 0; }
  .hp-testi { padding: 52px 0; }
  .hp-nl { padding: 52px 0; }
  .hp-premium { min-height: 380px; }

  .hp-sec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px !important;
  }
}

@media (max-width: 600px) {
  .hp-sec { padding: 40px 0; }
  .hp-collections { padding: 40px 0; }
  .hp-premium { min-height: 320px; }
  .hp-premium-inner { padding: 60px var(--side-pad); }
  .hp-title-center { font-size: 28px !important; }
  .hp-title-left { font-size: 26px !important; }
  .hp-premium-title { font-size: clamp(30px, 9vw, 44px) !important; }

  /* Overflow prevention */
  .hp-sec,
  .hp-collections,
  .hp-premium,
  .hp-budget,
  .hp-testi,
  .hp-nl,
  .hp-stats,
  .hp-about-strip {
    overflow-x: hidden;
  }

  .hp-sec-header {
    margin-bottom: 22px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
  }
  .site-footer {
    padding: 40px 16px 0 !important;
  }
  .footer-pay {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .footer-newsletter {
    padding: 24px 16px !important;
  }
  .newsletter-form {
    flex-direction: column !important;
    width: 100% !important;
  }
  .newsletter-input {
    width: 100% !important;
    border-right: 1px solid var(--border-light) !important;
    border-radius: var(--r-sm) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-bottom: 0 !important;
  }
  .newsletter-btn {
    border-radius: var(--r-sm) !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
  }
  .footer-bottom {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. FLOATING CART BUTTON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .floating-cart {
    bottom: 18px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. TOAST
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .toast {
    right: 12px !important;
    left: 12px !important;
    text-align: center !important;
    bottom: 80px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. SHOP PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr !important;
    padding: 16px 20px 52px !important;
    gap: 16px !important;
  }

  /* Sidebar becomes sliding drawer */
  .shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--surface);
    z-index: 500;
    padding: 24px;
    overflow-y: auto;
    box-shadow: var(--sh-lg);
    border-right: 1px solid var(--border);
    border-radius: 0;
  }
  .shop-sidebar.open { display: block; }
  .sidebar-header { display: flex; }
  .mobile-filter-bar { display: flex; }

  .shop-page-header {
    padding: 20px 20px 16px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .shop-page-header h1 { font-size: 26px !important; }

  .shop-grid[data-cols="4"],
  .shop-grid[data-cols="3"],
  .shop-grid[data-cols="2"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  /* Mobile filter button full tap area */
  .mobile-filter-btn {
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 600px) {
  .shop-page-header {
    padding: 16px 16px 14px !important;
  }
  .shop-page-header h1 { font-size: 22px !important; }
  .shop-layout {
    padding: 12px 16px 40px !important;
    gap: 12px !important;
  }
  .shop-grid[data-cols="4"],
  .shop-grid[data-cols="3"],
  .shop-grid[data-cols="2"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .shop-view-toggle { display: none !important; }
  .mobile-filter-btn {
    font-size: 11px !important;
    padding: 9px 12px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. PRODUCT DETAIL PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .product-detail-wrap {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 28px 20px !important;
  }
  .product-images {
    position: static !important;
    max-width: 500px;
    margin: 0 auto;
  }
  .product-main-img {
    height: 400px !important;
  }
}

@media (max-width: 600px) {
  .product-detail-wrap {
    padding: 20px 16px !important;
    gap: 24px !important;
  }
  .product-title {
    font-size: 26px !important;
  }
  .product-main-img {
    height: 320px !important;
  }

  /* Size picker */
  .size-options {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .size-btn {
    padding: 10px 4px !important;
    font-size: 11px !important;
    text-align: center !important;
    min-height: 44px !important;
    touch-action: manipulation;
  }

  /* Quantity */
  .qty-row {
    display: inline-flex !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    overflow: hidden !important;
    gap: 0 !important;
    flex-direction : row;
  }
  .qty-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--silver) !important;
    min-height: 44px !important;
    touch-action: manipulation;
  }
  .qty-val {
    width: 48px !important;
    height: 44px !important;
    border: none !important;
    border-left: 1px solid var(--border) !important;
    border-right: 1px solid var(--border) !important;
    background: transparent !important;
    color: var(--silver-bright) !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  /* CTA buttons */
  .product-cta,
  .product-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .product-atc-btn,
  .btn-primary,
  .btn-ghost,
  .wishlist-full-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 14px 20px !important;
    font-size: 12px !important;
  }

  .product-trust {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .product-thumbnails {
    gap: 6px;
  }
  .product-thumb {
    width: 58px !important;
    height: 66px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   21. CART PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
    padding: 20px 16px 52px !important;
    gap: 24px !important;
    max-width: 100% !important;
  }
  .cart-summary {
    position: static !important;
  }
  .step-label { display: none; }
  .step-divider { width: 32px; }
  .cart-suggest-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Cart item block layout */
  .cart-item {
    display: block !important;
    position: relative;
    padding: 18px 0;
  }
  .cart-item-info {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
    padding-right: 44px;
    margin-bottom: 12px;
  }
  .cart-item-img {
    width: 68px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
  }
  .cart-item-price { display: none; }
  .cart-item-row2 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-right: 44px;
  }
  .remove-btn {
    position: absolute !important;
    top: 18px !important;
    right: 0 !important;
  }
}

@media (max-width: 480px) {
  .cart-layout {
    padding: 16px 14px 44px !important;
  }
  .checkout-steps {
    padding: 16px 14px !important;
  }
  .cart-item-img {
    width: 56px !important;
    height: 68px !important;
  }
  .cart-summary {
    padding: 18px !important;
  }
  .summary-title {
    font-size: 18px !important;
  }
  .cart-empty {
    padding: 60px 20px !important;
  }
  .cart-empty h2 {
    font-size: 26px !important;
  }

  /* Coupon input row */
  .coupon-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .coupon-input {
    width: 100% !important;
  }
  .coupon-btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   22. SHIPPING / CHECKOUT PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .shipping-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 28px 20px 52px !important;
  }
  .shipping-summary-col {
    order: -1; /* Summary above form on mobile */
  }
  .form-grid,
  .form-2col {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 600px) {
  .shipping-layout {
    padding: 20px 16px 40px !important;
  }
  .form-card-body {
    padding: 18px 16px !important;
  }
  .form-card-head {
    padding: 14px 16px !important;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important; /* Prevents iOS zoom on input focus */
    padding: 13px 14px !important;
    min-height: 48px !important;
  }

  /* Payment options */
  .payment-options {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .pay-opt {
    width: 100% !important;
    min-height: 52px !important;
  }

  /* Place order button */
  .place-order-btn {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 13px !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   23. CONTACT PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .contact-form-card {
    padding: 28px 24px !important;
  }
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: 20px 16px !important;
  }
  .form-2col {
    grid-template-columns: 1fr !important;
  }
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  .contact-submit-btn {
    width: 100% !important;
    min-height: 50px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   24. ABOUT / FAQ / PAGES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .page-hero {
    padding: 52px 20px 44px !important;
  }
  .page-section {
    padding: 52px 20px !important;
  }
  .section-title {
    font-size: 30px !important;
    margin-bottom: 32px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  .stats-row {
    flex-wrap: wrap;
  }
  .stat-item {
    min-width: 50% !important;
    flex: 0 0 50%;
    box-sizing: border-box;
  }
  .stat-item:nth-child(even) {
    border-right: none !important;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 40px 16px 36px !important;
  }
  .page-hero h1 {
    font-size: clamp(28px, 9vw, 48px) !important;
  }
  .page-section {
    padding: 36px 16px !important;
  }
  .section-title {
    font-size: 26px !important;
  }
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .value-card {
    padding: 24px 20px !important;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
  }
  .value-card-icon {
    margin-bottom: 0 !important;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }
  .stat-item {
    min-width: 50% !important;
    flex: 0 0 50%;
    padding: 28px 16px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  /* CTA buttons on info pages */
  .cta-btns {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .btn-primary,
  .btn-ghost {
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
  }

  /* FAQ tabs horizontal scroll */
  .faq-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px !important;
    scrollbar-width: none;
  }
  .faq-tabs::-webkit-scrollbar { display: none; }
  .faq-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    padding: 7px 14px !important;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 36px 16px 32px !important;
  }
  .stat-item {
    min-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   25. TRACK ORDER PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .track-form-row {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .track-input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important; /* prevent iOS zoom */
    padding: 14px 14px !important;
    min-height: 50px !important;
  }
  #track-btn {
    width: 100% !important;
    padding: 15px 20px !important;
    min-height: 50px !important;
    text-align: center !important;
  }
  .track-card {
    padding: 20px 16px !important;
  }
  .track-info-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   26. BEST SELLERS PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .bs-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px 20px 48px !important;
  }
  .bs-ranked-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0;
  }
}

@media (max-width: 600px) {
  .bs-layout {
    padding: 16px 16px 36px !important;
  }
  .bs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   27. SEARCH OVERLAY — mobile polish
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .search-overlay {
    padding-top: 70px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .search-box {
    width: 100% !important;
    max-width: 100% !important;
  }
  .search-input {
    font-size: 18px !important;
    padding: 10px 0 !important;
  }
  .search-results {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   28. GLOBAL — Touch target enforcement (WCAG)
   All interactive elements ≥ 44px on mobile
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  button,
  a[class*="btn"],
  .filter-check,
  .nav-icon-btn,
  .hp-budget-btn,
  .hp-arrow,
  .social-link,
  .view-btn {
    touch-action: manipulation; /* prevent 300ms tap delay */
  }

  .hp-arrow {
    width: 44px !important;
    height: 44px !important;
  }
  .social-link {
    width: 40px !important;
    height: 40px !important;
  }

  /* Remove hover-only UX on touch */
  @media (hover: none) {
    .product-card:hover {
      transform: none !important;
    }
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   29. GLOBAL — Typography scale clamp on mobile
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .t-display-xl { font-size: clamp(32px, 9vw, 42px) !important; }
  .t-display-lg { font-size: clamp(28px, 8vw, 36px) !important; }
  .t-display-md { font-size: clamp(22px, 6vw, 28px) !important; }
  .t-display-sm { font-size: clamp(19px, 5vw, 24px) !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   30. GLOBAL — Horizontal overflow prevention
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

@media (max-width: 600px) {
  section, footer, nav, header {
    max-width: 100vw;
    overflow-x: hidden;
  }
}
