:root {
  --bg: #FDFBF8;
  --outer: #EAE4DB;
  --card: #FFFFFF;
  --soft: #F4EFE9;
  --ink: #171514;
  --muted: #655C53;
  --gold: #C69C6D;
  --gold-dark: #9B7146;
  --gold-soft: #EFE3D2;
  --wa: #1E8E4E;
  --border: rgba(198, 156, 109, 0.28);
  --shadow: 0 10px 26px rgba(23, 21, 20, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--outer);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

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

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

.app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: 92px;
  box-shadow: 0 0 40px rgba(23, 21, 20, 0.08);
}

/* ---------- HEADER ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 251, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--ink);
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #FDFBF8;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(23, 21, 20, 0.16);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 12px;
}

.hero-accent {
  position: absolute;
  top: -36px;
  right: -36px;
  width: 170px;
  height: 155px;
  background: linear-gradient(135deg, #D9B78C 0%, #C69C6D 55%, #9B7146 100%);
  border-bottom-left-radius: 90px;
  opacity: 0.28;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  max-width: 320px;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 340px;
}

/* ---------- CATEGORY FILTER BAR ---------- */
.cat-bar-wrap {
  position: sticky;
  top: 63px;
  z-index: 25;
  background: rgba(253, 251, 248, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(198, 156, 109, 0.18);
  padding: 10px 16px;
}

.cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.cat-pill.is-active {
  background: var(--ink);
  color: #FDFBF8;
  border-color: var(--ink);
}

/* ---------- PRODUCT LIST ---------- */
.catalog-list {
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-wrap {
  position: relative;
  background: var(--soft);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 4.3;
  scroll-snap-align: start;
  position: relative;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #171514;
  display: block;
}

.slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(23, 21, 20, 0.78);
  color: #FDFBF8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  pointer-events: none;
}

.slide-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(253, 251, 248, 0.92);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  border: 1px solid rgba(23, 21, 20, 0.08);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(253, 251, 248, 0.88);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  z-index: 4;
}

.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }

.dots-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 0 4px;
  background: var(--card);
}

.dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #DFD5C9;
  transition: width 0.2s, background 0.2s;
}

.dot-btn.is-active {
  width: 22px;
  background: var(--gold-dark);
}

/* ---------- CARD BODY ---------- */
.card-body {
  padding: 8px 16px 16px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ref-chip {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--gold-dark);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 8px;
}

.note-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  padding: 4px 10px;
  border-radius: 8px;
}

.note-chip.is-video {
  color: #FFFFFF;
  background: linear-gradient(135deg, #C69C6D 0%, #9B7146 100%);
}

.card-title-price {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink);
}

.card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.sizes-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sizes-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.size-pill {
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.size-pill.is-selected {
  background: var(--ink);
  color: #FDFBF8;
  border-color: var(--ink);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

.btn-add {
  padding: 12px 10px;
  border-radius: 13px;
  background: var(--soft);
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

.btn-wa {
  padding: 12px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, #C69C6D 0%, #9B7146 100%);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 14px rgba(155, 113, 70, 0.26);
}

/* ---------- FOOTER ---------- */
.site-footer {
  margin: 18px 16px 10px;
  padding: 18px 16px;
  background: var(--ink);
  color: #FDFBF8;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold);
  margin-bottom: 2px;
}

.footer-phone {
  font-size: 16px;
  font-weight: 800;
}

.footer-ig {
  font-size: 13px;
  font-weight: 700;
  color: #E3C499;
}

/* ---------- FLOATING CART BAR ---------- */
.floating-cart {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 452px;
  background: var(--ink);
  color: #FDFBF8;
  border-radius: 18px;
  padding: 12px 14px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 40;
  box-shadow: 0 14px 32px rgba(23, 21, 20, 0.34);
  border: 1px solid rgba(198, 156, 109, 0.45);
}

.floating-cart.is-visible {
  display: flex;
}

.fc-meta {
  font-size: 12px;
  color: #DFD5C9;
  font-weight: 600;
}

.fc-total {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}

.fc-cta {
  background: linear-gradient(135deg, #C69C6D 0%, #9B7146 100%);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ---------- DRAWER & LIGHTBOX ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 21, 20, 0.56);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.backdrop.is-open {
  display: flex;
}

.drawer {
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  background: var(--bg);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

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

.drawer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-items {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 46vh;
}

.drawer-empty {
  text-align: center;
  padding: 26px 12px;
  color: var(--muted);
  font-size: 14px;
}

.cart-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ci-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.ci-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 16px;
  font-weight: 800;
}

.qty-num {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
}

.btn-wa-full {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--wa);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 12, 0.94);
  z-index: 80;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox.is-open {
  display: flex;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 24px;
}

.lb-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  object-fit: contain;
}

.lb-caption {
  margin-top: 12px;
  color: #EAE4DB;
  font-size: 13.5px;
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--ink);
  color: #FDFBF8;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 70;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
