/* =========================================================================
   Miroushi Florals — storefront design system
   Palette is fixed by the brand brief; everything derives from these tokens.
   ========================================================================= */
:root {
  --cream:    #F7F4EF;
  --blush:    #EAD6D6;
  --taupe:    #C8B9AD;
  --charcoal: #181818;
  --gold:     #D4AF37;

  --ink:      #2b2724;          /* softened charcoal for body copy */
  --muted:    #7d736a;          /* taupe-leaning grey for captions  */
  --line:     #e3dcd2;          /* hairline borders                 */
  --blush-soft: #f3e7e7;

  --font-display: "Playfair Display", Georgia, serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--charcoal);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

/* ---- layout helpers ---- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.center { text-align: center; }
.lede { color: var(--muted); max-width: 42ch; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 1.05em 2.4em;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--cream);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: transparent; color: var(--charcoal); }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn--blush { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.btn--blush:hover { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

/* ---- announcement bar ---- */
.announce {
  background: var(--blush);
  color: var(--charcoal);
  text-align: center;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  padding: 0.7rem 1rem;
}

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,239,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
}
.brand-lockup { justify-self: start; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}
.main-nav { justify-self: center; display: flex; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.main-nav a {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--charcoal);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.main-nav a:hover, .main-nav a.is-active { border-color: var(--gold); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1.1rem; }
.header-actions a { color: var(--charcoal); display: inline-flex; }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: var(--charcoal);
  font-family: var(--font-sans); font-size: 0.6rem; font-weight: 600;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  background: linear-gradient(180deg, var(--cream), #efe7da);
}
.hero-copy { padding: clamp(40px, 7vw, 96px) var(--gutter); align-self: center; max-width: 600px; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy .lede { font-size: 1.2rem; margin-bottom: 2.2rem; }
.hero-media { position: relative; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- feature row ---- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.feature {
  text-align: center;
  padding: clamp(34px, 5vw, 56px) 1.5rem;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: 0; }
.feature .icon { color: var(--gold); margin-bottom: 1rem; display: inline-flex; }
.feature h3 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.feature p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---- section heading ---- */
.section-head { text-align: center; margin-bottom: clamp(34px, 5vw, 56px); }

/* ---- product / collection grid ---- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
}
.card { text-align: center; }
.card-media {
  position: relative; overflow: hidden;
  background: var(--blush-soft); aspect-ratio: 3/3.5;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-title {
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.8rem; color: var(--charcoal);
  margin: 1.1rem 0 0.35rem;
}
.card-price { color: var(--muted); font-size: 1.05rem; font-family: var(--font-serif); }
.card-link {
  display: inline-block; margin-top: 0.5rem;
  font-family: var(--font-sans); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.66rem; color: var(--muted);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--charcoal); color: var(--cream);
  font-family: var(--font-sans); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.56rem; padding: 4px 9px;
}

/* ---- story / promise (dark) ---- */
.promise {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--charcoal); color: var(--cream);
}
.promise-media { min-height: 380px; }
.promise-media img { width: 100%; height: 100%; object-fit: cover; }
.promise-copy { padding: clamp(44px, 6vw, 84px) var(--gutter); align-self: center; }
.promise-copy h2 { color: #fff; }
.promise-copy .eyebrow { color: var(--blush); }
.promise-copy p { color: #d8cfc6; max-width: 44ch; margin-bottom: 2rem; }

/* ---- gallery strip ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.gallery a { aspect-ratio: 1/1.05; overflow: hidden; background: var(--blush-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* ---- newsletter + footer ---- */
.footer-top { background: var(--blush); padding-block: clamp(48px, 7vw, 80px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.1fr;
  gap: clamp(24px, 3vw, 48px);
}
.footer-grid h4 {
  font-family: var(--font-sans); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.72rem; color: var(--charcoal);
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--ink); font-size: 1rem; }
.footer-grid a:hover { color: var(--gold); }
.newsletter-form { display: flex; border: 1px solid var(--charcoal); background: var(--cream); }
.newsletter-form input {
  flex: 1; border: 0; background: transparent; padding: 0.85rem 1rem;
  font-family: var(--font-serif); font-size: 1rem; color: var(--ink);
}
.newsletter-form input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.newsletter-form button {
  border: 0; background: var(--charcoal); color: var(--cream);
  padding: 0 1.1rem; font-size: 1.1rem;
}
.footer-brand { text-align: right; }
.footer-brand .brand-name { display: block; }
.social { display: flex; gap: 0.9rem; justify-content: flex-end; margin-top: 1rem; }
.social a { color: var(--charcoal); }
.footer-bottom {
  background: var(--charcoal); color: #b7ada3; text-align: center;
  font-family: var(--font-sans); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.62rem; padding: 1.3rem 1rem;
}

/* ---- flash messages ---- */
.flash-wrap { padding-inline: var(--gutter); margin-top: 1rem; }
.flash {
  max-width: var(--maxw); margin: 0.5rem auto; padding: 0.9rem 1.2rem;
  font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.04em;
  border-left: 3px solid var(--gold); background: #fff;
}
.flash.error { border-color: #b3433a; }
.flash.success { border-color: #5d7d52; }

/* ---- forms (shared) ---- */
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-family: var(--font-sans); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.66rem; color: var(--muted); margin-bottom: 0.45rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line);
  background: #fff; font-family: var(--font-serif); font-size: 1.02rem; color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
}
.field .errorlist { color: #b3433a; font-family: var(--font-sans); font-size: 0.7rem;
  list-style: none; padding: 0; margin: 0.4rem 0 0; }

/* ---- generic page header ---- */
.page-head { background: linear-gradient(180deg, var(--blush-soft), var(--cream));
  text-align: center; padding-block: clamp(48px, 7vw, 88px); }

/* ---- breadcrumb ---- */
.crumbs { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.66rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--gold); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { text-align: left; grid-column: 1 / -1; }
  .social { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--cream); flex-direction: column; gap: 1.4rem;
    padding: 5rem 2rem; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,.12); z-index: 60;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; order: -1; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 340px; order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(1), .feature:nth-child(2) { border-bottom: 1px solid var(--line); }
  .promise { grid-template-columns: 1fr; }
  .promise-media { order: -1; min-height: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .grid-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- accessibility ---- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* =========================================================================
   Page components: shop, product, cart, checkout, account, tracking
   ========================================================================= */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 56px); }
.shop-filters h4 { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--charcoal); margin: 1.6rem 0 .8rem; }
.shop-filters ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.shop-filters li { margin-bottom: .5rem; }
.shop-filters a { font-size: 1rem; color: var(--muted); }
.shop-filters a:hover, .shop-filters a.is-active { color: var(--gold); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap; }
.shop-toolbar .count { font-family: var(--font-sans); text-transform: uppercase;
  letter-spacing: .16em; font-size: .68rem; color: var(--muted); }
.search-form { display: flex; gap: .4rem; }
.search-form input { border: 1px solid var(--line); padding: .5rem .7rem; background: #fff;
  font-family: var(--font-serif); }
.pagination { display: flex; gap: .6rem; justify-content: center; margin-top: 3rem;
  font-family: var(--font-sans); letter-spacing: .14em; font-size: .72rem; text-transform: uppercase; }
.pagination a, .pagination span { padding: .5rem .9rem; border: 1px solid var(--line); color: var(--muted); }
.pagination .current { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* product detail */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start; }
.product-gallery { background: var(--blush-soft); aspect-ratio: 4/4.4; overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .6rem; margin-top: .6rem; }
.thumbs img { width: 72px; height: 84px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.product-price { font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin: .4rem 0 1.4rem; }
.product-desc { color: var(--ink); margin-bottom: 1.8rem; }
.stock-pill { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .16em;
  font-size: .64rem; padding: .35em .8em; border: 1px solid var(--line); display: inline-block; }
.stock-pill.in { color: #5d7d52; border-color: #c5d2bd; }
.stock-pill.out { color: #b3433a; border-color: #e0b9b4; }
.add-form { display: flex; gap: .8rem; align-items: stretch; margin-top: 1.4rem; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--charcoal); }
.qty input { width: 56px; text-align: center; border: 0; font-family: var(--font-serif); font-size: 1rem; }
.qty button { width: 38px; border: 0; background: transparent; font-size: 1.1rem; }
select.variant-select { padding: .8rem; border: 1px solid var(--line); font-family: var(--font-serif); }

/* cart */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 90px; height: 104px; object-fit: cover; background: var(--blush-soft); }
.cart-line .name { font-family: var(--font-display); font-size: 1.2rem; }
.cart-line .meta { color: var(--muted); font-size: .92rem; }
.cart-line form { display: inline; }
.summary { background: #fff; border: 1px solid var(--line); padding: 1.8rem; }
.summary h3 { font-family: var(--font-display); margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; color: var(--muted); }
.summary-row.total { color: var(--charcoal); font-size: 1.25rem; border-top: 1px solid var(--line);
  margin-top: .6rem; padding-top: 1rem; font-family: var(--font-display); }
.link-muted { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .14em;
  font-size: .64rem; color: var(--muted); }
.link-muted:hover { color: #b3433a; }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state p { color: var(--muted); }

/* checkout / forms two-col */
.form-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px); }
.auth-card h1 { font-size: 2rem; text-align: center; }

/* tracking timeline */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; }
.timeline li { position: relative; padding: 0 0 1.6rem 2.2rem; border-left: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--line); }
.timeline li.done::before { background: var(--gold); border-color: var(--gold); }
.timeline li.current::before { background: var(--charcoal); border-color: var(--charcoal); }
.timeline .label { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; color: var(--charcoal); }
.timeline .at { color: var(--muted); font-size: .9rem; }

.bank-box { background: #fff; border: 1px solid var(--line); padding: 1.4rem 1.6rem; margin: 1.2rem 0; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; margin: 0; }
.bank-box dt { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .12em;
  font-size: .64rem; color: var(--muted); }
.bank-box dd { margin: 0; font-family: var(--font-serif); }

.note { font-size: .92rem; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 1.6rem 0; border: 0; }

@media (max-width: 860px) {
  .shop-layout, .product, .cart-grid, .form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
