/* ============================================================
   responsive.css — Complete Cross-Device Optimization
   Merry Christmas Decors | All breakpoints: 320px → 1440px+
   Preserves Evergreen Luxe brand. Fixes overflow, alignment,
   typography, spacing, and mobile UX across every page.
   ============================================================ */

/* ============================================================
   SECTION 0 — GLOBAL OVERFLOW & BOX-SIZING GUARDS
   (applied unconditionally before any media query)
   ============================================================ */

/* Hard overflow guard: nothing escapes the viewport */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Images & media are always responsive */
img, video, svg, picture, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Text never bleeds out of its container */
p, h1, h2, h3, h4, h5, h6, li, span, a, td, th {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Tables scroll horizontally rather than breaking layout */
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
/* Restore table display for direct-child rows */
table thead, table tbody, table tfoot { display: table; width: 100%; }

/* Touch: minimum tap target 44 × 44 px */
button, [role="button"], a {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   SECTION 1 — GLOBAL UTILITY RESETS
   ============================================================ */

/* Announcement bar hidden when ribbon replaces it */
.announcement-bar { display: none !important; }

/* Promo ribbon: prevent bleed on any screen */
.promo-ribbon {
  max-width: 100vw;
  overflow: hidden;
}

/* Campaign banner: always contained */
.campaign-banner {
  max-width: 100%;
  overflow: hidden;
}

/* Coupon toast: never wider than screen */
.coupon-toast {
  max-width: calc(100vw - 32px);
  white-space: normal;
  text-align: center;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: max-content;
}
.coupon-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Purchase notification: safe on any screen */
.purchase-notif {
  max-width: min(320px, calc(100vw - 32px));
  left: 16px;
  bottom: 90px; /* above sticky ATC */
}

/* Sticky ATC enhanced: z-index hierarchy */
.sticky-atc-enhanced { z-index: 50; }
.purchase-notif { z-index: 400; }
.coupon-toast { z-index: 500; }

/* Gallery thumbs: smooth horizontal scroll */
.gallery-thumbs {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.gallery-thumb {
  scroll-snap-align: start;
}

/* Price block: prevent overflow */
.price-block {
  min-width: 0;
}
.price-block .price-now {
  word-break: keep-all;
}

/* Product labels: wrap cleanly */
.product-labels {
  flex-wrap: wrap;
}

/* Trust badges: wrap gracefully */
.trust-badges-row {
  flex-wrap: wrap;
}

/* Payment icons: allow wrapping */
.payment-icons {
  flex-wrap: wrap;
}

/* Buy row: stack-safe on very narrow screens */
.buy-row {
  flex-wrap: wrap;
}

/* Campaign countdown: no overflow */
.campaign-countdown {
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   SECTION 2 — DESKTOP XL (1440px+)
   Wider containers, slightly more generous spacing
   ============================================================ */
@media (min-width: 1440px) {
  .container {
    width: min(1360px, 100% - 64px);
  }
  .product-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 72px;
  }
  .hero-inner {
    padding: clamp(80px, 9vw, 140px) 0;
  }
}

/* ============================================================
   SECTION 3 — DESKTOP (1281px – 1439px)
   Standard large-screen — mostly handled by existing CSS
   ============================================================ */
@media (min-width: 1281px) {
  /* Sticky ATC bar: show it properly */
  .sticky-atc { display: none; } /* hide original, enhanced replaces */
}

/* ============================================================
   SECTION 4 — LAPTOP / LARGE TABLET (1025px – 1280px)
   ============================================================ */
@media (max-width: 1280px) {
  /* Hero */
  .hero-inner {
    gap: clamp(32px, 4vw, 56px);
  }
  .hero-visual img {
    aspect-ratio: 3 / 2;
  }
  .hero-card {
    max-width: 220px;
    padding: 14px 16px;
  }

  /* Product layout */
  .product-layout {
    gap: clamp(28px, 3.5vw, 48px);
  }

  /* Grid adjustments */
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 24px;
  }

  /* Sticky ATC enhanced: tighter padding */
  .sticky-atc-enhanced-actions .btn {
    padding: 12px 16px;
    font-size: 13.5px;
  }
}

/* ============================================================
   SECTION 5 — TABLET (768px – 1024px)
   ============================================================ */
@media (max-width: 1024px) {

  /* ---- Layout ---- */
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 16px;
  }
  .gallery {
    position: static;
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }
  .collection-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .cart-page,
  .checkout-page {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .size-guide {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
  }

  /* ---- Hero ---- */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    display: none;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }

  /* ---- Trust strip ---- */
  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* ---- Grids ---- */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Campaign banner ---- */
  .campaign-banner {
    padding: 14px 0;
  }
  .campaign-banner-inner {
    gap: 14px;
    padding: 0 12px;
  }
  .campaign-title {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  }
  .countdown-block {
    min-width: 38px;
    padding: 5px 6px;
  }
  .countdown-num {
    font-size: 1rem;
  }

  /* ---- Product page CRO elements ---- */
  .sticky-atc-enhanced-info strong {
    font-size: 13px;
  }
  .trust-badges-row {
    gap: 8px;
  }
  .trust-badge-pill {
    font-size: 12px;
    padding: 6px 12px;
  }
  .payment-icon {
    height: 22px;
    min-width: 32px;
    font-size: 9px;
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Promo block ---- */
  .promo-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* ============================================================
   SECTION 6 — MOBILE (max 767px)
   The most critical breakpoint — covers all phones
   ============================================================ */
@media (max-width: 767px) {

  /* ---- Container ---- */
  .container {
    width: calc(100% - 32px);
  }

  /* ---- Typography scaling ---- */
  h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.18;
  }
  h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.9rem);
    line-height: 1.2;
  }
  h3 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  .product-info h1 {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
    line-height: 1.2;
  }
  .lede {
    font-size: 1rem;
  }

  /* ---- Navigation ---- */
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-inner {
    gap: 12px;
  }
  .brand-word {
    font-size: 1.1rem;
  }

  /* ---- Hero ---- */
  .hero-inner {
    padding: 48px 0 40px;
    text-align: center;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 340px;
  }
  .hero-badges {
    justify-content: center;
    gap: 12px;
    font-size: 13px;
  }
  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
    margin-top: 20px;
  }
  .hero-stats div {
    text-align: center;
    min-width: 70px;
  }
  .hero-stats strong {
    font-size: 1.3rem;
  }
  .hero-stats span {
    font-size: 11.5px;
  }

  /* ---- Trust strip ---- */
  .trust-strip-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .trust-item {
    padding: 10px 0;
  }
  .trust-item svg {
    width: 28px;
    height: 28px;
  }

  /* ---- Grids ---- */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* ---- Product cards ---- */
  .product-card-body {
    padding: 14px;
  }
  .product-card-title {
    font-size: 14px;
  }
  .product-card-price {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .product-card-actions .btn {
    font-size: 13px;
    padding: 10px 14px;
  }

  /* ---- Section spacing ---- */
  .section {
    padding: clamp(40px, 7vw, 72px) 0;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  /* ---- Promo banner ---- */
  .promo {
    border-radius: var(--radius-md);
  }
  .promo-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 16px;
  }
  .promo-inner .btn {
    width: 100%;
  }

  /* ---- Campaign banner ---- */
  .campaign-banner {
    padding: 12px 0;
  }
  .campaign-banner-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .campaign-title {
    font-size: clamp(0.88rem, 4vw, 1rem);
    line-height: 1.3;
  }
  .campaign-title .highlight {
    display: block;
  }
  .campaign-countdown {
    gap: 5px;
    justify-content: center;
  }
  .countdown-block {
    min-width: 36px;
    padding: 5px 7px;
  }
  .countdown-num {
    font-size: 1rem;
  }
  .countdown-label {
    font-size: 11px;
  }
  .campaign-coupon {
    padding: 7px 14px;
  }
  .campaign-coupon .coupon-code {
    font-size: 0.9rem;
  }

  /* ---- Promo ribbon ---- */
  .promo-ribbon {
    font-size: 12px;
  }
  .promo-ribbon-item {
    padding: 10px 20px;
    gap: 7px;
  }
  .promo-ribbon-track {
    animation-duration: 22s;
  }

  /* ---- Product page layout ---- */
  .product-layout {
    padding-top: 10px;
    gap: 24px;
  }
  .breadcrumb {
    padding: 12px 0 4px;
  }
  .breadcrumb ol {
    font-size: 12.5px;
  }

  /* ---- Gallery ---- */
  .gallery {
    position: static;
    width: 100%;
  }
  .gallery-main {
    border-radius: var(--radius-md);
  }
  .gallery-thumbs {
    gap: 8px;
    margin-top: 10px;
  }
  .gallery-thumb {
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
  }

  /* ---- Product info ---- */
  .product-info {
    padding-top: 0;
  }
  .vendor {
    font-size: 12px;
    margin-bottom: 6px;
  }

  /* ---- Product labels ---- */
  .product-labels {
    gap: 6px;
    margin-bottom: 10px;
  }
  .plabel {
    font-size: 11px;
    padding: 3px 10px;
  }

  /* ---- Price block ---- */
  .price-block {
    padding: 14px 16px;
    border-radius: 12px;
  }
  .price-block .price-now {
    font-size: 1.65rem;
  }
  .price-block .price-was {
    font-size: 1rem;
  }
  .price-block-sale-label {
    font-size: 10px;
    padding: 3px 10px;
  }
  .price-block-note {
    font-size: 11.5px;
  }

  /* ---- Coupon callout ---- */
  .coupon-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0 14px;
  }
  .coupon-callout-text p {
    font-size: 13px;
  }
  .coupon-code-pill {
    font-size: 12.5px;
    padding: 6px 12px;
  }

  /* ---- Urgency strip ---- */
  .urgency-strip {
    font-size: 13px;
    padding: 9px 12px;
    gap: 8px;
  }
  .urgency-strip .urgency-icon {
    font-size: 16px;
  }

  /* ---- Buy row ---- */
  .buy-row {
    gap: 10px;
    flex-wrap: nowrap; /* keep qty + ATC on same row */
  }
  .qty-control {
    min-width: 110px;
    flex-shrink: 0;
  }
  .qty-btn {
    width: 40px;
    height: 48px;
  }
  .qty-input {
    width: 32px;
    font-size: 15px;
  }
  #atc-btn {
    flex: 1;
    font-size: 15px !important;
    padding: 14px 10px !important;
    min-height: 52px;
  }
  .buy-now-row {
    margin-bottom: 14px;
  }
  #buy-now-btn {
    font-size: 15px !important;
    min-height: 50px;
  }

  /* ---- Shipping card ---- */
  .shipping-card {
    padding: 14px;
    gap: 10px;
    border-radius: 12px;
  }
  .shipping-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .shipping-card-icon svg {
    width: 18px;
    height: 18px;
  }
  .shipping-card-body strong {
    font-size: 13.5px;
  }
  .shipping-card-body p {
    font-size: 12px;
  }

  /* ---- Trust list ---- */
  .trust-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 0;
  }
  .trust-list li {
    font-size: 13.5px;
  }
  .trust-list svg {
    width: 20px;
    height: 20px;
  }

  /* ---- Trust badge pills ---- */
  .trust-badges-row {
    gap: 7px;
    margin: 14px 0;
  }
  .trust-badge-pill {
    font-size: 11.5px;
    padding: 6px 11px;
    gap: 5px;
  }
  .trust-badge-pill svg {
    width: 13px;
    height: 13px;
  }

  /* ---- Payment icons ---- */
  .payment-icons {
    gap: 5px;
    margin-top: 12px;
  }
  .payment-icons-label {
    font-size: 10.5px;
    width: 100%;
    margin-bottom: 4px;
    flex-basis: 100%;
  }
  .payment-icon {
    height: 20px;
    min-width: 30px;
    font-size: 8.5px;
    padding: 0 4px;
    border-radius: 4px;
  }

  /* ---- Accordions ---- */
  .accordions {
    margin-top: 16px;
  }
  .accordion summary {
    padding: 15px 0;
    font-size: 15px;
  }
  .accordion-body p {
    font-size: 14px;
  }

  /* ---- Christmas promo block ---- */
  .xmas-promo-block {
    border-radius: var(--radius-md);
    padding: 20px 18px;
    margin: 16px 0;
  }
  .xmas-promo-block-inner {
    flex-direction: column;
    gap: 16px;
  }
  .xmas-promo-copy h3 {
    font-size: 1.1rem;
  }
  .xmas-promo-copy p {
    font-size: 13.5px;
  }
  .xmas-promo-action .btn {
    width: 100%;
    text-align: center;
  }

  /* ---- Reviews ---- */
  .reviews-section {
    padding: clamp(36px, 6vw, 60px) 0;
  }
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .reviews-summary {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .reviews-score {
    font-size: 3rem;
  }
  .stars-row .star {
    font-size: 16px;
  }
  .reviews-count {
    font-size: 13px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-card {
    padding: 20px;
  }
  .review-body {
    font-size: 13.5px;
  }

  /* ---- Sticky ATC enhanced ---- */
  .sticky-atc-enhanced-inner {
    gap: 10px;
    padding: 10px 0;
  }
  .sticky-atc-enhanced-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: none; /* hide on small phones to save space */
  }
  .sticky-atc-enhanced-info {
    min-width: 0;
    flex: 1;
  }
  .sticky-atc-enhanced-info strong {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
  .sticky-atc-enhanced-price {
    font-size: 14px;
  }
  .sticky-atc-enhanced-compare {
    font-size: 12px;
  }
  .sticky-atc-enhanced-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .sticky-atc-enhanced-actions .btn {
    padding: 11px 14px;
    font-size: 13px;
    border-radius: 10px;
    min-height: 44px;
    white-space: nowrap;
  }

  /* ---- Purchase notification ---- */
  .purchase-notif {
    max-width: calc(100vw - 32px);
    left: 16px;
    bottom: 86px;
    border-radius: 12px;
    padding: 12px 14px;
    gap: 10px;
  }
  .purchase-notif-img {
    width: 38px;
    height: 38px;
  }
  .purchase-notif-body p {
    font-size: 12px;
  }
  .purchase-notif-body .notif-time {
    font-size: 10.5px;
  }

  /* ---- Collection hero ---- */
  .collection-hero {
    min-height: 220px;
  }
  .collection-hero-body h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* ---- Related products ---- */
  .related {
    padding-bottom: clamp(32px, 5vw, 60px);
  }
  .related .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* ---- Cart drawer ---- */
  .cart-drawer {
    width: min(400px, 100vw);
  }
  .cart-drawer-header {
    padding: 16px 18px;
  }
  .cart-lines {
    padding: 12px 18px;
  }
  .cart-footer {
    padding: 16px 18px;
  }
  .cart-item img {
    width: 68px;
    height: 68px;
  }

  /* ---- Cart page ---- */
  .cart-page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0 48px;
  }
  .cart-summary {
    position: static;
    border-radius: var(--radius-md);
  }

  /* ---- FAQ ---- */
  .faq-item summary {
    font-size: 15px;
    padding: 16px 0;
  }

  /* ---- Newsletter ---- */
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-form input {
    max-width: 100%;
    width: 100%;
  }
  .newsletter-form .btn {
    width: 100%;
  }

  /* ---- Footer ---- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .footer-col li {
    margin-bottom: 7px;
  }
  .footer-col a {
    font-size: 13.5px;
  }
  .footer-brand p {
    max-width: none;
    font-size: 13.5px;
  }
  .footer-contact {
    font-size: 13px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-bottom p,
  .secure-note {
    font-size: 12px;
  }

  /* ---- Value cards ---- */
  .grid-3.steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .value-card {
    padding: 24px 20px;
  }

  /* ---- Size guide table ---- */
  .size-guide-table table {
    min-width: 420px;
  }
  .size-guide-copy p {
    font-size: 15px;
  }

  /* ---- Contact page ---- */
  .contact-card {
    padding: 20px;
  }

  /* ---- Page hero ---- */
  .page-hero {
    padding: clamp(36px, 6vw, 64px) 0;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-hero p {
    font-size: 1rem;
  }

  /* ---- Checkout ---- */
  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cc-form {
    padding: 20px;
  }
  .cc-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .checkout-steps {
    padding: 16px 0 24px;
  }
  .checkout-step {
    font-size: 12.5px;
  }
}

/* ============================================================
   SECTION 7 — STANDARD MOBILE (375px – 430px)
   Fine-tune for the most common phone sizes
   ============================================================ */
@media (max-width: 430px) and (min-width: 376px) {
  /* Nothing extra needed beyond 767px block — handled cleanly */
  .product-info h1 {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }
  .price-block .price-now {
    font-size: 1.55rem;
  }
  .sticky-atc-enhanced-actions .btn {
    padding: 11px 12px;
    font-size: 12.5px;
  }
}

/* ============================================================
   SECTION 8 — SMALL MOBILE (320px – 375px)
   The tightest screen — absolute minimum viable layout
   ============================================================ */
@media (max-width: 375px) {

  /* Container: minimal side margins */
  .container {
    width: calc(100% - 24px);
  }

  /* Typography */
  h1 {
    font-size: clamp(1.4rem, 8vw, 1.9rem);
  }
  h2 {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
  }
  .product-info h1 {
    font-size: clamp(1.15rem, 7vw, 1.5rem);
  }

  /* Promo ribbon */
  .promo-ribbon {
    font-size: 11.5px;
  }
  .promo-ribbon-item {
    padding: 9px 16px;
    gap: 6px;
  }

  /* Campaign banner */
  .campaign-banner {
    padding: 10px 0;
  }
  .campaign-title {
    font-size: 0.85rem;
  }
  .countdown-block {
    min-width: 32px;
    padding: 4px 5px;
  }
  .countdown-num {
    font-size: 0.9rem;
  }
  .countdown-sep {
    font-size: 0.9rem;
  }
  .campaign-coupon {
    padding: 6px 12px;
    gap: 6px;
  }
  .campaign-coupon .coupon-code {
    font-size: 0.82rem;
  }
  .campaign-coupon .coupon-action {
    font-size: 10px;
  }

  /* Product labels */
  .plabel {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Price block */
  .price-block .price-now {
    font-size: 1.45rem;
  }
  .price-block .price-was {
    font-size: 0.9rem;
  }
  .save-badge {
    font-size: 11px;
    padding: 3px 9px;
  }

  /* Coupon callout */
  .coupon-callout {
    padding: 11px 12px;
  }
  .coupon-code-pill {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Buy row: keep on one line by hiding qty label */
  .buy-row {
    gap: 8px;
  }
  .qty-control {
    min-width: 100px;
  }
  .qty-btn {
    width: 36px;
    height: 46px;
  }
  .qty-input {
    width: 28px;
    font-size: 14px;
  }
  #atc-btn {
    font-size: 14px !important;
    padding: 13px 8px !important;
    min-height: 48px;
  }
  #buy-now-btn {
    font-size: 14px !important;
    min-height: 48px;
  }

  /* Trust badges */
  .trust-badge-pill {
    font-size: 11px;
    padding: 5px 9px;
  }

  /* Payment icons */
  .payment-icon {
    height: 18px;
    min-width: 26px;
    font-size: 7.5px;
  }

  /* Grids */
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Product cards */
  .product-card-body {
    padding: 10px;
  }
  .product-card-title {
    font-size: 13px;
  }
  .product-card-price {
    font-size: 14px;
  }
  .product-card-actions .btn {
    font-size: 12px;
    padding: 9px 10px;
  }

  /* Gallery thumbs */
  .gallery-thumb {
    width: 56px !important;
    height: 56px !important;
  }

  /* Sticky ATC */
  .sticky-atc-enhanced-actions .btn {
    padding: 10px 10px;
    font-size: 12px;
    min-height: 42px;
  }
  .sticky-atc-enhanced-info strong {
    font-size: 11.5px;
  }
  .sticky-atc-enhanced-price {
    font-size: 13px;
  }

  /* Purchase notif */
  .purchase-notif {
    max-width: calc(100vw - 24px);
    left: 12px;
    padding: 10px 12px;
  }

  /* Reviews */
  .reviews-score {
    font-size: 2.4rem;
  }
  .review-card {
    padding: 16px;
  }
  .review-body {
    font-size: 13px;
  }

  /* Newsletter */
  .newsletter-inner {
    padding: 32px 20px;
  }

  /* Footer */
  .footer-brand .brand-word {
    font-size: 1rem;
  }

  /* Section spacing */
  .section {
    padding: clamp(32px, 8vw, 60px) 0;
  }

  /* Page hero */
  .page-hero h1 {
    font-size: clamp(1.3rem, 7vw, 1.9rem);
  }

  /* Urgency strip */
  .urgency-strip {
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Shipping card */
  .shipping-card-body p {
    font-size: 11.5px;
  }
  .shipping-card-est {
    font-size: 11px;
  }

  /* Value cards */
  .value-card {
    padding: 20px 16px;
  }
  .value-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }
  .value-icon svg {
    width: 36px;
    height: 36px;
  }

  /* Promo */
  .promo-inner {
    padding: 24px 16px;
  }
  .xmas-promo-block {
    padding: 18px 14px;
  }
}

/* ============================================================
   SECTION 9 — ULTRA-SMALL (max 320px)
   Absolute minimum viable — 320px wide screens
   ============================================================ */
@media (max-width: 320px) {

  .container {
    width: calc(100% - 20px);
  }

  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .product-info h1 {
    font-size: 1.1rem;
  }

  /* Campaign banner: minimal on 320px */
  .campaign-banner-inner {
    gap: 8px;
  }
  .campaign-title {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .countdown-block {
    min-width: 28px;
    padding: 3px 4px;
  }
  .countdown-num {
    font-size: 0.85rem;
  }

  /* Only show 2 payment icons + label on 320px */
  .payment-icon {
    height: 16px;
    min-width: 24px;
    font-size: 7px;
  }

  /* Cards: single column on 320px if needed */
  .product-card-title {
    font-size: 12.5px;
  }
  .product-card-actions .btn {
    font-size: 11.5px;
    padding: 8px 8px;
  }

  .gallery-thumb {
    width: 48px !important;
    height: 48px !important;
  }

  .plabel {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  .coupon-code-pill {
    font-size: 11px;
  }

  .sticky-atc-enhanced-actions .btn {
    padding: 9px 8px;
    font-size: 11.5px;
    min-height: 40px;
  }
}

/* ============================================================
   SECTION 10 — PERFORMANCE: ANIMATION REDUCTION ON MOBILE
   ============================================================ */
@media (max-width: 767px) {
  /* Only animate what matters for conversion on mobile */
  .hero-card, .hero-card-2 {
    animation: none; /* remove float — cheaper paint */
  }
  .product-card:hover {
    transform: none; /* no hover transform on touch */
  }
  .collection-card:hover {
    transform: none;
  }
  .gallery-main:hover img {
    transform: none; /* no scale on touch */
  }
  #atc-btn:hover {
    transform: none !important; /* remove hover lift on touch */
    box-shadow: 0 8px 24px -6px rgba(12,46,37,0.45) !important;
  }
  #buy-now-btn:hover {
    transform: none !important;
  }
  .trust-badge-pill:hover {
    transform: none;
  }
  .gallery-thumb:hover {
    transform: none;
  }
}

/* ============================================================
   SECTION 11 — REDUCED MOTION GLOBAL
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .promo-ribbon-track {
    animation: none;
    /* Static fallback: show first item */
    transform: none;
  }
}

/* ============================================================
   SECTION 12 — FOCUS-VISIBLE IMPROVEMENTS FOR TOUCH
   ============================================================ */
@media (hover: none) {
  /* On touch devices, enlarge focus rings for accessibility */
  :focus-visible {
    outline-width: 4px;
    outline-offset: 4px;
  }
  /* Larger tap targets on small screens */
  .nav-top,
  .icon-btn,
  .btn-sm,
  .qty-btn,
  .gallery-thumb,
  .accordion summary,
  .faq-item summary {
    min-height: 44px;
  }
  .icon-btn {
    min-width: 44px;
  }
}

/* ============================================================
   SECTION 13 — PRINT BASELINE
   ============================================================ */
@media print {
  .promo-ribbon,
  .campaign-banner,
  .sticky-atc,
  .sticky-atc-enhanced,
  .purchase-notif,
  .coupon-toast,
  .cart-btn,
  .hamburger,
  .site-footer {
    display: none !important;
  }
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }
}
