:root {
  --outer: #EFE9E3;
  --bg: #FBF9F6;
  --pastel: linear-gradient(155deg, #F6ECE7 0%, #EFE4DC 100%);
  --frame: #F4EEE8;
  --card: #FFFFFF;
  --ink: #1F1B18;
  --muted: #8B7E74;
  --gold: #B8956A;
  --gold-dark: #9E7B52;
  --border: rgba(184, 149, 106, 0.22);
  --shadow: 0 8px 28px rgba(31, 27, 24, 0.045);
}

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

html, body {
  background: var(--outer);
  color: var(--ink);
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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: 64px;
  box-shadow: 0 0 48px rgba(31, 27, 24, 0.06);
}

/* ---------- HEADER ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 149, 106, 0.14);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}

.brand-word {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--ink);
  padding-left: 6px;
}

.bag-btn {
  position: relative;
  width: 38px;
  height: 38px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 50%;
}

.bag-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.bag-count.is-visible {
  display: inline-flex;
}

/* ---------- HERO ---------- */
.hero {
  padding: 14px 18px 8px;
}

.hero-card {
  background: var(--pastel);
  border: 1px solid rgba(184, 149, 106, 0.18);
  border-radius: 22px;
  padding: 26px 20px;
  text-align: center;
}

.hero-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.12;
  color: var(--ink);
}

/* ---------- STICKY NAVIGATION ---------- */
.nav-sticky {
  position: sticky;
  top: 66px;
  z-index: 25;
  background: rgba(251, 249, 246, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 149, 106, 0.16);
}

.cat-tabs {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
}

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

.cat-tab {
  flex-shrink: 0;
  padding: 11px 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cat-tab.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

.sub-tabs {
  display: none;
  gap: 7px;
  padding: 9px 16px 11px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(184, 149, 106, 0.10);
}

.sub-tabs.is-open {
  display: flex;
}

.sub-tabs::-webkit-scrollbar {
  display: none;
}

.sub-pill {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: #F4EEE8;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.sub-pill.is-active {
  background: #E8DAD1;
  color: var(--ink);
  font-weight: 600;
}

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

.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(--frame);
}

.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.35;
  scroll-snap-align: start;
  position: relative;
  background: var(--frame);
  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: #1F1B18;
  display: block;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(251, 249, 246, 0.78);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 4;
}

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

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

.dot-btn {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #E2D9D0;
  transition: width 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.dot-btn.is-video {
  width: 14px;
  height: 14px;
  background: #EFE4DC;
  color: var(--gold-dark);
  font-size: 8px;
  line-height: 1;
}

.dot-btn.is-video.is-active {
  width: 18px;
  background: var(--gold);
  color: #FFFFFF;
}

/* ---------- MINIMALIST CARD INFO ---------- */
.card-body {
  padding: 10px 18px 18px;
}

.card-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
}

.card-sub {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.card-price-col {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.card-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.save-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.38);
  background: #FBF9F6;
  color: var(--gold-dark);
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.save-btn.is-saved {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
  font-size: 13px;
}

.sizes-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.size-pill {
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #F4EEE8;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

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

/* ---------- SOLD OUT (QUIET LUXURY DUSTY ROSE PASTEL) ---------- */
.soldout-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(164, 93, 100, 0.92);
  color: #FBF9F6;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(130, 66, 73, 0.22);
  pointer-events: none;
}

.product-card.is-soldout .carousel-slide img {
  filter: saturate(0.72) brightness(0.95);
}

.product-card.is-soldout .card-title {
  color: #5C534C;
}

.product-card.is-soldout .card-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  font-size: 15px;
}

.soldout-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: #F5E6E7;
  border: 1px solid rgba(164, 93, 100, 0.25);
  color: #9C535A;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  margin: 28px 18px 8px;
  padding: 26px 20px;
  background: var(--pastel);
  border: 1px solid rgba(184, 149, 106, 0.22);
  border-radius: 22px;
  text-align: center;
}

.footer-kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.6px;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.footer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-phone {
  display: inline-block;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.copy-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(184, 149, 106, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ---------- FLOATING BAR & DRAWER ---------- */
.floating-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 444px;
  background: var(--ink);
  color: #FBF9F6;
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 40;
  box-shadow: 0 12px 30px rgba(31, 27, 24, 0.28);
}

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

.fb-text {
  font-size: 13px;
  font-weight: 500;
}

.fb-cta {
  background: var(--gold);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 24, 0.45);
  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: 26px;
  border-top-right-radius: 26px;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.drawer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px;
  font-weight: 600;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F4EEE8;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.ci-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

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

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

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F4EEE8;
  font-size: 15px;
  font-weight: 600;
}

.qty-num {
  min-width: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

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

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

.btn-wa-full {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #FBF9F6;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  display: block;
}

.drawer-phone-hint {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 15, 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: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 22px;
}

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

.lb-caption {
  margin-top: 12px;
  color: #EFE9E3;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
}

.toast {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--ink);
  color: #FBF9F6;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 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);
}
