/* ─── Newleaf — Premium grocery UI ─── */
:root {
  --leaf: #0d9f4f;
  --leaf-dark: #087a3d;
  --leaf-light: #e6f6ec;
  --leaf-glow: rgba(13, 159, 79, 0.12);

  --cream: #faf9f6;
  --cream-dark: #f3f1eb;
  --white: #ffffff;

  --text: #1a1f2e;
  --text-soft: #5c6478;
  --text-muted: #9199ab;
  --border: #e8e6e1;
  --border-light: #f0eeea;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(26, 31, 46, 0.04);
  --shadow: 0 4px 20px rgba(26, 31, 46, 0.07);
  --shadow-lg: 0 20px 50px rgba(26, 31, 46, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; border: none; background: none; color: inherit; }
button { cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ─── Topbar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.topbar.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
  background: rgba(255, 255, 255, 0.92);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__icon { color: var(--leaf); display: flex; }
.brand__wordmark {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.brand__wordmark em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.topbar__search {
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.topbar__search:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px var(--leaf-glow);
}
.topbar__search svg { color: var(--text-muted); flex-shrink: 0; }
.topbar__search-input {
  flex: 1;
  outline: none;
  font-size: 0.875rem;
  color: var(--text);
  min-width: 0;
}
.topbar__search-input::placeholder { color: var(--text-muted); }

.topbar__nav {
  display: flex;
  gap: 4px;
}
.topbar__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.topbar__link:hover { color: var(--text); background: var(--white); }
.topbar__link.is-active { color: var(--leaf); background: var(--leaf-light); }

.topbar__tools { display: flex; gap: 6px; margin-left: auto; }
.tool {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}
.tool:hover { color: var(--text); border-color: #d5d2cb; }
.tool--cart { position: relative; color: var(--leaf); border-color: var(--leaf-light); background: var(--leaf-light); }
.tool__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.625rem;
  font-weight: 800;
  background: var(--leaf);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool__count[data-count="0"] { display: none; }
.tool--menu { display: none; }

/* ─── Hero ─── */
.hero {
  padding: 32px 0 48px;
  overflow: hidden;
}
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--leaf);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero__desc {
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: 400px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-bottom: 16px;
}
.hero-search__field {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search__field:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-glow);
}
.hero-search__field::placeholder { color: var(--text-muted); }
.hero-search__go {
  height: 52px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--leaf);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}
.hero-search__go:hover { background: var(--leaf-dark); }
.hero-search__go:active { transform: scale(0.98); }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__tags button {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}
.hero__tags button:hover {
  color: var(--leaf);
  border-color: var(--leaf);
  background: var(--leaf-light);
}

.hero__media {
  position: relative;
  height: 420px;
}
.hero__photo {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__photo--main {
  inset: 0 60px 0 0;
  z-index: 1;
}
.hero__photo--sub {
  width: 140px;
  height: 140px;
  bottom: -12px;
  right: 0;
  z-index: 2;
  border: 4px solid var(--cream);
}
.hero__badge {
  position: absolute;
  top: 24px;
  right: 40px;
  z-index: 3;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.hero__badge-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--leaf);
  letter-spacing: -0.03em;
}
.hero__badge-txt {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Trust ─── */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 48px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust__icon { font-size: 1.25rem; }
.trust__item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.trust__item span { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Sections ─── */
.section { padding: 56px 0; }
.section--cream { background: var(--cream-dark); }
.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section__header--center {
  justify-content: center;
  text-align: center;
}
.section__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.section__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.section__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--leaf);
  white-space: nowrap;
}
.section__link:hover { text-decoration: underline; }

/* ─── Aisles (categories) ─── */
.aisles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.aisle {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: none;
  padding: 0;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.aisle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26, 31, 46, 0.75) 100%);
  pointer-events: none;
}
.aisle:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.aisle__img {
  display: block;
  width: 100%;
  height: 100%;
}
.aisle__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.aisle:hover .aisle__img img { transform: scale(1.06); }
.aisle__name {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}

/* ─── Product shelf & grid ─── */
.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.item__img {
  display: block;
  aspect-ratio: 1;
  background: #f5f4f1;
  overflow: hidden;
}
.item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.item:hover .item__img img { transform: scale(1.04); }

.item__off {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: #e11d48;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.item__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.item__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--leaf);
  margin-bottom: 6px;
}
.item__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item__name a {
  color: inherit;
  text-decoration: none;
}
.item__name a:hover { color: var(--leaf); }
.item__meta { font-size: 0.8125rem; color: var(--text-muted); }

.item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}
.item__prices s {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.item__prices strong {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.item__add {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--leaf-glow);
  transition: background 0.2s, transform 0.2s;
}
.item__add:hover { background: var(--leaf-dark); }
.item__add.is-pulse { transform: scale(1.12); }

/* ─── Promo ─── */
.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 52px;
  background: linear-gradient(135deg, var(--leaf) 0%, #067a3a 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
}
.promo__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  display: block;
  margin-bottom: 10px;
}
.promo h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.promo p {
  opacity: 0.9;
  margin-bottom: 22px;
  max-width: 360px;
}
.promo code {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.promo__art {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.25);
}
.promo__art img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--leaf);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--leaf-dark); }
.btn:active { transform: scale(0.98); }
.btn--white { background: #fff; color: var(--leaf-dark); }
.btn--white:hover { background: var(--leaf-light); }
.btn--full { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1rem; width: 100%; max-width: 280px; }

/* ─── Subpages ─── */
.page-hero {
  padding: 48px 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-hero--compact { padding: 36px 0 32px; }
.page-hero--deals {
  background: linear-gradient(135deg, var(--leaf-light) 0%, var(--cream) 100%);
}
.page-hero__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--leaf);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.page-hero__desc {
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: 520px;
}
.page-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.page-hero__img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.shop--page { padding-top: 0; border-top: none; }
.shelf--deals-page { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.info-banner p { color: var(--text-soft); }
.info-banner code {
  background: var(--leaf-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.content-prose {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 40px;
}
.content-prose p + p { margin-top: 16px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stats-row__item {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.stats-row__item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--leaf);
  margin-bottom: 4px;
}
.stats-row__item span { font-size: 0.875rem; color: var(--text-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.feature-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.9375rem; color: var(--text-soft); line-height: 1.6; }

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.delivery-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.delivery-card__icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.delivery-card h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.delivery-card p { color: var(--text-soft); margin-bottom: 16px; line-height: 1.6; }
.delivery-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.delivery-card li { font-size: 0.9375rem; color: var(--text-soft); padding-left: 16px; position: relative; }
.delivery-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
}

.faq { max-width: 640px; }
.faq dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  font-size: 0.9375rem;
}
.faq dt:first-child { margin-top: 0; }
.faq dd {
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-block + .contact-block { margin-top: 28px; }
.contact-block h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.contact-block p { color: var(--text-soft); line-height: 1.7; }
.contact-block a { color: var(--leaf); font-weight: 600; }
.contact-block a:hover { text-decoration: underline; }

.contact-form {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-form h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px var(--leaf-glow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--leaf); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

.product-detail { padding: 40px 24px 80px; }
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail__media {
  position: relative;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.product-detail__info h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.product-detail__meta { color: var(--text-muted); margin-bottom: 16px; }
.product-detail__price { margin-bottom: 20px; }
.product-detail__price s {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.product-detail__price strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}
.product-detail__desc {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-detail__perks {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-detail__perks li {
  font-size: 0.875rem;
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
}
.product-detail__perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--leaf);
  font-weight: 700;
}

.page-empty {
  text-align: center;
  padding: 80px 24px;
}
.page-empty h1 { margin-bottom: 12px; }
.page-empty p { color: var(--text-muted); margin-bottom: 24px; }

.basket-line > a:first-child {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
}
.basket-line > a:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Shop layout ─── */
.shop {
  padding: 64px 0 80px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.shop__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.shop__sidebar {
  position: sticky;
  top: 88px;
}
.shop__sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.shop__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-nav__btn {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.shop-nav__btn:hover { background: var(--cream); color: var(--text); }
.shop-nav__btn.is-on {
  background: var(--leaf-light);
  color: var(--leaf);
}

.shop__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.shop__count { font-size: 0.875rem; color: var(--text-muted); }

/* ─── Quotes ─── */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.quote blockquote {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 20px;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.quote__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--leaf-light);
  color: var(--leaf);
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 24px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.site-footer__brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.site-footer__tag { font-size: 0.875rem; }
.site-footer__links {
  display: flex;
  gap: 24px;
}
.site-footer__links a {
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}
.site-footer__links a:hover { color: #fff; }
.site-footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ─── Cart drawer ─── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 31, 46, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer__head h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
}
.drawer__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.drawer__close:hover { background: var(--cream); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.drawer__empty {
  text-align: center;
  padding: 60px 20px;
}
.drawer__empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.drawer__empty p {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.basket-line {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  align-items: flex-start;
}
.basket-line img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.basket-line__info { flex: 1; min-width: 0; }
.basket-line__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.basket-line__price { font-size: 0.8125rem; color: var(--text-muted); }
.basket-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.basket-line__qty button {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  color: var(--text-soft);
  border-radius: 6px;
}
.basket-line__qty button:hover { background: var(--cream); }
.basket-line__qty span {
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.basket-line__del {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px;
}
.basket-line__del:hover { color: var(--text); }

.drawer__foot {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.drawer__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 8px;
}
.drawer__row--dim { color: var(--text-muted); }
.drawer__row--bold {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ─── Snackbar ─── */
.snackbar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}
.snackbar.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { height: 320px; max-width: 480px; margin: 0 auto; }
  .aisles { grid-template-columns: repeat(3, 1fr); }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .shop__layout { grid-template-columns: 1fr; }
  .shop__sidebar {
    position: static;
    margin-bottom: 8px;
  }
  .shop__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .quotes { grid-template-columns: 1fr; }
  .promo { flex-direction: column; text-align: center; padding: 36px 28px; }
  .promo p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .topbar__search { display: none; }
  .topbar__nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    box-shadow: var(--shadow);
  }
  .topbar__nav.is-open { display: flex; }
  .tool--menu { display: flex; }

  .trust { grid-template-columns: 1fr; }
  .aisles { grid-template-columns: repeat(2, 1fr); }
  .hero__photo--sub { width: 100px; height: 100px; }
  .hero__tags { display: none; }
  .site-footer__inner { flex-direction: column; gap: 24px; }
  .page-hero__split { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .product-detail__grid { grid-template-columns: 1fr; }
}
