/* ============================================================
   Bloom Studio — warm, elegant storefront
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f3ece2;
  --border: #e8ddd0;
  --ink: #2b2320;
  --muted: #7d7066;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --accent-soft: #fdeee3;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(43, 35, 32, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(43, 35, 32, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-style: italic; }
.logo span { color: var(--accent); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.95rem; font-weight: 600; }
.nav-links a { color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

.cart-btn {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cart-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.cart-btn svg { width: 1.25rem; height: 1.25rem; }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem;
  border-radius: 999px; display: grid; place-items: center;
}

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.sub { font-size: 1.12rem; color: var(--muted); max-width: 480px; margin-bottom: 2.2rem; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Hero art: arch + petals ---------- */
.hero-art { display: flex; justify-content: center; }
.arch {
  position: relative; width: min(340px, 80vw); aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #fecaca, #fdba74 45%, #fcd34d 80%);
  border-radius: 999px 999px 24px 24px;
  display: grid; place-items: center;
  box-shadow: inset 0 -40px 80px rgba(194, 65, 12, 0.18), var(--shadow);
}
.arch-letter {
  font-family: var(--font-display); font-style: italic;
  font-size: 9rem; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 10px 40px rgba(154, 52, 18, 0.3);
}
.petal {
  position: absolute; border-radius: 50% 50% 50% 0;
  background: rgba(255, 255, 255, 0.5);
  width: 56px; height: 56px;
  animation: drift 7s ease-in-out infinite alternate;
}
.p1 { top: 14%; left: 12%; transform: rotate(-30deg); }
.p2 { top: 22%; right: 10%; transform: rotate(20deg); animation-delay: 1.2s; }
.p3 { bottom: 22%; left: 8%; transform: rotate(-10deg); animation-delay: 2.4s; }
.p4 { bottom: 14%; right: 14%; transform: rotate(40deg); animation-delay: 3.6s; }
@keyframes drift {
  from { translate: 0 0; }
  to   { translate: 0 -12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(194, 65, 12, 0.28); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 0.7rem;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-sub { color: var(--muted); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }

.product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #e3b59a; }

.product-art {
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative;
  transition: transform 0.3s ease;
}
.product:hover .product-art { transform: scale(1.02); }
.monogram {
  font-family: var(--font-display); font-style: italic;
  font-size: 5.5rem; font-weight: 600; color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 8px 30px rgba(90, 40, 10, 0.25);
}
.art-1 { background: linear-gradient(150deg, #fb7185, #f472b6 55%, #fbbf24); }
.art-2 { background: linear-gradient(150deg, #f43f5e, #fda4af 55%, #fcd34d); }
.art-3 { background: linear-gradient(150deg, #a78bfa, #f0abfc 55%, #fde68a); }
.art-4 { background: linear-gradient(150deg, #166534, #4ade80 55%, #a3e635); }
.art-5 { background: linear-gradient(150deg, #57534e, #a8a29e 55%, #d6d3d1); }
.art-6 { background: linear-gradient(150deg, #b91c1c, #f87171 55%, #fcd34d); }

.product-info { padding: 1.3rem 1.4rem 1.5rem; }
.product-cat {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); background: var(--accent-soft);
  padding: 0.22rem 0.65rem; border-radius: 999px;
}
.product h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0.65rem 0 0.8rem; }
.product-row { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.15rem; font-weight: 700; }
.add-btn {
  background: var(--ink); color: #fff; border: 0;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.add-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.about-grid h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em; }
.about-grid h2 em { font-style: italic; color: var(--accent); }
.about-text p { color: var(--muted); margin-bottom: 1.6rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.about-stat {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem 1.2rem;
}
.about-stat strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.about-stat span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 3.5rem; text-align: center; max-width: 720px; margin-inline: auto; box-shadow: var(--shadow);
}
.contact-box h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.15; margin-bottom: 0.7rem; }
.contact-box h2 em { font-style: italic; color: var(--accent); }
.contact-box .section-sub { margin-bottom: 2rem; }
.contact-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.4rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal { font-size: 0.85rem; color: var(--muted); }
.footer-legal a { color: var(--accent); font-weight: 600; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(43, 35, 32, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.3s ease;
}
.cart-overlay.show { opacity: 1; }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(400px, 92vw);
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(43, 35, 32, 0.18);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart.open { transform: none; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.cart-close {
  background: var(--surface-2); border: 1px solid var(--border);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  font-size: 1.15rem; line-height: 1; color: var(--ink);
  transition: border-color 0.2s ease;
}
.cart-close:hover { border-color: var(--accent); }

.cart-items { flex-grow: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.cart-empty { color: var(--muted); font-size: 0.95rem; padding: 1.4rem 0; }

.cart-item {
  display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0.9rem;
  align-items: center; padding: 0.9rem 0; border-bottom: 1px dashed var(--border);
}
.ci-art {
  width: 3.4rem; height: 3.4rem; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: #fff;
}
.ci-info h4 { font-size: 0.92rem; font-weight: 600; }
.ci-info span { font-size: 0.85rem; color: var(--muted); }
.ci-qty { display: flex; align-items: center; gap: 0.45rem; }
.ci-qty button {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.95rem; line-height: 1; color: var(--ink);
}
.ci-qty button:hover { border-color: var(--accent); }
.ci-qty span { min-width: 1.2rem; text-align: center; font-weight: 600; font-size: 0.9rem; }
.ci-remove {
  grid-column: 2 / 4; justify-self: start;
  background: none; border: 0; padding: 0;
  font-size: 0.78rem; font-weight: 600; color: var(--muted); text-decoration: underline;
}
.ci-remove:hover { color: var(--accent); }

.cart-foot { padding: 1.2rem 1.6rem 1.6rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total span { color: var(--muted); font-size: 0.9rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.cart-note { font-size: 0.88rem; margin-top: 0.8rem; text-align: center; min-height: 1.3em; }
.cart-note.ok { color: #15803d; }
.cart-note.err { color: #b91c1c; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { order: -1; }
  .section { padding: 4.5rem 0; }
  .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-box { padding: 2.4rem 1.6rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .petal { animation: none; }
}
