/* Flower Of Happy — base styles (from Figma "00 — Design System") */

:root {
  --cream: #fff9f2;
  --white: #ffffff;
  --blush: #f7c8d5;
  --blush-50: #fdeef2;
  --rose: #e894ad;
  --rose-600: #c9708b;
  --forest: #294b3a;
  --forest-700: #1e382b;
  --sage: #a9bfa5;
  --sage-50: #eef3ec;
  --charcoal: #292929;
  --muted: #6b6560;
  --line: #eadfd6;
  --error: #b8433a;
  --success: #2f6b4f;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --pill: 999px;

  --container: 1280px;
  --gutter: 80px;
  --section: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font: 400 16px/26px var(--sans);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section--blush { background: var(--blush-50); }
.section--sage { background: var(--sage-50); }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 400; color: var(--forest); margin: 0; }
.display { font-size: 76px; line-height: 84px; }
.display em, .h1 em, .h2 em { font-style: italic; }
.h1 { font-size: 46px; line-height: 54px; }
.h2 { font-size: 38px; line-height: 46px; }
.h3 { font-size: 28px; line-height: 36px; }
.h4 { font-size: 22px; line-height: 30px; font-weight: 500; }
.body-l { font-size: 18px; line-height: 29px; }
.body-s { font-size: 14px; line-height: 22px; }
.caption { font-size: 12px; line-height: 18px; }
.muted { color: var(--muted); }
.eyebrow {
  font: 600 12px/16px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-600);
}
.price { font: 500 18px/24px var(--sans); color: var(--charcoal); }

.section-heading { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading--left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 32px;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  font: 600 15px/20px var(--sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 40px; padding: 10px 20px; font-size: 13px; }
.btn--primary { background: var(--forest); color: var(--white); }
.btn--primary:hover { background: var(--forest-700); }
.btn--blush { background: var(--blush); color: var(--forest); }
.btn--blush:hover { background: var(--rose); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--link { padding-left: 0; padding-right: 0; color: var(--forest); }
.btn--link:hover { text-decoration: underline; }
.btn--sold-out, .btn:disabled { background: var(--line); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.announcement {
  background: var(--forest);
  color: var(--white);
  text-align: center;
  font: 500 13px/18px var(--sans);
  padding: 11px 16px;
}
.header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1.1 var(--serif); letter-spacing: -0.01em; color: var(--forest); }
.logo em { font-style: italic; }
.logo img { width: 36px; height: 36px; }
.logo--blush { color: var(--blush); }

.nav { display: flex; gap: 36px; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-top: 4px;
  font: 500 15px/20px var(--sans);
  letter-spacing: 0.005em;
  color: var(--charcoal);
}
.nav a::after { content: ""; width: 20px; height: 2px; border-radius: 1px; background: var(--rose); opacity: 0; }
.nav a:hover, .nav a.is-active { color: var(--forest); }
.nav a.is-active::after { opacity: 1; }

.header__actions { display: flex; align-items: center; gap: 22px; }
.icon-btn { display: inline-flex; background: none; border: 0; padding: 0; position: relative; }
.icon-btn img { width: 22px; height: 22px; }
.icon-btn .bag { width: 24px; height: 24px; }
.badge-count {
  position: absolute; left: 14px; top: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--pill);
  background: var(--rose); color: var(--white);
  font: 400 10px/18px var(--sans); text-align: center;
}
.menu-toggle { display: none; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.product-card { display: flex; flex-direction: column; gap: 16px; }
.product-card__media { position: relative; aspect-ratio: 312 / 390; border-radius: var(--radius-lg); overflow: hidden; background: var(--blush-50); }
.product-card__media > img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 12px; border-radius: var(--pill);
  background: var(--cream); color: var(--rose-600);
  font: 600 10px/16px var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.product-card__wish {
  position: absolute; right: 14px; top: 14px;
  width: 36px; height: 36px; border-radius: var(--pill); border: 0;
  background: var(--white); display: grid; place-items: center;
}
.product-card__wish img { width: 18px; height: 18px; }
.product-card__info { display: flex; flex-direction: column; gap: 4px; }
.product-card--sold-out .product-card__media > img { opacity: .6; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 500 13px/18px var(--sans); color: var(--charcoal); }
.input {
  height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--white); color: var(--charcoal);
  font: 400 15px/22px var(--sans);
}
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--sage-50); }
.input--pill { border-radius: var(--pill); border-color: transparent; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: var(--white); padding: 80px 0 32px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 300px; }
.footer__text { margin: 0; color: #d6e0d3; font-size: 14px; line-height: 22px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px; border: 1px solid var(--sage); border-radius: var(--pill);
  display: grid; place-items: center;
}
.footer__social a:hover { background: rgba(255,255,255,.08); }
.footer__social img { width: 18px; height: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 22px; }
.footer__col .eyebrow { color: var(--blush); }
.footer__col a:hover { color: var(--blush); }
.footer__contact { display: flex; align-items: center; gap: 10px; }
.footer__contact img { width: 16px; height: 16px; }
.footer__news { display: flex; flex-direction: column; gap: 14px; }
.footer__news .footer__text { max-width: 300px; }
.footer__news .h4 { color: var(--white); }
.footer__form { display: flex; gap: 8px; }
.footer__form .input { height: 46px; width: 200px; font-size: 14px; }
.footer__divider { height: 1px; background: rgba(255,255,255,.15); margin: 56px 0 32px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--sage); font-size: 12px; line-height: 18px; }
.footer__legal nav { display: flex; gap: 24px; }

/* ---------- Tablet 768 ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; --section: 88px; }
  .display { font-size: 60px; line-height: 68px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }

  .header__inner { padding-top: 16px; padding-bottom: 16px; }
  .menu-toggle { display: inline-flex; }
  .header__inner > .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .header__inner { position: relative; }
  .header__actions .hide-tablet { display: none; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { flex-direction: row; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* ---------- Mobile 390 ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 64px; }
  .display { font-size: 42px; line-height: 48px; }
  .h1, .h2 { font-size: 30px; line-height: 38px; }
  .h3 { font-size: 24px; line-height: 32px; }
  .logo { font-size: 22px; }
  .logo img { width: 30px; height: 30px; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .btn--block-mobile { width: 100%; }
  .footer__top { flex-direction: column; }
  .footer__form { width: 100%; }
  .footer__form .input { flex: 1; width: auto; min-width: 0; }
}

/* ===================== Page sections (added for pages) ===================== */
.announcement { display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav__extra { display: none !important; }
.badge-count[hidden] { display: none; }
.center { text-align: center; }
.mt-56 { margin-top: 56px; }
.lead { font-size: 18px; line-height: 29px; color: var(--muted); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.stars { color: var(--rose); letter-spacing: 3px; font-size: 14px; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 32px 0; display: flex; gap: 10px; }
.breadcrumb span:last-child { color: var(--charcoal); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split img { width: 100%; border-radius: var(--radius-xl); object-fit: cover; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card .h4 { display: block; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; background: url(../assets/img/hero-blush-bouquet.jpg) right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 30%, rgba(255,249,242,.6) 50%, transparent 70%); }
.hero .container { position: relative; }
.hero__content { max-width: 560px; display: flex; flex-direction: column; gap: 24px; }
.hero--dark { background-image: url(../assets/img/wedding-hero-table.jpg); color: var(--white); }
.hero--dark::before { background: linear-gradient(90deg, rgba(30,56,43,.85) 20%, rgba(30,56,43,.3) 70%); }
.hero--dark .display, .hero--dark .lead { color: var(--white); }
.hero--dark .eyebrow { color: var(--blush); }

.usp { background: var(--sage-50); padding: 18px 0; font-size: 13px; }
.usp .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.usp span { display: inline-flex; gap: 8px; align-items: center; color: var(--forest); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.review-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.review-card > img { width: 100%; aspect-ratio: 16/9.5; object-fit: cover; }
.review-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review-card__body p { margin: 0; font-size: 15px; line-height: 24px; }
.review-card__who { display: flex; gap: 12px; align-items: center; }
.review-card__who strong { display: block; font-weight: 500; font-size: 14px; }
.review-card__who small { color: var(--muted); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blush-50); color: var(--rose-600); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.section--blush .review-card, .section--sage .review-card { border: 0; }

/* Chips & select */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); font: 500 13px/20px var(--sans); color: var(--charcoal); cursor: pointer; }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--white); }
select.input { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23292929' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 16px center no-repeat; }
textarea.input { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; }
.toolbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.toolbar .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.band { background: var(--blush); border-radius: var(--radius-xl); padding: 48px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band p { margin: 8px 0 0; max-width: 460px; }

/* Product page */
.pdp { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px 40px; align-items: start; padding-bottom: 96px; }
.pdp__thumbs { display: flex; flex-direction: column; gap: 12px; }
.pdp__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.pdp__thumbs button.is-active { border-color: var(--forest); }
.pdp__thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.pdp__main { border-radius: var(--radius-xl); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.pdp__info { display: flex; flex-direction: column; gap: 20px; }
.pdp__info .lead { font-size: 16px; line-height: 26px; }
.pdp__meta { display: flex; gap: 10px; font-size: 13px; padding-top: 16px; border-top: 1px solid var(--line); }
.pdp__buy { display: flex; gap: 12px; }
.pdp__buy .btn { flex: 1; }
.list-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.list-icons li { display: flex; gap: 10px; align-items: center; }
.list-icons svg { color: var(--forest); flex: none; }
.care { background: var(--sage-50); border-radius: var(--radius-lg); padding: 24px; }
.care .h4 { margin-bottom: 12px; }
.notice { background: var(--blush-50); border-radius: var(--radius-md); padding: 14px 16px; font-size: 14px; color: var(--rose-600); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); height: 48px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--charcoal); }
.qty span { min-width: 24px; text-align: center; font-size: 15px; }
.qty--sm { height: 34px; }

.accordion { border-bottom: 1px solid var(--line); }
.accordion__head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: 0; text-align: left; font: 400 20px/28px var(--serif); color: var(--forest); }
.accordion__head::after { content: "+"; font: 300 22px var(--sans); }
.accordion.is-open .accordion__head::after { content: "–"; }
.accordion__body { display: none; padding: 0 0 20px; color: var(--muted); font-size: 15px; }
.accordion.is-open .accordion__body { display: block; }

/* Cart */
.cart { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.cart__head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart__head .eyebrow { color: var(--charcoal); }
.line { display: grid; grid-template-columns: 104px 1fr auto 100px; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.line img { width: 104px; height: 130px; object-fit: cover; border-radius: var(--radius-md); }
.line__total { text-align: right; font-size: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; display: inline-flex; align-items: center; gap: 6px; }
.summary { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; }
.summary__row { display: flex; justify-content: space-between; font-size: 16px; }
.summary__row span:first-child { color: var(--muted); }
.summary__total { border-top: 1px solid var(--line); padding-top: 14px; font: 400 24px var(--serif); color: var(--forest); }
.progress { background: var(--sage-50); border-radius: var(--radius-md); padding: 14px 16px; font-size: 14px; color: var(--forest); display: flex; flex-direction: column; gap: 10px; }
.progress__bar { height: 4px; border-radius: 2px; background: var(--white); overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--forest); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--forest); }

/* Rating summary */
.rating-box { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; max-width: 960px; margin: 0 auto; }
.rating-box__big { font: 400 64px/1 var(--serif); color: var(--forest); }
.bars { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.bars div { display: grid; grid-template-columns: 28px 1fr 36px; gap: 10px; align-items: center; }
.bars i { height: 6px; border-radius: 3px; background: var(--blush-50); position: relative; overflow: hidden; }
.bars i b { position: absolute; inset: 0 auto 0 0; background: var(--rose); border-radius: 3px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; background: var(--forest); color: var(--white); }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature > div { padding: 56px 48px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.feature .h2 { color: var(--white); }
.feature .eyebrow { color: var(--blush); }

.tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 16px; }
.tile p { margin: 6px 0; font-size: 14px; color: var(--muted); }
.tile small { color: var(--rose-600); font-size: 12px; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 28px; }
.step b { font: 400 32px var(--serif); color: var(--rose); }
.step p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.value { background: var(--sage-50); border-radius: var(--radius-lg); padding: 28px; }
.value .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--forest); margin-bottom: 18px; }
.value p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.dark { background: var(--forest); color: var(--white); }
.dark .h2 { color: var(--white); }
.dark .eyebrow { color: var(--blush); }
.dark .lead { color: #d6e0d3; }
.list-icons--light svg { color: var(--blush); }
.quote { font: italic 400 44px/1.2 var(--serif); color: var(--forest); max-width: 900px; margin: 16px auto 24px; }
.cta-photo { background: linear-gradient(rgba(255,249,242,.82), rgba(255,249,242,.82)), url(../assets/img/hero-blush-bouquet.jpg) center / cover; }
.empty { text-align: center; padding: 48px 0; }

@media (max-width: 1100px) {
  .split, .cart, .feature { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .pdp__thumbs { flex-direction: row; order: 2; }
  .pdp__thumbs button { width: 72px; }
  .rating-box { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero::before { background: linear-gradient(90deg, var(--cream) 35%, rgba(255,249,242,.5) 70%, transparent); }
  .nav__extra { display: flex !important; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .review-grid, .form-grid { grid-template-columns: 1fr; }
  .product-grid--4 { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .hero { min-height: 560px; align-items: flex-end; padding-bottom: 40px; background-position: 70% center; }
  .hero::before { background: linear-gradient(0deg, var(--cream) 40%, rgba(255,249,242,.3) 75%, transparent); }
  .hero--dark::before { background: linear-gradient(0deg, rgba(30,56,43,.9) 40%, rgba(30,56,43,.3)); }
  .hero .row .btn { width: 100%; }
  .line { grid-template-columns: 80px 1fr; gap: 12px 16px; }
  .line img { width: 80px; height: 100px; }
  .line .qty, .line__total { grid-column: 2; justify-self: start; }
  .card { padding: 24px; }
  .band { padding: 32px 24px; }
  .quote { font-size: 30px; }
  .feature > div { padding: 32px 24px; }
  .pdp__buy { position: sticky; bottom: 0; background: var(--cream); padding: 12px 0; }
  .usp .container { justify-content: center; }
}
.logo span { white-space: nowrap; }
@media (max-width: 1100px) { .pdp__main { order: 0; } .pdp__thumbs { order: 1; } .pdp__info { order: 2; } }
