/* Viomi Fashion Boutique — matched to the Claude design (Cormorant Garamond + Mulish) */

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; } /* author img{display:block} must not unhide hidden elements */

html { scroll-behavior: smooth; }
body {
  background: #faf5ef;
  color: #3a2418;
  font-family: 'Mulish', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: #a9673f; text-decoration: none; }
::selection { background: #eccdb2; }

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }

/* shared wrapper */
.wrap { max-width: 1280px; margin: 0 auto; padding: clamp(52px, 7vw, 84px) clamp(20px, 4.5vw, 44px); }

/* ---------- announcement ---------- */
.announce {
  background: #3a2418; color: #f3e3d3;
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; line-height: 1.5; padding: 9px 20px;
}

/* ---------- header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8d5c2;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 44px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 38%; border: 1px solid #d9b391; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; letter-spacing: 0.14em; color: #3a2418; }
.brand-tag { font-size: 9.5px; letter-spacing: 0.34em; color: #a9673f; margin-top: 3px; }

#site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; }
#site-nav a { color: #3a2418; }
#site-nav a:hover { color: #a9673f; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cur-toggle {
  background: none; border: 1px solid #cfa27c; color: #7e4a2c;
  border-radius: 999px; padding: 7px 14px;
  font-family: 'Mulish', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer;
}
.cur-toggle:hover { background: #f3e3d3; }
.cur-toggle.active { background: #3a2418; color: #f3e3d3; border-color: #3a2418; }
.wish { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #a9673f; cursor: default; }
.wa-btn { background: #a9673f; color: #fdf8f2; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.wa-btn:hover { background: #7e4a2c; color: #fdf8f2; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: none; border-radius: 999px; cursor: pointer; font-family: 'Mulish', sans-serif; font-weight: 700; text-align: center; transition: background 0.15s ease; }
.btn-dark { background: #3a2418; color: #f3e3d3; padding: 14px 28px; font-size: 14px; }
.btn-dark:hover { background: #7e4a2c; color: #fdf8f2; }
.btn-outline { border: 1.5px solid #a9673f; color: #7e4a2c; padding: 12px 26px; font-size: 14px; background: transparent; }
.btn-outline:hover { background: #f9ede0; }
.btn-nowrap { white-space: nowrap; }
.btn-block { width: 100%; padding: 13px 0; }

/* ---------- eyebrows & headings ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #a9673f; margin-bottom: 12px; }
.eyebrow-light { color: #d9a877; }
.h2-light { color: #f9efe3; }
.section-head { display: flex; align-items: flex-end; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 5.5vw, 44px); color: #3a2418; margin: 0; }
.section-lead { max-width: 380px; font-size: 14px; line-height: 1.65; color: #6b4a35; margin: 0; text-wrap: pretty; }
.section-lead-light { color: #cfa98a; max-width: 340px; }
.section-lead-wide { max-width: 560px; font-size: 14.5px; margin: -16px 0 32px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #f3ddc9 0%, #ecc9ab 100%);
  padding: clamp(44px, 7vw, 72px) clamp(20px, 4.5vw, 44px) clamp(56px, 8vw, 84px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 620px; justify-self: end; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #a9673f; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 7vw, 62px); font-weight: 600; line-height: 1.06; margin: 0 0 22px; color: #3a2418; text-wrap: pretty; }
.hero-sub { font-size: 16.5px; line-height: 1.7; color: #6b4a35; margin: 0 0 32px; max-width: 480px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 12.5px; font-weight: 600; color: #7e4a2c; letter-spacing: 0.02em; }
.hero-trust span::before { content: '✦ \00a0'; }

#hero-art { position: relative; height: 520px; max-width: 560px; width: 100%; display: flex; align-items: center; justify-content: center; }
.hero-logo {
  width: 342px; max-width: 100%; height: 530px;
  object-fit: cover; border-radius: 160px 160px 18px 18px;
  box-shadow: 0 24px 48px rgba(122, 74, 44, 0.28); border: 6px solid #fdf8f2;
}
.hero-badge {
  position: absolute; left: clamp(20px, 4.5vw, 44px); bottom: clamp(22px, 3.5vw, 44px);
  background: #fdf8f2; border-radius: 14px; padding: 16px 22px;
  box-shadow: 0 14px 30px rgba(122, 74, 44, 0.2);
}
.hero-badge-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: #3a2418; }
.hero-badge-sub { font-size: 12px; font-weight: 600; color: #a9673f; letter-spacing: 0.06em; margin-top: 2px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card {
  background: #fdf8f2; border: 1px solid #eeddca; border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card-media { position: relative; }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(58, 36, 24, 0.85); color: #f3e3d3;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.card-heart {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(253, 248, 242, 0.92); color: #a98a6e; font-size: 16px; line-height: 1;
}
.card-heart.active { color: #c0392b; }
.card-admin { position: absolute; top: 56px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.card-admin button {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(58, 36, 24, 0.85); color: #f3e3d3; font-size: 14px;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 700; color: #3a2418; line-height: 1.2; }
.card-fabric { font-size: 12.5px; color: #8a6a52; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.card-price { font-size: 18px; font-weight: 700; color: #7e4a2c; }
.card-sizes { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: #a98a6e; }
.card-reserve {
  display: block; text-align: center; background: #a9673f; color: #fdf8f2;
  border-radius: 999px; padding: 11px 0; font-size: 13px; font-weight: 700; margin-top: 6px;
}
.card-reserve:hover { background: #7e4a2c; color: #fdf8f2; }

/* saree placeholders */
.slot {
  aspect-ratio: 3 / 4; border-radius: 16px;
  border: 1.5px dashed #d8c3a8;
  background: linear-gradient(160deg, #f8f0e4 0%, #f1e4d2 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center; padding: 1.5rem;
}
.slot-icon {
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: 12px;
  display: grid; place-items: center; background: #fdf8f2;
  box-shadow: 0 6px 16px rgba(122, 74, 44, 0.1);
}
.slot-icon svg { width: 32px; height: 32px; }
.slot-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: #7e4a2c; }
.slot-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #a98a6e; }
.slot-add {
  margin-top: 14px; font-size: 12.5px; font-weight: 700; color: #a9673f;
  border: 1px solid #d8c3a8; border-radius: 999px; padding: 6px 14px;
  background: #fdf8f2; cursor: pointer;
}
.slot-add:hover { background: #f3e3d3; color: #7e4a2c; }

/* ---------- reels ---------- */
.reels-section { background: #3a2418; padding: clamp(48px, 7vw, 76px) 0; }
.reels-section .wrap { padding-top: 0; padding-bottom: 0; }
.reels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.reel { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: #241810; cursor: pointer; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 18px; background: linear-gradient(to top, rgba(42, 26, 16, 0.7), rgba(42, 26, 16, 0) 45%);
  color: #f9efe3; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; pointer-events: none;
}
.reel-overlay span::before { content: '▶ \00a0'; }
.reel.playing .reel-overlay { opacity: 0; }

/* ---------- story ---------- */
.story-section { background: linear-gradient(160deg, #f3ddc9 0%, #ecc9ab 100%); padding: clamp(52px, 7vw, 84px) clamp(20px, 4.5vw, 44px); }
#story-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.story-img { width: 100%; height: 440px; object-fit: cover; border-radius: 160px 160px 18px 18px; border: 6px solid #fdf8f2; box-shadow: 0 24px 48px rgba(122, 74, 44, 0.25); }
.story-section h2 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 20px; color: #3a2418; text-wrap: pretty; }
.story-p { font-size: 15px; line-height: 1.75; color: #6b4a35; margin: 0 0 16px; text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.stat { background: #fdf8f2; border-radius: 14px; padding: 18px; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700; color: #7e4a2c; }
.stat-label { font-size: 12px; font-weight: 600; color: #8a6a52; letter-spacing: 0.04em; }

/* ---------- how it works ---------- */
.how-head { text-align: center; margin-bottom: 44px; }
.how-head h2 { font-size: clamp(30px, 5vw, 42px); color: #3a2418; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.step { background: #fdf8f2; border: 1px solid #eeddca; border-radius: 16px; padding: 26px; }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 700; color: #d9a877; }
.step-title { font-size: 15.5px; font-weight: 700; color: #3a2418; margin: 10px 0 8px; }
.step p { font-size: 13px; line-height: 1.6; color: #6b4a35; margin: 0; }

/* ---------- footer ---------- */
#visit { background: #3a2418; color: #e9d3bd; padding: clamp(44px, 7vw, 64px) clamp(20px, 4.5vw, 44px) 32px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 38%; }
.footer-brand span { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; letter-spacing: 0.12em; color: #f9efe3; }
.footer-blurb { font-size: 13px; line-height: 1.7; color: #cfa98a; margin: 0; max-width: 300px; }
.footer-h { font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #d9a877; margin-bottom: 14px; }
#visit p { font-size: 13px; line-height: 1.8; color: #e9d3bd; margin: 0 0 2px; }
#visit a { color: #f9efe3; }
#visit a:hover { color: #d9a877; }
.footer-bar {
  max-width: 1280px; margin: 40px auto 0; border-top: 1px solid rgba(233, 211, 189, 0.2);
  padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 12px; color: #a98a6e;
}

/* ---------- admin ---------- */
.admin-fab { position: fixed; bottom: 18px; right: 18px; z-index: 90; display: flex; gap: 10px; }
.admin-fab .btn { padding: 11px 20px; font-size: 13px; }
.admin-fab .btn-outline { background: #faf5ef; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(30, 20, 12, 0.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-card { background: #faf5ef; border-radius: 20px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; padding: 1.8rem; position: relative; box-shadow: 0 24px 60px rgba(20, 12, 6, 0.35); }
.modal-wide { max-width: 760px; }
.modal-close { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 1.6rem; cursor: pointer; color: #8a6a52; }
.modal-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; color: #3a2418; }
.modal-sub { font-size: 0.82rem; color: #8a6a52; margin-bottom: 1.2rem; }
.modal input, .modal select, .modal textarea { width: 100%; font: inherit; font-size: 0.88rem; padding: 0.55rem 0.8rem; border: 1px solid #d8c8b4; border-radius: 10px; background: #fffdf9; margin-top: 0.25rem; }
.modal textarea { min-height: 74px; resize: vertical; }
.modal label { display: block; font-size: 0.78rem; font-weight: 700; color: #6b5138; margin-bottom: 0.85rem; }
.modal label small { font-weight: 400; color: #8a6a52; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-error { color: #b03a2e; font-size: 0.8rem; min-height: 1.1em; margin-bottom: 0.6rem; }
.product-preview { border-radius: 12px; max-height: 200px; object-fit: cover; margin-bottom: 0.8rem; width: 100%; }

.tabs { display: flex; gap: 0.4rem; margin: 1rem 0 1.2rem; flex-wrap: wrap; }
.tab { border: 1px solid #d8c8b4; background: #fffdf9; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; cursor: pointer; }
.tab.active { background: #3a2418; color: #f5e9db; border-color: #3a2418; }

.admin-list { display: flex; flex-direction: column; gap: 0.6rem; }
.admin-row { display: flex; align-items: center; gap: 0.8rem; background: #fffdf9; border: 1px solid #eeddca; border-radius: 12px; padding: 0.5rem 0.7rem; }
.admin-row img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row .name { font-weight: 700; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row .sub { font-size: 0.72rem; color: #8a6a52; }
.admin-row button { border: none; background: #f3e9db; border-radius: 8px; padding: 0.35rem 0.6rem; cursor: pointer; font-size: 0.78rem; font-weight: 600; }
.admin-row button.danger { color: #b03a2e; }
.admin-add { margin-top: 1rem; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.switch-row .hint { font-size: 0.72rem; color: #8a6a52; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #3a2418; color: #f5e9db; border-radius: 999px; padding: 0.6rem 1.4rem; font-size: 0.84rem; z-index: 200; box-shadow: 0 10px 30px rgba(59, 42, 29, 0.2); }

/* ---------- responsive (mirrors the design) ---------- */
@media (max-width: 900px) {
  #site-header { flex-wrap: wrap; justify-content: space-between; row-gap: 10px; padding: 10px 18px; gap: 14px; }
  #site-nav { order: 5; width: 100%; justify-content: center; margin-left: 0; flex-wrap: wrap; gap: 14px 22px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { justify-self: stretch; }
  .hero-badge { position: static; justify-self: start; width: max-content; margin-top: -8px; }
  #story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-img { height: 320px; }
  .section-lead-wide { margin-top: 0; }
}
@media (max-width: 700px) {
  #hero-art { height: auto; max-width: 340px; margin: 0 auto; }
  .hero-logo { width: 100%; height: auto; aspect-ratio: 342 / 530; border-radius: 130px 130px 14px 14px; }
  .footer-bar { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}
