/* ==========================================================================
   Ed Cloud Special Education — design system
   --------------------------------------------------------------------------
   Palette and type are taken from the Ed Cloud logo and the site's Elementor
   kit: olive + lime from the pencil and book, dusty rose from the cloud and
   the "Special Education" wordmark, plum for headings. Amaranth sets headings,
   Prompt sets everything else.

   The recurring motif is stationery: paper surfaces, ruled lines, tab shapes
   and the chunky bottom edge on buttons (a pressed pencil, not a shadow).
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Brand — sampled from ED-Cloud-Logo.png */
  --olive:        #48590A;
  --olive-dark:   #2C3706;
  --olive-ink:    #262001;
  --lime:         #94B814;
  --lime-soft:    #C3DE6B;
  --rose:         #BF6980;
  --rose-dark:    #9D435B;
  --rose-soft:    #E9AFBE;
  --plum:         #2D1D54;
  --coral:        #FE5D37;

  /* Neutrals */
  --ink:          #262001;
  --body:         #414141;
  --muted:        #6E6E6E;
  --line:         #E4E2D8;
  --line-soft:    #F0EFE8;
  --paper:        #FFFFFF;
  --paper-warm:   #FBFAF5;
  --paper-pink:   #FFF4F6;
  --paper-green:  #F5F8EC;

  /* Type */
  --font-head: "Amaranth", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Prompt", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radius hierarchy — deliberate, not one value everywhere */
  --r-tab:    14px 14px 4px 4px;  /* card tops, like a file tab   */
  --r-card:   10px;               /* surfaces                     */
  --r-input:  6px;                /* form controls                */
  --r-pill:   999px;              /* buttons and chips only       */

  /* Spacing */
  --gap:      24px;
  --section:  clamp(56px, 7vw, 104px);
  --shell:    1500px;

  --shadow-card: 0 2px 0 var(--line), 0 10px 26px -18px rgba(38,32,1,.45);
  --shadow-lift: 0 3px 0 var(--lime), 0 18px 36px -20px rgba(38,32,1,.5);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--body);
  background: var(--paper);
  overflow-x: hidden;
}
/* `clip` contains stray width without turning body into a scroll container,
   which is what breaks position:sticky headers in some browsers. */
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--plum);
  line-height: 1.14;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.45rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.16rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--olive); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--rose-dark); }

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

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--lime-soft); color: var(--olive-ink); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- layout */
.shell { width: 100%; max-width: var(--shell); padding-inline: 20px; margin-inline: auto; }
.shell--narrow { width: 100%; max-width: 860px; padding-inline: 20px; margin-inline: auto; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(38px, 4.5vw, 64px); }
.section--warm  { background: var(--paper-warm); }
.section--green { background: var(--paper-green); }
.section--pink  { background: var(--paper-pink); }

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

/* Section heading: the lime rule echoes the pencil in the logo. */
.head { margin-bottom: clamp(30px, 3.6vw, 52px); }
.head--center { text-align: center; }
.head__eyebrow {
  font-family: var(--font-head);
  font-size: .84rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: .55rem;
}
.head__title { margin-bottom: .45rem; }
.head__rule {
  width: 74px; height: 5px; border-radius: 3px;
  background: var(--lime);
  margin-bottom: 1rem;
}
.head--center .head__rule { margin-inline: auto; }
.head__lead { max-width: 62ch; color: var(--muted); margin: 0; }
.head--center .head__lead { margin-inline: auto; }

/* --------------------------------------------------------------- buttons */
/* The 5px bottom edge is the site's existing button signature. */
.btn {
  --btn-bg: var(--olive);
  --btn-edge: var(--olive-dark);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1;
  padding: 19px 40px;
  border: 0;
  border-bottom: 5px solid var(--btn-edge);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}
.btn:hover {
  --btn-bg: var(--rose);
  --btn-edge: var(--rose-dark);
  color: #fff;
}
.btn:active { transform: translateY(2px); border-bottom-width: 3px; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--olive);
  --btn-edge: var(--olive);
  border: 2px solid var(--olive);
  border-bottom-width: 5px;
}
.btn--outline:hover { --btn-fg: #fff; background: var(--olive); border-color: var(--olive-dark); }

.btn--rose  { --btn-bg: var(--rose); --btn-edge: var(--rose-dark); }
.btn--rose:hover { --btn-bg: var(--olive); --btn-edge: var(--olive-dark); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--olive); --btn-edge: var(--lime); }
.btn--light:hover { --btn-bg: var(--lime); --btn-fg: var(--olive-ink); --btn-edge: var(--olive); }

.btn--sm   { padding: 12px 24px; font-size: .95rem; border-bottom-width: 4px; }
.btn--full { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ----------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--paper-green);
  color: var(--olive);
  white-space: nowrap;
}
.chip--rose { background: var(--paper-pink); color: var(--rose-dark); }
.chip--solid { background: var(--olive); color: #fff; }

/* ---------------------------------------------------------------- header */
.topbar {
  background: var(--olive-ink);
  color: #E7E4D2;
  font-size: .85rem;
  padding: 9px 0;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #E7E4D2; }
.topbar a:hover { color: var(--lime); }
.topbar__list { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  padding-block: 14px;
}
.masthead__logo img { width: 210px; }

.nav { justify-self: center; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__link {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--plum);
  padding: 10px 15px;
  border-radius: var(--r-input);
  position: relative;
}
.nav__link:hover, .nav__link.is-active { color: var(--olive); background: var(--paper-green); }

.masthead__tools { display: flex; align-items: center; gap: 10px; margin-left: clamp(24px, 3vw, 56px); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--plum);
  cursor: pointer;
  position: relative;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--paper-green); border-color: var(--lime); color: var(--olive); }
.icon-btn__count {
  position: absolute; top: -5px; right: -5px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  display: grid; place-items: center;
  background: var(--rose); color: #fff;
  font-size: .72rem; font-weight: 600;
  border-radius: var(--r-pill);
  border: 2px solid #fff;
}

.burger { display: none; }

/* Slide-out mobile navigation */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: #fff;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 90;
  padding: 26px 26px 40px;
  overflow-y: auto;
  box-shadow: -20px 0 50px -30px rgba(38,32,1,.6);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__list { list-style: none; margin: 20px 0 0; padding: 0; }
.mobile-nav__list a {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plum);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.scrim {
  position: fixed; inset: 0;
  background: rgba(38,32,1,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 80;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* Search drawer */
.searchbar {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
  padding-block: 18px;
}
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: 10px; }
.searchbar input {
  flex: 1;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: clamp(460px, 62vh, 640px);
  display: flex; align-items: center;
  background: var(--olive-ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; transform: scaleX(-1); }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(38,32,1,.93) 0%, rgba(38,32,1,.82) 34%, rgba(38,32,1,.28) 62%, rgba(38,32,1,.06) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 96px); }
.hero__copy { max-width: 640px; color: #fff; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .84rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}
.hero__eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--lime); }
.hero__title { color: #fff; margin-bottom: 1rem; }
.hero__lead { font-size: 1.1rem; color: #EDEAD9; max-width: 52ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__facts {
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 2.6rem; padding-top: 1.7rem;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero__fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.85rem;
  color: var(--lime);
  line-height: 1;
}
.hero__fact span { font-size: .88rem; color: #CFCBB6; }

/* -------------------------------------------------- curriculum finder */
/* The signature component: three steps to the exact resource a teacher needs. */
.finder {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--lime);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 26px 50px -34px rgba(38,32,1,.55);
}
.finder__title { font-size: 1.3rem; margin-bottom: .25rem; }
.finder__hint { font-size: .92rem; color: var(--muted); margin-bottom: 1.3rem; }
.finder__steps { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 14px; align-items: end; }
.finder__step label {
  display: block;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .45rem;
}
.finder select {
  width: 100%;
  padding: 15px 40px 15px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--paper-warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2348590A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--body);
  appearance: none;
  cursor: pointer;
}
.finder select:disabled { opacity: .55; cursor: not-allowed; }

/* Homepage refinements */
.home-story { gap: 56px; align-items: stretch; }
.home-story__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: stretch; min-height: 0; }
.home-story__image { width: 100%; object-fit: cover; border: 1px solid var(--line); }
.home-story__image--first { height: calc(100% - 32px); align-self: start; border-radius: 14px 14px 4px 4px; }
.home-story__image--second { height: calc(100% - 32px); align-self: end; border-radius: 4px 4px 14px 14px; }
.home-story__copy { align-self: stretch; }
.home-cta { position: relative; overflow: hidden; background: var(--olive-ink); }
.home-cta__media { position: absolute; inset: 0; }
.home-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.home-cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(38,32,1,.72); }
.home-cta__content { position: relative; z-index: 2; max-width: 760px; text-align: center; }
.home-cta__content h2 { color: #fff; }
.home-cta__content .head__rule { margin-inline: auto; }
.home-cta__content > p { color: #DDD8C4; font-size: 1.06rem; }

/* ----------------------------------------------------------- product card */
/* Tab-topped like a workbook in a filing tray. */
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-tab);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--lime); box-shadow: var(--shadow-lift); }

.card__media { position: relative; aspect-ratio: 10 / 7; overflow: hidden; background: var(--paper-warm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.045); }
.card__flag {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__subject {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .4rem;
}
.card__title { font-size: 1.06rem; line-height: 1.3; margin-bottom: .5rem; }
.card__title a { color: var(--plum); }
.card__title a:hover { color: var(--olive); }
.card__meta { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.card__price { font-family: var(--font-head); font-size: 1.32rem; color: var(--olive); line-height: 1; }
.card__price del { font-size: .85rem; color: var(--muted); margin-right: .4rem; }

/* ------------------------------------------------------------ subject tile */
/* The label sits under the artwork, never over it — several covers already
   carry the subject name in the illustration itself. */
.subject-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-tab);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.subject-tile:hover { transform: translateY(-4px); border-color: var(--lime); box-shadow: var(--shadow-lift); }

.subject-tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-warm); }
.subject-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.subject-tile:hover .subject-tile__media img { transform: scale(1.06); }

.subject-tile__body {
  padding: 14px 17px 16px;
  border-top: 3px solid var(--lime);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex: 1;
}
.subject-tile__name {
  font-family: var(--font-head);
  font-size: 1.04rem; font-weight: 700; line-height: 1.24;
  color: var(--plum);
}
.subject-tile__count { font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* -------------------------------------------------------------- features */
.feature {
  display: flex; gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  height: 100%;
}
.feature__icon {
  flex: 0 0 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-card);
  background: var(--paper-green);
  color: var(--olive);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.feature p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Contact strip on olive */
.strip { background: var(--olive); color: #fff; }
.strip h3 { color: #fff; font-size: 1.06rem; margin-bottom: .15rem; }
.strip p, .strip a { color: #DDE7BE; font-size: .92rem; margin: 0; }
.strip a:hover { color: #fff; }
.strip__item { display: flex; gap: 14px; align-items: flex-start; }
.strip__icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); background: rgba(255,255,255,.13); }
.strip__icon svg { width: 22px; height: 22px; color: var(--lime); }
.strip--soft-pink { background: var(--paper-pink); color: var(--body); }
.strip--soft-pink h3 { color: var(--plum); }
.strip--soft-pink p, .strip--soft-pink a { color: var(--body); }
.strip--soft-pink a:hover { color: var(--rose-dark); }
.strip--soft-pink .strip__icon { background: rgba(191,105,128,.14); }
.strip--soft-pink .strip__icon svg { color: var(--rose-dark); }
.strip--dark-pink { background: var(--rose-dark); color: #fff; }
.strip--dark-pink h3 { color: #fff; }
.strip--dark-pink p, .strip--dark-pink a { color: #FFF4F6; }
.strip--dark-pink a:hover { color: #fff; }
.strip--dark-pink .strip__icon { background: rgba(255,255,255,.15); }
.strip--dark-pink .strip__icon svg { color: #fff; }

/* ------------------------------------------------------------ page header */
.pagehead {
  position: relative;
  background: var(--olive-ink);
  padding-block: clamp(48px, 6vw, 78px);
  overflow: hidden;
}
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,32,1,.92), rgba(38,32,1,.62)); }
.pagehead__inner { position: relative; z-index: 2; }
.pagehead h1 { color: #fff; margin-bottom: .35rem; }
.crumbs { font-size: .88rem; color: #C9C4AC; }
.crumbs a { color: var(--lime-soft); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .55; margin-inline: .4rem; }

/* About page image sizing */
.about-story, .about-vision, .about-mission { gap: 56px; }
.about-story { align-items: stretch; }
.about-story__media { min-height: 330px; }
.about-story__image { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: 14px 14px 4px 4px; }
.about-vision { align-items: center; }
.about-vision__media { order: -1; }
.about-vision__image { width: 100%; height: 330px; object-fit: cover; border: 1px solid var(--line); border-radius: 14px 14px 4px 4px; }
.about-mission { align-items: stretch; margin-top: clamp(48px, 6vw, 84px); }
.about-mission__media { position: relative; min-height: 0; }
.about-mission__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; border: 1px solid var(--line); border-radius: 14px 14px 4px 4px; }
.about-mission__list { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.about-mission__list li { display: flex; gap: 11px; margin-bottom: .7rem; }
.about-mission__list li:last-child { margin-bottom: 0; }
.about-mission__check { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-pink); color: var(--rose-dark); margin-top: 3px; }

/* -------------------------------------------------------------- shop grid */
.shop { display: grid; grid-template-columns: 274px 1fr; gap: 40px; align-items: start; }

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
}
.filters__group + .filters__group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.filters__title {
  font-family: var(--font-head);
  font-size: .84rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .8rem;
}
.filters__list { list-style: none; margin: 0; padding: 0; }
.filters__list li + li { margin-top: 2px; }
.filters__list a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 11px;
  border-radius: var(--r-input);
  font-size: .94rem;
  color: var(--body);
}
.filters__list a:hover { background: var(--paper-green); color: var(--olive); }
.filters__list a.is-active { background: var(--olive); color: #fff; font-weight: 500; }
.filters__list a.is-active small { color: rgba(255,255,255,.75); }
.filters__list small { color: var(--muted); font-size: .82rem; }

.shop__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.shop__count { font-size: .94rem; color: var(--muted); }
.shop__sort select {
  padding: 11px 38px 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2348590A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  font-family: var(--font-body); font-size: .93rem; color: var(--body);
  appearance: none; cursor: pointer;
}

.applied { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.applied a { display: inline-flex; align-items: center; gap: .45rem; background: var(--paper-green); color: var(--olive); font-size: .85rem; padding: 6px 12px; border-radius: var(--r-pill); }
.applied a:hover { background: var(--rose); color: #fff; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-family: var(--font-head); font-weight: 700;
  color: var(--plum); background: #fff;
}
.pagination a:hover { border-color: var(--lime); background: var(--paper-green); color: var(--olive); }
.pagination .is-current { background: var(--olive); border-color: var(--olive); color: #fff; }
.pagination .is-gap { border: 0; background: none; }

/* ------------------------------------------------------------ product page */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.product__gallery { position: sticky; top: 96px; }
.product__cover {
  border: 1px solid var(--line);
  border-radius: var(--r-tab);
  overflow: hidden;
  background: var(--paper-warm);
}
.product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.product__thumbs button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-input);
  overflow: hidden; background: none; cursor: pointer; aspect-ratio: 10/7;
}
.product__thumbs button.is-active { border-color: var(--lime); border-width: 2px; }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__eyebrow { font-family: var(--font-head); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); margin-bottom: .5rem; }
.product__title { margin-bottom: .6rem; }
.product__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.product__price {
  font-family: var(--font-head);
  font-size: 2.35rem;
  color: var(--olive);
  line-height: 1;
  margin-bottom: .35rem;
}
.product__price del { font-size: 1.1rem; color: var(--muted); margin-right: .5rem; }
.product__vat { font-size: .86rem; color: var(--muted); margin-bottom: 1.5rem; }
.product__lead { font-size: 1.04rem; margin-bottom: 1.6rem; }
.product__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.8rem; }

/* "What you get" — the file manifest, the real reason to buy */
.manifest {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.manifest__head {
  background: var(--paper-green);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; color: var(--olive);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.manifest__list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.manifest__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  font-size: .93rem;
}
.manifest__list li + li { border-top: 1px solid var(--line-soft); }
.manifest__list svg { flex: 0 0 18px; color: var(--rose); }
.manifest__size { margin-left: auto; color: var(--muted); font-size: .84rem; white-space: nowrap; }

.prose h2 { font-size: 1.55rem; margin-top: 2rem; }
.prose h3 { font-size: 1.22rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose > :first-child { margin-top: 0; }

/* Tab strip on the product page */
.tabs { border-bottom: 2px solid var(--line); display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--muted);
  background: none; border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 13px 20px;
  cursor: pointer;
}
.tabs button.is-active { color: var(--olive); border-bottom-color: var(--lime); }
.tabpanel[hidden] { display: none; }

/* ---------------------------------------------------------- cart/checkout */
.linebox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.line {
  display: grid; grid-template-columns: 92px 1fr auto auto;
  gap: 18px; align-items: center;
  padding: 18px;
}
.line + .line { border-top: 1px solid var(--line-soft); }
.line__img { border-radius: var(--r-input); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 10/7; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--font-head); font-size: 1.02rem; color: var(--plum); font-weight: 700; }
.line__meta { font-size: .86rem; color: var(--muted); }
.line__price { font-family: var(--font-head); font-size: 1.14rem; color: var(--olive); }
.line__remove { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: var(--r-input); }
.line__remove:hover { color: var(--coral); background: var(--paper-pink); }

.summary {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--lime);
  border-radius: var(--r-card);
  padding: 26px;
  position: sticky; top: 96px;
}
.summary h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .96rem; }
.summary__row--total {
  border-top: 1px solid var(--line);
  margin-top: 8px; padding-top: 16px;
  font-family: var(--font-head); font-size: 1.3rem; color: var(--plum);
}
.summary__row--total strong { color: var(--olive); }
.checkout-layout { grid-template-columns: minmax(0, 1fr) 372px; gap: 36px; align-items: start; }
.checkout-terms { margin: 20px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout-terms label { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkout-terms input { flex: 0 0 auto; margin-top: 5px; accent-color: var(--olive); }
.checkout-terms .field__error { margin: .5rem 0 0 27px; }
.payfast-badge { display: flex; justify-content: center; margin-top: 14px; }
.payfast-badge__image {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.checkout-secure-note { margin-top: 12px; }

/* ----------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: .93rem; font-weight: 700;
  color: var(--plum);
  margin-bottom: .4rem;
}
.field .req { color: var(--coral); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--paper-warm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--body);
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--lime); background: #fff;
}
.field textarea { min-height: 148px; resize: vertical; }
.field__hint { font-size: .84rem; color: var(--muted); margin-top: .35rem; }
.field__error { font-size: .86rem; color: var(--coral); margin-top: .35rem; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.formcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
}

.paychoice { display: grid; gap: 12px; }
.paychoice label {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper-warm);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.paychoice label:has(input:checked) { border-color: var(--lime); border-width: 2px; background: #fff; }
.paychoice input { margin-top: 4px; accent-color: var(--olive); }
.paychoice strong { display: block; font-family: var(--font-head); color: var(--plum); }
.paychoice span { font-size: .89rem; color: var(--muted); }

/* --------------------------------------------------------------- notices */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 18px;
  border-radius: var(--r-card);
  border-left: 5px solid var(--olive);
  background: var(--paper-green);
  color: var(--olive-ink);
  margin-bottom: 18px;
  font-size: .95rem;
}
.notice--error   { border-left-color: var(--coral); background: #FFF1ED; }
.notice--info    { border-left-color: var(--rose);  background: var(--paper-pink); }
.notice svg { flex: 0 0 20px; margin-top: 2px; }

.empty { text-align: center; padding: clamp(46px, 7vw, 84px) 20px; }
.empty svg { width: 62px; height: 62px; color: var(--rose-soft); margin: 0 auto 1.1rem; }
.empty h3 { margin-bottom: .5rem; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }

/* ------------------------------------------------------- FAQ and contact */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq__item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px;
  background: none; border: 0;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--plum); text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.faq__q:hover { color: var(--rose-dark); background: var(--paper-pink); }
.faq__sign { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-pill); background: rgba(191,105,128,.14); color: var(--rose-dark); transition: transform .25s ease, background .25s ease; }
.faq__item.is-open .faq__sign { transform: rotate(45deg); background: var(--olive); color: #fff; }
.faq__a { padding: 0 22px 22px; max-width: 82ch; color: var(--muted); }
.faq__a[hidden] { display: none; }
.faq-support { background: #fff; }

.contact-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 52px; align-items: start; }
.contact-page__title { font-size: 1.9rem; }
.contact-methods { display: grid; gap: 14px; margin-top: 2.6rem; }
.contact-page .feature,
.contact-form { box-shadow: var(--shadow-card); }
.contact-page .feature__icon { background: rgba(191,105,128,.14); color: var(--rose-dark); }
.contact-form__title { font-size: 1.4rem; }
.form-trap { position: absolute; left: -9999px; }

/* --------------------------------------------------------------- account */
.account { display: grid; grid-template-columns: 254px 1fr; gap: 40px; align-items: start; }
.account__nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; position: sticky; top: 96px; }
.account__nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: var(--r-input);
  font-size: .96rem; color: var(--body);
}
.account__nav a:hover { background: var(--paper-green); color: var(--olive); }
.account__nav a.is-active { background: var(--olive); color: #fff; }
.account__nav svg { width: 18px; height: 18px; }

.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th {
  text-align: left;
  font-family: var(--font-head); font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 15px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }

.status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 500;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--line-soft); color: var(--muted);
  white-space: nowrap;
}
.status--paid      { background: var(--paper-green); color: var(--olive); }
.status--pending   { background: #FFF6E5; color: #8A6100; }
.status--failed,
.status--cancelled { background: #FFF1ED; color: #B23A18; }
.status--refunded  { background: var(--paper-pink); color: var(--rose-dark); }

.dl-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
}
.dl-row + .dl-row { margin-top: 8px; }
.dl-row__name { font-size: .95rem; }
.dl-row__meta { font-size: .83rem; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--olive-ink); color: #C9C4AC; padding-top: clamp(50px, 6vw, 78px); position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--lime) 0 25%, var(--olive) 25% 50%, var(--rose) 50% 75%, var(--rose-soft) 75% 100%);
}
.footer h4 {
  color: #fff; font-size: 1.06rem; margin-bottom: 1.1rem;
  padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.13);
}
.footer a { color: #C9C4AC; }
.footer a:hover { color: var(--lime); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__logo { width: 208px; margin-bottom: 1.1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .6rem; }
.footer__list a { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; }
.footer__list a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); flex: 0 0 5px; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: .9rem; font-size: .95rem; }
.footer__contact svg { flex: 0 0 18px; color: var(--lime); margin-top: 4px; }
.footer__pay { margin-top: 1.4rem; }
.footer__payfast-logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}
.footer__subjects { text-align: center; }
.footer__subjects h4 { font-size: .95rem; }
.footer__subjects-list { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem 1.1rem; line-height: 1.7; }
.socials { display: flex; gap: 10px; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s ease;
}
.socials a:hover { background: var(--lime); color: var(--olive-ink); }
.socials svg { width: 18px; height: 18px; }
.footer__bar {
  margin-top: clamp(38px, 4vw, 56px);
  border-top: 1px solid rgba(255,255,255,.13);
  padding-block: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .87rem;
}
.footer__bar a { color: var(--lime); font-weight: 700; }
.footer__bar a:hover { color: #fff; }

/* Floating quick actions */
.floating-actions {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.floating-action {
  position: relative;
  width: 54px; height: 54px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill);
  color: #fff; cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(38,32,1,.68);
  transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}
.floating-action:hover, .floating-action:focus-visible { color: #fff; transform: translateY(-2px) scale(1.04); }
.floating-action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.floating-action > span {
  position: absolute; right: 64px;
  width: max-content; max-width: 180px;
  padding: 7px 10px;
  border-radius: var(--r-input);
  background: var(--olive-ink); color: #fff;
  font: 600 .78rem/1.2 var(--font-body);
  opacity: 0; visibility: hidden; transform: translateX(5px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  pointer-events: none;
}
.floating-action:hover > span, .floating-action:focus-visible > span { opacity: 1; visibility: visible; transform: none; }
.floating-action--whatsapp { background: #25D366; }
.floating-action--top { background: var(--plum); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); }
.floating-action--top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.floating-action--cart { background: var(--olive); }
.floating-action__up-icon { transform: rotate(-90deg); }
.floating-action b {
  position: absolute; top: -4px; right: -4px;
  min-width: 21px; height: 21px; padding-inline: 5px;
  display: grid; place-items: center;
  border: 2px solid #fff; border-radius: var(--r-pill);
  background: var(--rose); color: #fff;
  font: 700 .7rem/1 var(--font-body);
}

/* Slide-out cart */
.cart-drawer-scrim {
  position: fixed; inset: 0; z-index: 128;
  background: rgba(38,32,1,.52);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.cart-drawer-scrim.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 129;
  width: min(420px, 100vw);
  display: flex; flex-direction: column;
  background: #fff;
  box-shadow: -24px 0 60px -32px rgba(38,32,1,.7);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .32s ease, visibility .32s ease;
}
.cart-drawer.is-open { transform: none; visibility: visible; }
body.has-cart-drawer { overflow: hidden; }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}
.cart-drawer__head h2 { margin: 2px 0 0; font-size: 1.55rem; color: var(--plum); }
.cart-drawer__eyebrow { color: var(--rose-dark); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cart-drawer__close {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff; color: var(--olive-ink); cursor: pointer;
}
.cart-drawer__close:hover { background: var(--paper-pink); color: var(--rose-dark); }
.cart-drawer__content { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.cart-drawer__empty { margin: auto; padding: 40px 28px; text-align: center; }
.cart-drawer__empty > svg { color: var(--rose); margin-bottom: 18px; }
.cart-drawer__empty h3 { margin-bottom: 8px; color: var(--plum); }
.cart-drawer__empty p { color: var(--muted); margin-bottom: 24px; }
.cart-drawer__items { padding: 8px 24px; }
.cart-drawer__item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 16px 0; }
.cart-drawer__item + .cart-drawer__item { border-top: 1px solid var(--line-soft); }
.cart-drawer__image { width: 72px; aspect-ratio: 10/7; border: 1px solid var(--line); border-radius: var(--r-input); overflow: hidden; }
.cart-drawer__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer__item-copy { min-width: 0; }
.cart-drawer__item-copy a { display: block; color: var(--plum); font-family: var(--font-head); font-weight: 700; line-height: 1.3; }
.cart-drawer__item-copy span { display: block; margin-top: 4px; color: var(--olive); font-weight: 600; font-size: .9rem; }
.cart-drawer__summary { margin-top: auto; padding: 22px 24px 26px; border-top: 1px solid var(--line); background: var(--paper-warm); }
.cart-drawer__summary > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: var(--muted); }
.cart-drawer__summary strong { color: var(--olive); font-family: var(--font-head); font-size: 1.18rem; }
.cart-drawer__summary .btn + .btn { margin-top: 10px; }

/* -------------------------------------------------------------- utilities */
.u-center { text-align: center; }
.u-muted  { color: var(--muted); }
.u-small  { font-size: .89rem; }
.u-mt     { margin-top: 1.5rem; }
.u-mt-lg  { margin-top: 2.6rem; }
.u-mb     { margin-bottom: 1.5rem; }
.u-flex   { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.u-between{ display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--olive); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-card) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .shop { grid-template-columns: 1fr; }
  .filters__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .filters__group + .filters__group { margin-top: 0; padding-top: 0; border-top: 0; }
  .account { grid-template-columns: 1fr; }
  .account__nav { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 980px) {
  .masthead__inner { display: flex; }
  .masthead__logo { margin-right: auto; }
  .nav { display: none; }
  .masthead__tools { margin-left: 0; }
  .burger { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product__gallery { position: static; }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .finder__steps { grid-template-columns: 1fr 1fr; }
  .finder__steps .btn { width: 100%; }
  .summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .shell, .shell--narrow { padding-inline: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .topbar__list { gap: 14px; }
  .topbar__inner > :last-child { display: none; }
  .masthead__logo img { width: 168px; }
  .filters__inner { grid-template-columns: 1fr; }
  .filters__group + .filters__group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
  .line { grid-template-columns: 68px 1fr auto; row-gap: 10px; }
  .line__remove { grid-column: 3; }
  .field--row { grid-template-columns: 1fr; gap: 0; }
  .hero__facts { gap: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .finder__steps { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .btn { width: 100%; }
  .home-story { gap: 32px; }
  .home-story__media { min-height: 300px; }
  .home-story__image--first, .home-story__image--second { height: calc(100% - 20px); }
  .about-story__media, .about-mission__media { min-height: 0; }
  .about-mission__media { position: static; }
  .about-story__image, .about-mission__image { position: static; height: auto; object-position: center; }
  .about-vision__image { height: 330px; }
  .floating-actions { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .floating-action { width: 50px; height: 50px; }
  .floating-action > span { display: none; }
  .cart-drawer__head { padding: 20px; }
  .cart-drawer__items { padding-inline: 20px; }
  .cart-drawer__summary { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .card:hover .card__media img,
  .subject-tile:hover img { transform: none; }
}

@media print {
  .topbar, .masthead, .footer, .floating-actions, .cart-drawer, .cart-drawer-scrim, .btn, .searchbar { display: none !important; }
  body { color: #000; }
}
