/* Тихий сад — тихое ботаническое ателье.
   Палитра: туманная бумага, ботанический зелёно-чёрный, шалфей, пыльная роза.
   Шрифты системные (CSP запрещает внешние): книжный serif для голоса, sans для интерфейса. */
:root {
  --paper: #f2f0e6;
  --paper-soft: #f7f5ec;
  --card: #fbfaf4;
  --ink: #22302a;
  --ink-soft: #3b463f;
  --muted: #6d7269;
  --sage: #8ea486;
  --sage-deep: #6f8768;
  --sage-wash: #e4eadd;
  --rose: #c0868b;
  --rose-deep: #a96a70;
  --rose-wash: #efe0df;
  --hair: rgba(34, 48, 42, 0.16);
  --hair-strong: rgba(34, 48, 42, 0.32);
  --shadow-sm: 0 1px 2px rgba(34, 48, 42, 0.04);
  --shadow-md: 0 12px 34px -20px rgba(34, 48, 42, 0.42);
  --shadow-lg: 0 26px 60px -32px rgba(34, 48, 42, 0.5);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --r-pill: 999px;
  --shell: 1160px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Hoefler Text", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 82% -8%, rgba(224, 232, 217, 0.7), transparent 60%),
    radial-gradient(90% 50% at 0% 0%, rgba(239, 224, 223, 0.42), transparent 55%),
    var(--paper);
  background-repeat: no-repeat;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--sage-wash); }

.shell { width: min(calc(100% - 44px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: var(--r-pill); background: var(--card); }
.skip-link:focus { top: 16px; }

/* Типографика */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }
h1 { font-size: clamp(45px, 6vw, 78px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: 23px; }
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--sage-deep);
}
.eyebrow span { color: var(--rose-deep); }

/* Шапка */
.site-header { position: relative; z-index: 10; padding: 26px 0 18px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: 0.01em; }
.logo-mark { align-self: center; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--sage-wash); color: var(--sage-deep); font-size: 17px; line-height: 1; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a, .nav-profile { position: relative; border: 0; padding: 6px 0; background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links a::after, .nav-profile::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--rose); transition: right .25s ease; }
.nav-links a:hover::after, .nav-profile:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-profile { font-family: var(--font-body); }
.cart-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; border: 1px solid var(--ink); border-radius: var(--r-pill); padding: 8px 10px 8px 17px; background: var(--ink); color: #f6f4ea; cursor: pointer; font-size: 14px; font-weight: 500; transition: transform .18s ease, background .18s ease; }
.cart-button:hover { transform: translateY(-1px); background: #1a251f; }
.cart-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Кнопки */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1px solid var(--ink); border-radius: var(--r-pill); padding: 13px 26px; cursor: pointer; font-size: 15px; font-weight: 500; transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button-primary { background: var(--ink); color: #f6f4ea; }
.button-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.button-light { background: transparent; color: var(--ink); }
.button-light:hover { background: var(--card); }
.button-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1.5px solid var(--hair-strong); font-weight: 500; color: var(--ink); transition: border-color .2s ease; }
.text-link:hover { border-color: var(--rose); }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Герой */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr); align-items: center; gap: clamp(40px, 6vw, 88px); padding: clamp(24px, 4vw, 46px) 0 clamp(70px, 8vw, 104px); }
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero-lead { max-width: 500px; margin: 26px 0 34px; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 38px 0 0; padding: 26px 0 0; border-top: 1px solid var(--hair); list-style: none; }
.hero-notes li { position: relative; padding-left: 20px; color: var(--muted); font-size: 14px; }
.hero-notes li::before { content: "✿"; position: absolute; left: 0; top: 1px; color: var(--sage); font-size: 12px; }

.hero-visual { position: relative; padding: 8px 6px 30px 24px; }
.hero-image-frame { position: relative; overflow: hidden; height: min(60vh, 560px); border: 1px solid var(--hair-strong); border-radius: 190px 190px var(--r-lg) var(--r-lg); background: var(--card); box-shadow: var(--shadow-lg); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 182px 182px 12px 12px; pointer-events: none; }
.hero-caption { position: absolute; right: 8px; bottom: 6px; left: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 11px 12px 11px 20px; background: var(--card); box-shadow: var(--shadow-md); }
.hero-caption div { display: grid; gap: 1px; line-height: 1.3; }
.hero-caption strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.caption-label { color: var(--muted); font-size: 12px; }
.price-pill { white-space: nowrap; border-radius: var(--r-pill); padding: 8px 14px; background: var(--sage-wash); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-sticker { position: absolute; z-index: 2; top: 34px; left: -14px; display: grid; width: 104px; height: 104px; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 14px; line-height: 1.3; box-shadow: var(--shadow-md); transform: rotate(-9deg); }

/* Общий заголовок секции */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading > div { max-width: 640px; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 16px; }

/* Каталог */
.catalog-section { padding: clamp(28px, 5vw, 60px) 0 clamp(56px, 7vw, 96px); }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; grid-column: span 2; overflow: hidden; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:nth-child(4) { grid-column: 2 / span 2; }
.product-card:hover { transform: translateY(-4px); border-color: var(--hair-strong); box-shadow: var(--shadow-md); }
.product-image { position: relative; overflow: hidden; aspect-ratio: 4 / 4.5; margin: 10px 10px 0; border-radius: var(--r-md); background: var(--sage-wash); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-tag { position: absolute; top: 12px; left: 12px; border-radius: var(--r-pill); padding: 6px 12px; background: var(--card); font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--ink); box-shadow: var(--shadow-sm); }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; }
.product-info h3 { margin: 0 0 6px; }
.product-info p { min-height: 46px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; }
.product-price { font-family: var(--font-display); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.add-button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; border: 1px solid var(--hair-strong); border-radius: var(--r-pill); padding: 9px 16px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.add-button:hover { background: var(--sage-wash); border-color: transparent; }
.add-button span:first-child { font-size: 17px; line-height: 1; }
.add-button.is-added { background: var(--ink); border-color: var(--ink); color: #f6f4ea; }
.catalog-note { display: flex; align-items: flex-start; gap: 10px; max-width: 620px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 15px; }
.catalog-note::before { content: "✿"; color: var(--sage); font-size: 14px; line-height: 1.5; }
.catalog-note em { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); }
.product-card.product-added { animation: product-added .55s ease; }
.cart-button.cart-bump { animation: cart-bump .55s ease; }
.cart-count.is-bumping { animation: count-bump .55s ease; }
@keyframes product-added { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-6px); } }
@keyframes cart-bump { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.06); } }
@keyframes count-bump { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.3); } }

/* Ателье / о нас */
.about-section { padding: clamp(40px, 6vw, 80px) 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 76px); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: clamp(40px, 6vw, 72px) 0; }
.about-copy h2 { max-width: 12ch; }
.about-copy p { max-width: 460px; margin: 22px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.about-quote { margin: 0; font-family: var(--font-display); }
.about-quote p { margin: 0; font-size: clamp(24px, 2.6vw, 33px); font-style: italic; line-height: 1.35; color: var(--ink); }
.about-quote p span { color: var(--rose-deep); }
.about-quote footer { margin-top: 22px; font-family: var(--font-body); font-size: 14px; color: var(--muted); font-style: normal; }
.about-quote footer::before { content: "— "; }

/* Доставка */
.delivery-section { padding: clamp(40px, 6vw, 80px) 0; }
.delivery-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.delivery-item { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 26px 24px; background: var(--card); }
.delivery-item .delivery-key { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--sage-deep); }
.delivery-item strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.delivery-item p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Уход за букетом */
.care-section { padding: clamp(40px, 6vw, 80px) 0 clamp(52px, 7vw, 96px); }
.care-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px); background: linear-gradient(135deg, var(--sage-wash), #eef2e8); border: 1px solid var(--hair); }
.care-panel .eyebrow { color: var(--sage-deep); }
.care-panel h2 { max-width: 11ch; }
.care-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; align-content: start; }
.care-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--hair); }
.care-list li:first-child { border-top: 0; }
.care-list .care-num { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--rose-deep); }
.care-list strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 3px; }
.care-list p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* Контакты — полоса перед футером */
.contacts-strip { padding: 0 0 clamp(52px, 7vw, 92px); }
.contacts-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: clamp(30px, 4vw, 46px); background: var(--card); box-shadow: var(--shadow-sm); }
.contacts-inner h2 { max-width: 16ch; }
.contacts-inner .eyebrow { margin-bottom: 12px; }
.contacts-lines { display: grid; gap: 6px; margin-top: 16px; color: var(--ink-soft); font-size: 16px; }
.contacts-lines a { border-bottom: 1px solid var(--hair-strong); }
.contacts-lines a:hover { border-color: var(--rose); }

/* Футер */
.site-footer { border-top: 1px solid var(--hair); background: var(--ink); color: #dfe3d9; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.4fr auto; align-items: start; gap: 48px; padding-top: 52px; padding-bottom: 44px; }
.footer-inner p { margin: 0; color: #b7bdb1; font-size: 15px; }
.footer-logo { color: #f3f1e6; }
.footer-logo .logo-mark { background: rgba(255, 255, 255, 0.08); color: #cdd6c4; }
.footer-brand { display: grid; gap: 16px; max-width: 260px; }
.footer-company { display: grid; gap: 7px; }
.footer-label { margin-bottom: 4px; color: #8f968a; font-family: var(--font-display); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; }
.footer-company > strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #f3f1e6; }
.company-details { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #b7bdb1; font-size: 14px; }
.company-detail b { color: #eef1e8; font-weight: 500; }
.company-placeholder { color: #8f968a; }
.footer-copy { align-self: end; white-space: nowrap; font-size: 13px; color: #8f968a; }

/* Модалки */
.modal { width: min(calc(100% - 28px), 500px); max-height: min(90vh, 800px); overflow: auto; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 34px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(24, 32, 27, 0.58); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.modal-close { position: absolute; top: 18px; right: 18px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--hair-strong); border-radius: 50%; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; transition: background .15s ease; }
.modal-close:hover { background: var(--sage-wash); }
.modal-close-static { position: static; flex: 0 0 auto; }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal h2 { font-size: clamp(30px, 5vw, 40px); }
.auth-intro { padding-right: 40px; }
.auth-intro > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.auth-flower { display: block; margin-bottom: 14px; color: var(--sage-deep); font-size: 30px; line-height: 1; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0 20px; border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 4px; background: var(--paper-soft); }
.auth-tabs button { border: 0; border-radius: var(--r-pill); padding: 11px; background: transparent; cursor: pointer; font-weight: 500; color: var(--muted); transition: background .15s ease, color .15s ease; }
.auth-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 16px; }
.form label:not(.radio-card) { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.form label span { color: var(--muted); font-weight: 400; }
.form input:not([type="radio"]), .form textarea { width: 100%; border: 1px solid var(--hair-strong); border-radius: var(--r-md); padding: 13px 16px; outline: none; background: var(--paper-soft); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.form input:not([type="radio"]) { border-radius: var(--r-pill); }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--sage-deep); background: var(--card); box-shadow: 0 0 0 3px var(--sage-wash); }
.form small { color: var(--muted); }
.form-error { min-height: 0; margin: -4px 0 0; color: var(--rose-deep); font-size: 14px; font-weight: 500; }
.form-error:empty { display: none; }

.cart-modal { width: min(calc(100% - 28px), 620px); }
.cart-content { display: grid; gap: 16px; }
.cart-empty { padding: 44px 16px 32px; text-align: center; }
.cart-empty span { color: var(--sage); font-size: 42px; }
.cart-empty h3 { margin: 10px 0 5px; }
.cart-empty p { margin: 0; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--hair); padding-bottom: 16px; }
.cart-item img { width: 82px; height: 98px; border-radius: var(--r-sm); object-fit: cover; }
.cart-item-info strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.25; }
.cart-item-info small { color: var(--muted); }
.quantity { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.quantity button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--hair-strong); border-radius: 50%; background: transparent; cursor: pointer; font-weight: 600; transition: background .15s ease; }
.quantity button:hover { background: var(--sage-wash); }
.quantity span { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item-price { align-self: center; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 6px; border-radius: var(--r-md); padding: 20px; background: var(--sage-wash); }
.cart-summary span { color: var(--ink-soft); }
.cart-summary strong { font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.cart-summary small { grid-column: 1 / -1; color: var(--muted); }

.checkout-form fieldset { display: grid; gap: 9px; border: 0; margin: 0; padding: 0; }
.checkout-form legend { margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.radio-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hair-strong); border-radius: var(--r-md); padding: 13px 15px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.radio-card:has(input:checked) { background: var(--sage-wash); border-color: transparent; }
.radio-card input { width: 18px; height: 18px; accent-color: var(--sage-deep); }
.radio-card span { display: grid; }
.radio-card strong { font-weight: 600; }
.radio-card small { color: var(--muted); }
.checkout-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--hair); padding-top: 16px; }
.checkout-total strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; }

/* Личный кабинет */
.account-body { display: flex; min-height: 100vh; flex-direction: column; }
.account-main { flex: 1; }
.account-header { border-bottom: 1px solid var(--hair); }
.account-nav-links a[aria-current="page"] { color: var(--ink); }
.account-nav-links a[aria-current="page"]::after { right: 0; }
.nav-home { min-height: 42px; padding: 9px 18px; }
.account-page { padding-top: clamp(46px, 6vw, 84px); padding-bottom: clamp(64px, 8vw, 104px); }
.account-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 40px; }
.account-page-heading h1 { font-size: clamp(46px, 6vw, 70px); }
.account-page-heading > p { max-width: 420px; margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.account-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.account-card { border: 1px solid var(--hair); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); background: var(--card); box-shadow: var(--shadow-sm); }
.profile-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; }
.profile-avatar { display: grid; width: 84px; height: 84px; place-items: center; border-radius: 50%; background: var(--sage-wash); color: var(--sage-deep); font-size: 38px; }
.profile-identity { display: grid; gap: 3px; }
.profile-identity span { color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 14px; }
.profile-identity strong { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); font-weight: 600; line-height: 1.1; }
.profile-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin: 10px 0 0; }
.profile-fields div { border-top: 1px solid var(--hair); padding-top: 15px; }
.profile-fields dt { color: var(--muted); font-size: 13px; }
.profile-fields dd { margin: 4px 0 0; font-weight: 600; }
.account-action-card { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--sage-wash), #eef2e8); border-color: transparent; }
.account-action-card h2 { max-width: 340px; margin: 0 0 14px; font-size: clamp(28px, 4vw, 38px); }
.account-action-card p { max-width: 460px; margin: 0 0 26px; color: var(--ink-soft); }
.account-card-icon { position: absolute; top: 22px; right: 24px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--card); font-size: 18px; }
.account-security { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; border: 1px solid var(--hair); border-radius: var(--r-md); padding: 20px 24px; background: var(--card); }
.account-security div { display: grid; gap: 2px; }
.account-security strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.account-security span { color: var(--muted); font-size: 14px; }
.account-error { margin: 18px 0 0; color: var(--rose-deep); font-weight: 500; }
.account-error:empty { display: none; }
.order-created-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; border: 1px solid var(--hair); border-radius: var(--r-md); padding: 18px 22px; background: var(--sage-wash); font-weight: 500; }
.order-created-notice::before { content: "✿"; color: var(--sage-deep); }
.orders-list { display: grid; gap: 16px; }
.empty-state { border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 52px 44px; background: var(--card); text-align: center; }
.empty-state .empty-flower { display: block; margin-bottom: 12px; color: var(--sage); font-size: 40px; }
.empty-state h2, .empty-state h3 { margin: 0; }
.empty-state p { margin: 10px 0 0; color: var(--muted); }
.empty-state .button { margin-top: 24px; }
.order-card { display: grid; grid-template-columns: 190px 1fr auto; gap: 28px; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 26px; background: var(--card); box-shadow: var(--shadow-sm); }
.order-number strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.order-number small { color: var(--muted); }
.order-status { display: inline-flex; width: fit-content; margin-top: 12px; border-radius: var(--r-pill); padding: 6px 12px; background: var(--sage-wash); color: var(--sage-deep); font-size: 12px; font-weight: 500; }
.order-details { display: grid; align-content: center; gap: 8px; }
.order-items { margin: 0; padding: 0; list-style: none; }
.order-items li + li { margin-top: 4px; }
.order-address { color: var(--muted); font-size: 14px; }
.order-total { align-self: center; text-align: right; }
.order-total strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.order-total small { color: var(--muted); }

.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 11px; max-width: min(440px, calc(100% - 44px)); border-radius: var(--r-pill); padding: 12px 20px 12px 12px; background: var(--ink); color: #f3f1e6; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.toast::before { content: "✿"; display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--sage); color: var(--ink); }
.toast.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr 340px; gap: 34px; padding-top: 30px; }
  .hero-image-frame { height: 480px; }
  .product-card { grid-column: span 3; }
  .product-card:nth-child(4) { grid-column: span 3; }
  .product-card:nth-child(5) { grid-column: 2 / span 4; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .delivery-list { grid-template-columns: 1fr; }
  .care-panel { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 160px 1fr; }
  .order-total { grid-column: 2; text-align: left; }
  .account-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-copy { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { padding: 16px 0; }
  .logo { font-size: 21px; }
  .nav-actions { gap: 10px; }
  .cart-button > span:not(.cart-count) { display: none; }
  .cart-button { padding-left: 12px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding-bottom: 60px; }
  .hero-copy { max-width: none; text-align: center; }
  .hero-copy .eyebrow { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-notes { justify-content: center; }
  .hero-notes { border-top: 0; padding-top: 8px; }
  .hero-visual { width: min(100%, 440px); margin-inline: auto; padding: 8px 6px 30px; }
  .hero-image-frame { height: min(122vw, 540px); }
  .hero-sticker { left: 2px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 16px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card, .product-card:nth-child(4), .product-card:nth-child(5) { grid-column: auto; }
  .product-image { aspect-ratio: 4 / 4.2; }
  .about-quote p { font-size: clamp(22px, 6vw, 28px); }
  .contacts-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .account-page-heading { display: block; margin-bottom: 28px; }
  .account-page-heading > p { margin-top: 14px; }
  .profile-card { grid-template-columns: 64px 1fr; gap: 16px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 30px; }
  .profile-fields { grid-template-columns: 1fr; }
  .account-security { flex-direction: column; align-items: stretch; }
  .order-card { grid-template-columns: 1fr; gap: 14px; }
  .order-total { grid-column: auto; text-align: left; }
  .modal { padding: 26px 20px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 86px; }
  .cart-item-price { grid-column: 2; margin-top: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
