/* ==========================================================================
   NCR Crafts — responsive.css  (v2 — full rewrite)
   Mobile-first. Base = 320–479 px (small phones).
   Build upward with min-width queries.
   DO NOT change class names or add inline styles — only layout overrides.
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 0 — ROOT / GLOBAL TOKENS
   ══════════════════════════════════════════════════════════════════════════ */

/* Small phone base (default — no query needed, set in :root of main.css) */
/* We only add overrides here */

@media (min-width: 480px) {
  :root { --container-px: 1.25rem; }
}
@media (min-width: 640px) {
  :root { --container-px: 1.5rem; }
}
@media (min-width: 768px) {
  :root { --container-px: 2rem; }
  body { font-size: 17px; }
}
@media (min-width: 1024px) {
  :root { --container-px: 2.5rem; }
  body { font-size: 18px; }
}
@media (min-width: 1280px) {
  :root { --container-px: 3rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 1 — ANNOUNCEMENT / SHIPPING BAR
   ══════════════════════════════════════════════════════════════════════════ */

/* Tiny phones: reduce font-size so text fits on one line */
@media (max-width: 479px) {
  .shipping-bar { height: auto; min-height: var(--shipping-h); padding: 0.35rem var(--container-px); }
  .shipping-bar__text { font-size: 0.72rem; letter-spacing: 0.02em; white-space: normal; line-height: 1.4; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 2 — NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Mobile: hamburger menu ─────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Show hamburger */
  .navbar__hamburger {
    display: flex !important;
    background: transparent; /* Remove rigid dark box */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  /* Hamburger lines inherit color from site-header state gracefully */
  .site-header .hamburger__line { background: var(--white) !important; }

  /* Ensure header stays above shipping bar when menu opens */
  .site-header { z-index: 10005 !important; }
  .admin-bar .site-header { z-index: 100005 !important; }
  
  /* When header becomes Burgundy (on inner pages or scroll), keep lines white for visibility */
  body:not(.home) .site-header .hamburger__line,
  .site-header.navbar--opaque .hamburger__line { background: #ffffff !important; }
  
  /* Hide text price on mobile to save logo space */
  .ncrcrafts-cart-amount { display: none !important; }
  
  /* Center the SVG now that the text is gone */
  .navbar__cart-btn svg { margin-left: 0 !important; }

  /* Slide-in drawer */
  .navbar__menu-wrap {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column;
    padding: 4.5rem 1.5rem 2rem;
    overflow-y: auto;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 0.5rem;
    justify-content: flex-start;
  }
  .navbar__menu-wrap.menu-open { right: 0; }

  /* Mobile Close Button inside drawer */
  .navbar__menu-close {
    display: flex !important;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #F3EEEC; /* Pale Rose */
    color: #6D2E46; /* Burgundy */
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 12px rgba(109, 46, 70, 0.12);
    padding: 0;
  }
  .navbar__menu-close svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
  }
  .navbar__menu-close:hover {
    background: #6D2E46;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
  }

  /* Staggered Entrance Animation */
  @keyframes menuLinkSlideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Stacked menu items */
  .navbar__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin-bottom: 2rem;
  }
  .navbar__menu li { 
    width: 100%;
    opacity: 0; /* Hidden by default for staggered animation */
  }
  
  /* Trigger animations when menu is open */
  .navbar__menu-wrap.menu-open .navbar__menu li {
    animation: menuLinkSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  /* Stagger delays */
  .navbar__menu-wrap.menu-open .navbar__menu li:nth-child(1) { animation-delay: 0.1s; }
  .navbar__menu-wrap.menu-open .navbar__menu li:nth-child(2) { animation-delay: 0.15s; }
  .navbar__menu-wrap.menu-open .navbar__menu li:nth-child(3) { animation-delay: 0.2s; }
  .navbar__menu-wrap.menu-open .navbar__menu li:nth-child(4) { animation-delay: 0.25s; }
  .navbar__menu-wrap.menu-open .navbar__menu li:nth-child(5) { animation-delay: 0.3s; }

  /* Mobile menu links - Extreme specificity to override home page transparent header white text */
  html body .site-header .navbar__menu-wrap .navbar__menu li a,
  .home .site-header:not(.navbar--opaque) .navbar__menu-wrap .navbar__menu li a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 12px;
    margin-bottom: 0.45rem;
    color: #2D2424 !important; /* Absolute dark force */
    text-shadow: none !important;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: none;
    text-align: left;
  }
  .site-header .navbar__menu-wrap .navbar__menu li a:hover {
    background: #F3EEEC;
    color: #6D2E46 !important;
    padding-left: 1.75rem;
    transform: translateX(5px);
  }

  /* Menu Overlay smooth fade */
  .menu-overlay {
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Right menu — stack below main menu in drawer */
  .navbar__menu--right {
    flex-direction: column;
    align-items: flex-start;
    margin: 0.5rem 0 0 0;
    width: 100%;
    gap: 0;
  }
  .navbar__menu--right li { width: 100%; }
  .site-header .navbar__menu--right li a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: var(--text-dark) !important;
    border-bottom: 1px solid var(--gold-pale);
    border-radius: var(--radius-md);
  }

  /* Hide My Account on mobile */
  .navbar__account-btn { display: none !important; }

  /* Utility icons (cart) stay visible on navbar row */
  .navbar__utils { gap: 0.75rem; align-items: center; }
  .navbar__icon-btn { width: auto; height: 44px; justify-content: center; }
  .navbar__cart-btn { padding-right: 0.5rem; }

  /* Cart badge - white circle with dark text on mobile, perfectly positioned */
  .ncrcrafts-cart-count {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 0.65rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    top: 4px;
    right: -2px;
  }

  /* Hide the overlay on desktop, show on mobile when menu open */
  .menu-overlay { display: none; }
  .menu-overlay.active { display: block; }

  /* Inner navbar height */
  .navbar__inner { height: 60px; padding: 0 1rem; gap: 0.5rem; }
  :root { --header-h: 60px; }

  /* Logo size on mobile */
  .navbar__logo img,
  .navbar__logo .custom-logo { height: 40px; }
  .navbar__logo-text { font-size: 1.2rem; }
}

/* ── Desktop: inline horizontal menu ───────────────────────────────────── */
@media (min-width: 768px) {
  .navbar__hamburger { display: none !important; }
  .menu-overlay { display: none !important; }

  .navbar__menu-wrap {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    overflow: visible !important;
    gap: 0;
  }
  .navbar__menu { flex-direction: row; }
}

/* ── Navbar inner on larger screens ─────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar__inner { padding: 0 1.5rem; gap: 1rem; }
  .navbar__menu li a { padding: 0.4rem 0.7rem; font-size: 0.88rem; }
  .navbar__menu--right li a { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
}

/* ── Search dropdown ─────────────────────────────────────────────────────── */
@media (max-width: 479px) {
  .search-dropdown { padding: 0.75rem 1rem; }
  .search-dropdown .search-field { font-size: 0.88rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 3 — HERO
   ══════════════════════════════════════════════════════════════════════════ */

/* Very small phones */
@media (max-width: 374px) {
  .hero { min-height: 520px; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero__btns { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .btn--hero-primary,
  .btn--hero-outline { width: 100%; text-align: center; justify-content: center; padding: 0.85rem 1.25rem; }
}

/* Small phones (375–479) */
@media (max-width: 479px) {
  .hero { min-height: min(100svh, 580px); padding-top: calc(60px + var(--shipping-h)); }
  .hero__content { padding: 1.5rem 0 2.5rem; }
  .hero__title { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 1rem; }
  .hero__subtitle { font-size: 1rem; margin-bottom: 2rem; max-width: 100%; }
  .hero__btns { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn--hero-primary,
  .btn--hero-outline { width: 100%; max-width: 280px; text-align: center; justify-content: center; padding: 0.9rem 1.5rem; font-size: 0.88rem; }
  .hero__wave { transform: translateY(-35px); }
  .hero__wave::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 50px; background: #fff; }
  .hero__wave svg { height: 50px; }
}

/* Tablets (480–767) */
@media (min-width: 480px) and (max-width: 767px) {
  .hero { min-height: min(90svh, 620px); }
  .hero__content { padding: 3rem 0 5rem; }
  .hero__title { font-size: clamp(2.2rem, 7vw, 3rem); }
  .hero__subtitle { font-size: 1.1rem; }
  .hero__btns { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn--hero-primary,
  .btn--hero-outline { max-width: 280px; justify-content: center; }
}

/* Medium tablet */
@media (min-width: 768px) {
  .hero { min-height: min(85vh, 680px); }
  .hero__content { padding: 5rem 0 7rem; }
  .hero__btns { flex-direction: row; flex-wrap: wrap; }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero__content { padding: 6rem 0 8rem; }
  .hero__inner { max-width: 700px; }
  .hero__title { font-size: clamp(3rem, 5vw, 4.5rem); }
}

@media (min-width: 1280px) {
  .hero { min-height: min(80vh, 720px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 4 — CATEGORY PILLS
   ══════════════════════════════════════════════════════════════════════════ */

/* Very small: 3 pills visible */
@media (max-width: 479px) {
  .categories-section { padding: 0.5rem 0 0.25rem; }
  .category-pill { flex: 0 0 33.3333%; }
  .category-pill__circle { width: 75px; height: 75px; padding: 3px; }
  .category-pill__circle::after { top: 3px; left: 3px; right: 3px; bottom: 3px; }
  .category-pill__label { font-size: 0.72rem; letter-spacing: -0.02em; }
  .category-pill__link { gap: 0.6rem; }
  .categories-section__track-wrap { padding: 0 0.25rem; gap: 0.25rem; }
  .categories-section__arrow { width: 32px; height: 32px; }
}

/* Small phones */
@media (min-width: 480px) and (max-width: 575px) {
  .category-pill { flex: 0 0 33.3333%; }
  .category-pill__circle { width: 90px; height: 90px; padding: 4px; }
  .category-pill__circle::after { top: 4px; left: 4px; right: 4px; bottom: 4px; }
  .category-pill__label { font-size: 0.75rem; }
  .category-pill__link { gap: 0.75rem; }
}

/* 576–899: show 3 pills */
@media (min-width: 576px) and (max-width: 899px) {
  .category-pill { flex: 0 0 33.3333%; }
  .category-pill__circle { width: 100px; height: 100px; }
}

/* 900+: show 3 pills */
@media (min-width: 900px) {
  .category-pill { flex: 0 0 33.3333%; }
  .category-pill__circle { width: 160px; height: 160px; }
}

@media (min-width: 1024px) {
  .category-pill__circle { width: 180px; height: 180px; }
}

/* Dots always centered */
.categories-section__dots { padding: 0 var(--container-px); }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 5 — PRODUCTS GRID
   ══════════════════════════════════════════════════════════════════════════ */

/* 2-col on phones (default in main.css) */
@media (max-width: 374px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .products-section { padding: 0.5rem 0; }
}

@media (min-width: 375px) and (max-width: 575px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

@media (min-width: 576px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Product card font sizes on small screens */
@media (max-width: 479px) {
  .product-card__info { padding: 0.75rem 0.65rem; }
  .product-card__title { font-size: 0.85rem; height: auto; min-height: 2.6em; }
  .product-card__price { font-size: 0.9rem; }
  .product-card__actions { padding: 0.25rem 0.65rem 0.75rem; }
  .btn--view-details { padding: 0.45rem 0.75rem; font-size: 0.75rem; }
  .home .btn--view-details {
    background: linear-gradient(135deg, var(--gold) 0%, #b8942e 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  .home .btn--view-details::after {
    content: '→';
    font-size: 0.9rem;
    opacity: 0.8;
  }

}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 6 — QUOTE SECTION
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .quote-section { padding: 1.5rem 0 0.5rem !important; background: #ffffff !important; }
  .quote-section__blockquote { padding: 0.5rem 1rem; width: 100%; border-radius: 0; margin: 0; }
  .quote-section__text { font-size: 1rem; line-height: 1.7; }
  .quote-section__mark { font-size: 4rem; top: -1.5rem; left: 0; }
  .quote-section__hearts { margin-top: 1rem; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .quote-section { padding: 2.5rem 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 7 — BUDGET / POLAROID SECTION
   ══════════════════════════════════════════════════════════════════════════ */

/* Disable rotations on mobile — they cause overflow / clipping */
@media (max-width: 767px) {
  .polaroid-card--0,
  .polaroid-card--1,
  .polaroid-card--2,
  .polaroid-card--3,
  .polaroid-card--4,
  .polaroid-card--5 { transform: none; }

  .polaroid-card:hover { transform: translateY(-4px) !important; }

  .budget-section { padding: 0.5rem 0; }
  .budget-section__title { font-size: clamp(1.4rem, 6vw, 2rem); margin-bottom: 0.75rem; }
  .budget-strip-wrap { padding: 0.75rem 0; }
  .budget-strip-inner { gap: 1.5rem; padding: 0 1rem; }
  .budget-labels { display: none; }
}

/* Phone: 2-column grid polaroids */
@media (max-width: 479px) {
  .budget-strip-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding: 0 0.5rem; }
  .polaroid-card { 
    flex: 0 0 calc(50% - 0.5rem) !important; 
    max-width: calc(50% - 0.5rem) !important; 
    box-sizing: border-box !important;
  }
  .polaroid-card .budget-label-btn {
    min-width: 0;
    max-width: 100%;
    width: auto;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
}

/* 480–767: 2-column grid */
@media (min-width: 480px) and (max-width: 767px) {
  .budget-strip-inner { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .polaroid-card { flex: 0 0 calc(50% - 1rem); max-width: 240px; }
}

/* 768–1023: 3 across */
@media (min-width: 768px) and (max-width: 1023px) {
  .budget-strip-inner { flex-wrap: wrap; justify-content: center; gap: 2rem; }
  .polaroid-card { flex: 0 0 calc(33.333% - 1.5rem); max-width: 220px; }
  .polaroid-card--0 { transform: rotate(-6deg); }
  .polaroid-card--1 { transform: rotate(4deg); }
  .polaroid-card--2 { transform: rotate(-4.5deg); }
  .polaroid-card--3 { transform: rotate(6deg); }
  .polaroid-card--4 { transform: rotate(-3deg); }
  .polaroid-card--5 { transform: rotate(5deg); }
  .polaroid-card:hover { transform: scale(1.05) rotate(0deg) !important; }
  .budget-labels { display: flex; gap: 1.5rem; }
  .budget-label-item { font-size: 1rem; max-width: 200px; }
}

/* 1024+: restore full desktop layout */
@media (min-width: 1024px) {
  .budget-strip-inner { flex-wrap: nowrap; }
  .polaroid-card { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 8 — SALE BANNER
   ══════════════════════════════════════════════════════════════════════════ */

.sale-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem var(--container-px);
  text-align: center;
}

.sale-banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.sale-text {
  color: var(--white);
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 700;
  margin: 0;
}

.sale-countdown {
  background: rgba(0,0,0,0.2);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.coupon-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.coupon-code {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.btn-copy {
  background: var(--white);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all var(--transition);
}
.btn-copy:hover { background: var(--gold); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-white:hover { background: var(--gold); color: var(--white); opacity: 1; transform: translateY(-1px); }

.sale-banner-img {
  width: auto;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

@media (max-width: 479px) {
  .sale-banner { padding: 1rem; gap: 0.75rem; }
  .sale-banner-img { height: 40px; }
  .sale-text { font-size: 0.85rem; }
  .coupon-display { flex-wrap: wrap; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 9 — VIDEO / REEL STRIP
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .videos-section { padding: 0.5rem 0; }
  
  .videos-section__track-wrap { padding: 0 0.85rem; }
  
  .videos-section__track { 
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important; 
    justify-content: flex-start !important; 
    gap: 0.75rem !important; 
    overflow-x: auto !important; 
    scroll-snap-type: x mandatory !important; 
    padding: 0.25rem 0 0.75rem !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .reel-card { 
    flex: 0 0 calc(50% - 0.5rem) !important; 
    width: calc(50% - 0.5rem) !important;
    min-width: 0 !important;
    max-width: none !important; 
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
  }

  .reel-card__thumb {
    aspect-ratio: 9/16 !important;
  }

  .reel-card__content {
    padding: 0.85rem 0.5rem !important;
  }

  .reel-card__title {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem;
  }

  .reel-link-btn {
    font-size: 0.72rem !important;
    padding: 0.4rem 0.6rem !important;
  }
}

@media (min-width: 768px) {
  .reel-card { width: 260px; }
}

@media (min-width: 1024px) {
  .reel-card { width: 300px; }
}

@media (min-width: 1280px) {
  .reel-card { width: 320px; }
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Video Lightbox overlay */
#video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#video-lightbox .js-close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
#video-lightbox .js-close-lightbox:hover { background: rgba(255,255,255,0.3); }

#js-video-player {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 10 — REVIEWS
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .reviews-section { padding: 0.5rem 0; }
  .reviews-grid { padding-left: 1rem; padding-right: 1rem; gap: 1rem; }
  .review-card {
    flex: 0 0 calc(92vw - 2rem);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }
  .review-card__text { font-size: 0.85rem; margin-bottom: 1.25rem; }
  .reviews-section__quote { padding: 0 1rem; margin-bottom: 0.75rem; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .review-card { flex: 0 0 calc(85vw - 1.5rem); max-width: 380px; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .review-card { flex: 0 0 360px; }
}

@media (min-width: 900px) {
  .review-card { flex: 0 0 380px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 11 — TRUST BAR
   ══════════════════════════════════════════════════════════════════════════ */

/* Mobile: 2 columns grid */
@media (max-width: 479px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0 0.75rem !important;
  }
  .trust-item { 
    padding: 1.5rem 0.75rem; 
    border-radius: var(--radius-lg); 
  }
  .trust-bar__header { padding: 0.75rem 0 0.4rem; }
  .trust-bar__inner { padding: 0.75rem 0; }
  .trust-item__title { font-size: 0.9rem; }
  .trust-item__emoji { font-size: 1.75rem; }
  .trust-item__desc { font-size: 0.75rem; max-width: 100%; }
}

/* 480–639: 2 columns */
@media (min-width: 480px) and (max-width: 639px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .trust-item { padding: 2rem 1rem; }
}

/* 640–1023: 2 columns still */
@media (min-width: 640px) and (max-width: 1023px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* 1024+: 4 columns restored */
@media (min-width: 1024px) {
  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 12 — ABOUT SECTION
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .about-section { padding: 0.5rem 0; }
  .about-section__logo-wrap img,
  .about-section__logo-wrap .custom-logo { height: 48px; }
  .about-section__heading { font-size: 1.25rem; }
  .about-section__text { font-size: 0.88rem; }
  .about-section__social { gap: 0.5rem; }
  .about-social-icon { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 13 — FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

/* Mobile: stacked single column */
@media (max-width: 479px) {
  .footer__main { padding: 1.5rem 0 1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { padding: 0.75rem 0; }
  .footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; }
  .footer__logo-text { font-size: 1.25rem; }
  .footer__tagline { font-size: 0.82rem; margin-bottom: 1rem; }
  .footer__col-title { font-size: 0.85rem; margin-bottom: 0.65rem; }
  .footer__policy-links { flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.75rem; }
  .footer__social { margin-top: 0.5rem; }
}

/* 480–767: 2-column footer grid */
@media (min-width: 480px) and (max-width: 767px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; }
  /* Brand column spans full width */
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__bottom { padding: 1rem 0; }
  .footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* 768–1023: 2 column equal */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .footer__bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* 1024+: 4-column layout */
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
  .footer__bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 14 — WOO: SHOP PAGE
   ══════════════════════════════════════════════════════════════════════════ */

/* Mobile: sidebar collapsed toggle */
@media (max-width: 767px) {
  .shop-layout { flex-direction: column; gap: 1.25rem; }
  .shop-sidebar { width: 100%; }
  .shop-sidebar__toggle { display: flex; }
  .shop-sidebar__content { display: none; }
  .shop-sidebar__content.open { display: block; animation: slideDown 0.2s var(--ease); }

  /* Merge Top Search & Filter visually on mobile */
  .sidebar-widget--search-top { margin-bottom: 0.75rem; }
  .shop-sidebar__toggle { margin-bottom: 1.25rem; }

  /* Products: 2 cols on mobile strictly enforced down to 0px */
  .woo-products-grid ul.products, .related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .product-card-meta { padding: 0.65rem; gap: 0.4rem; } 
  .woocommerce-loop-product__title { font-size: 0.85rem; padding: 0; line-height: 1.3; }
  .woocommerce ul.products li.product .price { font-size: 0.88rem; padding: 0; }
  .product-card-view-btn { font-size: 0.72rem; padding: 0.45rem 0.5rem; margin-top: 0.25rem; }
  .home .product-card-view-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #b8942e 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  .home .product-card-view-btn::after {
    content: '→';
    font-size: 0.9rem;
    opacity: 0.8;
  }


  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 374px) {
  .woo-products-grid ul.products, .related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* Tablet: sidebar always shown, 2-col grid */
@media (min-width: 768px) and (max-width: 1023px) {
  .shop-layout { flex-direction: column; }
  .shop-sidebar__toggle { display: none; }
  .shop-sidebar__content { display: block !important; }
  .woo-products-grid ul.products, .related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* Desktop: sidebar sticky left column, 3-col products */
@media (min-width: 1024px) {
  .shop-layout { flex-direction: row; align-items: flex-start; }
  .shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + var(--shipping-h) + 1rem);
  }
  .shop-sidebar__toggle { display: none; }
  .shop-sidebar__content { display: block !important; }
  .shop-main { flex: 1; min-width: 0; }
  .woo-products-grid ul.products, .related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (min-width: 1280px) {
  .woo-products-grid ul.products, .related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 15 — WOO: SINGLE PRODUCT
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .single-product-layout { flex-direction: column; gap: 1.5rem; }
  .single-product-info__title { font-size: clamp(1.3rem, 5vw, 1.75rem); }
  .single-product-info__cart form.cart { flex-wrap: wrap; gap: 0.75rem; }
  .single-product-info__cart .single_add_to_cart_button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .woocommerce-tabs ul.tabs { overflow-x: auto; flex-wrap: nowrap; }
  .woocommerce-tabs ul.tabs li a { white-space: nowrap; padding: 0.5rem 0.9rem; font-size: 0.85rem; }
  .flex-control-thumbs li { width: 55px; }
}

@media (min-width: 1024px) {
  .single-product-layout { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .single-product-gallery {
    flex: 1;
    position: sticky;
    top: calc(var(--header-h) + var(--shipping-h) + 1rem);
  }
  .single-product-info { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 16 — WOO: CART PAGE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
  /* Stack layout */
  .cart-layout { flex-direction: column; gap: 1.5rem; }
  .cart-totals-wrap { width: 100%; }

  /* Compact cart rows */
  .cart-table__head { display: none; }
  .cart-table__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem;
    gap: 0.5rem;
  }
  .cart-table__td--thumb img { width: 60px; height: 60px; }
  .cart-table__td--thumb { width: 60px; }
  .cart-table__td--name { flex: 1; min-width: 120px; font-size: 0.85rem; }
  .cart-table__td--price { font-size: 0.85rem; }
  .cart-table__td--subtotal { font-size: 0.9rem; }

  /* Coupon input */
  .cart-coupon__input-wrap { flex-direction: column; }
  .cart-coupon__input { min-width: 100%; }

  /* Cart actions stacked */
  .cart-actions { flex-direction: column; gap: 0.75rem; align-items: stretch; }
}

@media (min-width: 640px) {
  /* Show table head, horizontal layout */
  .cart-table__head { display: table-header-group; }
  .cart-table__row {
    display: table-row;
    padding: 0;
  }
  .cart-table__td { display: table-cell; padding: 0.75rem 0.5rem; vertical-align: middle; border-bottom: 1px solid var(--gold-pale); }
  .cart-table__th { padding: 0.5rem; text-align: left; font-size: 0.75rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 2px solid var(--gold-pale); }
  .cart-table__td--remove { width: 40px; text-align: center; }
  .cart-table__td--thumb  { width: 90px; }
  .cart-table__td--name   { width: auto; }
  .cart-table__td--price, .cart-table__td--subtotal { width: 100px; }
  .cart-table__td--qty    { width: 90px; }
  .cart-layout { flex-direction: row; align-items: flex-start; }
  .cart-items-wrap { flex: 1; }
  .cart-totals-wrap { width: 300px; flex-shrink: 0; }
  .cart-actions { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 17 — WOO: CHECKOUT PAGE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .checkout-layout { flex-direction: column; gap: 1.5rem; }
  .checkout-order-col { width: 100%; }
  .checkout-section { padding: 1.25rem; }
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    display: block;
    width: 100%;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  /* 2-col billing fields on large phones */
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    display: inline-block;
    width: calc(50% - 0.4rem);
  }
  .woocommerce-checkout .form-row-first { margin-right: 0.4rem; }
}

@media (min-width: 768px) {
  .checkout-layout { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .checkout-fields-col { flex: 1; }
  .checkout-order-col {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + var(--shipping-h) + 1rem);
  }
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    display: inline-block;
    width: calc(50% - 0.4rem);
  }
  .woocommerce-checkout .form-row-first { margin-right: 0.4rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 18 — PAGE HERO (shop, policy, etc.)
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .page-hero { min-height: 160px; }
  .page-hero__title { font-size: 1.5rem; }
  .page-hero__desc { font-size: 0.88rem; }
  .page-hero__content { padding: 2rem var(--container-px); }
}

@media (min-width: 480px) and (max-width: 767px) {
  .page-hero { min-height: 200px; }
  .page-hero__title { font-size: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 19 — 404 ERROR PAGE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .error-404 { padding: 2.5rem 0; }
  .error-404__emoji { font-size: 3.5rem; }
  .error-404__title { font-size: clamp(3rem, 15vw, 6rem); }
  .error-404__subtitle { font-size: 1.2rem; }
  .error-404__actions { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 20 — SECTION HEADERS (shared)
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .section-header { margin-bottom: 1.5rem; }
  .section-header__title { font-size: clamp(1.25rem, 5vw, 1.6rem); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 21 — DECOR LINES (reviews + trust bar header)
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .reviews-section__footer-decor { gap: 0.75rem; }
  .decor-heart { font-size: 1.75rem; }
  .trust-bar__header-decor { gap: 0.75rem !important; }
  .trust-bar__header-decor .decor-heart { font-size: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 22 — LARGE DESKTOP (1440px+)
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1440px) {
  :root {
    --container-max: 1400px;
    --container-px: 2rem;
  }
  .container { max-width: var(--container-max); padding: 0 var(--container-px); }

  .products-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .woo-products-grid ul.products, .related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .hero__title { font-size: 4.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 23 — PRINT
   ══════════════════════════════════════════════════════════════════════════ */

@media print {
  .shipping-bar, .site-header, .site-footer,
  .navbar, .categories-section__arrow,
  .btn, .reviews-slider__dots,
  .sale-banner, #video-lightbox { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }
  .container { max-width: 100%; }
  a { text-decoration: underline; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 24 — REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .polaroid-card { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 25 — TOUCH-DEVICE HELPERS
   ══════════════════════════════════════════════════════════════════════════ */

/* Prevent text-size inflation on orientation change */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100vw; }
  .categories-section { padding: 1.5rem 0 1rem; }
}

/* Ensure interactive elements are at least 44×44 px (WCAG 2.5.5) */
@media (hover: none) and (pointer: coarse) {
  .navbar__icon-btn,
  .categories-section__arrow,
  .btn,
  .cart-remove-btn,
  .qty-btn { min-width: 44px; min-height: 44px; }

  /* Remove hover-based effects on touch devices */
  .product-card:hover,
  .polaroid-card:hover,
  .trust-item:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 26 — FILM STRIP SECTION (Elementor Overrides)
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Force section padding */
  .hsm-film-strip-section, 
  .elementor-section.hsm-film-strip-section {
    padding: 1.5rem 0 2rem !important;
  }

  /* Force wrap/container adjustments */
  .hsm-film-strip-wrap,
  .hsm-film-strip-section .elementor-widget-container {
    padding: 18px 0 !important;
  }

  /* Enhance Perforations — ensuring they override Elementor's height/bg */
  .hsm-film-strip-wrap::before,
  .hsm-film-strip-wrap::after,
  .elementor-section.hsm-film-strip-section .elementor-container::before,
  .elementor-section.hsm-film-strip-section .elementor-container::after {
    height: 7px !important;
    background: repeating-linear-gradient(
      90deg,
      #eae6e0 0,
      #eae6e0 6px,
      transparent 6px,
      transparent 12px
    ) !important;
    z-index: 2;
  }
  .hsm-film-strip-wrap::before { top: 5px !important; }
  .hsm-film-strip-wrap::after { bottom: 5px !important; }

  /* Shrink the Elementor Button — the primary target */
  .hsm-film-strip-section .elementor-button,
  .hsm-film-strip-section .btn,
  .hsm-film-strip-section [class*="btn"] {
    display: table !important; /* Forces width to fit content */
    width: auto !important;
    min-width: 160px !important;
    max-width: 80% !important;
    margin: 1rem auto 0 !important;
    padding: 10px 20px !important; /* Much smaller than Elementor's default */
    font-size: 11px !important;
    letter-spacing: 1px !important;
    height: auto !important;
    min-height: 40px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  /* Ensure the button text is centered inside the Elementor wrapper */
  .hsm-film-strip-section .elementor-button-wrapper {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }
}
