/* ==========================================================================
   XChips — design tokens
   ========================================================================== */

:root {
  /* color */
  --ink: #14171d;
  --ink-soft: #1e222a;
  --stone: #ece9e2;
  --stone-soft: #f4f2ed;
  --white: #ffffff;
  --sky: #2f86c6;
  --sky-dark: #1f5c8a;
  --sky-light: #6fb2e6;
  --sky-pale: #dcedf8;
  --green: #2e8b57;
  --bolt: #1f4e73;
  --line: rgba(20, 23, 29, 0.12);
  --line-on-dark: rgba(236, 233, 226, 0.18);

  /* type */
  --font-display: "Archivo Expanded", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --fs-display-xl: clamp(2.75rem, 2rem + 3.2vw, 5.25rem);
  --fs-display-lg: clamp(2.1rem, 1.6rem + 2vw, 3.4rem);
  --fs-display-md: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --fs-display-sm: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --fs-body-lg: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.9rem;

  /* spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  --container: 1240px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  position: relative;
}

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

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--bolt);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sky);
  color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 200;
  font-family: var(--font-body);
  font-weight: 600;
}

.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}

/* ==========================================================================
   Type utilities
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.eyebrow--on-dark {
  color: var(--sky-light);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-xl);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-lg);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-md);
  line-height: 1.05;
  text-transform: uppercase;
}

.lede {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  max-width: 46ch;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--sp-6);
  }
}

main {
  display: block;
}

section {
  padding: var(--sp-8) 0;
}

.section--tight {
  padding: var(--sp-6) 0;
}

.section--ink {
  background: var(--ink);
  color: var(--stone);
}

.section--white {
  background: var(--white);
}

.section-head {
  margin-bottom: var(--sp-6);
  max-width: 60ch;
}

.section-head__eyebrow {
  display: block;
  margin-bottom: var(--sp-3);
}

/* signature diagonal cut, used sparingly */
.bolt-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-8) 0 var(--sp-6);
}

.bolt-divider__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.bolt-divider__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  touch-action: pan-y;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 0.95rem 1.9rem;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}

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

.btn-primary {
  background: var(--sky);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--stone);
}

.section--ink .btn-outline {
  color: var(--stone);
}

.section--ink .btn-outline:hover {
  background: var(--stone);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  clip-path: none;
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--ink);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--stone-soft);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--sp-4);
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__brand img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav__links a {
  text-decoration: none;
  position: relative;
  padding: var(--sp-1) 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--sky);
  transition: width 0.2s var(--ease);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  width: 100%;
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  border: none;
  color: var(--stone);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.cart-toggle svg {
  width: 20px;
  height: 20px;
}

.cart-toggle__count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: var(--sky);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-toggle__count[hidden] {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 860px) {
  .nav__toggle {
    display: none;
  }
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: var(--sp-4) 0 var(--sp-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  text-decoration: none;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .nav__mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--stone);
  overflow: hidden;
}

.hero__media {
  position: relative;
  height: 46vh;
  min-height: 280px;
  background: var(--bolt) center/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}

.hero__body {
  padding: var(--sp-7) 0 var(--sp-8);
}

.hero__body .eyebrow {
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero__body .eyebrow svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  max-width: 14ch;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 0.7s var(--ease) 0.05s forwards;
}

.hero__lede {
  margin-top: var(--sp-4);
  max-width: 42ch;
  color: var(--stone);
  opacity: 0.86;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 0.7s var(--ease) 0.18s forwards;
}

.hero__actions {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 0.7s var(--ease) 0.3s forwards;
}

.hero__protein {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  color: var(--sky-light);
}

.hero__protein strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero__lede,
  .hero__actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (min-width: 860px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    min-height: 84vh;
  }

  .hero__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-8) var(--sp-7) var(--sp-8) 0;
  }

  .hero__media {
    height: auto;
    min-height: 0;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ==========================================================================
   Cards / product grid
   ========================================================================== */

.grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

@media (min-width: 620px) {
  .grid--products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid--products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  background: var(--white);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  transition: transform 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
}

.card__media {
  aspect-ratio: 1 / 1;
  background: var(--stone-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.card__flavor {
  font-size: var(--fs-display-sm);
}

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

.card__flavor a:hover {
  text-decoration: underline;
}

.card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.card__desc {
  font-size: var(--fs-small);
  color: var(--ink);
  opacity: 0.72;
}

.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}

.card__price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.card--bundle {
  background: var(--ink);
  color: var(--stone);
}

.card--bundle .card__desc {
  color: var(--stone);
  opacity: 0.75;
}

.card--bundle .card__media {
  background: var(--ink-soft);
}

.add-btn {
  touch-action: pan-y;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--ink);
  color: var(--stone);
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.1rem;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background-color 0.18s var(--ease);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}

.add-btn:hover {
  background: var(--sky);
}

.card--bundle .add-btn {
  background: var(--sky);
}

.card--bundle .add-btn:hover {
  background: var(--sky-light);
  color: var(--ink);
}

.add-btn[data-added="true"] {
  background: var(--sky-light);
  color: var(--ink);
}

/* ==========================================================================
   Badges / certifications
   ========================================================================== */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--line);
  background: var(--white);
}

.badge svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

/* ==========================================================================
   Nutrition table
   ========================================================================== */

.nutrition {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--sp-5);
}

.nutrition__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding-bottom: var(--sp-3);
  border-bottom: 3px solid var(--ink);
  margin-bottom: var(--sp-2);
}

.nutrition table {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.nutrition th,
.nutrition td {
  text-align: right;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.nutrition th:first-child,
.nutrition td:first-child {
  text-align: left;
  font-family: var(--font-body);
}

.nutrition tr.is-sub td:first-child {
  padding-left: var(--sp-4);
  opacity: 0.7;
}

.nutrition tfoot td,
.nutrition tfoot th {
  border-bottom: none;
}

.nutrition thead th {
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

/* ==========================================================================
   Ingredients
   ========================================================================== */

.ingredients {
  font-size: var(--fs-body);
  line-height: 1.65;
  max-width: 62ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: var(--sp-8) 0 var(--sp-6);
}

.footer__top {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line-on-dark);
}

@media (min-width: 760px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer__brand-mark {
  display: inline-flex;
}

.footer__brand-mark img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__tag {
  margin-top: var(--sp-4);
  max-width: 34ch;
  opacity: 0.75;
  font-size: var(--fs-small);
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-4);
  opacity: 0.6;
}

.footer__links li {
  margin-bottom: var(--sp-2);
}

.footer__links a {
  text-decoration: none;
  opacity: 0.88;
}

.footer__links a:hover {
  opacity: 1;
  color: var(--sky-light);
}

.social-row {
  display: flex;
  gap: var(--sp-3);
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid var(--line-on-dark);
  padding: var(--sp-2) var(--sp-4);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.social-badge:hover {
  border-color: var(--sky-light);
  color: var(--sky-light);
}

.social-badge svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.55;
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 29, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 150;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--stone-soft);
  color: var(--ink);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  box-shadow: -8px 0 24px rgba(20, 23, 29, 0.2);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

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

.cart-drawer__head h2 {
  font-size: 1.3rem;
}

.cart-drawer__close {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer__close svg {
  width: 16px;
  height: 16px;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5);
}

.cart-empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  opacity: 0.7;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__media {
  width: 64px;
  height: 64px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-1);
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.cart-line__qty {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.9rem;
}

.cart-line__price {
  font-family: var(--font-mono);
  text-align: right;
  align-self: start;
}

.cart-upsell {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px dashed var(--line);
}

.cart-upsell h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-3);
}

.upsell-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
}

.upsell-line__name {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-small);
}

.upsell-line__media {
  width: 36px;
  height: 36px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upsell-line__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upsell-add {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--ink);
  color: var(--stone);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upsell-add:hover {
  background: var(--sky);
}

.cart-drawer__foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.cart-note {
  margin-top: var(--sp-3);
  font-size: 0.78rem;
  opacity: 0.6;
  text-align: center;
}

/* ==========================================================================
   Misc page sections
   ========================================================================== */

.split {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .split--media-right {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 6% 100%);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

@media (min-width: 760px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: var(--sp-4) 0;
  border-top: 3px solid var(--sky);
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  opacity: 0.7;
  margin-top: var(--sp-1);
}

.pagehead {
  padding: var(--sp-7) 0 var(--sp-6);
  background: var(--ink);
  color: var(--stone);
}

.pagehead .eyebrow {
  margin-bottom: var(--sp-3);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.contact-email {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  text-decoration: none;
  border-bottom: 3px solid var(--sky);
}

.two-col {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Product detail page (single flavor) — same brand system as everywhere:
   diagonal cuts, uppercase Archivo Expanded, sky/ink, no pills/shadows
   ========================================================================== */

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

@media (min-width: 860px) {
  .pdp {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

.pdp__image-card {
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 32px 100%, 0 calc(100% - 32px));
  padding: var(--sp-7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp__image-card img {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.pdp__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-display-lg);
}

.pdp__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-sm);
  text-transform: uppercase;
  margin-top: var(--sp-3);
}

.pdp__desc {
  margin-top: var(--sp-3);
  max-width: 52ch;
  opacity: 0.7;
  line-height: 1.6;
}

.pdp__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.pdp__price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.2rem;
}

.pdp__price-unit {
  font-family: var(--font-mono);
  opacity: 0.5;
  font-size: 1rem;
}

.pdp__buy-row {
  display: flex;
  align-items: stretch;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  border: 1.5px solid var(--ink);
  padding: 0 var(--sp-2);
}

.qty-stepper__btn {
  width: 34px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-stepper__btn:hover {
  color: var(--sky);
}

.qty-stepper__value {
  min-width: 1.4ch;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
}

.pdp__add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--ink);
  color: var(--stone);
  border: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  padding: 0.95rem 1.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.pdp__add-btn:hover {
  background: var(--sky);
}

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

.pdp__add-btn svg {
  width: 14px;
  height: 14px;
}

.pdp__delivery {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  opacity: 0.6;
}

.pdp__delivery svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--sky);
}

.pdp__bundle {
  margin-top: var(--sp-6);
  background: var(--ink);
  color: var(--stone);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.pdp__bundle-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--sky-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pdp__bundle-eyebrow svg {
  width: 15px;
  height: 15px;
}

.pdp__bundle-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-sm);
  text-transform: uppercase;
  margin-top: var(--sp-2);
}

.pdp__bundle-sub {
  font-size: var(--fs-small);
  opacity: 0.75;
  margin-top: 2px;
}

.pdp__bundle-price {
  margin-top: var(--sp-3);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.2rem;
}

.pdp__bundle-price .was {
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: line-through;
  opacity: 0.5;
}

.pdp__bundle-add {
  background: var(--sky-light);
  color: var(--ink);
  border: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.pdp__bundle-add:hover {
  background: var(--sky);
  color: var(--white);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal {
  max-width: 68ch;
}

.legal h2 {
  font-size: var(--fs-display-sm);
  margin-top: var(--sp-8);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: var(--sp-6);
}

.legal p {
  margin-top: var(--sp-4);
  line-height: 1.7;
  opacity: 0.85;
}

.legal ul {
  margin-top: var(--sp-4);
  padding-left: var(--sp-5);
  list-style: disc;
}

.legal li {
  margin-top: var(--sp-2);
  line-height: 1.6;
  opacity: 0.85;
}

.legal a {
  color: var(--sky);
  text-decoration: underline;
}

.legal .legal-updated {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  opacity: 0.55;
  margin-bottom: var(--sp-6);
}
