:root {
  --magenta: #C2186B;
  --magenta-deep: #8E1050;
  --magenta-soft: #E11D74;
  --blush: #F7D6E4;
  --blush-2: #FBEAF1;
  --cream: #FFF8F4;
  --ivory: #FFFCF9;
  --petal: #F3C1D3;
  --gold: #C9A24A;
  --gold-soft: #E8D5A3;
  --ink: #2A1220;
  --ink-soft: #5A3A48;
  --muted: #8A6B76;
  --sage: #5C7A62;
  --leaf: #2F4A38;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(139, 16, 80, 0.12);
  --shadow-sm: 0 8px 24px rgba(42, 18, 32, 0.08);
  --radius: 22px;
  --max: 1180px;
  --nav-h: 92px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
  height: auto;
}
body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fde7f0 0%, transparent 50%),
    radial-gradient(900px 500px at 110% 10%, #f8e8c9 0%, transparent 45%),
    linear-gradient(180deg, #fff8f6 0%, #fff 40%, #fdf3f7 100%);
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: visible;
  line-height: 1.6;
}
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: #fbeaf1; }
body::-webkit-scrollbar-thumb { background: #c2186b; border-radius: 99px; border: 2px solid #fbeaf1; }
html { scrollbar-color: #c2186b #fbeaf1; scrollbar-width: auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Petal field background */
.garden-bg {
  position: relative;
  overflow: visible;
}
.garden-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(225, 29, 116, 0.08) 0 18px, transparent 19px),
    radial-gradient(circle at 88% 30%, rgba(201, 162, 74, 0.12) 0 12px, transparent 13px),
    radial-gradient(circle at 70% 80%, rgba(194, 24, 107, 0.07) 0 22px, transparent 23px);
  pointer-events: none;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(105deg, #E7F3EC 0%, #EDE4F6 48%, #F3E3F0 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122, 86, 148, 0.18);
  box-shadow: 0 8px 22px rgba(90, 60, 110, 0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(var(--max), calc(100% - 40px)); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: auto; height: 64px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(80, 40, 90, 0.12));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem; letter-spacing: 0.04em;
  color: #5A2E6B;
}
.brand-text span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: #6B7D72; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 0.92rem; color: #4A3A58; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--magenta); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(122, 86, 148, 0.22);
  background: rgba(255,255,255,.72); display: grid; place-items: center;
  position: relative; cursor: pointer; color: #5A2E6B;
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--magenta); color: white; border-radius: 99px;
  min-width: 18px; height: 18px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; padding: 0 4px;
}
.menu-toggle { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 0.92rem;
  transition: .2s transform, .2s box-shadow, .2s background;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--magenta-soft), var(--magenta-deep)); color: white; box-shadow: 0 10px 24px rgba(194,24,107,.28); }
.btn-gold { background: linear-gradient(135deg, #e8d5a3, var(--gold)); color: #3a2a08; }
.btn-ghost { background: transparent; border: 1.5px solid var(--magenta); color: var(--magenta-deep); }
.btn-wa { background: #25D366; color: white; }
.btn-dark { background: var(--ink); color: white; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center;
  padding: 40px 0 70px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--magenta); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 700; margin-bottom: 14px;
}
.hero h1, .page-hero h1, h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.95; color: var(--magenta-deep);
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--magenta-soft); }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; }
.stat strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; color: var(--magenta-deep); }
.stat span { font-size: 0.78rem; color: var(--muted); letter-spacing: .04em; }
.hero-collage { position: relative; height: 620px; }
.hero-collage img {
  position: absolute; object-fit: cover; border-radius: 28px;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255,255,255,.7);
}
.hero-collage .a { width: 68%; height: 70%; right: 0; top: 0; }
.hero-collage .b { width: 48%; height: 42%; left: 0; bottom: 40px; }
.hero-collage .c { width: 28%; height: 28%; right: 8%; bottom: 0; border-radius: 50%; }
.petal {
  position: absolute; width: 18px; height: 26px; background: var(--magenta-soft);
  border-radius: 80% 0 80% 0; opacity: .25; animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(-18px) rotate(-8deg); }
}

/* SECTIONS */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); color: var(--magenta-deep); }
.section-head p { color: var(--ink-soft); margin-top: 10px; }

.cards-3, .cards-4 { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(194,24,107,.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .25s transform, .25s box-shadow;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; }
.card h3 { font-size: 1.4rem; color: var(--magenta-deep); margin-bottom: 6px; }
.price { color: var(--magenta); font-weight: 700; font-size: 1.05rem; }
.price small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.chip {
  display: inline-block; background: var(--blush-2); color: var(--magenta-deep);
  border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}

/* PAGE HERO */
.page-hero {
  padding: 64px 0 40px;
  background:
    linear-gradient(180deg, rgba(247,214,228,.55), transparent),
    radial-gradient(600px 200px at 80% 0%, rgba(201,162,74,.18), transparent);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); color: var(--magenta-deep); }
.page-hero p { color: var(--ink-soft); max-width: 620px; margin: 10px auto 0; }

/* SHOP */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid rgba(194,24,107,.16); background: white; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; color: var(--ink-soft);
}
.filter-btn.active { background: var(--magenta); color: white; border-color: transparent; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card .img-wrap { position: relative; }
.product-card img { height: 260px; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: white; color: var(--magenta-deep); padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
}
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.qty-row input { width: 56px; text-align: center; border: 1px solid #ead5dc; border-radius: 10px; padding: 8px; }

/* CART */
.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  background: white; padding: 14px; border-radius: 18px; margin-bottom: 12px;
  border: 1px solid rgba(194,24,107,.08);
}
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; }
.summary {
  background: white; border-radius: 22px; padding: 24px;
  border: 1px solid rgba(194,24,107,.1); position: sticky; top: 100px;
}
.row-between { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.hr { height: 1px; background: #f1dde4; margin: 14px 0; }

/* FORMS */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #ebccd8; background: white; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.notice {
  background: var(--blush-2); border-left: 4px solid var(--magenta);
  padding: 14px 16px; border-radius: 12px; color: var(--ink-soft); font-size: .92rem;
}

/* GALLERY */
.masonry {
  columns: 3; column-gap: 16px;
}
.masonry figure { break-inside: avoid; margin-bottom: 16px; position: relative; }
.masonry img { width: 100%; border-radius: 18px; }
.masonry figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(42,18,32,.55); color: white; padding: 8px 10px;
  border-radius: 10px; font-size: .78rem; backdrop-filter: blur(6px);
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: 28px; height: 520px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.story p { margin-bottom: 14px; color: var(--ink-soft); }

/* POLICIES */
.policy { background: white; border-radius: 20px; padding: 22px; margin-bottom: 14px; border: 1px solid rgba(194,24,107,.08); }
.policy h3 { color: var(--magenta-deep); margin-bottom: 8px; }

/* FOOTER */
footer {
  background: #2A1220; color: #f7d6e4; padding: 56px 0 40px; margin-top: 40px;
  position: relative; z-index: 2;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; color: white; margin-bottom: 12px; }
footer a, footer p { color: #e9c5d4; font-size: .92rem; display: block; margin-bottom: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 16px; font-size: .8rem; color: #c9a0b0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* FLOATING */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  background: #25D366; color: white; border-radius: 999px;
  padding: 14px 18px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 30px rgba(37,211,102,.35); font-weight: 700;
}

/* AUTH MODAL */
.modal-bg {
  position: fixed; inset: 0; background: rgba(42,18,32,.45);
  display: none; place-items: center; z-index: 90; padding: 20px;
}
.modal-bg.open { display: grid; }
.modal {
  width: min(440px, 100%); background: white; border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; }

/* TOAST */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: white; padding: 12px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.book-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
@media (max-width: 980px) {
  .hero-grid, .cart-layout, .about-grid, .cards-3, .cards-4, .product-grid, .foot-grid, .form-grid, .book-layout {
    grid-template-columns: 1fr;
  }
  .hero-collage { height: 420px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: linear-gradient(180deg, #EDE4F6, #E7F3EC); padding: 18px; border-bottom: 1px solid rgba(122, 86, 148, 0.18);
  }
  .menu-toggle { display: grid; }
  .masonry { columns: 2; }
  .hero { min-height: auto; padding-top: 24px; }
}
@media (max-width: 620px) {
  .masonry { columns: 1; }
  .hero-collage { height: 340px; }
}

/* ADMIN */
.admin-shell { min-height: 100vh; }
.admin-top {
  background: linear-gradient(105deg, #E7F3EC, #EDE4F6);
  padding: 18px 0; border-bottom: 1px solid rgba(122,86,148,.18);
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center;
  background: white; border: 1px solid rgba(194,24,107,.1); border-radius: 16px; padding: 12px; margin-bottom: 10px;
}
.admin-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.admin-login { max-width: 420px; margin: 80px auto; background: white; padding: 28px; border-radius: 24px; box-shadow: var(--shadow); }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .editor-grid, .admin-row { grid-template-columns: 1fr; } }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.video-card video {
  width: 100%; height: 420px; object-fit: cover; background: #1a1016; display: block;
}
.video-card .card-body h3 { margin: 4px 0 8px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } .video-card video { height: 520px; } }
