/* ============ FloraKG — premium florist marketplace ============ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose: #d4567a;
  --rose-dark: #b83e62;
  --rose-soft: #fceef3;
  --green: #5b8c6e;
  --green-dark: #477057;
  --green-soft: #eef5f0;
  --gold: #c89b3c;
  --ink: #2b2622;
  --ink-soft: #6b6259;
  --line: #ece6df;
  --cream: #fbf8f4;
  --surface: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(43,38,34,.06), 0 4px 14px rgba(43,38,34,.05);
  --shadow-md: 0 8px 30px rgba(43,38,34,.10);
  --shadow-lg: 0 24px 60px rgba(43,38,34,.16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

.serif { font-family: var(--serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--rose); color: #fff; box-shadow: 0 6px 18px rgba(212,86,122,.35); }
.btn--primary:hover { background: var(--rose-dark); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #4d7860; }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--full { width: 100%; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,248,244,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; }
.brand__svg { height: 40px; width: auto; display: block; }
.brand__name { font-family: var(--serif); font-size: 25px; font-weight: 700; fill: var(--ink); }
.brand__sub { font-family: var(--sans); font-size: 7.5px; letter-spacing: 3px; fill: #8a8079; }
.footer .brand__name { fill: #fff; }
.footer .brand__sub { fill: #b8aea3; }
.header__nav { display: flex; gap: 2rem; margin-left: auto; }
.header__nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--rose);
  transition: width .25s ease;
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: .85rem; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--rose); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); }
.icon-btn__count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  background: var(--rose);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cream);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4rem 0 3.5rem; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(212,86,122,.10), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(91,140,110,.10), transparent 70%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--rose); }
.hero__cities {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: -.4rem 0 1rem;
  line-height: 1.4;
}
.hero__lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 460px;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }
.hero__stats { display: flex; gap: 2.4rem; }
.hero__stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero__stats span { font-size: .8rem; color: var(--ink-soft); }

.hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 150px);
  gap: 14px;
}
.hero__collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero__collage img:first-child { grid-row: span 2; height: 314px; }
.hero__price-tag {
  position: absolute;
  left: -14px; bottom: 22px;
  background: #fff;
  border-radius: 14px;
  padding: .7rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 600;
}
.hero__price-tag b { color: var(--rose); font-size: 1rem; }

/* ---------- Section headings ---------- */
.section { padding: 3.5rem 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section__head h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; letter-spacing: -.3px; }
.section__head p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Filter bar ---------- */
.toolbar {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(251,248,244,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.toolbar__row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--ink-soft); }
.search input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.8rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(212,86,122,.10); }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.active { border-color: var(--rose); background: var(--rose); color: #fff; }

/* ---------- Shop cards ---------- */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6rem;
}
.shop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex;
  flex-direction: column;
}
.shop:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #f4d3df; }
.shop__cover { position: relative; height: 168px; overflow: hidden; }
.shop__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shop:hover .shop__cover img { transform: scale(1.06); }
.shop__cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(43,38,34,.35));
}
.shop__rating {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 700;
  padding: .28rem .6rem;
  border-radius: 999px;
  display: flex; align-items: center; gap: .25rem;
}
.shop__rating svg { width: 13px; height: 13px; fill: var(--gold); }
.shop__city {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  color: #fff; font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: .35rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.shop__promo {
  position: absolute; right: 14px; top: 12px; z-index: 2;
  background: var(--rose); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .28rem .55rem; border-radius: 999px;
}
.shop__badge-closed {
  position: absolute; left: 14px; top: 12px; z-index: 2;
  background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 999px;
}
.shop__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.shop__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.shop__hours { font-size: .8rem; color: var(--ink-soft); margin: .25rem 0 .7rem; }
.shop__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.tag { font-size: .7rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.tag--247 { background: #efeafe; color: #6d44d9; }
.shop__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.shop__from b { font-family: var(--serif); font-size: 1.25rem; color: var(--rose); }
.shop__from span { font-size: .72rem; color: var(--ink-soft); display: block; }
.shop__delivery { font-size: .75rem; color: var(--green); font-weight: 600; }

.empty { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--ink-soft); }
.empty svg { width: 48px; height: 48px; stroke: var(--line); margin-bottom: 1rem; }

/* ---------- Join (B2B) ---------- */
.join {
  background:
    linear-gradient(135deg, rgba(212,86,122,.95), rgba(184,62,98,.95)),
    url('https://images.unsplash.com/photo-1561181286-d3fee7d55364?w=1200&q=70') center/cover;
  color: #fff;
}
.join__grid { display: grid; grid-template-columns: 1fr 420px; gap: 3rem; align-items: center; }
.join h2 { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; margin-bottom: .8rem; }
.join > .container > .join__grid p { opacity: .92; margin-bottom: 1.2rem; max-width: 440px; }
.join__list { list-style: none; display: grid; gap: .6rem; }
.join__list li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.join__list svg { width: 20px; height: 20px; stroke: #fff; flex-shrink: 0; }
.card-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.card-form h3 { font-family: var(--serif); font-size: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: .92rem;
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose); background: #fff;
  box-shadow: 0 0 0 4px rgba(212,86,122,.08);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b8aea3; padding: 3rem 0 2rem; margin-top: 1rem; }
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { max-width: 280px; }
.footer__brand .brand { margin-bottom: .8rem; }
.footer__brand p { font-size: .85rem; line-height: 1.5; }
.footer__cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer__col h4 { color: #fff; font-size: .85rem; margin-bottom: .8rem; }
.footer__col a, .footer__col span { display: block; font-size: .85rem; padding: .2rem 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 1.5rem; font-size: .8rem; text-align: center; }

/* ---------- Scroll lock (modals / drawer) ---------- */
html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}
body.scroll-locked {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* ---------- Modal ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(43,38,34,.55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
  overscroll-behavior: none;
}
.overlay.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: min(640px, 100%);
  max-height: 92vh;
  position: relative;
  animation: pop .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal__handle {
  display: none;
  width: 40px;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.x-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9);
  cursor: pointer; font-size: 1.05rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.modal__cover { height: 180px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; flex-shrink: 0; }
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__head { padding: 1.3rem 1.5rem .4rem; flex-shrink: 0; }
.modal__head h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; }
.modal__meta { font-size: .85rem; color: var(--ink-soft); margin-top: .25rem; line-height: 1.6; }
.modal--wide { max-width: min(720px, 96vw); }
.modal__body {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  min-height: 0;
  max-height: 62vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin-bottom: 1rem;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: box-shadow .2s, transform .15s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card--out { opacity: .5; pointer-events: none; }
.product-card__img {
  height: 140px;
  background: var(--rose-soft);
  overflow: hidden;
  position: relative;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__colors {
  position: absolute; right: 8px; top: 8px;
  background: rgba(255,255,255,.92); font-size: .65rem; font-weight: 700;
  padding: .2rem .45rem; border-radius: 999px; color: var(--rose);
}
.product-card__body { padding: .65rem .75rem .8rem; }
.product-card__body b { display: block; font-size: .88rem; line-height: 1.25; }
.product-card__price { font-size: .8rem; color: var(--rose); font-weight: 700; margin-top: .2rem; display: block; }

.product-detail { animation: fadeIn .2s ease; }
.product-detail__back {
  background: none; border: none; color: var(--ink-soft);
  font-size: .85rem; font-weight: 600; cursor: pointer; margin-bottom: .75rem; padding: 0;
}
.product-detail__back:hover { color: var(--rose); }
.product-detail__hero {
  width: 100%; height: min(320px, 45vw); border-radius: var(--radius);
  overflow: hidden; background: var(--rose-soft); margin-bottom: .75rem;
}
.product-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__gallery {
  display: flex; gap: .5rem; overflow-x: auto; margin-bottom: 1rem; padding-bottom: .25rem;
}
.product-detail__thumb {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px;
  overflow: hidden; border: 2px solid transparent; cursor: pointer; opacity: .75;
}
.product-detail__thumb.active { border-color: var(--rose); opacity: 1; }
.product-detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__title { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; }
.product-detail__price { font-family: var(--serif); font-size: 1.45rem; color: var(--rose); font-weight: 700; margin: .35rem 0; }
.product-detail__desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 1rem; }
.product-detail__composition {
  background: var(--cream); border-radius: 10px; padding: .75rem .9rem;
  font-size: .82rem; color: var(--ink-soft); margin-bottom: 1rem;
}
.product-detail__composition b { color: var(--ink); display: block; margin-bottom: .25rem; font-size: .78rem; }
.variant-picker { margin-bottom: 1.1rem; }
.variant-picker__label { font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.variant-picker__list { display: flex; flex-wrap: wrap; gap: .45rem; }
.variant-swatch {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 2px solid var(--line); border-radius: 999px;
  padding: .35rem .7rem .35rem .4rem; font-size: .78rem; font-weight: 600;
  cursor: pointer; background: #fff; transition: border-color .15s;
}
.variant-swatch.active { border-color: var(--rose); background: var(--rose-soft); }
.variant-swatch__dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
}
.variant-swatch__dot--border { border: 1px solid #ccc; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card__img { height: 180px; }
  .product-detail__hero { height: 240px; }
}
.modal__subtitle { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin: .5rem 0 1rem; }

.product {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.product:last-of-type { border-bottom: none; }
.product__thumb {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  background: var(--rose-soft);
  display: grid; place-items: center; font-size: 1.6rem;
  flex-shrink: 0; overflow: hidden;
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__info { flex: 1; min-width: 0; }
.product__name { font-weight: 600; font-size: .95rem; }
.product__stock { font-size: .76rem; font-weight: 600; }
.product__stock.in { color: var(--green); }
.product__stock.out { color: #b43b3b; }
.product__price { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--rose); white-space: nowrap; }
.product--out { opacity: .55; }

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed; top: 0; right: -440px;
  width: min(400px, 100vw); height: 100dvh;
  background: var(--surface);
  z-index: 110;
  box-shadow: var(--shadow-lg);
  transition: right .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
}
.drawer.open { right: 0; }
.drawer__head {
  padding: 1.2rem 1.4rem;
  padding-top: calc(1.2rem + env(safe-area-inset-top, 0));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.drawer__head h3 { font-family: var(--serif); font-size: 1.4rem; }
.drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cart-line { display: flex; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cart-line__thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--rose-soft); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__info b { font-size: .9rem; font-weight: 600; }
.cart-line__info small { color: var(--ink-soft); font-size: .76rem; display: block; }
.cart-line__price { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.cart-line__del { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: 1rem; padding: 0 .2rem; }
.cart-line__del:hover { color: var(--rose); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.drawer__foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.pay-row { display: flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--ink-soft); margin-top: .8rem; justify-content: center; }
.pay-row img { height: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff;
  padding: .8rem 1.3rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200; opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Auth (Google) ---------- */
.auth-block { margin: 1rem 0; }
.auth-divider {
  display: flex; align-items: center; gap: .8rem;
  color: var(--ink-soft); font-size: .78rem; margin: 1.1rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.auth-hint { font-size: .78rem; color: var(--ink-soft); margin-top: .55rem; text-align: center; }
.user-chip {
  display: flex; align-items: center; gap: .75rem;
  background: var(--green-soft); border: 1px solid #d5eadb;
  border-radius: var(--radius-sm); padding: .65rem .85rem; margin-bottom: 1rem;
}
.user-chip__info { flex: 1; min-width: 0; }
.user-chip__info b { display: block; font-size: .88rem; }
.user-chip__bonus { display: block; font-size: .74rem; color: var(--rose); font-weight: 700; margin-top: .15rem; }
.auth-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.auth-tab {
  border: 1px solid var(--line); background: var(--cream); border-radius: 999px;
  padding: .4rem .75rem; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.auth-tab.active { background: var(--rose-soft); border-color: var(--rose); color: var(--rose); }
.auth-panel { margin-bottom: .5rem; }
.bonus-checkout {
  background: var(--rose-soft); border: 1px solid #f3d4df; border-radius: 12px;
  padding: .85rem 1rem; margin-bottom: 1rem; font-size: .85rem;
}
.bonus-checkout label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 600; }
.header__account { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.header__account:hover { color: var(--rose); }
.login-google { display: flex; justify-content: center; min-height: 44px; }
.promo-banner {
  background: linear-gradient(90deg, var(--rose-soft), #fff5e6);
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
}
.promo-banner b { color: var(--rose); }
.chip--photo { cursor: pointer; position: relative; }
.chip--photo input { display: none; }
.photo-results { margin-top: 1.5rem; }
.photo-results h3 { font-family: var(--serif); margin-bottom: 1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.photo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: box-shadow .2s;
}
.photo-card:hover { box-shadow: var(--shadow-md); }
.photo-card__img { height: 140px; background: var(--rose-soft); display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.photo-card__img img { width: 100%; height: 100%; object-fit: cover; }
.photo-card__body { padding: .85rem; }
.photo-card__body b { display: block; font-size: .9rem; }
.photo-card__body small { color: var(--ink-soft); font-size: .76rem; }
.photo-card__price { color: var(--rose); font-weight: 700; margin-top: .3rem; }
.reviews-block { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-item { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.review-item:last-child { border-bottom: none; }
.review-stars { color: #e9b949; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.analytics-mini { background: var(--cream); border-radius: 10px; padding: .8rem; text-align: center; }
.analytics-mini b { display: block; font-family: var(--serif); font-size: 1.5rem; }
.analytics-mini span { font-size: .72rem; color: var(--ink-soft); }
.access-denied { text-align: center; padding: 2.5rem 1rem; }
.access-denied h2 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .5rem; }

/* ---------- Mobile nav menu ---------- */
.navmenu { position: relative; display: none; }
.navmenu > summary { list-style: none; cursor: pointer; }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary svg { width: 20px; height: 20px; stroke: var(--ink); }
.navmenu__panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: .5rem; min-width: 210px; z-index: 80;
  display: flex; flex-direction: column;
}
.navmenu__panel a { padding: .75rem .9rem; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.navmenu__panel a:hover { background: var(--rose-soft); color: var(--rose); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) { .hero__grid { gap: 2rem; } }

@media (max-width: 860px) {
  .header__inner { height: 64px; gap: .6rem; }
  .header__nav { display: none; }
  .navmenu { display: block; }
  .brand__svg { height: 34px; }
  .hero { padding: 2.5rem 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__collage { grid-template-rows: repeat(2, 130px); max-width: 460px; }
  .hero__collage img:first-child { height: 274px; }
  .toolbar { top: 64px; }
  .join__grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .header__actions .btn--green { display: none; }
  .hero { padding: 1.75rem 0 2rem; }
  .hero h1 { font-size: 2.1rem; margin-bottom: .6rem; }
  .hero__cities { font-size: .76rem; margin-bottom: .85rem; }
  .hero__lead { font-size: 1rem; }
  .hero__stats { gap: 1.4rem; }
  .hero__stats strong { font-size: 1.6rem; }
  .hero__collage { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 110px); max-width: 100%; }
  .hero__collage img:first-child { height: 234px; }
  .hero__price-tag { left: 0; }
  .shops-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .toolbar__row { gap: .5rem; }
  .search { min-width: 100%; order: -1; }
  .chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .chip { flex-shrink: 0; }
  .drawer { width: 100vw; }
  .overlay {
    padding: 0;
    align-items: flex-end;
  }
  .overlay.open .modal {
    width: 100%;
    max-height: none;
    height: min(92dvh, 100%);
    border-radius: 20px 20px 0 0;
    animation: sheetUp .28s ease;
  }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .modal__handle { display: block; }
  .modal__cover { height: 120px; flex-shrink: 0; }
  .modal__head { flex-shrink: 0; padding: .85rem 1.25rem .25rem; }
  .modal__body { max-height: none; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0)); }
  .modal__head h2 { font-size: 1.5rem; }
  .x-btn { top: .65rem; right: .65rem; }
  .section__head h2 { font-size: 1.8rem; }
  .footer__top { flex-direction: column; gap: 1.5rem; }
  .footer__cols { gap: 2.2rem; }
  .product { flex-wrap: wrap; }
  .product__price { margin-left: auto; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.8rem; }
  .btn { padding: .7rem 1.05rem; }
  .hero__stats { gap: 1rem; }
}
