/* ==========================================================================
   AgriFarm — storefront chrome and page layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--green-700);
  color: #fff;
  font-size: var(--text-xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 38px;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.92);
}

.topbar__item a { color: inherit; }
.topbar__item a:hover { color: var(--gold-500); }
.topbar__item svg { width: 14px; height: 14px; color: var(--gold-500); }

.topbar__social { display: flex; align-items: center; gap: var(--space-4); }
.topbar__social a { color: rgba(255, 255, 255, 0.85); display: grid; place-items: center; }
.topbar__social a:hover { color: var(--gold-500); }
.topbar__social svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .topbar__social { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__meta { gap: var(--space-4); justify-content: center; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header { background: var(--surface); border-bottom: 1px solid var(--line); }

.header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-4);
}

.logo { display: inline-flex; align-items: center; gap: var(--space-3); }

/* The brand mark is a near-square crest with the wordmark inside it, so it
   needs more height than a typical horizontal logo to stay legible. */
.logo img {
  height: 92px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo__fallback {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.logo__name {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green-700);
}

.logo__tag {
  font-family: var(--font-script);
  font-size: var(--text-sm);
  color: var(--gold-600);
}

/* Header search — the wide pill from the reference design. */
.header-search { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }

.header-search__form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3125rem 0.3125rem 0.3125rem 1.125rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  transition: border-color var(--duration-sm) var(--ease), background var(--duration-sm) var(--ease);
}

.header-search__form:focus-within { border-color: var(--green-700); background: var(--surface); }

.header-search__icon { width: 18px; height: 18px; color: var(--ink-400); flex-shrink: 0; }

.header-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.625rem 0;
  font-size: var(--text-sm);
  color: var(--ink-900);
}

.header-search__input:focus { outline: none; }
.header-search__input::placeholder { color: var(--ink-400); }

.header-search__submit {
  flex-shrink: 0;
  padding: 0.5625rem 1.25rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--green-700);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  transition: background var(--duration-sm) var(--ease);
}

.header-search__submit:hover { background: var(--green-900); }

/* Live suggestion dropdown (PRD 4.1). */
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 60vh;
  overflow-y: auto;
}

.suggest[hidden] { display: none; }

.suggest__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
}

.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover,
.suggest__item.is-active { background: var(--green-50); color: var(--ink-900); }

.suggest__thumb {
  width: 44px; height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
}

.suggest__name {
  flex: 1;
  min-width: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.suggest__price { font-size: var(--text-sm); font-weight: 800; color: var(--green-700); white-space: nowrap; }

.suggest__empty,
.suggest__all {
  display: block;
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-600);
}

.suggest__all { font-weight: 700; color: var(--green-700); background: var(--surface-3); }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: var(--space-2); }

.header-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-900);
  transition: background var(--duration-sm) var(--ease), color var(--duration-sm) var(--ease);
}

.header-action:hover { background: var(--green-50); color: var(--green-700); }
.header-action svg { width: 22px; height: 22px; }

.header-action__count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.header__burger,
.header__search-toggle { display: none; }

/* --------------------------------------------------------------------------
   Header — tablet and phone
   --------------------------------------------------------------------------
   One sticky 56px row: menu, logo, search, cart. Search opens as a panel
   underneath rather than taking a permanent second row — with a 64px logo on
   its own line above a full-width search field, the chrome used to occupy
   roughly a third of a phone screen before a single product was visible.
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    /* The shadow only appears once the page has moved, so the header sits flat
       against the top bar at rest. */
    transition: box-shadow var(--duration-sm) var(--ease);
  }

  .header.is-stuck { box-shadow: var(--shadow-sm); }

  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-2);
    padding-block: var(--space-2);
    min-height: 56px;
  }

  .header__burger,
  .header__search-toggle { display: grid; }

  /* The logo centres between the menu button and the actions. */
  .logo { justify-self: center; }
  .logo img { height: 44px; max-width: 132px; }

  .header-action { width: 42px; height: 42px; }
  .header-action svg { width: 21px; height: 21px; }

  /* Account lives in the bottom bar and the menu; two entry points is enough. */
  .header__account,
  .header__wishlist { display: none; }

  /* Search panel: collapsed by default, expanded by the toggle. */
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows var(--duration) var(--ease),
                opacity var(--duration-sm) var(--ease),
                margin-top var(--duration) var(--ease);
    margin-top: 0;
  }

  .header-search > * { min-height: 0; overflow: hidden; }

  /* The row collapses to 0fr, but the form's own border and padding are part of
     its box and survive that — 1.5px + 5px top and bottom left a 13px sliver of
     empty pill under the header. Collapsing them too is what actually gets the
     closed state to zero. */
  .header-search:not(.is-open) .header-search__form {
    border-block-width: 0;
    padding-block: 0;
  }

  /* Border and padding change instantly, not over a transition. Animating a
     property that changes layout forces a reflow on every frame, and if frames
     stop arriving — a backgrounded tab, a device under load — the value is left
     stranded at whatever it started on. Opacity and the row height carry the
     animation; these two just need to be right. */

  .header-search.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: var(--space-3);
  }

  /* The suggestion list must escape the collapsing wrapper. */
  .header-search.is-open .suggest { overflow: visible; }
  .header-search .suggest { max-height: 50vh; overflow-y: auto; }
}

@media (max-width: 560px) {
  .logo img { height: 40px; max-width: 116px; }

  /* The word "Search" inside the field costs more than it earns at this width. */
  .header-search__submit {
    padding: 0.5rem;
    width: 38px;
    font-size: 0;
  }

  .header-search__submit::after {
    content: '\2192';
    font-size: var(--text-base);
    line-height: 1;
  }
}

/* The address and email are in the footer too; the row is not worth 38px here. */
@media (max-width: 640px) {
  .topbar { display: none; }
}

/* --------------------------------------------------------------------------
   Primary navigation
   -------------------------------------------------------------------------- */

.nav {
  background: var(--green-700);
  position: relative;
  z-index: var(--z-sticky);
}

.nav.is-stuck {
  position: sticky;
  top: 0;
  box-shadow: var(--shadow);
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item { position: relative; margin: 0; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--text-sm);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--duration-sm) var(--ease);
}

.nav__link:hover,
.nav__item.is-active > .nav__link { color: var(--gold-500); }

.nav__link svg { width: 12px; height: 12px; transition: transform var(--duration-sm) var(--ease); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--duration-sm) var(--ease),
              transform var(--duration-sm) var(--ease),
              visibility var(--duration-sm);
}

.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown li { margin: 0; }

.nav__dropdown a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav__dropdown a:hover { background: var(--green-50); color: var(--green-700); }

/* Mega menu for Shop Now — the 9 master categories with their children.
 *
 * The item holding it is position:static on purpose, so this panel is measured
 * against the full-width .nav rather than the list item. Measured against the
 * item — 138px wide, sitting left of centre — "left: 50%" put the panel's
 * midpoint over the link instead of the page, and at 1100px it started at
 * left: -83px with its first column cut off the screen. */
.nav__item--mega { position: static; }

.nav__mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(var(--container), calc(100vw - 2 * var(--container-pad)));
  padding: var(--space-8);
  background: var(--surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              visibility var(--duration);
}

.nav__item:hover > .nav__mega,
.nav__item:focus-within > .nav__mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6) var(--space-8);
}

.nav__mega-col { min-width: 0; }

.nav__mega-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--gold-500);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__mega-title:hover { color: var(--green-700); }
.nav__mega-count { font-size: var(--text-xs); font-weight: 600; color: var(--ink-400); }

.nav__mega-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.nav__mega-list li { margin: 0; }

.nav__mega-list a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--ink-600);
}

.nav__mega-list a:hover { color: var(--green-700); padding-left: var(--space-2); }

.nav__mega-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.nav__mega-note { font-size: var(--text-xs); color: var(--ink-600); margin: 0; }

@media (max-width: 1024px) {
  .nav { display: none; }
}

/* --------------------------------------------------------------------------
   Mobile drawer navigation
   -------------------------------------------------------------------------- */

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(400px, 88vw);
  z-index: var(--z-drawer);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--duration) var(--ease-out);
}

.drawer--left  { left: 0; }
.drawer--right { right: 0; left: auto; transform: translateX(100%); }
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.drawer__title { margin: 0; font-size: var(--text-lg); }

.drawer__close {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-700);
  font-size: var(--text-xl);
  line-height: 1;
}

.drawer__close:hover { background: var(--green-50); color: var(--green-700); }

.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-5); }
.drawer__foot { padding: var(--space-5); border-top: 1px solid var(--line); background: var(--surface-2); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(31, 30, 23, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration);
}

.drawer-overlay.is-open { opacity: 1; visibility: visible; }

/* Mobile nav accordion */
.mnav { list-style: none; margin: 0; padding: 0; }
.mnav li { margin: 0; border-bottom: 1px solid var(--line); }

.mnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  color: var(--ink-900);
  font-size: var(--text-base);
  font-weight: 700;
}

.mnav__link:hover { color: var(--green-700); }

.mnav__toggle {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--ink-700);
  flex-shrink: 0;
}

.mnav__toggle svg { width: 14px; height: 14px; transition: transform var(--duration-sm) var(--ease); }
.mnav__toggle[aria-expanded='true'] svg { transform: rotate(180deg); }

.mnav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-3) var(--space-4);
  display: none;
}

.mnav__sub.is-open { display: block; }
.mnav__sub li { border: 0; }
.mnav__sub a { display: block; padding: var(--space-2) 0; font-size: var(--text-sm); color: var(--ink-600); }
.mnav__sub a:hover { color: var(--green-700); }

/* Touch targets. 44px is the smallest a finger hits reliably, and the drawer is
   the only navigation a phone has. */
@media (max-width: 1024px) {
  .mnav__link { padding: var(--space-4) 0; min-height: 52px; }
  .mnav__toggle { width: 44px; height: 44px; }
  .mnav__sub a { padding: var(--space-3) 0; min-height: 44px; display: flex; align-items: center; }
  .drawer__body { padding-bottom: var(--space-6); }
}

/* --------------------------------------------------------------------------
   Bottom tab bar (phones)
   --------------------------------------------------------------------------
   Browsing, search and the cart are what people reach for repeatedly, and at
   the top of the page they are both hard to reach one-handed and the first
   thing to scroll away.
   -------------------------------------------------------------------------- */

.mobilebar { display: none; }

@media (max-width: 768px) {
  .mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(31, 30, 23, 0.07);
    /* Clears the iOS home indicator without leaving a gap on other devices. */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobilebar__tab {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-height: 58px;
    padding: var(--space-2) var(--space-1);
    border: 0;
    background: transparent;
    color: var(--ink-600);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transition: color var(--duration-sm) var(--ease);
  }

  .mobilebar__tab:hover,
  .mobilebar__tab.is-active { color: var(--green-700); }

  .mobilebar__icon { width: 22px; height: 22px; }

  .mobilebar__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobilebar__badge-wrap { position: relative; display: grid; place-items: center; }

  .mobilebar__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--gold-600);
    color: var(--ink-900);
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1;
  }

  .mobilebar__badge[hidden] { display: none; }

  /* Nothing at the bottom of a page may hide behind the bar. */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

  .to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  /* The cart drawer's checkout buttons would otherwise sit under the bar. */
  .drawer__foot { padding-bottom: calc(var(--space-5) + 58px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__img {
  width: 72px; height: 72px;
  object-fit: contain;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
}

.cart-line__body { min-width: 0; }

.cart-line__name {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-line__name a { color: var(--ink-900); }
.cart-line__name a:hover { color: var(--green-700); }
.cart-line__meta { font-size: var(--text-xs); color: var(--ink-600); }
.cart-line__price { font-weight: 800; color: var(--green-700); white-space: nowrap; }

.cart-line__remove {
  border: 0;
  background: transparent;
  color: var(--ink-400);
  padding: 0;
  font-size: var(--text-xs);
  text-decoration: underline;
}
.cart-line__remove:hover { color: var(--danger); }

.cart-summary { display: grid; gap: var(--space-2); }

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-700);
}

.cart-summary__row--total {
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 1.5px solid var(--line);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink-900);
}

.cart-summary__gst { font-size: var(--text-xs); color: var(--ink-600); }

/* --------------------------------------------------------------------------
   Homepage — hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  align-items: center;
  background: var(--green-900);
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(22, 66, 42, 0.92) 0%,
    rgba(22, 66, 42, 0.72) 42%,
    rgba(22, 66, 42, 0.28) 100%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 720px; }

.hero__eyebrow {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: var(--space-2);
  display: block;
}

.hero__title {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-6);
}

.hero__text {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

@media (max-width: 560px) {
  .hero { min-height: 500px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Trust bar (Return Policy / Free Shipping / Store Locator)
   -------------------------------------------------------------------------- */

.trust-bar {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  margin-bottom: var(--space-4);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background var(--duration) var(--ease);
}

.trust-bar__item:last-child { border-right: 0; }
.trust-bar__item:hover { background: var(--green-50); }

.trust-bar__icon { width: 48px; height: 48px; color: var(--green-700); }
.trust-bar__title { font-size: var(--text-lg); font-weight: 800; margin: 0; }
.trust-bar__text { font-size: var(--text-sm); color: var(--ink-600); margin: 0; }

@media (max-width: 860px) {
  .trust-bar { margin-top: var(--space-8); }
  .trust-bar__grid { grid-template-columns: 1fr; }
  .trust-bar__item { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--space-6); }
  .trust-bar__item:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Category showcase
   -------------------------------------------------------------------------- */

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--green-700);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cat-tile__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-lg) var(--ease-out);
}

.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 66, 42, 0.15) 0%, rgba(22, 66, 42, 0.88) 78%);
  transition: background var(--duration) var(--ease);
}

.cat-tile:hover .cat-tile__bg { transform: scale(1.07); }
.cat-tile:hover::after { background: linear-gradient(180deg, rgba(22, 66, 42, 0.3) 0%, rgba(22, 66, 42, 0.94) 78%); }

.cat-tile__icon { width: 40px; height: 40px; color: var(--gold-500); margin-bottom: var(--space-3); }
.cat-tile__name { font-size: var(--text-xl); font-weight: 800; color: #fff; margin: 0 0 var(--space-1); }
.cat-tile__count { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.78); }

.cat-tile__link { position: absolute; inset: 0; z-index: 2; }

@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   About band / why-choose
   -------------------------------------------------------------------------- */

.about-band__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-band__copy p { color: rgba(255, 255, 255, 0.85); font-size: var(--text-lg); }
.about-band__highlight { color: var(--gold-500); font-weight: 700; }

/* Editorial photo with an optional caption, used through the About page. */
.about-figure { margin: 0; }

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-600);
  font-style: italic;
}

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

.why-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.why-card__icon { width: 44px; height: 44px; color: var(--gold-600); }
.why-card__title { font-size: var(--text-xl); margin: 0; }
.why-card__text { color: var(--ink-600); margin: 0; flex: 1; }

.why-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green-700);
}

.why-card__link svg { width: 14px; height: 14px; transition: transform var(--duration-sm) var(--ease); }
.why-card__link:hover svg { transform: translateX(4px); }

@media (max-width: 992px) {
  .about-band__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .why-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Promo banners
   -------------------------------------------------------------------------- */

.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  min-height: 240px;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--green-700);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.promo__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}

.promo::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22, 66, 42, 0.9) 10%, rgba(22, 66, 42, 0.5) 100%);
}

.promo--gold { background: var(--gold-500); color: var(--ink-900); }
.promo--gold::after { background: linear-gradient(90deg, rgba(226, 192, 95, 0.94) 10%, rgba(226, 192, 95, 0.6) 100%); }

.promo__eyebrow {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.promo--gold .promo__eyebrow { color: var(--green-900); }

.promo__title { font-size: var(--text-2xl); color: inherit; margin: 0 0 var(--space-4); max-width: 16ch; }
.promo__cta { align-self: flex-start; }

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

/* --------------------------------------------------------------------------
   Counters
   -------------------------------------------------------------------------- */

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }

.counter { text-align: center; padding: var(--space-6) var(--space-4); }

.counter__value {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-500);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.counter__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 860px) { .counters { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial__quote-mark {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-300);
  pointer-events: none;
}

.testimonial__text { color: var(--ink-700); font-size: var(--text-sm); line-height: var(--leading-loose); flex: 1; margin: 0; }
.testimonial__author { display: flex; align-items: center; gap: var(--space-3); }

.testimonial__avatar {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 800;
  font-size: var(--text-sm);
}

.testimonial__name { font-weight: 700; font-size: var(--text-sm); }
.testimonial__role { font-size: var(--text-xs); color: var(--ink-600); }

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

/* --------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

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

.post-card__media { aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-lg) var(--ease-out); }
.post-card:hover .post-card__img { transform: scale(1.05); }

.post-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--ink-600);
}

.post-card__meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.post-card__meta svg { width: 13px; height: 13px; color: var(--gold-600); }

.post-card__title { font-size: var(--text-lg); margin: 0; line-height: var(--leading-snug); }
.post-card__title a { color: var(--ink-900); }
.post-card__title a:hover { color: var(--green-700); }
.post-card__excerpt { font-size: var(--text-sm); color: var(--ink-600); margin: 0; flex: 1; }

/* --------------------------------------------------------------------------
   Shop layout
   -------------------------------------------------------------------------- */

.shop-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
}

.shop-sidebar { position: sticky; top: var(--space-6); display: grid; gap: var(--space-6); }

.filter-block {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.filter-block__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 var(--space-4);
  font-size: var(--text-base);
  font-weight: 800;
}

.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.filter-list li { margin: 0; }

.filter-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--ink-700);
  font-weight: 600;
}

.filter-list__link:hover { background: var(--green-50); color: var(--green-700); }
.filter-list__link.is-active { background: var(--green-700); color: #fff; }
.filter-list__link.is-active .filter-list__count { color: rgba(255, 255, 255, 0.8); }
.filter-list__count { font-size: var(--text-xs); color: var(--ink-400); font-weight: 600; }

.filter-list__sub { list-style: none; margin: 0 0 var(--space-2); padding-left: var(--space-4); display: grid; gap: 1px; }
.filter-list__sub .filter-list__link { font-weight: 500; font-size: var(--text-sm); color: var(--ink-600); }

/* Price range */
.price-range { display: grid; gap: var(--space-4); }

.price-range__inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-2); }
.price-range__inputs .input { padding: 0.5rem 0.625rem; text-align: center; }
.price-range__sep { color: var(--ink-400); }

.price-range__slider { position: relative; height: 28px; }

.price-range__track {
  position: absolute;
  top: 12px; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
}

.price-range__fill {
  position: absolute;
  top: 12px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
}

.price-range__slider input[type='range'] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
}

.price-range__slider input[type='range']::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-700);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.price-range__slider input[type='range']::-moz-range-thumb {
  pointer-events: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-700);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

/* Shop toolbar */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.shop-toolbar__count { font-size: var(--text-sm); color: var(--ink-600); margin: 0; }
.shop-toolbar__count strong { color: var(--ink-900); }
.shop-toolbar__right { display: flex; align-items: center; gap: var(--space-3); }
.shop-toolbar__right .select { min-width: 190px; }
.shop-filter-toggle { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-800);
  font-size: var(--text-xs);
  font-weight: 600;
}

.active-filter button { border: 0; background: transparent; color: inherit; padding: 0; line-height: 1; font-size: var(--text-sm); }
.active-filter button:hover { color: var(--danger); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.is-loading { opacity: 0.45; pointer-events: none; transition: opacity var(--duration-sm) var(--ease); }

@media (max-width: 1100px) {
  .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-filter-toggle { display: inline-flex; }
}

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

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

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: start; }

.pdp-gallery { display: grid; gap: var(--space-4); position: sticky; top: var(--space-6); }

.pdp-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pdp-gallery__img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-8); }

.pdp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--space-3);
}

.pdp-gallery__thumb {
  aspect-ratio: 1 / 1;
  padding: var(--space-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  cursor: pointer;
  transition: border-color var(--duration-sm) var(--ease);
}

.pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery__thumb:hover { border-color: var(--green-200); }
.pdp-gallery__thumb.is-active { border-color: var(--green-700); }

.pdp-info { display: grid; gap: var(--space-5); }

.pdp-info__category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.pdp-info__title { font-size: var(--text-3xl); margin: 0; }

.pdp-info__rating { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--ink-600); }

.pdp-info__price { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.pdp-info__price .price { font-size: var(--text-3xl); }
.pdp-info__gst { font-size: var(--text-xs); color: var(--ink-600); width: 100%; }

.pdp-info__short { color: var(--ink-700); font-size: var(--text-base); line-height: var(--leading-normal); margin: 0; }

.pdp-info__meta { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.pdp-info__meta-row { display: flex; gap: var(--space-3); }
.pdp-info__meta-label { min-width: 110px; color: var(--ink-600); }
.pdp-info__meta-value { font-weight: 600; }

.pdp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.pdp-buy .btn { flex: 1; min-width: 200px; }

.pdp-trust {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--cream);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.pdp-trust__row { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-700); }
.pdp-trust__row svg { width: 18px; height: 18px; color: var(--green-700); flex-shrink: 0; }

/* Tabs */
.tabs { margin-top: var(--space-16); }

.tabs__nav {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--line);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__nav::-webkit-scrollbar { display: none; }

.tabs__btn {
  position: relative;
  padding: var(--space-4) var(--space-6);
  border: 0;
  background: transparent;
  color: var(--ink-600);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--duration-sm) var(--ease);
}

.tabs__btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--green-700);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.tabs__btn:hover { color: var(--ink-900); }
.tabs__btn.is-active { color: var(--green-700); }
.tabs__btn.is-active::after { transform: scaleX(1); }

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: af-fade-in var(--duration) var(--ease) both; }

@keyframes af-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.spec-table { font-size: var(--text-sm); }
.spec-table th, .spec-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { width: 220px; color: var(--ink-600); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

@media (max-width: 992px) {
  .pdp { grid-template-columns: 1fr; gap: var(--space-8); }
  .pdp-gallery { position: static; }
  .pdp-info__title { font-size: var(--text-2xl); }
}

/* --------------------------------------------------------------------------
   Cart page & checkout
   -------------------------------------------------------------------------- */

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

.cart-table { width: 100%; }
.cart-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-600);
  border-bottom: 2px solid var(--line);
}
.cart-table td { padding: var(--space-5) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; }

.cart-product { display: flex; align-items: center; gap: var(--space-4); }
.cart-product__img { width: 84px; height: 84px; object-fit: contain; background: var(--surface-3); border-radius: var(--radius); flex-shrink: 0; }
.cart-product__name { font-weight: 700; font-size: var(--text-sm); line-height: var(--leading-snug); }
.cart-product__name a { color: var(--ink-900); }
.cart-product__name a:hover { color: var(--green-700); }
.cart-product__meta { font-size: var(--text-xs); color: var(--ink-600); margin-top: var(--space-1); }

.order-summary {
  position: sticky;
  top: var(--space-6);
  padding: var(--space-8);
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.order-summary__title { font-size: var(--text-xl); margin-bottom: var(--space-6); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-10); align-items: start; }

.checkout-step { margin-bottom: var(--space-10); }

.checkout-step__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.checkout-step__num {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 800;
  flex-shrink: 0;
}

.checkout-step__title { margin: 0; font-size: var(--text-xl); }

.pay-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: var(--space-3);
  transition: border-color var(--duration-sm) var(--ease), background var(--duration-sm) var(--ease);
}

.pay-method:hover { border-color: var(--green-500); }
.pay-method.is-selected { border-color: var(--green-700); background: var(--green-50); }
.pay-method__title { font-weight: 700; font-size: var(--text-sm); }
.pay-method__text { font-size: var(--text-xs); color: var(--ink-600); margin: var(--space-1) 0 0; }

#af-card-element {
  padding: var(--space-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

#af-card-element.StripeElement--focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(56, 102, 63, 0.14); }
#af-card-element.StripeElement--invalid { border-color: var(--danger); }

@media (max-width: 992px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

/* --------------------------------------------------------------------------
   Account
   -------------------------------------------------------------------------- */

.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-10); align-items: start; }

.account-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.account-nav li { margin: 0; }

.account-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: 600;
}

.account-nav a:hover { background: var(--green-50); color: var(--green-700); }
.account-nav a.is-active { background: var(--green-700); color: #fff; }
.account-nav svg { width: 18px; height: 18px; }

.auth-card {
  max-width: 480px;
  margin-inline: auto;
  padding: var(--space-10);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .auth-card { padding: var(--space-6); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--ink-800); color: rgba(255, 255, 255, 0.72); }

.footer__top {
  padding-block: var(--space-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: var(--space-10); }

.footer__tagline {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  color: var(--gold-500);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

.footer__about { font-size: var(--text-sm); line-height: var(--leading-loose); margin-bottom: var(--space-5); }

.footer__title {
  font-size: var(--text-base);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gold-500);
  display: inline-block;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer__list li { margin: 0; }

.footer__list a { color: rgba(255, 255, 255, 0.72); font-size: var(--text-sm); }
.footer__list a:hover { color: var(--gold-500); padding-left: var(--space-1); }

.footer__contact { display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.footer__contact-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.footer__contact-row svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.footer__contact-row a { color: rgba(255, 255, 255, 0.72); }
.footer__contact-row a:hover { color: var(--gold-500); }

.footer__newsletter { display: flex; gap: var(--space-2); margin-top: var(--space-5); }

.footer__newsletter .input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.footer__newsletter .input::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer__newsletter .input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(226, 192, 95, 0.18); }

.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }

.footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: background var(--duration-sm) var(--ease), color var(--duration-sm) var(--ease);
}

.footer__social a:hover { background: var(--gold-500); color: var(--ink-900); }
.footer__social svg { width: 17px; height: 17px; }

.footer__bottom {
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
}

.footer__legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer__legal a { color: rgba(255, 255, 255, 0.6); }
.footer__legal a:hover { color: var(--gold-500); }

@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: var(--z-sticky);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              visibility var(--duration),
              background var(--duration-sm) var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-900); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 560px) { .to-top { right: var(--space-4); bottom: 84px; } }
