/* style.css - Glassmorphic 3D Luxury Bedding Store */
:root {
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.35);
  --primary: #4a6b5f;
  --primary-dark: #3a5548;
  --accent: #d4a76a;
  --accent-hover: #c49450;
  --text: #1e1e1e;
  --text-light: #5a5a5a;
  --bg-gradient: linear-gradient(135deg, #f5efe6 0%, #e8dacc 100%);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  color-scheme: light;
}

html[data-theme="dark"] {
  --glass-bg: rgba(30, 32, 30, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --primary: #6f9c8a;
  --primary-dark: #517566;
  --accent: #e0b878;
  --accent-hover: #f0c98c;
  --text: #f0ede6;
  --text-light: #b8b3a8;
  --bg-gradient: linear-gradient(135deg, #14171a 0%, #1c2420 100%);
  color-scheme: dark;
}
html[data-theme="dark"] .header { background: rgba(20, 22, 20, 0.65); border-bottom-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .search-bar { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
html[data-theme="dark"] .search-bar input { color: var(--text); }
html[data-theme="dark"] img { filter: brightness(0.92); }

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-attachment: fixed;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Fluid typography */
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); }
.hero p { font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem) !important; }

/* Dark-mode toggle button (added to header via JS) */
.theme-toggle-btn {
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.theme-toggle-btn:hover { transform: scale(1.08); }
html[data-theme="dark"] .theme-toggle-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Glass card */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Header & Navigation (present on every page) */
.header {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 1100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4a6b5f, #2d4a3e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo span { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 6px 18px;
  flex: 1;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.search-bar input {
  border: none;
  background: transparent;
  padding: 10px 8px;
  width: 100%;
  font-size: 0.95rem;
  outline: none;
}
.nav-icons { display: flex; gap: 18px; align-items: center; }
.icon-btn {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  position: relative;
  color: var(--text);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.icon-btn sup {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.main-nav {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 20px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-weight: 500;
  padding: 10px 0;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  padding: 6px 16px;
  border-radius: 20px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  text-decoration: none;
}
.nav-links a.active, .nav-links a:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Page sections */
main { padding: 30px 0; min-height: 60vh; }

/* Home hero */
.hero {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  padding: 70px 20px;
  text-align: center;
  border-radius: 40px;
  margin: 20px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: perspective(1000px) rotateX(1deg);
}
.hero h1 { font-size: 3rem; color: var(--primary-dark); }

/* Shop layout */
.shop-layout { display: flex; gap: 24px; }
.filter-sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 90px;
}
.filter-group { margin-bottom: 20px; }
.filter-group label { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--text-light); }
.filter-group select, .filter-group input[type="range"] {
  width: 100%; padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  font-family: inherit;
}
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.color-dot.selected { border: 3px solid var(--accent); transform: scale(1.2); }

/* 3D product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  flex: 1;
}
.product-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(3deg) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.product-img {
  height: 220px;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  transition: 0.4s;
  transform: translateZ(20px);
}
.product-card:hover .product-img { transform: translateZ(30px) scale(1.05); }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.product-info { padding: 18px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); transform: translateZ(10px); }
.price { font-weight: 700; color: var(--primary-dark); font-size: 1.1rem; }
.old-price { text-decoration: line-through; color: #999; margin-left: 6px; font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: 0.2s;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-outline {
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Product detail */
.product-detail {
  display: flex; gap: 30px; flex-wrap: wrap;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(20px);
  border-radius: 36px; padding: 30px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.product-gallery {
  flex:1; min-width:280px; text-align:center; font-size:8rem;
  background: rgba(255,255,255,0.25); border-radius:28px;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(8px);
}
.size-selector { display:flex; gap:12px; margin:15px 0; }
.size-box {
  padding:8px 20px; border:2px solid rgba(255,255,255,0.7);
  border-radius:30px; cursor:pointer; font-weight:600;
  background:rgba(255,255,255,0.3); backdrop-filter:blur(4px);
}
.size-box.selected { background:var(--primary); color:#fff; border-color:var(--primary); }

/* Cart table */
.cart-table { width:100%; border-collapse:collapse; background:rgba(255,255,255,0.25); backdrop-filter:blur(12px); border-radius:20px; overflow:hidden; }
.cart-table th, .cart-table td { padding:14px; border-bottom:1px solid rgba(255,255,255,0.4); }

/* Toast */
.toast {
  position:fixed; bottom:30px; right:30px;
  background:rgba(0,0,0,0.8); backdrop-filter:blur(12px);
  color:#fff; padding:16px 28px; border-radius:50px;
  z-index:9999; animation:slideUp 0.4s;
  border:1px solid rgba(255,255,255,0.2);
}
@keyframes slideUp { from{opacity:0; transform:translateY(30px);} to{opacity:1; transform:translateY(0);} }

/* Responsive */
@media (max-width:768px) {
  .shop-layout { flex-direction:column; }
  .filter-sidebar { width:100%; position:static; }
  .product-detail { flex-direction:column; }
}

/* Dual price range slider */
.price-range-wrap {
  position: relative;
  height: 36px;
  margin-top: 8px;
}
.price-range-wrap input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 28px;
  margin: 0;
  padding: 0;
}
.price-range-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(74, 107, 95, 0.2);
  border-radius: 4px;
}
.price-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  pointer-events: auto;
  margin-top: -6px;
  position: relative;
  z-index: 2;
}
.price-range-wrap input[type="range"]::-moz-range-track {
  height: 6px;
  background: rgba(74, 107, 95, 0.2);
  border-radius: 4px;
}
.price-range-wrap input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  pointer-events: auto;
}
.price-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 4px;
}
.color-dot.selected {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}


/* Advanced filters */
.active-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; min-height:0; }
.active-chip {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:20px; font-size:0.8rem; font-weight:600;
  background:rgba(74,107,95,0.12); color:var(--primary-dark);
  border:1px solid rgba(74,107,95,0.25);
}
.active-chip button {
  border:none; background:transparent; cursor:pointer; font-size:1rem;
  line-height:1; color:var(--primary-dark); padding:0 2px;
}
.result-count { font-size:0.85rem; color:var(--text-light); margin-top:4px; }
.chk-label { display:flex; align-items:center; gap:8px; font-weight:600; font-size:0.9rem; text-transform:none; cursor:pointer; color:var(--text); }
.chk-label input { width:16px; height:16px; accent-color:var(--primary); }

/* Compare on cards */
.product-card { position:relative; }
.compare-check {
  position:absolute; top:14px; right:14px; z-index:3;
  background:rgba(255,255,255,0.9); border:1px solid rgba(0,0,0,0.1);
  border-radius:10px; padding:4px 8px; font-size:0.75rem; font-weight:700;
  display:flex; align-items:center; gap:4px; cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.compare-check input { accent-color:var(--primary); cursor:pointer; }
.product-card.comparing { outline:2px solid var(--accent); }

/* Compare bar */
.compare-bar {
  position:fixed; bottom:0; left:0; right:0; z-index:1200;
  background:rgba(255,255,255,0.92); backdrop-filter:blur(16px);
  border-top:1px solid rgba(255,255,255,0.6);
  box-shadow:0 -8px 30px rgba(0,0,0,0.12); padding:12px 16px;
}
.compare-bar-inner {
  max-width:1300px; margin:0 auto; display:flex; align-items:center;
  justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.compare-slots { display:flex; gap:10px; flex-wrap:wrap; flex:1; }
.compare-slot {
  background:rgba(255,255,255,0.7); border:1px dashed rgba(0,0,0,0.15);
  border-radius:14px; padding:8px 12px; min-width:120px; max-width:180px;
  font-size:0.8rem; display:flex; align-items:center; gap:8px;
}
.compare-slot strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:110px; }
.compare-slot button { border:none; background:transparent; cursor:pointer; font-size:1rem; }
.compare-actions { display:flex; gap:8px; }

/* Compare modal */
.compare-modal {
  position:fixed; inset:0; z-index:1300; background:rgba(0,0,0,0.45);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.compare-modal[hidden], .compare-bar[hidden] { display:none !important; }
.compare-modal-card {
  width:100%; max-width:960px; max-height:90vh; overflow:auto; padding:24px;
}
.compare-modal-head {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;
}
.compare-close {
  width:36px; height:36px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(0,0,0,0.08); font-size:1.4rem; line-height:1;
}
.compare-table-wrap { overflow-x:auto; }
.compare-table { width:100%; border-collapse:collapse; font-size:0.9rem; }
.compare-table th, .compare-table td {
  padding:12px 14px; border-bottom:1px solid rgba(0,0,0,0.08); text-align:left; vertical-align:top;
}
.compare-table th { background:rgba(74,107,95,0.08); font-weight:700; }
.compare-table .diff { background:rgba(212,167,106,0.15); font-weight:600; }
.compare-product-head { text-align:center; min-width:140px; }
.compare-product-head img { width:72px; height:72px; object-fit:cover; border-radius:12px; margin-bottom:8px; }

.wish-btn {
  position:absolute; top:14px; right:14px; z-index:4;
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(0,0,0,0.08);
  background:rgba(255,255,255,0.92); cursor:pointer; font-size:1rem;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.wish-btn.active { background:#ffe4ec; }
.product-card .compare-check { top:56px; right:14px; }

.compare-toolbar {
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px; margin-bottom:12px; font-size:0.9rem;
}
.compare-toolbar label { display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:600; }
.compare-recs { margin-top:28px; padding-top:16px; border-top:1px solid rgba(0,0,0,0.08); }
#productRecs, #cartRecs, #homeRecs { margin-top:32px; }


/* ===== 3D UI enhancements ===== */
body {
  perspective: 1200px;
}
.product-card {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.45s ease;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.04);
}
.product-card:hover {
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg) translateY(-8px) scale(1.02);
  box-shadow:
    0 28px 50px rgba(0,0,0,0.18),
    0 10px 20px rgba(74,107,95,0.12);
}
.product-img {
  height: 240px;
  overflow: hidden;
  transform: translateZ(24px);
  background: #e8e0d5;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.08);
}
.product-info {
  transform: translateZ(16px);
}
.card-3d, .hero, .filter-sidebar, .glass {
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-3d:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.hero {
  transform: perspective(1000px) rotateX(2deg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}
.btn {
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.icon-btn {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Visual comparison strip */
.compare-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.compare-visual-card {
  background: rgba(255,255,255,0.55);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  transform: perspective(800px) rotateY(0deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: center;
}
.compare-visual-card:hover {
  transform: perspective(800px) rotateY(-4deg) translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.compare-visual-img {
  height: 160px;
  overflow: hidden;
  background: #e8e0d5;
}
.compare-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-visual-name {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 12px 4px;
}
.compare-visual-price {
  font-weight: 700;
  color: var(--primary-dark);
  padding: 0 12px 14px;
  font-size: 1.05rem;
}

/* Comparison table refined */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  vertical-align: middle;
}
.compare-table thead th {
  background: linear-gradient(135deg, rgba(74,107,95,0.15), rgba(74,107,95,0.05));
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}
.compare-table tbody th {
  background: rgba(255,255,255,0.5);
  font-weight: 600;
  width: 120px;
}
.compare-table .diff {
  background: rgba(212,167,106,0.22);
  font-weight: 600;
}
.compare-product-head {
  text-align: center;
  min-width: 150px;
}
.compare-product-head img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.compare-modal-card {
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transform: perspective(1200px) rotateX(1deg);
}

/* Product detail gallery photo */
.product-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.logo {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.logo span {
  font-weight: 600;
}

.currency-wrap { display:flex; align-items:center; }
.currency-select {
  appearance: none;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary-dark);
}
.wish-btn {
  width: auto;
  min-width: 36px;
  height: auto;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wish-btn.active {
  background: #e8f0ec;
  color: var(--primary-dark);
}

/* Order status timeline */
.status-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin: 20px 0;
  flex-wrap: wrap;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 64px;
  text-align: center;
  opacity: 0.4;
}
.status-step.done, .status-step.current { opacity: 1; }
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ccc;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #ccc;
  margin-bottom: 6px;
}
.status-step.done .status-dot {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}
.status-step.current .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.15);
}
.status-label { font-size: 0.7rem; font-weight: 600; }
.status-line {
  flex: 0.4;
  height: 2px;
  background: rgba(0,0,0,0.1);
  margin-top: 10px;
  min-width: 12px;
}
.review-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.review-meta { font-size: 0.85rem; color: var(--text-light); }
.reviews-block h3 { font-size: 1.15rem; }

.promo-banner {
  background: linear-gradient(90deg, rgba(74,107,95,0.2), rgba(212,167,106,0.25));
  border: 1px solid rgba(74,107,95,0.25);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.95rem;
}
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-btn, .call-btn {
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.75);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--primary-dark);
}
html[dir="rtl"] body { font-family: system-ui, "Noto Nastaliq Urdu", sans-serif; }

.trust-bar {
  background: rgba(74,107,95,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
  font-weight: 600;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 8px 20px;
  justify-content: center;
  color: var(--primary-dark);
}
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 1100;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 4px;
}
.bottom-nav a.active { color: var(--primary-dark); }
.sticky-atc {
  display: none;
  position: fixed;
  bottom: 56px; left: 12px; right: 12px;
  z-index: 1090;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .sticky-atc { display: flex; }
  body { padding-bottom: 72px; }
}

/* ===== E-commerce layer (features 1–28) ===== */

/* Mini-cart */
.mini-cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1400;
  opacity: 0; transition: opacity 0.28s; pointer-events: none;
}
.mini-cart-overlay.open { opacity: 1; pointer-events: auto; }
.mini-cart-drawer {
  position: fixed; top: 0; right: 0; width: min(400px, 100%); height: 100%;
  background: var(--bg-gradient, #f5efe6); z-index: 1410;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1);
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.mini-cart-drawer.open { transform: translateX(0); }
html[data-theme="dark"] .mini-cart-drawer { background: #1c2420; }
.mini-cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mini-cart-close {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,0.06);
  font-size: 1.4rem; cursor: pointer;
}
.mini-cart-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.mini-cart-empty { text-align: center; padding: 40px 16px; }
.mini-cart-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: flex-start;
}
.mini-cart-item img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #e8e0d5;
}
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-info strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-item-info .muted { font-size: 0.75rem; color: var(--text-light); }
.mini-cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mini-cart-qty button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7); cursor: pointer; font-weight: 700;
}
.mini-cart-qty .mc-rm { border: none; background: transparent; color: #999; }
.mini-cart-price { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.mini-cart-foot { padding: 16px 20px; border-top: 1px solid rgba(0,0,0,0.08); }
.mini-cart-sub { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.05rem; }

/* Lightbox */
.img-lightbox {
  position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.img-lightbox.open { opacity: 1; pointer-events: auto; }
.img-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lb-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.lb-hint { position: absolute; bottom: 20px; color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  padding: 0; cursor: pointer; background: #e8e0d5;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zoomable #detailGallery img, .product-gallery.zoomable img { transition: transform 0.2s; }
.zoomable:hover img { transform: scale(1.4); }

/* Quick view */
.qv-modal {
  position: fixed; inset: 0; z-index: 1450; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.qv-modal.open { opacity: 1; pointer-events: auto; }
.qv-card { width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; padding: 24px; position: relative; }
.qv-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.08); font-size: 1.4rem; cursor: pointer; z-index: 2;
}
.qv-layout { display: flex; gap: 24px; flex-wrap: wrap; }
.qv-img { flex: 1; min-width: 200px; }
.qv-img img { width: 100%; border-radius: 20px; object-fit: cover; max-height: 320px; }
.qv-info { flex: 1; min-width: 220px; }
.qv-btn {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 5; padding: 6px 14px; border-radius: 20px; border: none;
  background: rgba(255,255,255,0.95); font-size: 0.75rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.12); opacity: 0; transition: opacity 0.2s;
}
.product-card:hover .qv-btn { opacity: 1; }
@media (max-width: 768px) { .qv-btn { opacity: 1; bottom: 8px; } }

/* Search suggest */
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1200;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08); max-height: 360px; overflow-y: auto; padding: 8px 0;
}
html[data-theme="dark"] .search-suggest { background: rgba(30,32,30,0.97); }
.ss-section { padding: 8px 16px 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); }
.ss-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px;
  border: none; background: transparent; text-align: left; cursor: pointer;
  text-decoration: none; color: var(--text); font-size: 0.9rem;
}
.ss-item:hover { background: rgba(74,107,95,0.1); }
.ss-product img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.ss-all { font-weight: 600; color: var(--primary-dark); }
.ss-empty { padding: 16px; text-align: center; color: var(--text-light); font-size: 0.9rem; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 0.85rem; margin-bottom: 16px; color: var(--text-light);
}
.breadcrumbs a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.bc-sep { opacity: 0.5; }
.bc-current { color: var(--text); font-weight: 600; }

/* Pagination */
.shop-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; margin: 28px 0; padding: 16px;
}
.page-dots { display: flex; gap: 6px; }
.page-dot {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.6); cursor: pointer; font-weight: 600;
}
.page-dot.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Contact FAB */
.contact-fab {
  position: fixed; bottom: 80px; right: 16px; z-index: 1080;
  display: flex; flex-direction: column; gap: 10px;
}
.fab-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 0.85rem; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.fab-btn:hover { transform: scale(1.08); }
.fab-wa { background: #25d366; color: #fff; }
.fab-call { background: var(--primary); color: #fff; }
@media (max-width: 768px) {
  .contact-fab { bottom: 130px; }
  body { padding-bottom: 72px; }
}

/* Urgency */
.urgency-badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 3;
  background: rgba(198, 40, 40, 0.92); color: #fff; font-size: 0.65rem;
  font-weight: 700; padding: 4px 10px; border-radius: 20px;
}

/* Site footer */
.site-footer {
  margin-top: 60px; padding: 48px 0 24px;
  background: rgba(74,107,95,0.08); border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px; margin-bottom: 32px;
}
.footer-grid h4 { margin-bottom: 12px; color: var(--primary-dark); }
.footer-grid a {
  display: block; color: var(--text); text-decoration: none; font-size: 0.9rem;
  padding: 4px 0; opacity: 0.85;
}
.footer-grid a:hover { opacity: 1; color: var(--primary-dark); }
.newsletter-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 140px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12); background: rgba(255,255,255,0.7);
}
.footer-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-trust span {
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: rgba(74,107,95,0.12); color: var(--primary-dark);
}
.footer-bottom {
  text-align: center; font-size: 0.8rem; color: var(--text-light);
  padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06);
}

/* Size guide modal */
.sg-modal {
  position: fixed; inset: 0; z-index: 1450; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.sg-modal.open { display: flex; }
.sg-card { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 24px; position: relative; }
.sg-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.08); font-size: 1.4rem; cursor: pointer;
}
.sg-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 12px; }
.sg-table th, .sg-table td { padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,0.08); text-align: left; }
.sg-table th { background: rgba(74,107,95,0.1); }

/* Checkout steps */
.checkout-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 24px; flex-wrap: wrap;
}
.co-step { display: flex; flex-direction: column; align-items: center; opacity: 0.4; min-width: 72px; }
.co-step.done, .co-step.current { opacity: 1; }
.co-num {
  width: 32px; height: 32px; border-radius: 50%; background: #ccc; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.co-step.done .co-num { background: var(--primary); }
.co-step.current .co-num { background: var(--accent); }
.co-label { font-size: 0.75rem; font-weight: 600; margin-top: 4px; }
.co-line { width: 40px; height: 2px; background: rgba(0,0,0,0.12); margin: 0 4px; margin-bottom: 18px; }

/* Abandoned cart banner */
.abandon-banner {
  background: linear-gradient(90deg, rgba(74,107,95,0.15), rgba(212,167,106,0.2));
  border-bottom: 1px solid rgba(74,107,95,0.2); padding: 10px 0;
}
.abandon-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 0.9rem;
}

/* Complete the set */
.complete-set { padding: 20px; margin-top: 28px; }
.fbt-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.fbt-item {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.06); cursor: pointer;
  max-width: 220px; font-size: 0.85rem;
}
.fbt-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }

/* Share */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.share-btn {
  padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7); font-size: 0.75rem; font-weight: 700;
  cursor: pointer; text-decoration: none; color: var(--primary-dark);
}

/* UGC */
.ugc-grid { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ugc-placeholder {
  width: 80px; height: 80px; border-radius: 12px; background: rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* Skeletons */
.skeleton-card { pointer-events: none; }
.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.06) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px;
}
.skeleton-img { height: 200px; border-radius: 0; }
.skeleton-line { height: 14px; margin: 12px 16px 8px; }
.skeleton-line.short { width: 40%; margin-bottom: 16px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Mobile filter sheet */
.mobile-filter-btn {
  display: none; position: fixed; bottom: 80px; left: 16px; z-index: 1080;
  padding: 12px 20px; border-radius: 30px; border: none; background: var(--primary);
  color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.2); cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-filter-btn { display: block; bottom: 130px; }
  .filter-sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 75vh;
    z-index: 1300; transform: translateY(110%); transition: transform 0.3s;
    overflow-y: auto; border-radius: 24px 24px 0 0; width: 100% !important;
  }
  .filter-sidebar.open-sheet { transform: translateY(0); }
  body.filters-open::after {
    content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1290;
  }
  .sheet-close {
    display: block; width: 100%; padding: 12px; margin-bottom: 12px; border: none;
    background: var(--primary); color: #fff; border-radius: 12px; font-weight: 700; cursor: pointer;
  }
}
@media (min-width: 769px) {
  .sheet-close { display: none; }
}

/* Coupon ok */
.coupon-ok { color: var(--primary-dark) !important; font-weight: 600; }

/* Order cards on account */
.order-card {
  background: rgba(255,255,255,0.35); border-radius: 14px; padding: 14px !important;
  margin-bottom: 8px; border: 1px solid rgba(0,0,0,0.05);
}

/* Policy pages */
.policy-content { max-width: 720px; margin: 0 auto; }
.policy-content h2 { margin-top: 28px; color: var(--primary-dark); }
.policy-content ul { padding-left: 20px; margin: 12px 0; }
.policy-content li { margin-bottom: 8px; }

.muted { color: var(--text-light); }


/* Error boundary (also injected by error-boundary.js for early paint) */
.ara-eb-section { margin: 16px 0; }

/* ===== Advanced features 1–32 ===== */
.maint-banner {
  background: #c62828; color: #fff; text-align: center; padding: 10px 16px;
  font-weight: 600; font-size: 0.9rem; z-index: 2000; position: relative;
}
.cart-reserve-timer {
  background: rgba(74,107,95,0.12); border-radius: 12px; padding: 10px 14px;
  margin-bottom: 12px; font-size: 0.9rem; text-align: center;
}
.checkout-auth-box { padding: 14px 16px; margin-bottom: 16px; }
.chip-tag {
  display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem;
  font-weight: 700; background: rgba(74,107,95,0.12); color: var(--primary-dark);
}
.sticky-co-summary {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1095;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08); padding: 12px 16px;
  align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .sticky-co-summary { display: flex; }
  body:has(#checkoutForm) { padding-bottom: 80px; }
}
.loyalty-bar {
  height: 10px; background: rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; margin-top: 8px;
}
.loyalty-fill { height: 100%; border-radius: 10px; transition: width 0.4s; }
.reorder-banner {
  background: linear-gradient(90deg, rgba(212,167,106,0.25), rgba(74,107,95,0.12));
  border-bottom: 1px solid rgba(0,0,0,0.06); padding: 10px 0;
}
.reorder-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; font-size: 0.9rem;
}
.collection-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px;
}
.collection-card {
  overflow: hidden; text-decoration: none; color: inherit; display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.collection-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.collection-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.collection-card div { padding: 16px; }
.collection-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.fabric-compare {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px;
}
.fabric-card { padding: 24px; }
.fabric-card ul { margin: 12px 0 16px; padding-left: 18px; font-size: 0.9rem; }
.viz-layout { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.viz-stage { position: relative; flex: 2; min-width: 280px; overflow: hidden; min-height: 280px; }
.viz-stage img { width: 100%; display: block; border-radius: 16px; }
.viz-sheet {
  position: absolute; left: 18%; right: 18%; top: 42%; bottom: 22%;
  border-radius: 8px; pointer-events: none; mix-blend-mode: multiply;
}
.viz-controls { flex: 1; min-width: 200px; padding: 20px; }
.viz-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.viz-swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.15);
  cursor: pointer; padding: 0;
}
.viz-swatch.active { outline: 3px solid var(--accent); outline-offset: 2px; }
.bb-row { margin-bottom: 14px; }
.bb-row label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.bb-row select {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.7); font-family: inherit;
}
.sticky-filter-chips {
  display: none; gap: 8px; overflow-x: auto; padding: 10px 0; margin-bottom: 8px;
  position: sticky; top: 70px; z-index: 100; background: var(--bg-gradient);
  -webkit-overflow-scrolling: touch;
}
.sticky-filter-chips button {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.8); font-weight: 700; font-size: 0.8rem; cursor: pointer;
  white-space: nowrap;
}
.sticky-filter-chips button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 768px) { .sticky-filter-chips { display: flex; } }
.verified-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px;
  background: rgba(74,107,95,0.15); color: var(--primary-dark); font-size: 0.7rem; font-weight: 700;
}
.video-wrap { position: relative; padding-bottom: 56%; height: 0; overflow: hidden; border-radius: 16px; margin-top: 8px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.delivery-stats {
  padding: 16px 20px; margin-top: 28px; text-align: center; font-size: 0.95rem;
}
.delivery-stats strong { font-size: 1.4rem; color: var(--primary-dark); display: block; }
.a2hs-bar {
  position: fixed; bottom: 80px; left: 12px; right: 12px; z-index: 1070;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 12px 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 0.9rem;
}
.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2001;
  background: #333; color: #fff; text-align: center; padding: 8px; font-size: 0.85rem;
}
.tool-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-top: 40px;
}
.tool-card {
  padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px;
}
.tool-card span { font-size: 0.85rem; color: var(--text-light); }
.notify-preview { line-height: 1.6; }

/* ===== Mega features ===== */
.recovery-banner {
  background: linear-gradient(90deg, rgba(74,107,95,0.2), rgba(212,167,106,0.2));
  padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.order-timeline { padding: 20px; margin-top: 24px; }
.timeline-track { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.timeline-step { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; opacity: 0.5; }
.timeline-step.active { opacity: 1; font-weight: 700; color: var(--primary-dark); }
.timeline-step .dot {
  width: 10px; height: 10px; border-radius: 50%; background: currentColor;
}
.room-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.room-chip {
  padding: 10px 16px; border-radius: 24px; background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08); text-decoration: none; color: inherit; font-weight: 600; font-size: 0.9rem;
}
.stock-eta { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }
.filter-presets {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px;
}
.filter-presets button {
  padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.85); font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.notif-panel {
  position: fixed; top: 70px; right: 12px; width: min(320px, 92vw); max-height: 60vh;
  overflow: auto; z-index: 1200; padding: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.notif-item { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.9rem; }

/* Platform features */
.campaign-bar {
  background: linear-gradient(90deg, #4a6b5f, #d4a76a);
  color: #fff; text-align: center; padding: 8px 12px; font-size: 0.9rem;
}
.campaign-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.slot-cal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot-day {
  padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85); cursor: pointer; font-size: 0.8rem; font-weight: 600;
}
.slot-day.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
