/* Gift Store Theme: Main Stylesheet (Premium Redesign) */

:root {
  --bg: #fbf5ee;
  --paper: #fffdf9;
  --paper-2: #f6eadc;
  --ink: #201816;
  --muted: #746962;
  --faint: #b8aca3;
  --line: rgba(51, 35, 26, .12);
  --brand: #8a4f32;
  --brand-2: #c7773d;
  --rose: #d86f76;
  --rose-soft: #fff0ef;
  --mint: #108c64;
  --mint-soft: #e9f8f1;
  --gold: #b27a16;
  --gold-soft: #fff3d7;
  --violet: #6d4aa5;
  --violet-soft: #f3edff;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 22px 70px rgba(70, 38, 18, .11);
  --shadow-soft: 0 10px 30px rgba(70, 38, 18, .08);
  --ease: cubic-bezier(.16,1,.3,1);
  --container: 1180px;
  --font-title: 'Cairo', sans-serif;
  --font-body: 'Readex Pro', 'Cairo', sans-serif;

  /* Compatibility Aliases for WordPress single product page */
  --color-bg: var(--bg);
  --color-surface: var(--paper);
  --color-surface-2: var(--paper-2);
  --color-surface-offset: var(--paper-2);
  --color-border: var(--line);
  --color-divider: var(--line);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-text-faint: var(--faint);
  --color-primary: var(--brand);
  --color-primary-hover: var(--brand-2);
  --color-primary-light: var(--rose-soft);
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1da851;
  --color-gold: var(--gold);
  --color-gold-bg: var(--gold-soft);
  --color-sale: var(--rose);
  --color-sale-bg: var(--rose-soft);
  --color-new: var(--mint);
  --color-new-bg: var(--mint-soft);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --radius-xl: var(--radius);
  --radius-2xl: var(--radius-lg);
  --radius-full: 9999px;
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-soft);
  --shadow-lg: var(--shadow);
  --shadow-card: var(--shadow-soft);
  --ease-out: var(--ease);
  --transition: 250ms var(--ease);
  --font-display: var(--font-title);
}

[data-theme="dark"] {
  --bg: #141210;
  --paper: #1c1a17;
  --paper-2: #211f1c;
  --ink: #d4d1cb;
  --muted: #aaa49a;
  --faint: #6f6a62;
  --line: rgba(212, 209, 203, .14);
  --brand: #c7773d;
  --brand-2: #e0945a;
  --rose: #ff6b6b;
  --rose-soft: #3b1d1d;
  --mint: #4ade80;
  --mint-soft: #142d21;
  --gold: #f3bd54;
  --gold-soft: #382a14;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216,111,118,.14), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(199,119,61,.13), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible,
.tab:focus-visible,
.mini-wa:focus-visible {
  outline: 3px solid var(--brand-2, #c7773d);
  outline-offset: 3px;
}
.wrap { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(16px);
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s var(--ease);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { opacity: 0.9; }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1da851; }
.btn-soft { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.btn-soft:hover { background: var(--paper-2); }
.section { padding: 74px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font: 900 clamp(28px, 4vw, 46px)/1.18 var(--font-title);
  letter-spacing: normal;
}
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 620px; }
.link { color: var(--brand); font-weight: 900; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(80, 55, 35, .08);
  background: rgba(251,245,238,.72);
  backdrop-filter: blur(22px) saturate(170%);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  transition: height 0.2s ease;
}
.topbar.scrolled .nav {
  height: 70px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mark {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background:
    linear-gradient(135deg, var(--brand), var(--rose)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), transparent 35%);
  box-shadow: 0 12px 28px rgba(138,79,50,.24);
  font: 900 19px/1 var(--font-title);
  letter-spacing: normal;
}
.brand strong {
  font: 900 22px/1 var(--font-title);
  letter-spacing: normal;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.links a {
  position: relative;
  transition: color var(--transition);
}
.links a:hover, .links .active { color: var(--brand); }
.links a.active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.55rem;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-full);
}
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  color: var(--muted);
  transition: width 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
  will-change: width;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.search:hover, .search:focus-within {
  width: 210px;
  background: var(--paper);
  border-color: var(--brand);
  cursor: default;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search:hover input, .search:focus-within input {
  opacity: 1;
}
.hamb { display: none; }

/* Mobile Menu styling and animation */
.mobile-menu {
  position: fixed;
  inset: 82px 0 auto 0;
  background: var(--paper);
  padding: 24px;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  z-index: 45;
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  color: var(--ink);
  transition: color 0.2s ease;
}
.mobile-menu a:hover {
  color: var(--brand);
}
.mobile-menu a.mobile-menu-cta {
  width: 100%;
  margin-top: 16px;
  text-align: center;
  border-bottom: 0;
}


/* Hero */
.hero { padding: 48px 0 40px; }
.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(80, 55, 35, .12);
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(246,234,220,.58)),
    radial-gradient(circle at 20% 20%, rgba(216,111,118,.18), transparent 25%);
  box-shadow: var(--shadow);
  min-height: 620px;
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
}
.hero-shell::before {
  content: "";
  position: absolute;
  inset: auto -80px -160px auto;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,119,61,.16), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 600px; }
.hero-copy h1 {
  margin: 18px 0 18px;
  font: 950 clamp(42px, 7vw, 78px)/1.35 var(--font-title);
  letter-spacing: normal;
}
.hero-copy h1 .accent {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 6px;
  height: 14px;
  border-radius: 999px;
  background: rgba(216,111,118,.22);
  z-index: -1;
}
.hero-copy .lead {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-micro {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-micro span {
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* Hero Visual Side & Floating Cards */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 460px;
  width: 100%;
}
.floating-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 360px;
}
.floating-card {
  position: absolute;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.floating-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(70, 38, 18, .18);
}

/* Card 1: Featured Main Card */
.card-main {
  width: 210px;
  top: 20%;
  right: 0;
  z-index: 2;
  transform: rotate(-1deg);
}
.card-main img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.card-main-title {
  font: 900 15px/1.3 var(--font-title);
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: normal;
}
.card-main-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-main-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
}
.card-main-old-price {
  font-size: 11px;
  text-decoration: line-through;
  color: var(--faint);
}
.card-main-sale-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: var(--rose-soft);
  color: var(--rose);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  z-index: 3;
}

/* Card 2: Smaller Offset Card */
.card-small {
  width: 160px;
  top: 6%;
  left: 0;
  z-index: 1;
  transform: rotate(1deg);
}
.card-small img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.card-small-title {
  font: 900 13px/1.3 var(--font-title);
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: normal;
}
.card-small-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

/* Card 3: Mini Badge Card */
.card-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  bottom: 16%;
  left: 6%;
  z-index: 3;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.card-badge i {
  color: var(--brand);
  width: 16px;
  height: 16px;
}

/* Social proof / Trust Strip */
.proof {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  position: relative;
}
.proof-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
}
.proof-icon {
  font-size: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--brand);
}
.proof-content strong {
  font: 900 14px/1.3 var(--font-title);
  display: block;
  color: var(--ink);
  letter-spacing: normal;
}
.proof-content span {
  color: var(--muted);
  font-size: 11px;
  display: block;
  margin-top: 2px;
}


/* Categories Bento Grid */
.category-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}
.cat {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper) center/cover no-repeat;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 180px;
  text-decoration: none;
}
.cat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.9) 0%, rgba(20, 18, 16, 0.45) 60%, rgba(20, 18, 16, 0.15) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}
.cat:hover::before {
  opacity: 0.95;
}
.cat-content {
  position: relative;
  z-index: 2;
}
.cat small {
  color: var(--brand-2);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 4px;
  display: block;
  letter-spacing: normal;
}
.cat h3 {
  margin: 0;
  font: 900 22px/1.2 var(--font-title);
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  letter-spacing: normal;
}
.cat p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  max-width: 280px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.cat[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 52px;
  opacity: 0.18;
  z-index: 2;
  transition: transform 0.3s var(--ease);
}
.cat:hover[data-emoji]::after {
  transform: scale(1.1) rotate(-5deg);
}

/* Bento Desktop Placement */
.cat-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.cat-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.cat-3 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}
.cat-4 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.cat-5 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}


/* Filter tabs and controls */
.section-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--paper-2);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}
.tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover {
  color: var(--ink);
}
.tab.active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

/* Products */
.product-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: .25s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product .photo {
  height: 235px;
  overflow: hidden;
  background: var(--paper-2);
}
.product .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: .5s var(--ease);
}
.product:hover .photo img { transform: scale(1.08); }
.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: var(--gold-soft);
  color: var(--gold);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.product-body { padding: 18px; }
.product-body h3 { margin: 0 0 6px; font: 900 18px/1.35 var(--font-title); }
.product-body h3 a { color: inherit; }
.product-body .sub { color: var(--muted); font-size: 13px; }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.price { font-weight: 900; color: var(--brand); }
.price del { color: var(--faint); font-size: 12px; margin-inline-start: 6px; font-weight: normal; }
.mini-wa {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--color-whatsapp, #25D366);
  font-weight: 900;
  transition: .2s var(--ease);
}
.mini-wa:hover { transform: rotate(-8deg) scale(1.06); }

/* Gift Builder */
.builder {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  padding: clamp(32px, 6vw, 68px);
  background:
    linear-gradient(135deg, rgba(109, 74, 165, 0.9), rgba(32, 24, 22, 0.92)),
    url('https://images.unsplash.com/photo-1513201099705-a9746e1e201f?q=80&w=1400&auto=format&fit=crop') center/cover;
  color: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}
.builder h2 {
  margin: 12px 0 14px;
  font: 950 clamp(30px, 4vw, 54px)/1.35 var(--font-title);
  letter-spacing: normal;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.builder p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 570px;
  line-height: 1.75;
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.builder .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.builder-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  transition: transform 0.25s ease, background 0.25s ease;
}
.step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-4px);
}
.step:last-child { margin-bottom: 0; }
.step b {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--violet);
  font-weight: 900;
  flex-shrink: 0;
}
.builder-btn {
  background: #25D366 !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3) !important;
}
.builder-btn:hover {
  background: #1da851 !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45) !important;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  padding: 32px 28px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.stars {
  color: var(--gold, #ffb703);
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-size: 16px;
}
.review p {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 auto;
}
.review-author {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.review-author strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.review-author span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Footer */
.footer {
  padding: 80px 0 32px;
  background: #141210;
  color: white;
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer p, .footer span { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.7; }
.footer a { color: rgba(255,255,255,.68); font-size: 14px; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--brand-2); }
.footer h3 { margin: 0 0 16px; font: 900 18px/1.2 var(--font-title); color: white; letter-spacing: normal; }
.footer-links { display: grid; gap: 12px; }
.copyright {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
}

.reveal { opacity: 0; transform: translateY(22px); transition: .7s var(--ease); }
.reveal.in, .reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .links, .search, .nav-actions .btn-wa { display: none; }
  .hamb { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto; }
  .hero-shell { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { height: auto; margin-top: 32px; }
  .floating-container { display: flex; flex-direction: row; justify-content: center; gap: 16px; max-width: none; height: auto; }
  .floating-card { position: relative; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none !important; }
  .card-badge { display: none; }
  .category-wall { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .cat-1 { grid-column: span 2; grid-row: span 2; }
  .cat-2, .cat-3, .cat-4, .cat-5 { grid-column: span 1; grid-row: span 1; }
  .product-row, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Single Product Detail Page (Retained for Compatibility) --- */
.gst-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-block: var(--space-12);
}
@media (min-width: 768px) {
  .gst-single-layout {
    grid-template-columns: 45% 55%;
    gap: var(--space-12);
  }
}

.gst-gallery-section {
  display: flex;
  flex-direction: column;
}

.gst-gallery-main {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: var(--color-surface-2);
  aspect-ratio: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gst-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gst-gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
.gst-gallery-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--color-surface-2);
  transition: border-color var(--transition), transform var(--transition);
}
.gst-gallery-thumb:hover {
  transform: translateY(-2px);
}
.gst-gallery-thumb.active {
  border-color: var(--color-primary);
}

.gst-product-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.gst-product-info .gst-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.gst-single-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.gst-price-section {
  margin-bottom: var(--space-6);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.gst-price-section .gst-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--color-primary);
}
.gst-price-section .gst-price.original {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: line-through;
}

.gst-description-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.gst-description-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: var(--space-3);
  margin-top: 0;
}
.gst-description-content {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.gst-buy-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.gst-quantity-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-4);
}
.gst-qty-label {
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.gst-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  overflow: hidden;
}
.gst-qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition);
}
.gst-qty-btn:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
#gst-qty-input {
  width: 50px;
  height: 40px;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 800;
  color: var(--color-text);
  outline: none;
  -moz-appearance: textfield;
}
#gst-qty-input::-webkit-outer-spin-button,
#gst-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Compatibility Aliases --- */
.gst-container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.gst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 0;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.gst-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gst-btn-primary { background: var(--color-primary); color: white; }
.gst-btn-primary:hover { background: var(--color-primary-hover); }
.gst-btn-whatsapp { background: var(--color-whatsapp); color: white; }
.gst-btn-whatsapp:hover { background: var(--color-whatsapp-hover); }
.gst-btn-secondary, .gst-btn-soft { background: var(--color-surface-offset); color: var(--color-text); }
.gst-btn svg { width: 1.1em; height: 1.1em; stroke-width: 2.2; fill: currentColor; }

.gst-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 800;
}
.gst-badge.out_of_stock { color: var(--color-sale); background: var(--color-sale-bg); }
.gst-badge.coming_soon { color: var(--color-gold); background: var(--color-gold-bg); }
.gst-badge.available { color: var(--color-new); background: var(--color-new-bg); }
.gst-badge.tag-featured { color: var(--color-gold); background: var(--color-gold-bg); }
.gst-badge.tag-offer { color: var(--color-sale); background: var(--color-sale-bg); }
.gst-badge.tag-new { color: var(--color-new); background: var(--color-new-bg); }

.gst-product-meta-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.gst-meta-row strong {
  color: var(--color-text);
  margin-inline-end: var(--space-2);
}

/* Product Catalog Grids (archive, taxonomy, search) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: .25s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.product-card .product-media {
  height: 235px;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s var(--ease);
}
.product-card:hover .product-media img {
  transform: scale(1.08);
}
.product-card .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  z-index: 2;
}
.product-card .badge-sale {
  background: var(--rose-soft);
  color: var(--rose);
}
.product-card .badge-new {
  background: var(--mint-soft);
  color: var(--mint);
}
.product-card .badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
}
.product-card .product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card .product-title {
  margin: 0 0 6px;
  font: 900 18px/1.35 var(--font-title);
}
.product-card .product-title a {
  color: inherit;
}
.product-card .product-cat {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.product-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}
.product-card .price {
  font-weight: 900;
  color: var(--brand);
  font-size: 16px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}
.product-card .price .sale-price {
  color: var(--brand);
}
.product-card .price .old-price {
  color: var(--faint);
  font-size: 11px;
  text-decoration: line-through;
  font-weight: normal;
  display: block;
}
.product-card .btn-whatsapp {
  background: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s var(--ease);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  min-height: 38px;
  text-decoration: none;
  font-size: 12px;
}
.product-card .btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.product-card .btn-whatsapp svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Offer of the Day Section */
#deal-of-the-day {
  background: radial-gradient(circle at 10% 20%, rgba(243, 189, 84, 0.06), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(216, 111, 118, 0.06), transparent 40%);
  padding: 80px 0;
}
.deal-wrapper {
  background: var(--paper, #ffffff);
  border: 1px solid var(--line, rgba(80, 55, 35, 0.08));
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.deal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: right;
}
.pill-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-soft, rgba(216, 111, 118, 0.1));
  color: var(--rose, #d86f76);
  font-weight: 800;
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.deal-heading {
  font: 900 clamp(24px, 3.5vw, 38px)/1.3 var(--font-title);
  color: var(--ink);
  margin: 0;
  letter-spacing: normal;
}
.deal-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}
.deal-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.deal-new-price {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  color: var(--brand);
}
.deal-old-price {
  font-size: 18px;
  text-decoration: line-through;
  color: var(--faint);
}
.deal-saving-badge {
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
}
.countdown-container {
  width: 100%;
  margin-top: 8px;
  background: var(--paper-2, #f5f2ec);
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px dashed var(--line);
}
.countdown-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.countdown-grid {
  display: flex;
  gap: 12px;
  direction: rtl;
  justify-content: flex-start;
}
.countdown-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}
.countdown-box .num {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}
.countdown-box .lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.deal-cta {
  margin-top: 16px;
  width: 100%;
}
.deal-cta .btn-wa {
  width: 100%;
  max-width: 400px;
  justify-content: center;
  font-size: 18px;
  padding: 14px 28px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}
.deal-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  border: 1px solid var(--line);
}
.deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.8s ease;
}
.deal-wrapper:hover .deal-media img {
  transform: scale(1.05);
}
.deal-badge-rotate {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold, #f3bd54);
  color: #1a1814;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transform: rotate(6deg);
  font-size: 16px;
  animation: floatBadge 3s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: rotate(6deg) translateY(0); }
  100% { transform: rotate(6deg) translateY(-6px); }
}

/* Dark Mode Overrides and Contrast Fixes */
[data-theme="dark"] .topbar {
  background: rgba(20, 18, 16, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .hero-micro span {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .search {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] #themeToggle {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Responsiveness for Deal Section */
@media (max-width: 991px) {
  #deal-of-the-day {
    padding: 48px 0;
  }
  .deal-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }
  .deal-info {
    padding: 0;
  }
  .deal-media {
    min-height: 300px;
    order: -1;
  }
}
@media (max-width: 576px) {
  .countdown-grid {
    justify-content: center;
  }
  .deal-cta .btn-wa {
    max-width: 100%;
  }
}

/* WordPress Admin Bar offsets for sticky header, mobile menu, and anchor scrolling */
.admin-bar .topbar {
  top: 32px;
}
.admin-bar .mobile-menu {
  inset: 114px 0 auto 0;
}
.admin-bar [id] {
  scroll-margin-top: 132px;
}

@media screen and (max-width: 782px) {
  .admin-bar .topbar {
    top: 46px;
  }
  .admin-bar .mobile-menu {
    inset: 128px 0 auto 0;
  }
  .admin-bar [id] {
    scroll-margin-top: 146px;
  }
}

/* Dark Mode Hero Section refinements */
[data-theme="dark"] .hero-shell {
  background:
    linear-gradient(135deg, rgba(30, 27, 24, 0.95), rgba(20, 18, 16, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(199, 119, 61, 0.15), transparent 25%);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .floating-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ========================================================================
   MOBILE-FIRST PREMIUM OVERHAUL — RUH Store (Amazon/noon-grade)
   All mobile rules consolidated here. Desktop styles remain untouched.
   ======================================================================== */

/* Body bottom padding for fixed bottom nav */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
  }
}

/* ---- Mobile Top Sticky Search Bar ---- */
.mobile-search-bar-wrap {
  display: none !important;
}
@media (max-width: 768px) {
  .mobile-search-bar-wrap.open {
    display: block !important;
    position: absolute !important;
    top: 82px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    background: var(--bg) !important;
    padding: 8px 14px !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    animation: slideDownSearch 0.2s ease-out forwards !important;
  }
  .admin-bar .mobile-search-bar-wrap.open {
    top: 114px !important;
  }
  .mobile-menu {
    inset: 82px 0 auto 0 !important;
  }
  .admin-bar .mobile-menu {
    inset: 114px 0 auto 0 !important;
  }
}
@media screen and (max-width: 782px) {
  .admin-bar .mobile-search-bar-wrap.open {
    top: 128px !important;
  }
  .admin-bar .mobile-menu {
    inset: 128px 0 auto 0 !important;
  }
}

@keyframes slideDownSearch {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mobile-search-form {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}
.mobile-search-form .search-icon {
  position: absolute !important;
  right: 14px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--muted) !important;
  width: 16px !important;
  height: 16px !important;
  pointer-events: none !important;
  z-index: 10 !important;
}
.mobile-search-form input[type="search"] {
  width: 100% !important;
  max-width: none !important;
  height: 42px !important;
  padding: 8px 42px 8px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  outline: none !important;
  box-sizing: border-box !important;
  display: block !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
}
.mobile-search-form input[type="search"]:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(138, 79, 50, 0.12) !important;
}

/* ---- Horizontal Categories Slider (Mobile Only) ---- */
.mobile-categories-slider-wrap {
  padding: 12px 0 4px;
  background: transparent;
  display: none;
}
@media (max-width: 768px) {
  .mobile-categories-slider-wrap {
    display: block;
  }
}
.mobile-categories-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 6px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-categories-slider::-webkit-scrollbar {
  display: none;
}
.mobile-categories-slider .slider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
  width: 66px;
}
.mobile-categories-slider .item-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: 0 4px 12px rgba(70, 38, 18, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.mobile-categories-slider .slider-item:active .item-icon,
.mobile-categories-slider .slider-item:hover .item-icon {
  transform: scale(1.06);
  border-color: var(--brand);
}
.mobile-categories-slider .item-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ---- Mobile Bottom Navigation Bar ---- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px !important;
  background: rgba(251, 245, 238, 0.96) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  border-top: 1px solid var(--line) !important;
  z-index: 9999 !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 6px 8px !important;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(20, 18, 16, 0.96) !important;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
  }
}
.mobile-bottom-nav .nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 4px 0 !important;
  cursor: pointer !important;
  outline: none !important;
  flex: 1 !important;
  transition: all 0.2s ease !important;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav .nav-item svg,
.mobile-bottom-nav .nav-item .lucide {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
  fill: none !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}
.mobile-bottom-nav .nav-item:active svg,
.mobile-bottom-nav .nav-item.active svg {
  transform: scale(1.15) !important;
  color: var(--brand) !important;
}
.mobile-bottom-nav .nav-item:active,
.mobile-bottom-nav .nav-item.active {
  color: var(--brand) !important;
}

/* Fix Lucide SVGs from being incorrectly filled */
svg.lucide, .lucide svg, i[data-lucide] svg {
  fill: none !important;
  stroke: currentColor !important;
}

/* ================================================================
   768px BREAKPOINT — TABLET & MOBILE GLOBAL
   ================================================================ */
@media (max-width: 768px) {

  /* --- Global Section Spacing --- */
  .section {
    padding: 28px 0 !important;
  }
  .wrap {
    width: calc(100% - 24px);
  }
  .section-head {
    margin-bottom: 16px !important;
  }
  .section-head h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  .section-head p {
    font-size: 13px;
    margin-top: 4px;
  }
  .section-filters {
    margin-top: 10px;
  }

  /* --- Hero Section: Compact, App-like --- */
  .hero {
    padding: 10px 0 8px !important;
  }
  .hero-visual {
    display: none !important;
  }
  .hero-shell {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    border-radius: 20px !important;
    padding: 20px 16px !important;
    text-align: center;
    border: none !important;
    box-shadow: none !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,.85), rgba(246,234,220,.45)),
      radial-gradient(circle at 20% 20%, rgba(216,111,118,.1), transparent 30%) !important;
  }
  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-copy .pill {
    font-size: 11px;
    padding: 5px 10px;
    gap: 5px;
  }
  .hero-copy h1 {
    font-size: 24px !important;
    line-height: 1.4 !important;
    margin: 10px 0 8px !important;
  }
  .hero-copy h1 .accent::after {
    height: 8px;
    bottom: 2px;
  }
  .hero-copy .lead {
    font-size: 13px !important;
    line-height: 1.6;
    margin-bottom: 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions {
    justify-content: center;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .hero-actions .btn {
    min-height: 40px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 999px;
  }
  .hero-micro {
    justify-content: center;
    gap: 6px !important;
    display: none !important;
  }

  /* --- Trust Strip: Horizontal Scroll --- */
  .proof {
    grid-template-columns: 1fr !important;
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 4px !important;
    border-radius: 14px !important;
    margin-top: 20px !important;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .proof::-webkit-scrollbar {
    display: none;
  }
  .proof-item {
    flex-shrink: 0;
    min-width: 150px;
    padding: 8px 12px !important;
    gap: 8px !important;
    flex-direction: row;
    align-items: center;
  }
  .proof-item:not(:last-child)::after {
    display: none !important;
  }
  .proof-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    flex-shrink: 0;
  }
  .proof-content strong {
    font-size: 12px !important;
    white-space: nowrap;
  }
  .proof-content span {
    display: none !important;
  }

  /* --- Categories Bento: Compact Grid --- */
  #categories .section-head p {
    display: none;
  }
  .category-wall {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 100px !important;
    gap: 6px !important;
  }
  .cat {
    padding: 10px !important;
    min-height: auto !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(70, 38, 18, 0.06) !important;
  }
  .cat-1 {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }
  .cat-2, .cat-3, .cat-4, .cat-5 {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .cat small {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }
  .cat h3 {
    font-size: 14px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.4) !important;
  }
  .cat p {
    display: none !important;
  }
  .cat[data-emoji]::after {
    font-size: 28px !important;
    left: 6px !important;
    bottom: 6px !important;
  }

  /* --- Product Grid: Tight 2-Column --- */
  .product-row, .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* --- Filter Tabs: Scrollable --- */
  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    font-size: 12px !important;
    padding: 6px 14px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* --- Deal of the Day: Compact --- */
  #deal-of-the-day {
    padding: 24px 0 !important;
  }
  .deal-wrapper {
    padding: 16px !important;
    border-radius: 20px !important;
    gap: 16px !important;
  }
  .deal-heading {
    font-size: 20px !important;
  }
  .deal-desc {
    font-size: 13px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .deal-price-row {
    gap: 10px !important;
  }
  .deal-new-price {
    font-size: 24px !important;
  }
  .deal-old-price {
    font-size: 15px !important;
  }
  .countdown-container {
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }
  .countdown-label {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }
  .countdown-grid {
    gap: 8px !important;
    justify-content: center !important;
  }
  .countdown-box {
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
  }
  .countdown-box .num {
    font-size: 18px !important;
  }
  .countdown-box .lbl {
    font-size: 9px !important;
  }
  .deal-cta .btn-wa {
    max-width: 100% !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    min-height: 44px !important;
  }
  .deal-media {
    min-height: 200px !important;
    border-radius: 16px !important;
  }
  .deal-badge-rotate {
    font-size: 13px !important;
    padding: 6px 12px !important;
    top: 12px !important;
    right: 12px !important;
  }
  .pill-highlight {
    font-size: 12px !important;
    padding: 4px 12px !important;
  }

  /* --- Builder Section: Compact --- */
  .builder {
    border-radius: 20px !important;
    padding: 20px 16px !important;
    gap: 20px !important;
  }
  .builder h2 {
    font-size: 22px !important;
    margin: 8px 0 8px !important;
  }
  .builder p {
    font-size: 13px !important;
    line-height: 1.6;
  }
  .builder .pill {
    font-size: 11px;
    padding: 4px 10px;
  }
  .builder-panel {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }
  .step {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    margin-bottom: 6px !important;
    gap: 10px !important;
  }
  .step b {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px;
  }
  .builder-btn {
    font-size: 13px !important;
    padding: 10px 20px !important;
    min-height: 42px !important;
  }

  /* --- Reviews: Horizontal Scroll Slider --- */
  .reviews {
    grid-template-columns: 1fr !important;
    display: flex !important;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }
  .reviews::-webkit-scrollbar {
    display: none;
  }
  .review {
    flex-shrink: 0;
    width: 82vw;
    max-width: 320px;
    padding: 18px 16px !important;
    border-radius: 18px !important;
    scroll-snap-align: start;
  }
  .stars {
    font-size: 13px !important;
    margin-bottom: 8px !important;
    letter-spacing: 2px !important;
  }
  .review p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .review-author {
    margin-top: 14px !important;
    gap: 8px !important;
  }
  .review-author .avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
  .review-author strong {
    font-size: 12px !important;
  }
  .review-author span {
    font-size: 10px !important;
  }

  /* --- Footer: Compact --- */
  .footer {
    padding: 40px 0 20px !important;
    margin-top: 24px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding-bottom: 20px !important;
  }
  .footer-grid > div:first-child {
    grid-column: span 2;
  }
  .footer h3 {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }
  .footer p, .footer span, .footer a {
    font-size: 12px !important;
  }
  .copyright {
    flex-direction: column !important;
    gap: 6px !important;
    padding-top: 14px !important;
    font-size: 11px !important;
  }
}

/* ================================================================
   640px BREAKPOINT — SMALL PHONES
   ================================================================ */
@media (max-width: 640px) {

  /* --- Header Compact --- */
  .nav {
    height: 56px !important;
  }
  .brand span {
    display: none;
  }
  .mark {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }
  .brand strong {
    font-size: 18px !important;
  }
  .brand {
    gap: 8px !important;
  }
  .hamb {
    min-height: 36px !important;
    padding: 6px 10px !important;
    font-size: 16px;
  }

  /* --- Hero Extra Compact --- */
  .hero {
    padding: 6px 0 4px !important;
  }
  .hero-shell {
    border-radius: 16px !important;
    padding: 16px 14px !important;
  }
  .hero-copy .pill {
    font-size: 10px;
    padding: 4px 8px;
  }
  .hero-copy h1 {
    font-size: 21px !important;
    margin: 8px 0 6px !important;
  }
  .hero-copy .lead {
    font-size: 12px !important;
    margin-bottom: 10px !important;
    -webkit-line-clamp: 2;
  }
  .hero-actions {
    flex-direction: row !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  .hero-actions .btn {
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    flex: 1;
  }

  /* --- Product Cards: Tight & Clean --- */
  .product-card {
    border-radius: 14px !important;
    border-width: 0.5px;
  }
  .product-card .product-media {
    height: 140px !important;
  }
  .product-card .product-body {
    padding: 8px 10px 10px !important;
  }
  .product-card .product-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
    height: auto;
    max-height: 1.3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .product-card .product-cat {
    display: none !important;
  }
  .product-actions-row {
    gap: 6px !important;
    margin-top: 6px !important;
  }
  .product-card .price {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  .product-card .price .old-price {
    font-size: 10px !important;
  }
  .product-card .btn-whatsapp {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    min-height: auto !important;
    display: inline-grid !important;
    place-items: center;
    flex-shrink: 0;
  }
  .product-card .btn-whatsapp .btn-text {
    display: none !important;
  }
  .product-card .btn-whatsapp svg,
  .product-card .btn-whatsapp .icon {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
  }
  .product-card .badge {
    padding: 3px 7px !important;
    font-size: 9px !important;
    top: 8px !important;
    right: 8px !important;
  }

  /* --- Categories: Extra Tight --- */
  .category-wall {
    grid-auto-rows: 88px !important;
    gap: 5px !important;
  }
  .cat {
    border-radius: 12px !important;
    padding: 8px !important;
  }
  .cat h3 {
    font-size: 13px !important;
  }
  .cat[data-emoji]::after {
    font-size: 24px !important;
    opacity: 0.15 !important;
  }

  /* --- Sections: Extra Tight Spacing --- */
  .section {
    padding: 22px 0 !important;
  }
  .section-head {
    display: block !important;
    margin-bottom: 12px !important;
  }
  .section-head h2 {
    font-size: 20px !important;
  }
  .section-head p {
    display: none !important;
  }
  .section-filters {
    align-items: flex-start !important;
    margin-top: 8px !important;
  }

  /* --- Deal: Extra Compact --- */
  #deal-of-the-day {
    padding: 16px 0 !important;
  }
  .deal-wrapper {
    padding: 14px !important;
    border-radius: 16px !important;
    gap: 12px !important;
  }
  .deal-heading {
    font-size: 18px !important;
  }
  .deal-desc {
    display: none !important;
  }
  .deal-media {
    min-height: 160px !important;
    border-radius: 12px !important;
  }
  .countdown-box {
    width: 46px !important;
    height: 46px !important;
  }
  .countdown-box .num {
    font-size: 16px !important;
  }

  /* --- Builder: Extra Compact --- */
  .builder {
    border-radius: 16px !important;
    padding: 16px 14px !important;
  }
  .builder h2 {
    font-size: 19px !important;
  }
  .builder p {
    font-size: 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .step {
    padding: 8px 10px !important;
    font-size: 11px !important;
    margin-bottom: 5px !important;
    border-radius: 12px !important;
  }
  .step b {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px;
  }

  /* --- Reviews: Narrower Cards --- */
  .review {
    width: 78vw !important;
    max-width: 290px !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }
  .review p {
    font-size: 12px !important;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- Footer: Minimal --- */
  .footer {
    padding: 28px 0 16px !important;
    margin-top: 16px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .footer-grid > div:first-child {
    grid-column: span 1;
  }
}


