/* -----------------------------------------------------------------------------
   The Blend Wellness — store design tokens
   -------------------------------------------------------------------------- */
:root {
  --green: #2f8f46;
  --green-dark: #1f5f2f;
  --green-soft: #e3f1e6;
  --mint: #e9f4e1;
  --mint-deep: #d6ebc9;
  --ink: #1d1d1f;
  --body: #3b3d42;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #f6f8f4;
  --white: #ffffff;
  --danger: #c0392b;
  --danger-soft: #fdecea;

  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(16, 24, 16, 0.04), 0 4px 16px rgba(16, 24, 16, 0.05);
  --shadow-hover: 0 10px 30px rgba(16, 24, 16, 0.10);
  --shadow-pop: 0 24px 60px rgba(10, 30, 15, 0.25);

  --content-max: 1240px;
  --gutter: 24px;
  --header-h: 76px;
}

/* -----------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(47, 143, 70, 0.45);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: 56px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--green-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* -----------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field__label em {
  font-style: normal;
  color: var(--green);
}

.field__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 143, 70, 0.15);
}

textarea.field__input {
  min-height: 120px;
  resize: vertical;
}

.field--error .field__input {
  border-color: var(--danger);
}

.field__error {
  font-size: 12.5px;
  color: var(--danger);
}

/* -----------------------------------------------------------------------------
   Product grid (4 → 2 → 1)
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }

  .section {
    padding: 40px 0;
  }
}


/* --- component styles ------------------------------------------- */
/* TopBar */

.top-bar {
  background: var(--green-dark);
  color: var(--white);
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-bar__track {
  display: flex;
  width: max-content;
  animation: top-bar-scroll 40s linear infinite;
}

.top-bar:hover .top-bar__track {
  animation-play-state: paused;
}

.top-bar__group {
  display: flex;
  flex-shrink: 0;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px;
  white-space: nowrap;
}

.top-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd19e;
}

@keyframes top-bar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar__track {
    animation: none;
  }
}

/* SiteHeader */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;

  img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
}

.site-header__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;

  strong {
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.02em;
  }

  small {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }
}

.site-header__nav {
  display: flex;
  gap: 8px;
  margin-right: auto;

  a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    color: var(--body);
    transition: background 0.15s ease, color 0.15s ease;
  }

  a:hover {
    color: var(--green-dark);
    background: var(--mint);
  }

  a.is-active {
    color: var(--green-dark);
    background: var(--mint);
  }
}

.nav-soon {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.site-header__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;

  span {
    display: inline-flex;
  }
}

.icon-btn:hover {
  background: var(--mint);
  color: var(--green-dark);
}

.icon-btn__badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  border: 2px solid var(--white);
  box-sizing: content-box;
}

.site-header__toggle {
  display: none;
}

@media (max-width: 768px) {
  .site-header__inner {
    gap: 12px;
    justify-content: space-between;
  }

  .site-header__name strong {
    font-size: 16px;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px var(--gutter) 16px;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);

    a {
      padding: 12px 14px;
      border-radius: var(--radius-sm);
    }
  }

  .site-header__nav.is-open {
    display: flex;
  }
}

/* SiteFooter */

.site-footer {
  margin-top: 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);

  img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
}

.site-footer__nav {
  display: flex;
  gap: 20px;

  a {
    color: var(--muted);
  }

  a:hover {
    color: var(--green-dark);
  }
}

.site-footer__copy {
  margin-left: auto;
  color: var(--muted);
}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .site-footer__copy {
    margin-left: 0;
  }
}

/* DisabledModal */

.dm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 30, 18, 0.55);
  backdrop-filter: blur(3px);
  animation: dm-fade 0.15s ease;
}

.dm {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-pop);
  text-align: center;
  animation: dm-pop 0.18s ease;
}

.dm:focus {
  outline: none;
}

.dm__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
}

.dm__title {
  font-size: 21px;
  margin-bottom: 10px;
}

.dm__text {
  color: var(--muted);
  margin-bottom: 24px;
}

@keyframes dm-fade {
  from { opacity: 0; }
}

@keyframes dm-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}

/* ProductCard */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid #eef1ea;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card__pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--green-dark);
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 12px;

  img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
  }
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__placeholder {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}

.product-card__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.product-card__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
}

.product-card__add {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-card__add:hover {
  background: var(--green-dark);
  transform: scale(1.06);
}

.product-card__add.is-added {
  background: var(--green-dark);
}

/* Shop */

.hero {
  background:
    radial-gradient(1200px 400px at 85% 10%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.hero__title {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;

  span {
    color: var(--green);
  }
}

.hero__lead {
  max-width: 480px;
  margin: 18px 0 30px;
  font-size: 17px;
  color: #4b5563;
}

.hero-search {
  position: relative;
  max-width: 520px;
  display: flex;
  align-items: center;
}

.hero-search__icon {
  position: absolute;
  left: 22px;
  display: inline-flex;
  color: var(--green);
  pointer-events: none;
}

.hero-search__input {
  width: 100%;
  height: 62px;
  padding: 0 56px 0 58px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 16.5px;
  box-shadow: 0 10px 30px rgba(31, 95, 47, 0.12);
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.hero-search__input::-webkit-search-cancel-button {
  display: none;
}

.hero-search__input::placeholder {
  color: #9ca3af;
}

.hero-search__input:focus {
  outline: none;
  border-color: var(--green);
}

.hero-search__clear {
  position: absolute;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.hero-search__clear:hover {
  background: var(--mint);
  color: var(--green-dark);
}

.hero__collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 500px;
  justify-self: end;
  width: 100%;
}

.hero__tile {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(31, 95, 47, 0.10);

  img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
}

.hero__tile--1 { transform: translateY(18px); }
.hero__tile--2 { transform: translateY(-10px); background: var(--white); }
.hero__tile--3 { transform: translateY(8px); background: var(--white); }
.hero__tile--4 { transform: translateY(-20px); }

.products__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.products__title {
  font-size: 28px;
}

.products__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.products__empty {
  text-align: center;
  padding: 56px 20px;
  border-radius: var(--radius);
  background: var(--surface);

  h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  p {
    color: var(--muted);
    margin-bottom: 20px;
  }
}

.products__empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero__collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
    justify-self: stretch;
  }

  .hero__tile {
    border-radius: 16px;
    transform: none;
  }
}

@media (max-width: 520px) {
  .hero__lead {
    font-size: 15.5px;
  }

  .hero-search__input {
    height: 56px;
    font-size: 16px;
  }

  .products__title {
    font-size: 22px;
  }
}

/* Partner */

.partner__band {
  background: linear-gradient(180deg, var(--mint) 0%, var(--white) 520px);
}

.partner__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 72px;
}

.partner__pitch {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.partner__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.partner__title {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;

  span {
    color: var(--green);
  }
}

.partner__lead {
  margin: 16px 0 32px;
  font-size: 16.5px;
  color: #4b5563;
}

.partner__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;

  li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    margin-bottom: 2px;
  }

  p {
    color: var(--muted);
    font-size: 14.5px;
  }
}

.partner__benefit-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--white);
  color: var(--green);
  box-shadow: var(--shadow-card);
}

.partner-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.partner-card__title {
  font-size: 22px;
}

.partner-card__sub {
  margin: 4px 0 24px;
  color: var(--muted);
  font-size: 14px;

  em {
    font-style: normal;
    color: var(--green);
  }
}

.partner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.field--wide {
  grid-column: 1 / -1;
  position: relative;
}

.partner-form__counter {
  align-self: flex-end;
  font-size: 12px;
  color: var(--muted);
}

.partner-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.partner-form__alert {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.partner-form__submit {
  margin-top: 22px;
  min-height: 52px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.partner-success {
  text-align: center;
  padding: 32px 8px;

  h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  p {
    color: var(--muted);
    margin-bottom: 24px;
  }

  strong {
    color: var(--ink);
  }
}

.partner-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

@media (max-width: 900px) {
  .partner__layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .partner__pitch {
    position: static;
  }
}

@media (max-width: 560px) {
  .partner-card {
    padding: 22px 18px;
  }

  .partner-form {
    grid-template-columns: 1fr;
  }
}

/* Cart */

.cart-page__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;

  h1 {
    font-size: 34px;
  }
}

.cart-page__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.cart-empty {
  text-align: center;
  padding: 64px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 200px;

  h2 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  p {
    color: var(--muted);
    margin-bottom: 22px;
  }
}

.cart-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

.cart-lines__head,
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 0.8fr 1fr 0.8fr 40px;
  align-items: center;
  gap: 16px;
}

.cart-lines__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-line {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;

  strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
  }

  small {
    color: var(--muted);
    font-size: 13px;
  }
}

.cart-line__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface);

  img {
    width: 84%;
    height: 84%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
}

.cart-line__price {
  color: var(--body);
}

.cart-line__total {
  font-weight: 700;
  color: var(--ink);
}

.qty {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);

  button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: var(--ink);
  }

  button:hover {
    background: var(--mint);
    color: var(--green-dark);
  }

  span {
    min-width: 26px;
    text-align: center;
    font-weight: 600;
  }
}

.cart-line__remove {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.cart-line__remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.cart-lines__back {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--green-dark);
}

.cart-lines__back:hover {
  text-decoration: underline;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid #eef1ea;
}

.summary__title {
  font-size: 20px;
  margin-bottom: 14px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--body);
}

.summary__row--total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* Disabled checkout: looks inert, still clickable to explain why. */
.summary__checkout {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #d1d5db;
  color: #6b7280;
  font-weight: 700;
  font-size: 15px;
  cursor: not-allowed;

  span {
    display: inline-flex;
  }
}

.summary__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);

  span {
    display: inline-flex;
  }
}

.summary__methods {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
}

.summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);

  span {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-page__head h1 {
    font-size: 28px;
  }

  .cart-lines__head {
    display: none;
  }

  .cart-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'product remove'
      'qty total';
    row-gap: 14px;
  }

  .cart-line__product { grid-area: product; }
  .cart-line__remove { grid-area: remove; }
  .qty { grid-area: qty; }
  .cart-line__total { grid-area: total; text-align: right; }
  .cart-line__price { display: none; }
}

/* Aichat */

.aichat {
  background:
    radial-gradient(900px 380px at 90% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
}

.aichat__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.aichat__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aichat__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: aichat-pulse 1.6s ease-out infinite;
}

.aichat__title {
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;

  span {
    color: var(--green);
  }
}

.aichat__lead {
  max-width: 500px;
  margin: 18px 0 26px;
  font-size: 17px;
  color: #4b5563;
}

.aichat__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;

  li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--ink);
  }

  span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--green);
    flex-shrink: 0;
  }
}

.chat-preview {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(31, 95, 47, 0.16);
  overflow: hidden;
}

.chat-preview__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);

  strong {
    display: block;
    color: var(--ink);
    line-height: 1.2;
  }

  small {
    color: var(--muted);
    font-size: 12.5px;
  }
}

.chat-preview__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.chat-preview__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  min-height: 260px;
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
}

.bubble--bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bubble--me {
  align-self: flex-end;
  background: var(--green);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.bubble--typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;

  i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b5c9b9;
    animation: aichat-dot 1.2s infinite ease-in-out;
  }

  i:nth-child(2) { animation-delay: 0.15s; }
  i:nth-child(3) { animation-delay: 0.3s; }
}

.chat-preview__input {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);

  input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    cursor: not-allowed;
  }

  button {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
  }
}

@keyframes aichat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 143, 70, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(47, 143, 70, 0); }
}

@keyframes aichat-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .aichat__pulse,
  .bubble--typing i {
    animation: none;
  }
}

@media (max-width: 900px) {
  .aichat__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .chat-preview {
    justify-self: stretch;
    max-width: none;
  }
}

/* Notfound */

.notfound {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;

  h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }

  p {
    color: var(--muted);
    margin-bottom: 24px;
  }
}

.notfound__code {
  display: block;
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  color: var(--mint-deep);
  margin-bottom: 8px;
}

/* App */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site__main {
  flex: 1;
}
