/* ==========================================================================
   Sandook Fabstore — Production Customer Storefront Stylesheet
   Fully Mobile Responsive, High-DPI & Desktop Optimized
   ========================================================================== */

/* Universal Hidden Rule — Crucial: overrides any display property */
[hidden] {
  display: none !important;
}

:root {
  --bg: #FBF7F3;
  --ink: #2B1A20;
  --maroon: #5D1628;
  --maroon-d: #3B0D19;
  --gold: #C8963E;
  --gold-light: #F4E4C1;
  --blush: #F6E9E4;
  --line: #EADFD8;
  --card: #FFFFFF;
  --success: #2E7D5B;
  --danger: #B3263A;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  padding-bottom: 68px; /* space for mobile tabbar */
}

h1, h2, h3 {
  font-family: 'Gilda Display', Georgia, serif;
  font-weight: 400;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

.wrap {
  max-width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.center {
  text-align: center;
}

/* Announcement Bar */
.offer {
  background: var(--maroon-d);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 8px 12px;
  font-weight: 500;
  line-height: 1.4;
}

.offer b {
  color: var(--gold);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Authentic Brand Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.logo:hover .logo-img {
  opacity: 0.92;
}

.logo.w .logo-img {
  height: 46px;
  max-width: 150px;
}

.burger {
  font-size: 24px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* Navigation Menu */
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.nav.open {
  display: block;
}

.nav a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.nav a:last-child {
  border-bottom: 0;
}

.nav a[aria-current] {
  color: var(--maroon);
  font-weight: 600;
}

/* Icons */
.icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border-radius: 50%;
  padding: 0;
  transition: background 0.15s;
}

.hbtn:hover {
  background: var(--blush);
}

.hbtn i {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  text-align: center;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  background: var(--maroon);
  color: #fff;
  border-radius: 999px;
  font-style: normal;
}

.admin-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #008060;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  margin-right: 4px;
  transition: background 0.15s, transform 0.1s;
}

.admin-badge-btn:hover {
  background: #004c3f;
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--maroon-d);
  border-color: var(--maroon-d);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: #B38332;
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--maroon-d);
  color: #fff;
  overflow: hidden;
}

.slides {
  display: grid;
}

.sl {
  grid-area: 1/1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.sl.on {
  opacity: 1;
  visibility: visible;
}

.slg {
  display: grid;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 42px;
  align-items: center;
}

.sl small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 8px;
}

.sl h1 {
  font-size: clamp(28px, 6vw, 54px);
  line-height: 1.1;
  margin-bottom: 14px;
}

.sl p {
  font-size: clamp(14px, 2.5vw, 17px);
  opacity: 0.88;
  max-width: 44ch;
  margin: 0 0 22px;
}

.sla {
  justify-self: center;
}

.arc {
  width: min(100%, 260px);
  aspect-ratio: 3/4;
  margin: 0 auto;
  border-radius: 999px 999px 10px 10px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.arc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  font-size: 24px;
  line-height: 1;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
}

.hn.l { left: 10px; }
.hn.r { right: 10px; }

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 5;
}

.dt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.25s;
}

.dt.on {
  background: var(--gold);
  width: 22px;
  border-radius: 8px;
}

/* Trust Bar */
.trust {
  background: var(--blush);
}

.trust ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 20px;
  text-align: center;
}

.trust b {
  display: block;
  font-size: 14px;
}

.trust small {
  opacity: 0.75;
  font-size: 12.5px;
}

/* Section Bands */
.band {
  padding: 40px 0;
}

.tint {
  background: var(--blush);
}

.sec {
  font-size: clamp(24px, 4vw, 36px);
  text-align: center;
  margin-bottom: 24px;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.head h2 {
  font-size: clamp(22px, 3.5vw, 34px);
}

.link {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 600;
}

/* Categories Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tiles li {
  text-align: center;
}

.tiles h3 {
  font-size: 17px;
  margin-top: 8px;
}

.arch {
  border-radius: 999px 999px 8px 8px;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.arch span {
  font-family: 'Gilda Display', serif;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.65);
}

.g1 { background: linear-gradient(#F6E9E4, rgba(200, 150, 62, 0.5), #5D1628); }
.g2 { background: linear-gradient(#F6E9E4, rgba(200, 150, 62, 0.5)); }
.g3 { background: linear-gradient(rgba(93, 22, 40, 0.3), #F6E9E4); }
.g4 { background: linear-gradient(rgba(200, 150, 62, 0.45), rgba(93, 22, 40, 0.45)); }

/* Three Banners */
.three {
  display: grid;
  gap: 12px;
}

.banner {
  border-radius: 12px;
  padding: 22px 18px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.banner small {
  font-weight: 600;
  color: var(--maroon);
  font-size: 12px;
}

.banner h3 {
  font-size: 21px;
}

/* Horizontal Scroll Rows */
.row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.row li {
  flex: 0 0 110px;
  text-align: center;
  scroll-snap-align: start;
}

.row h3 {
  font-size: 15px;
  margin-top: 6px;
}

.sw {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.sw a {
  display: block;
  text-align: center;
  font-size: 12.5px;
  flex-shrink: 0;
}

.sw i {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.pts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pt {
  background: var(--maroon);
  color: #fff;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  font-size: 13px;
}

.pt b {
  display: block;
  font-family: 'Gilda Display', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--gold);
}

/* Product Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 10px;
}

.card {
  position: relative;
}

.card a {
  display: block;
}

.ph {
  aspect-ratio: 3/4;
  border-radius: 8px;
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.ph img, .lim img, .th img, .gimg img, .zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

svg.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.tag.gold {
  background: var(--gold);
  color: #fff;
}

.tag.sold {
  background: #1F1B1E;
  color: #fff;
}

.heart {
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--maroon);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  z-index: 3;
  position: absolute;
  cursor: pointer;
}

.heart.on {
  color: #B3263A;
}

.card .t {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .p {
  font-size: 14px;
  font-weight: 600;
}

.card s {
  opacity: 0.5;
  margin: 0 4px;
  font-weight: 400;
  font-size: 12px;
}

.card em {
  font-style: normal;
  color: var(--maroon);
  font-weight: 600;
  font-size: 12px;
}

/* Customer Quotes */
.quotes {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.quotes li {
  flex: 0 0 min(85%, 340px);
  scroll-snap-align: start;
  background: var(--card);
  border-left: 3px solid var(--gold);
  padding: 20px;
  border-radius: 6px;
}

.quotes blockquote {
  margin: 0 0 10px;
  font-family: 'Gilda Display', serif;
  font-size: 16px;
  line-height: 1.4;
}

.quotes b {
  font-size: 13px;
  color: var(--maroon);
}

/* Category Page & Shop */
.crumb {
  font-size: 12.5px;
  opacity: 0.7;
  padding: 12px 0 6px;
}

.chead {
  background: var(--blush);
  padding: 24px 0 20px;
  margin-bottom: 18px;
}

.cheadin {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chead h1 {
  font-size: clamp(26px, 5vw, 42px);
  margin-bottom: 6px;
}

.chead p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.cpa {
  display: none;
}

.quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
}

.chip.on {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.shop {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.bar select {
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid #cdbfb7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

#count {
  font-size: 13px;
  opacity: 0.75;
}

.active {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.active button {
  background: var(--blush);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

/* Mobile Filters Drawer */
.filters {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--bg);
  overflow-y: auto;
  padding: 20px 20px 80px;
  display: none;
}

.filters.open {
  display: block;
}

.filters h3 {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0 8px;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
}

.fx {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fdone {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.fdone .btn {
  width: 100%;
}

.more {
  text-align: center;
  margin: 28px 0 10px;
}

.empty {
  text-align: center;
  padding: 40px 0;
  opacity: 0.7;
}

.seo {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.seo h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.seo p {
  max-width: 80ch;
  opacity: 0.85;
  font-size: 13.5px;
}

.rel {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Product Detail Page (PDP) — Pixel-Perfect Atelier Mirror */
.pdp {
  display: grid;
  gap: 26px;
  padding-bottom: 30px;
}

.gal {
  display: grid;
  gap: 10px;
}

.gmain {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
}

.gimg {
  position: absolute;
  inset: 0;
  cursor: zoom-in;
}

.gnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gnav.l { left: 10px; }
.gnav.r { right: 10px; }

.gcap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 12px;
}

.thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  order: 2;
}

.th {
  flex: 0 0 64px;
  aspect-ratio: 3/4;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.th.on {
  border-color: var(--maroon);
}

.info {
  font-size: clamp(16px, 0.45vw + 10px, 19px);
}

.info h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  margin: 4px 0 10px;
}

.prow {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.prow b { font-size: 26px; }
.prow s { opacity: 0.55; }
.prow em { font-style: normal; color: var(--maroon); font-weight: 600; }

.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.stars.sm { font-size: 14px; }

.rate {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 6px;
  color: var(--ink);
  text-decoration: none !important;
  font-size: 14px;
  cursor: pointer;
}

.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
  font-size: 12px;
}

.badges li {
  background: var(--blush);
  border-radius: 8px;
  padding: 9px 12px;
}

.badges b {
  display: block;
  font-size: 13px;
}

.blk {
  margin: 16px 0;
}

.bh {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  align-items: center;
}

.sizes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sizes button {
  width: 52px;
  height: 46px;
  border: 1px solid #cdbfb7;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.sizes button.on {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.sizes button:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.err {
  color: #B3263A;
  font-size: 13px;
  margin: 6px 0 0;
}

.cdots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cdot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  display: block;
}

.cdot.on {
  box-shadow: 0 0 0 2px var(--maroon);
}

.cta {
  display: flex;
  gap: 10px;
  margin: 18px 0 10px;
}

.cta .btn {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.wa {
  display: block;
  text-align: center;
}

.pin {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.acc {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.acc:last-of-type {
  border-bottom: 1px solid var(--line);
}

.acc summary {
  cursor: pointer;
  font-weight: 600;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 10px 0;
}

.spec th {
  text-align: left;
  font-weight: 500;
  opacity: 0.7;
  padding: 6px 10px 6px 0;
  width: 42%;
  vertical-align: top;
}

.spec td {
  padding: 6px 0;
}

.spec tr {
  border-bottom: 1px solid var(--line);
}

.offs {
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
}

.lnk {
  background: none;
  border: 0;
  padding: 0;
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Sticky ATC Bar on Mobile */
.stk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
}

body.pdp-open .stk {
  display: flex;
}

body.pdp-open .tabbar {
  display: none;
}

body.pdp-open .wafab {
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

body.pdp-open #totop {
  bottom: calc(146px + env(safe-area-inset-bottom, 0px));
}

/* Reviews Section */
.rev {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.rev h2 { font-size: 30px; }

.rtop {
  display: grid;
  gap: 22px;
  margin: 20px 0;
  background: var(--blush);
  border-radius: 14px;
  padding: 22px;
}

.rscore {
  text-align: center;
}

.rscore b {
  display: block;
  font-family: 'Gilda Display', serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  color: var(--maroon);
}

.rscore small {
  display: block;
  margin: 4px 0 12px;
}

.rdist button {
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  gap: 8px;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  padding: 3px 0;
  font-size: 13px;
  cursor: pointer;
}

.rdist i, .mbar, .fitbar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(93, 22, 40, 0.15);
  position: relative;
}

.rdist u, .mbar u {
  display: block;
  height: 100%;
  background: var(--maroon);
  border-radius: 99px;
}

.meters > div {
  margin-bottom: 14px;
  font-size: 14px;
}

.fitbar {
  margin: 10px 0 6px;
}

.fitbar i {
  position: absolute;
  top: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px var(--maroon);
}

.meters small {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.7;
}

.rh {
  font-size: 20px;
  margin: 6px 0 10px;
}

.ugc {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 18px;
}

.ugc div {
  flex: 0 0 92px;
  aspect-ratio: 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.rbar {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.rbar select {
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid #cdbfb7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.rlist {
  display: grid;
  gap: 14px;
}

.rc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.rc p { margin: 10px 0; }

.rh2 {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rh2 > div { flex: 1; }
.rh2 small { display: block; opacity: 0.7; font-size: 12px; }

.av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Gilda Display', serif;
  font-size: 20px;
}

.vb { color: #2E7D5B; font-weight: 600; }

.rtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rtags span {
  background: var(--blush);
  border-radius: 99px;
  font-size: 12px;
  padding: 3px 10px;
}

.rph {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 8px;
  margin: 10px 0 4px;
  position: relative;
  overflow: hidden;
}

/* Modals & Drawers */
#scrim {
  display: none !important;
}

#scrim:not([hidden]) {
  display: block !important;
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 16, 0.55);
  backdrop-filter: blur(2px);
  z-index: 80;
}

#drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 100%);
  background: var(--bg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

#drawer.open {
  transform: none;
}

.dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.dh h3 { font-size: 20px; }
.dh button { font-size: 18px; }

#db {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
}

#df {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

#df .btn {
  display: block;
  width: 100%;
}

.li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.lim {
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
}

.lit {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
  display: block;
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.qty button:not(.lnk) {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #cdbfb7;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship {
  font-size: 12.5px;
  margin-bottom: 8px;
}

.ship i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  margin-top: 5px;
}

.ship u {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 9px;
}

.subt {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 10px;
}

#search {
  display: none !important;
}

#search:not([hidden]) {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  overflow-y: auto;
  padding: 16px 16px 40px;
}

.srow {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.srow input {
  flex: 1;
  padding: 12px;
  border: 1px solid #cdbfb7;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.srow button {
  font-weight: 600;
  padding: 0 8px;
}

/* Modal Window (Bulletproof hidden by default) */
#modal {
  display: none !important;
}

#modal:not([hidden]) {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 10, 16, 0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mbox {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  padding: 22px;
  width: min(440px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

#mx {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 18px;
}

.fl {
  display: block;
  margin: 10px 0;
  font-size: 13.5px;
  font-weight: 500;
}

.fl input, .fl select, .fl textarea, .pin input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cdbfb7;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  margin-top: 4px;
}

.pin input {
  margin: 0;
  flex: 1;
}

#toast {
  display: none !important;
}

#toast:not([hidden]) {
  display: block !important;
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 120;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Product Photo Lightbox Viewer (#lb) */
#lb {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(18, 6, 10, 0.96);
  display: none;
  grid-template-rows: 1fr auto;
}

#lb:not([hidden]) {
  display: grid !important;
}

#lb[hidden] {
  display: none !important;
}

#lbstage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 12px 6px;
  touch-action: none;
  user-select: none;
}

.lbin {
  height: 100%;
  max-width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.15s;
  transform-origin: center;
}

#lbx {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lbn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lbn.l { left: 12px; }
.lbn.r { right: 12px; }

.lbfoot {
  padding: 4px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  color: #fff;
}

.lbth {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding: 6px 0;
}

.lbt {
  flex: 0 0 auto;
  width: 46px;
  aspect-ratio: 3/4;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lbt.on { border-color: var(--gold); }

.lbbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.lbbar button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.lbbar .rs {
  width: auto;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 999px;
}

#lbz { min-width: 56px; text-align: center; font-size: 14px; }

@media (min-width: 700px) {
  #lbstage { padding-left: 80px; padding-right: 80px; }
  .lbt { width: 56px; }
}

/* Cart & Checkout */
.pg {
  padding-top: 24px;
  padding-bottom: 40px;
}

.pg h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
}

.narrow2 {
  max-width: 760px;
  margin: 0 auto;
}

.cartgrid {
  display: grid;
  gap: 20px;
}

.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  align-self: start;
}

.box h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.ci {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mini {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.mini .lim {
  aspect-ratio: 3/4;
  border-radius: 6px;
}

.sr2 {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}

.sr2.g { color: #2E7D5B; }

.sr2.tot {
  font-size: 18px;
  font-weight: 600;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
}

.btn--blk {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 10px;
}

.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #cdbfb7;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
}

.opt small {
  display: block;
  opacity: 0.65;
  font-size: 12px;
}

.opt input {
  margin-top: 3px;
}

.ord {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.tl {
  list-style: none;
  margin: 14px 0;
  padding: 0 0 0 6px;
}

.tl li {
  position: relative;
  padding: 0 0 16px 26px;
  opacity: 0.45;
  font-size: 13.5px;
}

.tl li.done {
  opacity: 1;
  font-weight: 600;
}

.tl li span {
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--maroon);
  background: #fff;
}

.tl li.done span {
  background: var(--maroon);
}

.tl li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}

.tl li:last-child::before {
  display: none;
}

.tick {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2E7D5B;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

/* Trending Carousel */
.tc {
  flex: 0 0 min(60%, 200px);
  scroll-snap-align: start;
  position: relative;
}

.tstrip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.rank {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  background: var(--maroon);
  color: #fff;
  font-family: 'Gilda Display', serif;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background: var(--maroon-d);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 20px;
}

.fg {
  display: grid;
  gap: 24px;
}

footer h3 {
  font-family: 'Figtree', sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
}

footer li {
  margin-bottom: 6px;
  font-size: 13.5px;
}

footer li a:hover {
  color: #fff;
  text-decoration: underline;
}

.about {
  max-width: 34ch;
  font-size: 13px;
  margin: 10px 0 12px;
}

.soc {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
}

.pop {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pay {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pay span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
}

.copy {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  opacity: 0.7;
}

/* Bottom Tabbar for Mobile */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  font-weight: 500;
  z-index: 40;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink);
}

.tabbar a:hover {
  color: var(--maroon);
}

/* Floating WhatsApp FAB */
.wafab {
  position: fixed;
  right: 14px;
  bottom: 74px;
  z-index: 44;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: 6px;
}

#totop {
  position: fixed;
  right: 14px;
  bottom: 126px;
  z-index: 44;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-size: 16px;
}

/* ================= Mobile Specific Polish (< 768px) ================= */
@media (max-width: 767px) {
  .admin-badge-btn { display: none !important; }
  .icons { gap: 4px; }
  .hbtn { width: 38px; height: 38px; }
  .logo-img { height: 38px; max-width: 125px; }
  .logo.w .logo-img { height: 36px; max-width: 120px; }
  /* Prevent iOS automatic input zoom on focus */
  input, select, textarea { font-size: 16px !important; }
  .nav {
    max-height: 80vh;
    overflow-y: auto;
    z-index: 60;
  }
  .nav a.mo[href="admin.html"] {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 10px;
    color: #007A5C !important;
    font-weight: 700;
  }
}

/* ================= Tablet Breakpoints (>= 700px) ================= */
@media (min-width: 700px) {
  .wrap { padding: 0 24px; }
  .trust ul { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .pts { grid-template-columns: repeat(4, 1fr); }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .cpa { display: block; width: 120px; aspect-ratio: 3/4; position: relative; flex: none; }
  .three { grid-template-columns: repeat(3, 1fr); }
  .row li { flex: 1 1 0; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px 14px; }
}

/* ================= Desktop Breakpoints (>= 1024px) ================= */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar, .burger, .fdone, .fx button, #fbtn, .mo, .stk { display: none !important; }
  .nav {
    display: flex !important;
    position: static;
    border: 0;
    padding: 0;
    gap: 28px;
    margin-left: 24px;
    background: transparent;
    box-shadow: none;
  }
  .nav a {
    border: 0;
    padding: 20px 0;
    font-size: 14.5px;
    font-weight: 500;
  }
  .nav a:hover { color: var(--maroon); }
  .slg { grid-template-columns: 1.15fr 0.85fr; padding-top: 60px; padding-bottom: 60px; }
  .sla { justify-self: end; }
  .arc { width: min(100%, 360px); }
  .hn { display: flex; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 32px 18px; }
  .shop { grid-template-columns: 220px 1fr; gap: 30px; }
  .filters {
    position: sticky;
    top: 90px;
    inset: auto;
    align-self: start;
    display: block !important;
    padding: 0;
    background: none;
    overflow: visible;
  }
  .fg { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .pdp { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: clamp(32px, 4vw, 72px) !important; }
  .gal { grid-template-columns: clamp(72px, 6vw, 110px) 1fr !important; }
  .thumbs { order: 0 !important; flex-direction: column !important; overflow: visible !important; }
  .th { width: 100% !important; flex: none !important; }
  .rtop { grid-template-columns: 200px 1fr 1fr !important; align-items: center !important; }
  .rlist { grid-template-columns: repeat(2, 1fr) !important; }
  .cartgrid { grid-template-columns: 1.5fr 1fr; gap: 40px; }
  .wafab { bottom: 24px; }
  #totop { bottom: 80px; }
  .tc { flex: 0 0 calc(25% - 11px); }
}
