/* ============================================
   SUNIDRA – E-Commerce CSS  (Upgraded v2)
   Real Brand: #e00040 (pink-red), #1e2d7d (navy)
   Background: #f7f4f2 | Text: #211a1e
   ============================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #211a1e;
  background: #fff;
  overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

:root {
  --pink:        #e00040;
  --pink-dark:   #b8003a;
  --pink-light:  #ff1a5e;
  --navy:        #1e2d7d;
  --navy-light:  #2a3d9e;
  --bg-warm:     #f7f4f2;
  --bg-light:    #f3f5f6;
  --charcoal:    #211a1e;
  --gray-mid:    #677279;
  --gray-200:    #e5e7eb;
  --gray-100:    #f3f4f6;
  --green:       #0a8754;
  --gold:        #f59e0b;
  --header-h:    54px;
  --announce-h:  36px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.bg-light  { background: var(--bg-light); }
.bg-warm   { background: var(--bg-warm);  }

/* ===== TYPOGRAPHY ===== */
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; }
h3 { font-size: 1.05rem; font-weight: 600; }
em { font-style: italic; color: var(--pink); }

.section-header { text-align: center; margin-bottom: 48px; position: relative; }
.section-header h2 { margin-bottom: 8px; color: var(--charcoal); }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--pink); margin-bottom: 8px;
}
.view-all {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 5px; transition: gap 0.2s;
}
.view-all:hover { gap: 10px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: #fff;
  padding: 13px 28px; border-radius: 6px;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224,0,64,0.28); }

.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 13px 28px; border-radius: 6px;
  font-weight: 600; font-size: 0.92rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 13px 28px; border-radius: 6px;
  font-weight: 500; font-size: 0.92rem;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

.btn-outline-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px;
  border: 1.5px solid var(--navy); color: var(--navy);
  font-size: 0.82rem; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-sm:hover { background: var(--navy); color: #fff; }

.btn-sm {
  display: inline-block; background: var(--pink); color: #fff;
  padding: 8px 18px; border-radius: 5px; font-size: 0.82rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-sm:hover { background: var(--pink-dark); }

.btn-outline-white {
  display: inline-block; border: 2px solid #fff; color: #fff;
  padding: 10px 22px; border-radius: 6px; font-weight: 500; font-size: 0.88rem;
  transition: background 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--pink); color: #fff;
  height: var(--announce-h); display: flex; align-items: center;
  overflow: hidden; font-size: 0.78rem; font-weight: 500;
}
.announcement-slider {
  white-space: nowrap;
  animation: scroll-left 22s linear infinite;
}
@keyframes scroll-left {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { height: 38px; width: auto; object-fit: contain; max-width: 180px; }

/* Fallback text logo */
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main-text {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  font-weight: 800; color: var(--pink); letter-spacing: 0.02em;
}
.logo-wave { color: var(--pink); font-size: 1rem; line-height: 0.5; margin-bottom: 2px; }
.logo-tagline { font-size: 0.6rem; color: var(--pink); font-style: italic; letter-spacing: 0.04em; }
.logo-reg { font-size: 0.6rem; vertical-align: super; }

/* Desktop Nav */
.nav-desktop { flex: 1; }
.nav-desktop > ul {
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.nav-desktop > ul > li { position: relative; }
.nav-desktop > ul > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 16px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--charcoal);
  transition: background 0.15s, color 0.15s; letter-spacing: 0.01em;
}
.nav-desktop > ul > li > a:hover { background: var(--bg-warm); color: var(--pink); }
.nav-desktop .fa-chevron-down { font-size: 0.65rem; }
.nav-offer { color: var(--pink) !important; }
.nav-trial { color: var(--navy) !important; font-weight: 700 !important; }

/* Mega Dropdown */
.mega-dropdown {
  position: absolute; top: calc(100% + 10px); left: -80px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
  padding: 24px; display: flex; gap: 28px;
  min-width: 520px; opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  border-top: 3px solid var(--pink);
}
.has-dropdown:hover .mega-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-col h4 {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--pink); margin-bottom: 12px;
}
.dropdown-col a {
  display: block; padding: 5px 0; font-size: 0.87rem; color: var(--charcoal);
  transition: color 0.15s, padding-left 0.15s;
}
.dropdown-col a:hover { color: var(--pink); padding-left: 6px; }
.dropdown-promo { flex-shrink: 0; }
.promo-card {
  background: linear-gradient(135deg,var(--navy),var(--navy-light));
  color: #fff; padding: 20px; border-radius: 10px; width: 160px;
}
.promo-tag { font-size: 0.68rem; color: #fbbf24; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.promo-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.promo-card p { font-size: 0.78rem; color: #cbd5e1; margin-bottom: 12px; }

/* Products two-level flyout menu */
.product-flyout { min-width: 240px; padding: 12px; display: block; gap: 0; }
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-item { position: relative; }
.pf-item > .pf-parent {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 11px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--charcoal);
  transition: background 0.15s, color 0.15s;
}
.pf-item > .pf-parent .fa-chevron-right { font-size: 0.62rem; color: #9aa3af; }
.pf-item:hover > .pf-parent { background: var(--bg-warm); color: var(--pink); }
.pf-item:hover > .pf-parent .fa-chevron-right { color: var(--pink); }
/* invisible bridge so the pointer can cross to the submenu without it closing */
.pf-item::after { content: ''; position: absolute; top: 0; right: -16px; width: 16px; height: 100%; }
.pf-sub {
  position: absolute; top: -12px; left: calc(100% + 2px);
  min-width: 210px; background: #fff; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
  padding: 12px; border-top: 3px solid var(--pink);
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
}
.pf-item:hover > .pf-sub { opacity: 1; visibility: visible; transform: translateX(0); }
.pf-sub a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 0.87rem; color: var(--charcoal);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.pf-sub a:hover { background: var(--bg-warm); color: var(--pink); padding-left: 16px; }

/* Video Testimonials */
.video-testimonials-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; margin-top:28px; }
.video-testimonial-card { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.08); }
.video-embed { position:relative; width:100%; aspect-ratio:9/16; background:#000; }
.video-embed iframe, .video-embed video { position:absolute; inset:0; width:100%; height:100%; border:0; object-fit:cover; }
.video-embed .video-link { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:8px; color:#fff; background:linear-gradient(135deg,#1e2d7d,#111827); font-weight:600; text-decoration:none; }
.video-meta { padding:12px 16px; }
.video-meta strong { display:block; color:#211a1e; font-size:0.95rem; }
.video-meta span { font-size:0.8rem; color:#677279; }
.video-embed .video-sound-btn { position:absolute; top:8px; right:8px; z-index:2; width:34px; height:34px; border-radius:50%; border:none; background:rgba(0,0,0,0.55); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.85rem; transition:background 0.15s; }
.video-embed .video-sound-btn:hover { background:rgba(0,0,0,0.8); }
.video-embed .video-play-btn { position:absolute; bottom:8px; left:8px; z-index:2; width:34px; height:34px; border-radius:50%; border:none; background:rgba(0,0,0,0.55); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.85rem; transition:background 0.15s; }
.video-embed .video-play-btn:hover { background:rgba(0,0,0,0.8); }

/* Sticky Enquire bar (product page) */
.pd-sticky-bar { position:fixed; left:0; right:0; bottom:0; z-index:900; background:#fff; border-top:1px solid #eadfe2; box-shadow:0 -4px 20px rgba(0,0,0,0.08); transform:translateY(120%); transition:transform 0.28s ease; display:flex; align-items:center; gap:16px; padding:12px 22px; }
.pd-sticky-bar.show { transform:translateY(0); }
.pd-sticky-bar .sb-info { flex:1; min-width:0; }
.pd-sticky-bar .sb-name { display:block; font-weight:700; color:#211a1e; font-size:0.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pd-sticky-bar .sb-price { color:#1e2d7d; font-weight:800; font-size:1.05rem; }
.pd-sticky-bar .sb-btn { background:#1e2d7d; color:#fff; border:none; padding:12px 22px; border-radius:10px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.pd-sticky-bar .sb-btn i { color:#25d366; }
@media (max-width:600px){ .pd-sticky-bar { padding:10px 14px; gap:10px; } .pd-sticky-bar .sb-name { font-size:0.82rem; } .pd-sticky-bar .sb-price { font-size:0.95rem; } .pd-sticky-bar .sb-btn { padding:10px 14px; font-size:0.85rem; } }

/* Request-a-Callback popup */
.cb-overlay { position:fixed; inset:0; background:rgba(15,23,42,0.6); display:flex; align-items:center; justify-content:center; z-index:10000; padding:16px; }
.cb-modal { background:#fff; border-radius:16px; max-width:400px; width:100%; padding:28px 26px; position:relative; box-shadow:0 24px 48px rgba(0,0,0,0.28); }
.cb-modal h3 { font-size:1.3rem; color:var(--charcoal,#211a1e); margin-bottom:6px; }
.cb-modal > p { font-size:0.88rem; color:#677279; margin-bottom:16px; }
.cb-modal input { width:100%; padding:11px 13px; border:1px solid #cbd5e1; border-radius:8px; margin-bottom:12px; font-size:0.92rem; font-family:inherit; }
.cb-modal input:focus { outline:none; border-color:var(--pink,#e00040); }
.cb-submit { width:100%; padding:12px; background:var(--pink,#e00040); color:#fff; border:none; border-radius:8px; font-weight:700; font-size:0.95rem; cursor:pointer; }
.cb-submit:disabled { opacity:0.6; cursor:not-allowed; }
.cb-close { position:absolute; top:10px; right:14px; background:none; border:none; font-size:1.7rem; line-height:1; color:#94a3b8; cursor:pointer; }
.cb-close:hover { color:var(--pink,#e00040); }
.cb-msg { font-size:0.82rem; margin-bottom:10px; }
.cb-phone { display:flex; gap:8px; margin-bottom:12px; }
.cb-phone input { margin-bottom:0; flex:1; }
.cb-cc { flex:0 0 auto; padding:11px 8px; border:1px solid #cbd5e1; border-radius:8px; font-size:0.92rem; background:#fff; font-family:inherit; cursor:pointer; }
/* ===== Two-panel "Sleep Better. Save More." popup ===== */
.cb-modal-lg { max-width:860px; padding:0; overflow:hidden; display:flex; align-items:stretch; }
.cb-modal-lg .cb-media { flex:1 1 45%; min-height:440px; background:#efe7db center/cover no-repeat; }
.cb-modal-lg .cb-panel { flex:1 1 55%; padding:34px 36px; background:#faf7f2; }
.cb-modal-lg .cb-close { top:14px; right:16px; z-index:3; }
.cb-logo { height:34px; width:auto; margin-bottom:16px; border-radius:6px; }
.cb-title { font-size:1.7rem; font-weight:800; color:var(--navy,#1e2d7d); text-transform:uppercase; letter-spacing:-0.01em; line-height:1.1; margin-bottom:8px; }
.cb-sub { font-size:0.95rem; color:#677279; margin-bottom:18px; line-height:1.55; }
.cb-flabel { display:block; font-size:0.72rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:#8a8f98; margin:4px 0 6px; }
.cb-cc-fixed { flex:0 0 auto; display:flex; align-items:center; justify-content:center; padding:0 16px; border:1px solid #cbd5e1; border-radius:8px; font-weight:700; color:var(--navy,#1e2d7d); background:#fff; }
.cb-loc { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border:1px solid var(--pink,#e00040); color:var(--pink,#e00040); background:#fff; border-radius:999px; font-weight:600; font-size:0.88rem; cursor:pointer; margin-bottom:6px; }
.cb-loc.cb-loc-done { border-color:#16a34a; color:#16a34a; }
.cb-loc-note { font-size:0.78rem; color:#8a8f98; margin:0 0 14px; }
.cb-modal-lg .cb-submit { text-transform:uppercase; letter-spacing:0.02em; padding:15px; font-size:0.98rem; border-radius:10px; }
.cb-fine { font-size:0.75rem; color:#8a8f98; line-height:1.5; margin-top:12px; }
.cb-fine a { color:var(--pink,#e00040); }
@media (max-width:720px) {
  .cb-modal-lg { display:block; max-width:420px; }
  .cb-modal-lg .cb-media { display:none; }
  .cb-modal-lg .cb-panel { padding:26px 22px; }
  .cb-title { font-size:1.4rem; }
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal); font-size: 1.1rem;
  transition: background 0.15s, color 0.15s; position: relative;
}
.icon-btn:hover { background: var(--bg-warm); color: var(--pink); }
.cart-count {
  position: absolute; top: 1px; right: 1px;
  background: var(--pink); color: #fff;
  border-radius: 50%; width: 17px; height: 17px;
  font-size: 0.62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Search Bar */
.search-bar {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 16px 0; opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.search-bar.active { opacity: 1; visibility: visible; transform: translateY(0); }
.search-bar .container { display: flex; gap: 12px; }
.search-bar input {
  flex: 1; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: 7px; font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--pink); }
.search-bar button { padding: 12px; color: var(--gray-mid); font-size: 1.1rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }

/* Mobile Nav */
.nav-mobile {
  position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
  background: #fff; z-index: 1100;
  box-shadow: 4px 0 30px rgba(0,0,0,0.18);
  transition: left 0.3s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.nav-mobile.open { left: 0; }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
  background: var(--bg-warm);
}
.mobile-nav-header button { color: var(--charcoal); font-size: 1.1rem; }
.mobile-nav-header img { height: 36px; }
.nav-mobile ul { padding: 12px 0; flex: 1; }
.nav-mobile ul li a {
  display: block; padding: 13px 24px;
  font-size: 0.9rem; font-weight: 600; color: var(--charcoal);
  border-bottom: 1px solid var(--gray-100); transition: background 0.15s;
}
.nav-mobile ul li a:hover { background: var(--bg-warm); color: var(--pink); }
.nav-mobile ul li a.highlight { color: var(--pink); }
.nav-mobile .collection-label {
  padding: 8px 24px; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--pink);
  background: var(--bg-warm);
}
.mobile-nav-footer {
  padding: 20px 24px; border-top: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav-footer a {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.87rem; font-weight: 600; color: var(--navy);
}
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1050; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* Highlighted "Store Locator" nav link — draws attention */
.nav-locator { background: var(--pink, #e00040); color: #fff !important; padding: 7px 16px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 2px 10px rgba(224,0,64,0.35); animation: navLocatorPulse 2.2s ease-in-out infinite; }
.nav-locator:hover { background: #c30039; color: #fff !important; }
.nav-locator i { font-size: 0.9em; }
@keyframes navLocatorPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,0,64,0.5); } 50% { box-shadow: 0 0 0 8px rgba(224,0,64,0); } }
.nav-mobile .nav-locator { align-self: flex-start; margin-top: 8px; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; }
.hero-slides { position: relative; }
/* Only the active slide renders (no overlapping crossfade). It sits in normal
   flow so the hero grows to fit its content; a subtle fade-in on switch. */
.hero-slide { display: none; }
.hero-slide.active {
  display: flex; align-items: center;
  position: relative;
  min-height: min(56vh, 420px);
  animation: heroFadeIn 0.45s ease;
}
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Full-image banner slides: show the whole artwork at its natural 1920×640 ratio */
.hero-slides .hero-slide-image.active {
  display: block; align-items: initial; min-height: 0; padding: 0;
  width: 100%; aspect-ratio: 1920 / 640;
}
.hero-slide-image > a,
.hero-slide-image .hero-image-slide { display: block; width: 100%; height: 100%; }
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 40px; height: 100%;
  max-width: 1280px; margin: 0 auto; padding: 24px; width: 100%;
}
.hero-text { color: #fff; align-self: center; grid-column: 1; }
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #fbbf24; margin-bottom: 12px;
}
.hero-text h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.14; margin-bottom: 14px; }
.hero-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.82);
  margin-bottom: 20px; line-height: 1.6; max-width: 440px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
.hero-badges { display: none; }
.hero-badges span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.hero-badges span i { color: #fbbf24; }

/* Mattress Visual */
.hero-image { display: flex; justify-content: center; align-items: center; grid-column: 2; align-self: center; margin-top: 0; }
.mattress-stack-wrap { position: relative; }
.mattress-stack { display: flex; flex-direction: column; width: 360px; }
.layer {
  padding: 13px 24px; text-align: center;
  font-size: 0.78rem; font-weight: 700; color: #fff; letter-spacing: 0.04em;
  transform: perspective(600px) rotateX(8deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.layer-1 { background: linear-gradient(90deg,#e00040,#ff4d80); border-radius: 8px 8px 0 0; }
.layer-2 { background: linear-gradient(90deg,#1e2d7d,#2a3d9e); margin-top: -3px; }
.layer-3 { background: linear-gradient(90deg,#6d28d9,#7c3aed); margin-top: -3px; }
.layer-4 { background: linear-gradient(90deg,#374151,#1f2937); margin-top: -3px; border-radius: 0 0 8px 8px; height: 18px; }

.floating-badge {
  position: absolute; background: #fff;
  border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; align-items: center;
  animation: float 3s ease-in-out infinite;
}
.floating-badge strong { font-size: 1.05rem; color: var(--navy); }
.floating-badge span { font-size: 0.68rem; color: var(--gray-mid); }
.badge-1 { top: -20px; right: -30px; }
.badge-2 { bottom: -20px; left: -30px; animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero Controls */
.hero-controls {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; z-index: 10;
}
.hero-prev, .hero-next {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background 0.2s;
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.35); }
.hero-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.2s, width 0.3s;
}
.dot.active { background: var(--pink); width: 24px; border-radius: 4px; }

/* ===== TRUST STRIP ===== */
.trust-strip { background: var(--navy); padding: 18px 0; }
.trust-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: #fff; flex: 1; min-width: 170px;
}
.trust-item i { font-size: 1.5rem; color: #fbbf24; }
.trust-item strong { display: block; font-size: 0.88rem; margin-bottom: 1px; }
.trust-item span { font-size: 0.72rem; color: rgba(255,255,255,0.6); }

/* ===== COLLECTIONS / CATEGORIES ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
  background: #fff;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }
.cat-featured .cat-image { height: 170px; }
.cat-image {
  height: 170px; display: flex;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.cat-emoji { font-size: 2.8rem; }
.cat-info { padding: 14px 18px; flex: 1; }
.cat-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; color: var(--charcoal); }
.cat-info p { font-size: 0.78rem; color: var(--gray-mid); margin-bottom: 8px; }
.cat-link {
  font-size: 0.82rem; font-weight: 700; color: var(--pink);
  display: flex; align-items: center; gap: 5px; transition: gap 0.2s;
}
.cat-card:hover .cat-link { gap: 9px; }

/* ===== PRODUCTS ===== */
.product-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 30px; justify-content: center;
}
/* Tabs stay CENTERED (like "Shop By Mattress Type"); View All is pinned to the
   right without affecting the centering. */
.product-tabs--withlink { justify-content: center; align-items: center; position: relative; }
.view-all.view-all-inline { position: static; transform: none; top: auto; margin: 0 0 0 auto; }
.product-tabs--withlink .view-all.view-all-inline { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.na-viewall-row { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.na-viewall-row .view-all.view-all-inline { margin: 0; }
/* Tighter gap under the heading for the Bestsellers / New Arrivals carousels */
.bestsellers .section-header { margin-bottom: 18px; }
.tab-btn {
  padding: 8px 20px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--gray-200); color: var(--gray-mid);
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--pink); color: #fff; border-color: var(--pink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  align-items: stretch;   /* equal-height cards per row so price/chips/buttons align */
}
.product-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; height: auto;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

.product-badges {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.badge-bestseller { background: var(--gold); color: #211a1e; padding: 3px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 800; }
.badge-new        { background: var(--green); color: #fff;    padding: 3px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 800; }
.badge-eco        { background: #065f46;     color: #fff;    padding: 3px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 800; }
.badge-discount   { background: var(--pink);  color: #fff;    padding: 3px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 800; }
.badge-premium    { background: var(--navy);  color: #fff;    padding: 3px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 800; }

/* Comfort / Warranty chips on product cards */
/* Comfort / Warranty chips — stacked on two lines, shown under the price */
.card-chips { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 10px 0 12px; }
.card-chips:empty { display: none; margin: 0; }
.card-chip { display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 0.82rem; font-weight: 600; color: #211a1e; background: #f5eef0; border: 1px solid #ecdfe3; border-radius: 999px; padding: 6px 18px; white-space: nowrap; }
.card-chip i { flex-shrink: 0; }

/* Card layout order: chips sit directly under the price */
.product-info .product-collection { order: 1; }
.product-info h3 { order: 2; }
.product-info .product-desc { order: 3; }
.product-info .product-foam-row { order: 4; }
.product-info .product-sizes { order: 5; }
/* Collapse an empty size row (foam-only products) so the foam chips line up
   with the size pills on neighbouring cards. */
.product-info .product-sizes:empty { display: none; }
.product-info .card-foam-prices { order: 5; }
/* Anchor the price + chips + button to the bottom so these rows line up across
   cards regardless of how much content (size pills, foam chips, description) is above. */
.product-info .product-price { order: 6; margin-top: auto; }
.product-info .card-chips { order: 7; }
.product-info .product-actions { order: 8; }
/* Foam + Size selectors on cards — inline "Foam:" / "Size:" label before the pills */
.opt-label { align-self: center; margin-right: 6px; font-size: 0.72rem; font-weight: 700; color: #64748b; white-space: nowrap; }
.product-foam-row { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; margin-bottom: 8px; }
.product-info .product-sizes { display: flex; align-items: flex-start; gap: 6px; flex-wrap: nowrap; }
.product-info .product-sizes .size-pills { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 0; }
.product-info .product-sizes .opt-label { margin-top: 4px; flex-shrink: 0; }
/* Compact size pills; wrap to a second line rather than clipping (e.g. Custom) */
.product-info .product-sizes .size,
.product-foam-row .foam-pill { padding: 3px 8px; font-size: 0.7rem; white-space: nowrap; }
.product-info .product-sizes .opt-label { margin-right: 2px; }
.product-info .product-sizes .opt-label,
.product-foam-row .opt-label { flex-shrink: 0; }
.product-foam-row .foam-pill {
  padding: 3px 9px; border: 1.5px solid var(--gray-200); border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; cursor: pointer; color: var(--gray-mid);
  background: #fff; transition: all 0.15s;
}
.product-foam-row .foam-pill.active,
.product-foam-row .foam-pill:hover { border-color: var(--pink); background: var(--pink); color: #fff; }
/* Non-foam cards keep an invisible Foam row so Size/price/chips align across all cards */
.product-foam-placeholder { visibility: hidden; }
.product-foam-placeholder .foam-pill:hover { background: #fff; color: var(--gray-mid); border-color: var(--gray-200); }
.card-chip i { color: #e00040; }

.product-img-wrap { display: block; position: relative; height: 210px; overflow: hidden; background: #f8fafc; }
.product-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.4s ease; background: #f8fafc;
}
.product-card:hover .product-img { transform: scale(1.04); }
.product-img-placeholder {
  height: 210px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  position: relative; overflow: hidden;
}
.product-img-placeholder span { font-size: 3.2rem; }
.product-img-placeholder p { font-size: 0.88rem; font-weight: 700; color: var(--charcoal); }
.product-img-placeholder .collection-label-img {
  position: absolute; bottom: 8px; right: 10px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pink); opacity: 0.8;
}

.product-info { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-collection { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.product-rating { display: flex; align-items: center; gap: 3px; font-size: 0.75rem; color: var(--gold); margin-bottom: 6px; }
.product-rating span { color: var(--gray-mid); margin-left: 3px; font-size: 0.75rem; }
.product-info h3 { font-size: 0.98rem; margin-bottom: 5px; }
.product-info h3 a { color: var(--charcoal); transition: color 0.15s; }
.product-info h3 a:hover { color: var(--pink); }
.product-desc { font-size: 0.78rem; color: var(--gray-mid); margin-bottom: 10px; line-height: 1.55; display: flex; align-items: center; min-height: 3.1em; max-height: 3.1em; overflow: hidden; }
.price-from { font-size: 0.72rem; font-weight: 600; color: #64748b; margin-right: 3px; }
.card-foam-prices { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.card-foam-prices .foam-price-chip { display: inline-block; font-size: 0.72rem; font-weight: 600; color: #1e2d7d; background: #eef1fb; border: 1px solid #dfe4f7; border-radius: 20px; padding: 3px 10px; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.card-foam-prices a.foam-price-chip:hover { background: #1e2d7d; color: #fff; border-color: #1e2d7d; }

.product-sizes { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.size {
  padding: 3px 9px; border: 1.5px solid var(--gray-200);
  border-radius: 4px; font-size: 0.72rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s; color: var(--gray-mid);
}
.size.active, .size:hover { border-color: var(--pink); background: var(--pink); color: #fff; }

.product-price { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 12px; }
.product-price .price-lead { white-space: nowrap; display: inline-flex; align-items: baseline; gap: 4px; }
.product-price .price-mrp-label { color: var(--navy); font-size: 0.72rem; font-weight: 700; }
.product-price .price-tax { color: #8a8f98; font-size: 0.72rem; }
.price-current  { font-size: 1.15rem; font-weight: 800; color: var(--charcoal); }
.price-original { font-size: 0.85rem; color: var(--gray-mid); text-decoration: line-through; }
.price-save     { font-size: 0.75rem; font-weight: 700; color: var(--green); }

.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-add-cart {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 7px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn-add-cart:hover { background: var(--pink); }
.btn-wishlist {
  width: 38px; height: 38px; border-radius: 7px;
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-mid); font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-wishlist:hover { border-color: var(--pink); color: var(--pink); }

/* ===== QUIZ BANNER ===== */
.quiz-banner { background: var(--navy); padding: 72px 0; }
.quiz-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.quiz-text { color: #fff; }
.quiz-text h2 { margin-bottom: 14px; }
.quiz-text p { color: rgba(255,255,255,0.65); margin-bottom: 26px; font-size: 0.97rem; line-height: 1.72; }
.quiz-steps { display: flex; flex-direction: column; gap: 10px; }
.quiz-step {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06); border-radius: 9px;
  padding: 13px 18px; color: rgba(255,255,255,0.75); font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.quiz-step span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem; flex-shrink: 0;
}

/* ===== WHY SUNIDRA ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: #fff; border-radius: 14px; padding: 26px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border-bottom: 3px solid transparent;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-bottom-color: var(--pink); }
.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.why-card h3 { margin-bottom: 7px; font-size: 0.97rem; color: var(--charcoal); }
.why-card p { font-size: 0.83rem; color: var(--gray-mid); line-height: 1.65; }

/* ===== TESTIMONIALS ===== */
.overall-rating { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 10px; font-size: 0.92rem; color: var(--gray-mid); }
.rating-stars { color: var(--gold); }
.overall-rating strong { font-size: 1.05rem; color: var(--charcoal); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial-card {
  display: none; background: #fff; border-radius: 18px;
  padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 760px; margin: 0 auto;
  border-left: 4px solid var(--pink);
}
.testimonial-card.active { display: block; }
.testimonial-stars { color: var(--gold); font-size: 0.95rem; margin-bottom: 16px; }
.testimonial-card > p {
  font-size: 1.05rem; line-height: 1.8; color: var(--charcoal);
  margin-bottom: 22px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.15rem; font-weight: 800; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.92rem; margin-bottom: 1px; }
.testimonial-author span { font-size: 0.77rem; color: var(--gray-mid); display: block; }
.product-tag {
  display: inline-block !important;
  background: var(--bg-warm); color: var(--navy);
  padding: 2px 9px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; margin-top: 4px;
}
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.testimonial-controls button {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.testimonial-controls button:hover { background: var(--pink-dark); }

/* ===== NEWSLETTER ===== */
.newsletter { background: linear-gradient(135deg, var(--navy), var(--navy-light)); padding: 56px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter-text h2 { color: #fff; margin-bottom: 8px; }
.newsletter-text p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 250px; padding: 13px 18px; border-radius: 6px; border: none; outline: none; font-size: 0.92rem; }

/* ===== FOOTER ===== */
.footer { background: #111827; color: #9ca3af; padding-top: 18px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 22px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: start;
}
.footer-brand {}
/* Line the three column headings up with the logo band (logo is taller than a text heading) */
.footer-links h4, .footer-contact h4 { margin-top: 11px; }
.footer-logo-img { height: 40px; margin-bottom: 8px; }
.footer-logo-fallback { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-logo-tag { font-size: 0.65rem; color: #fbbf24; font-style: italic; margin-bottom: 14px; }
.footer-brand > p { font-size: 0.82rem; line-height: 1.55; margin-bottom: 12px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background 0.2s, color 0.2s, transform 0.15s;
}
.social-links a:hover { background: var(--pink); color: #fff; border-color: var(--pink); transform: translateY(-2px); }
.footer-links h4 { color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 11px; }
.footer-links li { margin-bottom: 5px; }
.footer-links a { font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--pink); }
.footer-contact h4 { color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-contact p { font-size: 0.82rem; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 5px; line-height: 1.4; }
.footer-contact i { color: var(--pink); width: 15px; flex-shrink: 0; margin-top: 2px; }
.app-links { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.app-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); color: #fff;
  padding: 7px 12px; border-radius: 7px; font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.09); transition: background 0.2s;
}
.app-btn:hover { background: rgba(255,255,255,0.1); }
.footer-bottom { padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; font-size: 0.78rem;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--pink); }
.payment-icons { display: flex; gap: 7px; flex-wrap: wrap; }
.payment-icons span { background: rgba(255,255,255,0.07); padding: 3px 9px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; color: #d1d5db; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; z-index: 900;
  box-shadow: 0 4px 18px rgba(37,211,102,0.5);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
/* On phones, float the WhatsApp button at the vertical middle (not bottom, where it
   would clash with the sticky Enquire bar / browser nav). */
@media (max-width: 768px) {
  /* Anchor from the bottom (stable while scrolling; top:% drifts as the mobile
     address bar shows/hides). Sits low, just above the sticky Enquire bar. */
  .whatsapp-float { top: auto; bottom: 90px; }
  /* Hide "View All" on the home carousels on mobile (not needed there) */
  .product-tabs--withlink .view-all-inline,
  .na-viewall-row { display: none; }
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 96px; right: 22px;
  background: var(--charcoal); color: #fff;
  padding: 13px 18px; border-radius: 9px;
  font-size: 0.87rem; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transform: translateY(20px); opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2000; pointer-events: none;
  border-left: 4px solid var(--pink);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== PAGE-LEVEL STYLES ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; padding: 26px 0 20px;
}
.page-header h1 { font-size: 1.5rem; margin-bottom: 5px; }
.page-header p { font-size: 0.85rem !important; margin-top: 4px !important; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: #fbbf24; }
.breadcrumb i { font-size: 0.58rem; }

/* ===== RESPONSIVE ===== */
/* Global safeguards: never allow horizontal scrolling on small screens, and
   keep any image from overflowing its container. */
html, body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; }

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-image { width: 100%; max-height: 300px; margin-top: 20px; }
  .mattress-stack { width: 250px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .cat-featured .cat-image { height: 170px; }
  .quiz-inner { grid-template-columns: 1fr; }
  .quiz-visual { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { flex-direction: column; }
}

@media (max-width: 600px) {
  /* Fluid typography – scales with every phone width */
  h1 { font-size: clamp(1.4rem, 6.5vw, 1.8rem); }
  h2 { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
  h3 { font-size: 0.95rem; }
  .hero-desc { font-size: 0.88rem; line-height: 1.65; max-width: 100%; }
  .hero-eyebrow { font-size: 0.65rem; }
  .section-eyebrow { font-size: 0.65rem; }

  /* Compact section padding on small phones */
  .section-padding { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Header mobile adjustments */
  .header-inner { gap: 8px; }
  .logo { flex: 1; }
  .logo-img { height: 44px; max-width: 150px; }

  /* Header actions - stack icons properly */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }

  /* Icon buttons - make them square and compact */
  .header-actions .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0;
  }

  /* Contact button - hide text, show only phone icon */
  .header-actions .btn-outline-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin: 0;
    flex-shrink: 0;
  }

  /* Hide the phone number text, keep only the icon */
  .header-actions .btn-outline-sm {
    font-size: 0;
  }

  .header-actions .btn-outline-sm i {
    font-size: 0.9rem;
    margin: 0;
  }

  /* Announcement bar font size */
  .announcement-bar { font-size: 0.7rem; }

  /* Page content adjustments */
  .trust-inner { flex-direction: column; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-contact { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .section-header { text-align: left; }
  .section-header h2 { margin-bottom: 10px; }
  .view-all { position: static; display: inline-block; margin-top: 4px; }
  /* Store Locator → compact round icon on phones (full label stays in the hamburger menu) */
  .header-actions .nav-locator {
    padding: 0; width: 36px; height: 36px; border-radius: 50%;
    font-size: 0; gap: 0; display: flex; align-items: center; justify-content: center;
    box-shadow: none; animation: none; flex-shrink: 0;
  }
  .header-actions .nav-locator i { font-size: 0.95rem; margin: 0; }
  /* Hero – let slides size to content on mobile */
  .hero-slides { height: auto; min-height: unset; }
  .hero-slide { position: relative; inset: auto; display: none; opacity: 1; }
  .hero-slide.active { display: flex; }
  .hero-content { height: auto; align-items: flex-start; padding-top: 40px; padding-bottom: 80px; }
  .hero-image { width: 100%; justify-content: center; margin-top: 8px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-ghost {
    width: 100%;
    text-align: center;
    padding: 13px 28px;
  }

  /* Testimonials – fix star wrap and review text size */
  .overall-rating { flex-wrap: wrap; gap: 6px 10px; }
  .rating-stars { white-space: nowrap; }
  .testimonial-card > p { font-size: 0.9rem; line-height: 1.7; }
  .testimonial-card { padding: 22px 18px; }

  /* 101-Night Trial section */
  .trial-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    text-align: center;
  }
  .trial-section h2 { font-size: clamp(1.5rem, 7vw, 2rem) !important; }
  .trial-section > .container > div:last-child {
    justify-content: center;
    gap: 12px;
  }
  .trial-section > .container > div:last-child > div {
    min-width: 0 !important;
    flex: 1;
    padding: 16px 10px !important;
  }
  .trial-section > .container > div:last-child > div > div:first-child {
    font-size: 1.8rem !important;
  }
  .trial-section > .container > div:first-child {
    text-align: left;
  }

  /* Coir Section - Mobile responsive */
  .coir-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    grid-template-columns: auto !important;
  }
}

/* Two product cards per row on phones — compact the listing cards so they fit.
   Scoped to the listing grid only (not the homepage carousels). */
@media (max-width: 600px) {
  .products-layout .products-grid .product-img-wrap,
  .products-layout .products-grid .product-img-placeholder { height: 150px; }
  .products-layout .products-grid .product-info { padding: 10px 10px 12px; }
  .products-layout .products-grid .product-collection { font-size: 0.58rem; letter-spacing: 0.08em; }
  .products-layout .products-grid .product-info h3 { font-size: 0.9rem; line-height: 1.2; }
  /* Short description: keep it, compact to 2 lines */
  .products-layout .products-grid .product-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    font-size: 0.68rem; line-height: 1.35; min-height: 0; max-height: none;
    margin-bottom: 8px; overflow: hidden;
  }
  /* Price: MRP + amount + "(Incl of all Taxes)" all forced onto ONE line */
  .products-layout .products-grid .product-price { flex-wrap: nowrap; white-space: nowrap; gap: 2px 3px; margin-bottom: 8px; }
  .products-layout .products-grid .price-current { font-size: 0.78rem; letter-spacing: -0.01em; }
  .products-layout .products-grid .product-price .price-lead { gap: 2px; }
  .products-layout .products-grid .product-price .price-mrp-label { font-size: 0.5rem; }
  .products-layout .products-grid .product-price .price-tax { font-size: 0.5rem; }
  .products-layout .products-grid .card-chip { font-size: 0.7rem; padding: 5px 10px; gap: 6px; }
  /* Size pills: smaller so 3 fit per line (Single Double Queen / King Custom = 2 lines) */
  .products-layout .products-grid .product-info .product-sizes .size-pills { gap: 4px; }
  .products-layout .products-grid .product-info .product-sizes .size,
  .products-layout .products-grid .product-foam-row .foam-pill { padding: 2px 5px; font-size: 0.6rem; }
  /* Enquire button on one line */
  .products-layout .products-grid .btn-add-cart { padding: 8px 4px; font-size: 0.6rem; gap: 4px; letter-spacing: 0; white-space: nowrap; }
  .products-layout .products-grid .btn-add-cart i { font-size: 0.72rem; }
  .products-layout .products-grid .badge-bestseller,
  .products-layout .products-grid .badge-new,
  .products-layout .products-grid .badge-eco,
  .products-layout .products-grid .badge-discount,
  .products-layout .products-grid .badge-premium { font-size: 0.6rem; padding: 2px 7px; }
}
