/*
 * TERRA — Fresh Outdoor Lifestyle
 * Design Direction 02 | E-commerce Design System
 * ------------------------------------------------------------
 * Inspired by the approved lifestyle direction: large outdoor
 * photography, airy layouts, natural accents, clean commerce UI.
 *
 * Fonts: Plus Jakarta Sans (display) + Inter (body).
 * To self-host fonts, remove the @import and supply local @font-face.
 *
 * Suggested page roots:
 * .site-header, .hero, .category-grid, .product-grid,
 * .collection-layout, .product-detail, .cart-layout,
 * .checkout-layout, .site-footer
 *
 * Version: 1.0 | October 2026
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* 01. Brand tokens ----------------------------------------------------- */
:root {
  color-scheme: light;

  /* Approved Direction 02 palette */
  --color-sky: #7ec8f3;
  --color-sky-light: #e8f5fc;
  --color-eucalyptus: #a7c4a0;
  --color-sage: #688f71;
  --color-sage-dark: #3e6550;
  --color-cloud: #f8faf8;
  --color-white: #ffffff;
  --color-sand: #f5f1ea;
  --color-stone: #9aa0a6;
  --color-stone-light: #e7e9e8;
  --color-navy: #0f2d4b;
  --color-navy-deep: #0a2035;
  --color-charcoal: #2d3439;

  /* Semantic colors */
  --color-page: var(--color-white);
  --color-surface: var(--color-cloud);
  --color-surface-soft: var(--color-sand);
  --color-text: var(--color-charcoal);
  --color-heading: var(--color-navy);
  --color-muted: #5c6871;
  --color-border: #dde3e1;
  --color-action: var(--color-sage-dark);
  --color-action-hover: #2d4e3b;
  --color-success: #25634c;
  --color-warning: #946318;
  --color-danger: #ad383b;
  --color-focus: #226fa8;
  --color-overlay: rgb(7 28 40 / 38%);

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Avenir Next', Avenir, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.6rem, 2.6vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 4.5vw, 3.75rem);
  --text-hero: clamp(2.8rem, 6.3vw, 5.65rem);
  --leading-tight: 1.12;
  --leading-body: 1.6;

  /* Space and layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --container-max: 1380px;
  --container-gutter: clamp(1.125rem, 4vw, 4.5rem);
  --section-space: clamp(3.75rem, 7vw, 7rem);
  --header-height: 76px;

  /* Shape, effects, interaction */
  --radius-xs: 0.375rem;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgb(15 45 75 / 6%);
  --shadow-float: 0 18px 55px rgb(15 45 75 / 13%);
  --transition-fast: 160ms ease;
  --transition-standard: 240ms ease;
}

/* 02. Reset and foundations ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.5rem); }
body { margin: 0; background: var(--color-page); color: var(--color-text); font: 400 var(--text-base)/var(--leading-body) var(--font-body); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-action); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
::selection { background: var(--color-sky); color: var(--color-navy-deep); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--color-heading); font-family: var(--font-display); line-height: var(--leading-tight); letter-spacing: -0.035em; }
h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 700; }
p { margin-bottom: var(--space-4); }
small { font-size: var(--text-xs); }
hr { border: 0; border-top: 1px solid var(--color-border); }

.container { width: min(100% - 2 * var(--container-gutter), var(--container-max)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section--soft { background: var(--color-surface); }
.section--sand { background: var(--color-surface-soft); }
.section__heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); }
.section__heading h2 { margin-bottom: 0; }
.eyebrow { display: inline-block; color: var(--color-sage-dark); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--space-3); }
.lead { font-size: clamp(1rem, 1.4vw, 1.25rem); max-width: 58ch; }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.full-width { width: 100%; }
.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; z-index: 200; top: -100px; left: 1rem; padding: 0.75rem 1rem; background: var(--color-white); color: var(--color-navy); border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

/* 03. Buttons, links and forms ---------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 46px; padding: 0.8rem 1.4rem; border: 1px solid transparent; border-radius: var(--radius-pill); font: 700 var(--text-sm)/1.2 var(--font-body); text-align: center; white-space: nowrap; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn--primary { background: var(--color-action); color: var(--color-white); }
.btn--primary:hover { background: var(--color-action-hover); color: var(--color-white); }
.btn--navy { background: var(--color-navy); color: var(--color-white); }
.btn--navy:hover { background: var(--color-navy-deep); color: var(--color-white); }
.btn--outline { border-color: var(--color-navy); color: var(--color-navy); background: transparent; }
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn--light { background: var(--color-white); color: var(--color-navy); }
.btn--light:hover { background: var(--color-cloud); color: var(--color-navy); }
.btn--sm { min-height: 38px; padding: 0.55rem 1rem; }
.btn--lg { min-height: 54px; padding: 0.95rem 2rem; }
.btn--block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; padding-bottom: 0.15rem; border-bottom: 1px solid currentColor; font-size: var(--text-sm); font-weight: 700; }
.text-link svg, .btn svg { width: 1rem; height: 1rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; color: var(--color-navy); transition: background var(--transition-fast); }
.icon-btn:hover { background: var(--color-sky-light); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--bordered { border-color: var(--color-border); background: var(--color-white); }

.form-field { display: grid; gap: var(--space-2); }
.form-field label, .field-label { font-size: var(--text-sm); font-weight: 700; color: var(--color-navy); }
.form-input, .form-select, .form-textarea { display: block; width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-text); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--color-focus); box-shadow: 0 0 0 3px rgb(34 111 168 / 12%); outline: none; }
.form-input::placeholder, .form-textarea::placeholder { color: #737f87; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--color-danger); font-size: var(--text-xs); }
.form-hint { color: var(--color-muted); font-size: var(--text-xs); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }

/* 04. Site navigation -------------------------------------------------- */
.announcement-bar { padding: 0.55rem var(--container-gutter); background: var(--color-navy); color: var(--color-white); text-align: center; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; }
.announcement-bar a { text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: relative; z-index: 100; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--color-border); }
.site-header--sticky { position: sticky; top: 0; backdrop-filter: blur(14px); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-height); gap: var(--space-6); }
.site-logo { display: inline-flex; align-items: center; justify-self: start; gap: 0.55rem; font: 800 1.65rem/1 var(--font-display); letter-spacing: -0.07em; color: var(--color-navy); }
.site-logo:hover { color: var(--color-navy); }
.site-logo__mark { width: 29px; height: 29px; color: var(--color-sage-dark); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a { padding: 1rem 0; color: var(--color-navy); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.site-nav a[aria-current='page'] { box-shadow: inset 0 -2px var(--color-sage-dark); }
.site-nav a:hover { color: var(--color-sage-dark); }
.site-header__actions { display: flex; align-items: center; justify-content: end; gap: var(--space-1); }
.site-header__mobile-toggle { display: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding-inline: 3px; border-radius: 100px; background: var(--color-sage-dark); color: var(--color-white); font-size: 0.625rem; }
/* To open a mobile menu, toggle .is-open on .site-nav using JavaScript. */

/* 05. Homepage hero ---------------------------------------------------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(480px, 59vw, 710px); overflow: hidden; background: var(--color-sky-light); }
.hero__media, .hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; object-fit: cover; object-position: center; }
.hero__overlay { z-index: -1; background: linear-gradient(90deg, rgb(7 31 45 / 59%) 0%, rgb(7 31 45 / 23%) 42%, transparent 77%); }
.hero__content { width: min(100%, 620px); padding-block: clamp(4rem, 8vw, 8rem); color: var(--color-white); }
.hero__content h1 { color: inherit; max-width: 12ch; margin-bottom: var(--space-5); }
.hero__content .lead { max-width: 43ch; color: rgb(255 255 255 / 94%); }
.hero__content .eyebrow { color: var(--color-white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero--light .hero__overlay { background: linear-gradient(90deg, rgb(248 250 248 / 90%), rgb(248 250 248 / 8%) 75%); }
.hero--light .hero__content, .hero--light .hero__content .eyebrow, .hero--light .hero__content .lead { color: var(--color-navy); }
.hero--light .btn--outline { border-color: var(--color-navy); }
.hero--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.hero--split .hero__media { position: relative; grid-column: 2; min-height: 520px; }
.hero--split .hero__content { grid-column: 1; grid-row: 1; width: min(100%, 680px); margin-left: auto; padding: var(--space-16) var(--container-gutter); color: var(--color-navy); }
.hero--split .hero__content .lead { color: var(--color-muted); }
.hero--split .hero__overlay { display: none; }

/* 06. Trust strip and editorial sections ------------------------------ */
.benefit-strip { padding-block: var(--space-6); border-bottom: 1px solid var(--color-border); background: var(--color-white); }
.benefit-strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.benefit { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.benefit__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: var(--radius-pill); background: var(--color-sky-light); color: var(--color-sage-dark); }
.benefit__icon svg { width: 21px; height: 21px; }
.benefit strong { display: block; font-size: var(--text-xs); line-height: 1.4; color: var(--color-navy); }
.benefit span { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.category-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); }
.category-card__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 400ms ease; }
.category-card:hover .category-card__image { transform: scale(1.045); }
.category-card__label { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-3); color: var(--color-navy); font-size: var(--text-sm); font-weight: 700; }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.editorial-card { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 450px; overflow: hidden; border-radius: var(--radius-lg); color: var(--color-white); }
.editorial-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.editorial-card::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 58%), transparent 68%); }
.editorial-card:hover img { transform: scale(1.03); }
.editorial-card__content { padding: clamp(1.5rem, 4vw, 3rem); }
.editorial-card h2, .editorial-card h3 { color: var(--color-white); }
.feature-split { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-sky-light); }
.feature-split__image { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.feature-split__content { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.feature-list { display: grid; gap: var(--space-5); margin: var(--space-8) 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.feature-list svg { width: 24px; height: 24px; flex: none; color: var(--color-sage-dark); }

/* 07. Product cards and listings -------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.875rem, 2vw, 1.5rem); }
.product-card { position: relative; min-width: 0; }
.product-card__media { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-surface); }
.product-card__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 400ms ease; }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__wishlist { position: absolute; top: var(--space-3); right: var(--space-3); background: rgb(255 255 255 / 92%); }
.product-card__badge { position: absolute; top: var(--space-3); left: var(--space-3); padding: 0.35rem 0.6rem; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-navy); font-size: 0.68rem; font-weight: 700; }
.product-card__info { padding: var(--space-3) 0 var(--space-1); }
.product-card__title { margin-bottom: 0.25rem; font-size: var(--text-sm); font-family: var(--font-body); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.product-card__title a:hover { color: var(--color-sage-dark); }
.product-card__meta { margin-bottom: 0.25rem; font-size: var(--text-xs); color: var(--color-muted); }
.product-card__price { color: var(--color-navy); font-size: var(--text-sm); font-weight: 700; }
.product-card__price--original { margin-left: 0.4rem; color: var(--color-muted); font-weight: 400; text-decoration: line-through; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.65rem; }
.swatch { width: 17px; height: 17px; padding: 0; border: 2px solid var(--color-white); border-radius: 50%; outline: 1px solid transparent; background: var(--swatch-color, var(--color-sage)); box-shadow: 0 0 0 1px rgb(0 0 0 / 10%); }
.swatch:hover { outline-color: var(--color-stone); }
.swatch[aria-pressed='true'], .swatch.is-selected { outline-color: var(--color-navy); }
.swatch--lg { width: 28px; height: 28px; }
.rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-size: var(--text-xs); }
.rating__stars { color: #bb7e27; letter-spacing: 0.08em; }
.rating__count { color: var(--color-muted); }

/* 08. Collection/category screen -------------------------------------- */
.collection-hero { position: relative; display: flex; align-items: center; min-height: 330px; isolation: isolate; overflow: hidden; background: var(--color-sky-light); }
.collection-hero__image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.collection-hero__content { max-width: 540px; padding-block: var(--space-16); }
.collection-hero__content h1 { font-size: var(--text-3xl); }
.collection-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: var(--space-10); padding-block: var(--space-12); }
.collection-sidebar { align-self: start; position: sticky; top: calc(var(--header-height) + 1.5rem); }
.filter-group { padding-block: var(--space-5); border-bottom: 1px solid var(--color-border); }
.filter-group__title { margin: 0 0 var(--space-3); color: var(--color-navy); font-size: var(--text-sm); font-weight: 700; }
.filter-options { display: grid; gap: var(--space-3); }
.filter-option { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.filter-option input { accent-color: var(--color-sage-dark); width: 17px; height: 17px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.collection-toolbar__count { color: var(--color-muted); font-size: var(--text-sm); }
.collection-toolbar__controls { display: flex; align-items: center; gap: var(--space-3); }
.collection-toolbar .form-select { width: auto; min-height: 42px; }
.collection-toolbar__mobile-filter { display: none; }
.collection-main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-chip { display: inline-flex; gap: var(--space-2); align-items: center; min-height: 34px; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-navy); font-size: var(--text-xs); }

/* 09. Product detail screen ------------------------------------------- */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); padding-block: var(--space-5); color: var(--color-muted); font-size: var(--text-xs); }
.breadcrumbs a:hover { color: var(--color-sage-dark); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr); align-items: start; gap: clamp(2rem, 5vw, 5.5rem); padding-bottom: var(--section-space); }
.product-gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); }
.product-gallery__thumbs { display: flex; flex-direction: column; gap: var(--space-3); }
.product-gallery__thumb { overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--color-surface); }
.product-gallery__thumb[aria-current='true'], .product-gallery__thumb.is-active { border-color: var(--color-sage-dark); }
.product-gallery__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-gallery__main { overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); }
.product-gallery__main img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-info { position: sticky; top: calc(var(--header-height) + 1.75rem); }
.product-info__tag { display: inline-block; margin-bottom: var(--space-3); color: var(--color-sage-dark); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.product-info h1 { margin-bottom: var(--space-3); font-size: clamp(2rem, 3vw, 3rem); }
.product-info__price { margin: var(--space-3) 0; color: var(--color-navy); font-size: var(--text-xl); font-weight: 700; }
.product-info__description { margin-block: var(--space-6); color: var(--color-muted); }
.variant-group { margin-bottom: var(--space-6); }
.variant-group__heading { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); color: var(--color-navy); font-size: var(--text-sm); font-weight: 700; }
.variant-group__heading a { color: var(--color-muted); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.size-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
.size-option { display: grid; place-items: center; min-height: 42px; padding: 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-xs); background: var(--color-white); color: var(--color-navy); font-size: var(--text-sm); }
.size-option:hover { border-color: var(--color-navy); }
.size-option[aria-pressed='true'], .size-option.is-selected { border-color: var(--color-navy); background: var(--color-navy); color: var(--color-white); }
.size-option:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.product-info__actions { display: flex; gap: var(--space-3); margin: var(--space-8) 0; }
.product-info__actions .btn { flex: 1; }
.product-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding-block: var(--space-5); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.product-perk { display: grid; justify-items: center; gap: var(--space-2); text-align: center; color: var(--color-muted); font-size: var(--text-xs); }
.product-perk svg { width: 24px; height: 24px; color: var(--color-sage-dark); }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: var(--space-5) 0; color: var(--color-navy); font-size: var(--text-sm); font-weight: 700; list-style: none; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; }
.accordion[open] summary::after { content: '−'; }
.accordion__content { padding: 0 0 var(--space-5); color: var(--color-muted); font-size: var(--text-sm); }
.product-story { padding-block: var(--section-space); background: var(--color-surface); }
.product-story__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-12); }
.product-story__grid img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }

/* 10. Cart and checkout ------------------------------------------------ */
.page-title { padding-block: var(--space-12) var(--space-8); }
.page-title h1 { font-size: var(--text-3xl); margin-bottom: 0; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); align-items: start; gap: clamp(2rem, 6vw, 6rem); padding-bottom: var(--section-space); }
.cart-item { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: start; gap: var(--space-5); padding-block: var(--space-6); border-bottom: 1px solid var(--color-border); }
.cart-item__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface); }
.cart-item__name { margin: 0 0 var(--space-2); font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.cart-item__meta { margin-bottom: var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
.cart-item__price { font-size: var(--text-sm); font-weight: 700; color: var(--color-navy); }
.cart-item__remove { color: var(--color-muted); font-size: var(--text-xs); text-decoration: underline; text-underline-offset: 2px; }
.quantity { display: inline-grid; grid-template-columns: 36px 40px 36px; align-items: center; min-height: 36px; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-xs); }
.quantity button { height: 36px; background: transparent; color: var(--color-navy); }
.quantity button:hover { background: var(--color-sky-light); }
.quantity output { text-align: center; font-size: var(--text-sm); }
.order-summary { padding: var(--space-8); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.order-summary h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.order-summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); font-size: var(--text-sm); }
.order-summary__row span:first-child { color: var(--color-muted); }
.order-summary__total { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border); color: var(--color-navy); font-size: var(--text-lg); font-weight: 700; }
.order-summary__total span:first-child { color: var(--color-navy); }
.order-summary .btn { margin-top: var(--space-5); }
.checkout-section { padding-bottom: var(--space-8); margin-bottom: var(--space-8); border-bottom: 1px solid var(--color-border); }
.checkout-section h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.checkout-fields { display: grid; gap: var(--space-4); }
.checkout-note { display: flex; align-items: center; gap: var(--space-2); color: var(--color-muted); font-size: var(--text-xs); }
.checkout-note svg { width: 16px; height: 16px; }

/* 11. Footer and newsletter ------------------------------------------- */
.newsletter { padding-block: var(--space-16); background: var(--color-sky-light); }
.newsletter__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-10); }
.newsletter h2 { max-width: 16ch; margin-bottom: var(--space-3); font-size: var(--text-2xl); }
.newsletter__form { display: flex; gap: var(--space-2); width: min(100%, 470px); }
.newsletter__form .form-input { flex: 1; min-width: 0; }
.site-footer { padding-block: var(--space-16) var(--space-8); background: var(--color-navy-deep); color: rgb(255 255 255 / 78%); }
.site-footer h3, .site-footer h4, .site-footer .site-logo { color: var(--color-white); }
.site-footer h4 { font-size: var(--text-sm); letter-spacing: 0; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-10); }
.site-footer__links { display: grid; gap: var(--space-3); padding: 0; margin: 0; list-style: none; font-size: var(--text-sm); }
.site-footer a:hover { color: var(--color-sky); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-8); margin-top: var(--space-12); border-top: 1px solid rgb(255 255 255 / 18%); font-size: var(--text-xs); }

/* 12. Responsive behavior --------------------------------------------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav { gap: var(--space-4); }
  .product-detail { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: var(--space-8); }
  .benefit-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; --section-space: 3.75rem; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__mobile-toggle { display: inline-grid; }
  .site-header__actions { grid-column: 2; grid-row: 1; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: var(--space-6) var(--container-gutter); background: var(--color-white); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-float); }
  .site-nav.is-open { display: grid; justify-content: stretch; gap: 0; }
  .site-nav a { padding: var(--space-3) 0; }
  .hero { min-height: 540px; }
  .hero__overlay { background: linear-gradient(90deg, rgb(7 31 45 / 62%), rgb(7 31 45 / 12%)); }
  .hero--split { grid-template-columns: 1fr; }
  .hero--split .hero__media { grid-column: 1; grid-row: 1; min-height: 390px; }
  .hero--split .hero__content { grid-column: 1; grid-row: 2; margin: 0; padding: var(--space-10) var(--container-gutter); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .collection-main .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-layout { grid-template-columns: 1fr; }
  .collection-sidebar { display: none; }
  .collection-sidebar.is-open { display: block; position: fixed; z-index: 105; top: var(--header-height); bottom: 0; left: 0; width: min(340px, 90vw); overflow-y: auto; padding: var(--space-6); background: var(--color-white); box-shadow: var(--shadow-float); }
  .collection-toolbar__mobile-filter { display: inline-flex; }
  .product-detail { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .product-gallery { grid-template-columns: 72px 1fr; }
  .product-story__grid, .feature-split { grid-template-columns: 1fr; }
  .feature-split__image { min-height: 320px; max-height: 490px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { max-width: none; }
  .newsletter__inner { flex-direction: column; align-items: stretch; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --container-gutter: 1rem; --section-space: 3.25rem; }
  .announcement-bar { font-size: 0.67rem; }
  .site-logo { font-size: 1.4rem; }
  .site-header__actions { gap: 0; }
  .hero { min-height: 580px; align-items: end; }
  .hero__media { object-position: 65% center; }
  .hero__overlay { background: linear-gradient(0deg, rgb(7 31 45 / 78%), rgb(7 31 45 / 8%) 85%); }
  .hero__content { padding-block: var(--space-16) var(--space-10); }
  .hero__content h1 { font-size: clamp(2.55rem, 11vw, 3.6rem); }
  .hero__actions .btn { flex: 1; }
  .hero--light .hero__overlay { background: linear-gradient(0deg, rgb(248 250 248 / 92%), transparent 85%); }
  .benefit-strip__grid { gap: var(--space-4); }
  .benefit { justify-content: start; align-items: flex-start; }
  .benefit__icon { width: 36px; height: 36px; }
  .benefit span { display: none; }
  .category-grid, .product-grid, .collection-main .product-grid { gap: var(--space-3); }
  .category-card__image { aspect-ratio: 3 / 4; }
  .product-card__media img { aspect-ratio: 3 / 4; }
  .product-card__wishlist { top: var(--space-2); right: var(--space-2); }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-card { min-height: 360px; }
  .section__heading { align-items: start; }
  .section__heading .text-link { white-space: nowrap; }
  .collection-hero { min-height: 260px; }
  .collection-hero__content { padding-block: var(--space-10); }
  .collection-toolbar { flex-wrap: wrap; }
  .collection-toolbar__controls { width: 100%; justify-content: space-between; }
  .product-gallery { display: flex; flex-direction: column-reverse; }
  .product-gallery__thumbs { flex-direction: row; overflow-x: auto; }
  .product-gallery__thumb { width: 62px; flex: 0 0 62px; }
  .product-gallery__main img { aspect-ratio: 1 / 1.08; }
  .size-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-perks { gap: var(--space-2); }
  .product-perk { font-size: 0.68rem; }
  .cart-item { grid-template-columns: 94px minmax(0, 1fr); gap: var(--space-3); }
  .cart-item__price { grid-column: 2; }
  .order-summary { padding: var(--space-6); }
  .form-row { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
}

/* 13. Accessibility and motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media (prefers-contrast: more) {
  :root { --color-border: #61707b; --color-muted: #39474f; }
  .btn--outline, .form-input, .form-select { border-width: 2px; }
}
