/* ==========================================================================
   SÜT EVİM — styles
   ========================================================================== */

:root {
  /* Brand colours, taken from the logo */
  --red: #C8231A;
  --red-dark: #A51B13;
  --red-soft: #FBE9E7;
  --navy: #1B2B3A;
  --blue: #1E9BD7;
  --blue-deep: #13709F;
  --blue-soft: #E3F2FA;
  --cream: #F8F5EC;
  --ivory: #FFFDF7;
  --text: #36414B;
  --muted: #69727B;
  --line: #E8E2D2;

  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-img: 18px;
  --radius-panel: 24px;
  --shadow: 0 4px 20px rgba(27, 43, 58, 0.08);
  --shadow-hover: 0 10px 30px rgba(27, 43, 58, 0.12);

  --container: 1290px;
  --gutter: 72px;
  --section: 104px;

  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; --section: 88px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 60px; --radius-card: 16px; }
}

/* Base ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 26px; height: 26px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--blue); border-radius: 2px;
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.9375rem; line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1rem; }
.btn-sm { min-height: 44px; padding: 10px 14px; font-size: 0.875rem; gap: 8px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(200, 35, 26, .22); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 22px rgba(200, 35, 26, .28); }

.btn-secondary { background: transparent; color: var(--red); border-color: rgba(200, 35, 26, .35); }
.btn-secondary:hover { background: var(--red-soft); border-color: var(--red); }

.btn-light { background: var(--ivory); color: var(--navy); }
.btn-light .icon { color: var(--red); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }

.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(255, 253, 247, .45); }
.btn-outline-light:hover { background: rgba(255, 253, 247, .1); border-color: var(--ivory); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-weight: 700; font-size: 0.9375rem;
  min-height: 44px;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* Media (image frames with graceful fallback) --------------------------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background:
    radial-gradient(120% 90% at 20% 15%, #FFF6DA 0%, transparent 55%),
    linear-gradient(135deg, #EFE6CF 0%, #E3D6B5 100%);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px;
  background: url("../public/logo-mark.png") center / contain no-repeat;
  opacity: .35;
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 236, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(27, 43, 58, .05); }

.header-inner { display: flex; align-items: center; gap: 32px; height: 92px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.375rem; color: var(--red); letter-spacing: -0.02em; }
/* The wordmark carries the brand name "SÜT EVİM": keep it large enough to read at a glance. */
.logo img { display: block; height: 56px; width: auto; mix-blend-mode: multiply; }
.drawer-head .logo img { height: 40px; }
.footer-brand .logo img { height: 52px; }

.nav { display: flex; gap: 8px; margin-inline: auto; }
.nav a {
  position: relative;
  padding: 10px 16px; font-weight: 600; font-size: 0.9375rem; color: var(--text);
  border-radius: 10px; transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--blue); border-radius: 2px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--ivory); color: var(--navy); cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .12s ease;
}
.menu-toggle:active { transform: scale(.92); background: var(--red-soft); }

/* Mobile drawer: see "Drawer" section below */

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { height: 72px; }
  .site-header .logo img { height: 46px; }
}
@media (min-width: 961px) {
  .drawer { display: none !important; }
}
.logo { flex: none; }
.nav a { white-space: nowrap; }
/* Narrow desktops: five menu items + CTA don't fit; the hero CTA stays right below. */
@media (min-width: 961px) and (max-width: 1320px) {
  .header-cta { display: none; }
  .nav { margin-right: 0; }
}

/* Drawer (mobile sidebar menu) ----------------------------------------- */

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }

.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(27, 43, 58, .45);
  opacity: 0; transition: opacity .22s ease;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  display: flex; flex-direction: column;
  background: var(--ivory);
  box-shadow: -12px 0 40px rgba(27, 43, 58, .18);
  border-radius: 20px 0 0 20px;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer;
}

.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; }

.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font-weight: 700; font-size: 1.0625rem; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.drawer-nav .icon { width: 18px; height: 18px; color: var(--muted); }

.drawer-section { margin-top: 24px; }
.drawer-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-cats a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px; min-height: 44px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  font-weight: 600; font-size: 0.875rem; line-height: 1.3; color: var(--navy);
}
.drawer-cats .cat-icon { width: 34px; height: 34px; border-radius: 10px; background: #fff; }
.drawer-cats .cat-icon .icon { width: 18px; height: 18px; }

.drawer-products { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.drawer-products li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.drawer-products .media { width: 56px; height: 56px; flex: none; border-radius: 10px; }
.drawer-products .media.is-missing::after { width: 24px; height: 24px; }
.dp-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.dp-info strong { font-size: 0.9375rem; color: var(--navy); }
.dp-info span { font-size: 0.8125rem; color: var(--muted); }
.dp-order {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--red); color: #fff; transition: background-color .2s;
}
.dp-order:hover { background: var(--red-dark); }

.drawer-foot {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--ivory);
}
.drawer-info {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
}
.drawer-info .icon { color: var(--red); width: 18px; height: 18px; }

body.drawer-open { overflow: hidden; }

/* Hero ------------------------------------------------------------------ */

.hero { padding-block: 56px var(--section); }

.hero-grid {
  display: grid;
  grid-template-columns: 11fr 12fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 22px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 480px; margin-bottom: 36px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; }
.hero-points .icon { color: var(--red); }

/* Product mosaic: one tall milk photo and four product tiles. */
.hero-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 7 / 5.6;
}
.hero-mosaic .media { box-shadow: var(--shadow); }
.hero-tile-main { grid-row: 1 / span 2; border-radius: var(--radius-panel); }

.hero-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px);
  padding: 12px 16px 12px 12px;
  background: rgba(255, 253, 247, .94);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  line-height: 1.35;
}
.hero-badge .icon {
  width: 40px; height: 40px; padding: 9px; flex: none;
  border-radius: 12px; background: var(--red); color: #fff;
}
.hero-badge span { display: flex; flex-direction: column; font-size: 0.8125rem; color: var(--muted); }
.hero-badge strong { font-size: 1rem; color: var(--navy); }

@media (max-width: 960px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .br-desktop { display: none; }
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .lead { font-size: 1.0625rem; margin-bottom: 28px; }
  .hero-points { margin-top: 24px; }
  .hero-mosaic { gap: 8px; aspect-ratio: 1 / 1; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(4, 1fr); }
  .hero-mosaic .media { border-radius: 14px; }
  .hero-tile-main { grid-row: 1 / span 4; }
  .hero-mosaic .media:nth-child(n+4) { display: none; }
  .hero-mosaic .media:nth-child(2), .hero-mosaic .media:nth-child(3) { grid-row: span 2; }
  .hero-badge { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 10px 12px 10px 10px; }
  .hero-badge .icon { width: 36px; height: 36px; padding: 8px; }
}

/* Sections -------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .6); }
.section-ivory { background: var(--ivory); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 32px; margin-bottom: 40px;
}
.section-sub { color: var(--muted); max-width: 440px; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 1024px) {
  .grid { gap: 20px; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section-head { margin-bottom: 24px; }
  .grid { gap: 14px; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* Category cards -------------------------------------------------------- */

.cat-card {
  display: flex; flex-direction: column;
  background: var(--ivory);
  border-radius: var(--radius-card);
  padding: 10px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.cat-card .media { aspect-ratio: 4 / 3; border-radius: calc(var(--radius-card) - 6px); }
.cat-card .media img { transition: transform .5s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-card:hover .media img { transform: scale(1.04); }

.cat-body { display: flex; align-items: center; gap: 12px; padding: 14px 8px 8px; }
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--blue-soft); color: var(--blue-deep);
}
.cat-name { font-weight: 700; color: var(--navy); line-height: 1.3; }
.cat-arrow { margin-left: auto; color: var(--red); transition: transform .2s; }
.cat-card:hover .cat-arrow { transform: translateX(3px); }

@media (max-width: 640px) {
  .cat-card { padding: 8px; }
  .cat-body { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 6px 6px; }
  .cat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .cat-icon .icon { width: 18px; height: 18px; }
  .cat-name { font-size: 0.9375rem; }
  .cat-arrow { display: none; }
}

/* Product cards --------------------------------------------------------- */

.product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-card { position: relative; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card h3 a:hover { color: var(--red); }
.product-body .btn { position: relative; z-index: 2; }
.product-card .media { aspect-ratio: 4 / 3; border-radius: 0; }

.product-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.product-body .btn { white-space: normal; text-align: center; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.product-body .card-price { margin: 0; }

/* Five-up milk grid: slightly tighter cards so the CTA stays on one line */
.grid-5 .product-body { padding: 16px 14px 16px; }
.grid-5 .product-body .btn { padding: 10px 8px; font-size: 0.8125rem; gap: 6px; }
.grid-5 .product-body .btn .icon { width: 18px; height: 18px; }

/* Pack sizes on cards */
.card-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.card-sizes li {
  padding: 3px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-deep);
  font-size: 0.75rem; font-weight: 700; line-height: 1.5; letter-spacing: .01em;
}
.product-body p { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; margin-bottom: 8px; }

@media (max-width: 640px) {
  .product-body { padding: 12px; gap: 6px; }
  .product-body h3 { font-size: 0.9375rem; line-height: 1.3; }
  .product-body p {
    font-size: 0.8125rem; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* Compact button on narrow cards: keep label readable */
  .product-body .btn { padding: 10px 8px; font-size: 0.8125rem; white-space: normal; text-align: center; }
  .product-body .btn .icon { width: 18px; height: 18px; }
  .card-sizes li { padding: 2px 8px; font-size: 0.6875rem; }

  /* An odd last card fills the row as a horizontal card instead of leaving a gap. */
  .product-grid > .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .product-grid > .product-card:last-child:nth-child(odd) .media { width: 44%; flex: none; aspect-ratio: auto; min-height: 168px; }
}

.card-price { font-size: 0.875rem; color: var(--muted); }
.card-price strong { font-size: 1.1875rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.product-body p.card-price { margin: 0; font-size: 0.875rem; }

@media (max-width: 640px) {
  .product-body p.card-price { font-size: 0.8125rem; }
  .card-foot { gap: 8px; }
  .card-price strong { font-size: 1.0625rem; }
}

/* Trust ----------------------------------------------------------------- */

.trust-grid {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  gap: 0;
}
.trust-item { display: flex; align-items: flex-start; gap: 16px; padding: 4px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item h3 { margin-bottom: 4px; }
.trust-item p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none; border-radius: 16px;
  background: var(--blue-soft); color: var(--blue-deep);
}

@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .trust-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; padding: 8px 20px; row-gap: 0; }
  .trust-item { padding: 18px 0; align-items: center; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-icon { width: 46px; height: 46px; border-radius: 14px; }
}

/* Reviews --------------------------------------------------------------- */

.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius-card);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.review-stars { color: var(--red); font-size: 1.125rem; letter-spacing: 2px; line-height: 1; }
.review-stars span { color: var(--line); }
.review-card blockquote { margin: 0; flex: 1; color: var(--text); }
.review-author { color: var(--muted); font-size: 0.9375rem; }
.review-author strong { color: var(--navy); }

@media (max-width: 960px) {
  .review-grid { grid-template-columns: 1fr; }
  .review-card { padding: 22px; }
}

/* About ----------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.about-media {
  grid-column: 1 / span 6;
  aspect-ratio: 6 / 5;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.about-copy { grid-column: 8 / span 5; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p:not(.eyebrow) { font-size: 1.0625rem; margin-bottom: 16px; }
.about-copy .btn { margin-top: 12px; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media, .about-copy { grid-column: auto; }
  .about-media { aspect-ratio: 4 / 3; border-radius: var(--radius-img); }
}

/* Wholesale (B2B) ------------------------------------------------------ */

.b2b-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 56px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.b2b-copy { grid-column: 1 / span 6; }
.b2b-copy h2 { margin-bottom: 16px; }
.b2b-lead { font-size: 1.0625rem; margin-bottom: 20px; max-width: 520px; }
.b2b-points { display: grid; gap: 10px; margin-bottom: 28px; }
.b2b-points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 0.9375rem; color: var(--navy); }
.b2b-points .icon { color: var(--red); margin-top: 1px; }

.b2b-types { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b2b-types li {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.b2b-types li:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.b2b-types div { display: flex; flex-direction: column; line-height: 1.35; }
.b2b-types strong { color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.b2b-types div span { color: var(--muted); font-size: 0.8125rem; }

.hero-b2b { display: block; margin-top: 14px; padding-block: 10px; min-height: 0; font-size: 0.875rem; line-height: 1.5; }
.hero-b2b .icon { display: inline-block; vertical-align: -4px; margin-left: 4px; }

.pd-b2b {
  margin-top: 24px; padding: 18px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 16px;
}
.pd-b2b p { font-size: 0.9375rem; margin-bottom: 14px; }
.pd-b2b strong { color: var(--navy); }

@media (max-width: 1024px) {
  .b2b-panel { padding: 40px; }
  .b2b-copy { grid-column: 1 / span 7; }
  .b2b-types { grid-column: 8 / span 5; grid-template-columns: 1fr; }
  .b2b-types li, .b2b-types li:last-child { flex-direction: row; align-items: center; padding: 14px; }
}
@media (max-width: 960px) {
  .b2b-panel { grid-template-columns: 1fr; gap: 32px; }
  .b2b-copy, .b2b-types { grid-column: auto; }
  .b2b-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .b2b-panel { padding: 28px 20px; border-radius: var(--radius-card); }
  .b2b-copy .btn { width: 100%; }
  .b2b-types { grid-template-columns: 1fr; gap: 8px; }
  .b2b-types li, .b2b-types li:last-child { padding: 12px; gap: 12px; }
  .hero-b2b { white-space: normal; }
}

/* Final CTA ------------------------------------------------------------- */

.cta-panel {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 64px 72px;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(30, 155, 215, .28) 0%, transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(255, 255, 255, .06) 0%, transparent 60%),
    var(--navy);
  color: rgba(255, 253, 247, .85);
}
.cta-panel h2 { color: var(--ivory); margin-bottom: 12px; }
.cta-panel p { font-size: 1.125rem; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

@media (max-width: 960px) {
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 48px 40px; }
}
@media (max-width: 640px) {
  .cta-panel { padding: 36px 24px; border-radius: var(--radius-card); }
  .cta-panel p { font-size: 1rem; }
  .cta-panel .btn { width: 100%; }
  .cta-actions { width: 100%; flex-direction: column; }
}

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

.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding-top: 56px; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
.footer-note .icon { color: var(--red); width: 18px; height: 18px; }

.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.footer-links a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--red); }

.footer-bottom { margin-top: 40px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 640px) {
  .site-footer { padding-top: 40px; padding-bottom: 88px; /* room for sticky CTA */ }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner > .btn { width: 100%; }
}

/* Sticky mobile CTA ----------------------------------------------------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(248, 245, 236, 1) 60%, rgba(248, 245, 236, 0));
  transform: translateY(110%);
  transition: transform .3s ease;
  display: none;
}
.sticky-cta.is-visible { transform: none; }

@media (max-width: 640px) {
  .sticky-cta { display: block; }
}

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

.product-page { padding-bottom: 8px; }

.breadcrumb ol { margin: 0; padding-inline: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding-block: 20px 28px; font-size: 0.875rem; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline: 10px; color: #B9B3A2; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 700; }

.pd {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.pd-gallery { grid-column: 1 / span 7; }
.pd-info { grid-column: 8 / span 5; position: sticky; top: 108px; padding-left: 24px; }

.pd-main { aspect-ratio: 6 / 5; border-radius: var(--radius-panel); box-shadow: var(--shadow); }
.pd-main.is-missing::after { width: 88px; height: 88px; }

.pd-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.pd-thumb {
  width: 84px; aspect-ratio: 1; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 14px;
}
.pd-thumb[aria-current] { border-color: var(--red); }

.pd-cat {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; font-size: 0.8125rem;
}
.pd-cat .icon { width: 18px; height: 18px; }
.pd-info h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); margin-block: 16px 12px; }
.pd-short { font-size: 1.125rem; color: var(--muted); margin-bottom: 20px; }

.pd-price { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 24px; }
.pd-price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.pd-price-ask {
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
  padding: 12px 16px; background: var(--ivory); border: 1px dashed #D8CFB8; border-radius: 12px;
}

.pd-options { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.pd-options legend { font-weight: 700; color: var(--navy); margin-bottom: 10px; padding: 0; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio span {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25;
  min-width: 76px; min-height: 44px; padding: 8px 18px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 700; font-size: 0.9375rem; color: var(--text);
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip-radio input:hover + span { border-color: rgba(200, 35, 26, .45); }
.chip-radio input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--navy); }
.chip-radio small { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.chip-radio input:checked + span small { color: var(--red); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.pd-note { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; text-align: center; }

.pd-perks { margin-top: 28px; border-top: 1px solid var(--line); }
.pd-perks li { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.pd-perks .icon { width: 22px; height: 22px; color: var(--red); }
.pd-perks span { display: flex; flex-direction: column; font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.pd-perks strong { color: var(--navy); font-size: 0.9375rem; }

.pd-about {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start;
}
.pd-about > div:first-child { grid-column: 1 / span 6; }
.pd-about h2 { margin-bottom: 20px; }
.pd-about p { font-size: 1.0625rem; margin-bottom: 14px; }
.pd-details {
  grid-column: 8 / span 5;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px;
}
.pd-details h3 { margin-bottom: 8px; }
.pd-details dl { margin: 0; }
.pd-details dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.pd-details dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pd-details dt { font-weight: 700; color: var(--navy); font-size: 0.9375rem; }
.pd-details dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.steps {
  display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: center;
  padding: 40px; border-radius: var(--radius-panel);
  background: var(--navy); color: rgba(255, 253, 247, .8);
}
.steps h2 { color: var(--ivory); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps strong { color: var(--ivory); display: block; margin-bottom: 4px; }
.steps p { font-size: 0.875rem; line-height: 1.5; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 12px; background: var(--blue); color: var(--navy); font-weight: 800;
}

.pd-empty { text-align: center; max-width: 520px; padding-block: 40px; }
.pd-empty p { color: var(--muted); margin-block: 12px 24px; }

@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .pd, .pd-about { grid-template-columns: 1fr; gap: 28px; }
  .pd-gallery, .pd-info, .pd-about > div:first-child, .pd-details { grid-column: auto; }
  .pd-info { position: static; padding-left: 0; }
}
@media (max-width: 640px) {
  .breadcrumb ol { padding-block: 14px 18px; font-size: 0.8125rem; }
  .pd-main { aspect-ratio: 1; border-radius: var(--radius-img); }
  .pd-short { font-size: 1rem; }
  .pd-details { padding: 20px; }
  .pd-details dl > div { grid-template-columns: 96px 1fr; }
  .steps { padding: 28px 22px; border-radius: var(--radius-card); }
  .steps ol { grid-template-columns: 1fr; gap: 18px; }
}

/* Product sticky bar (mobile) */
.sticky-product {
  align-items: center; gap: 12px;
  background: var(--ivory); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(27, 43, 58, .08);
}
.sticky-product .btn { flex: none; }
.sp-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.sp-info strong { color: var(--navy); font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-info span { color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 640px) {
  .sticky-product { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Shown in a product grid when the product API can't be reached */
.catalog-error {
  grid-column: 1 / -1;
  padding: 24px; border: 1px dashed #D8CFB8; border-radius: var(--radius-card);
  background: var(--ivory); color: var(--text); text-align: center;
}
.catalog-error a { color: var(--red); font-weight: 700; text-decoration: underline; }

/* Category, blog and post pages --------------------------------------- */

.page-hero { padding-bottom: calc(var(--section) * .6); }
.page-hero-panel {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center;
  padding: 48px; background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius-panel); box-shadow: var(--shadow);
}
.page-hero-copy { grid-column: 1 / span 7; }
.page-hero-panel.no-media .page-hero-copy { grid-column: 1 / -1; max-width: 760px; }
.page-hero-copy h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); margin-bottom: 18px; }
.page-hero-copy .lead { max-width: 560px; margin-bottom: 28px; }
.page-hero-media { grid-column: 8 / span 5; aspect-ratio: 5 / 4; border-radius: var(--radius-img); }

@media (max-width: 960px) {
  .page-hero-panel { grid-template-columns: 1fr; padding: 32px; }
  .page-hero-copy, .page-hero-media { grid-column: auto; }
  .page-hero-media { aspect-ratio: 16 / 9; order: -1; }
}
@media (max-width: 640px) {
  .page-hero-panel { padding: 20px; border-radius: var(--radius-card); }
  .page-hero .hero-actions { flex-direction: column; }
  .page-hero .hero-actions .btn { width: 100%; }
}

/* Long text written in the admin panel */
.prose { max-width: 760px; font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--navy); }
.prose a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; border-radius: var(--radius-img); }
.prose figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); text-align: center; }

/* Blog cards */
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-card .media { aspect-ratio: 16 / 10; border-radius: 0; }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.1875rem; line-height: 1.3; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--red); }
.post-card-body > p:not(.post-meta) { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.post-card .text-link { margin-top: auto; min-height: 0; padding-top: 6px; }
.post-meta { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.post-meta a { color: var(--red); position: relative; z-index: 1; }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card-body { padding: 16px; }
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; color: var(--navy);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination [aria-current] { background: var(--red); border-color: var(--red); color: #fff; }

/* Blog post */
.post-container { max-width: calc(820px + var(--gutter) * 2); padding-bottom: calc(var(--section) * .6); }
.post-header { margin-bottom: 28px; }
.post-header h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-block: 10px 16px; }
.post-header .lead { margin-bottom: 0; max-width: none; }
.post-cover { aspect-ratio: 3 / 2; border-radius: var(--radius-panel); box-shadow: var(--shadow); margin-bottom: 40px; }
.post-cta {
  margin-top: 48px; padding: 24px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.post-cta p { margin-bottom: 16px; }
.post-cta strong { color: var(--navy); }
@media (max-width: 640px) {
  .post-cover { border-radius: var(--radius-img); margin-bottom: 28px; }
  .post-cta .cta-actions { flex-direction: column; }
  .post-cta .btn { width: 100%; }
}

/* Draft / inactive preview for the admin */
.preview-banner { background: #FFF4D6; border-bottom: 1px solid #F0DFA8; color: #6B5300; font-weight: 600; font-size: .9375rem; }
.preview-banner .container { display: flex; align-items: center; gap: 10px; padding-block: 12px; }

/* 404 */
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }

/* Footer category links */
.footer-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 28px; }
.footer-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-cats nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-cats a { font-size: .9375rem; color: var(--text); min-height: 36px; display: inline-flex; align-items: center; }
.footer-cats a:hover { color: var(--red); }

/* Wholesale page ---------------------------------------------------- */

.b2b-more { margin-top: 12px; display: flex; width: fit-content; }
.pd-b2b .text-link { margin-top: 8px; font-size: .875rem; }

.b2b-types-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.b2b-types-wide li:last-child { grid-column: auto; flex-direction: column; align-items: stretch; }

.supply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.supply-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.supply-card .media { aspect-ratio: 16 / 9; border-radius: 0; }
.supply-body { padding: 18px 20px 20px; }
.supply-body h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.supply-body h3 a:hover { color: var(--red); }
.supply-body .cat-icon { width: 34px; height: 34px; border-radius: 10px; }
.supply-body .cat-icon .icon { width: 18px; height: 18px; }
.supply-body ul { display: grid; gap: 2px; }
.supply-body li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.supply-body li a { font-weight: 600; color: var(--navy); }
.supply-body li a:hover { color: var(--red); }

@media (max-width: 1024px) {
  .b2b-types-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .b2b-types-wide { grid-template-columns: 1fr; }
  .b2b-types-wide li, .b2b-types-wide li:last-child { flex-direction: row; align-items: center; }
  .supply-grid { grid-template-columns: 1fr; }
}

/* Phone number ----------------------------------------------------- */

.phone-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); white-space: nowrap; }
.phone-link .icon { width: 18px; height: 18px; }
.phone-link:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Thin contact strip above the header (scrolls away; the header stays) */
.top-strip { background: var(--navy); color: rgba(255, 253, 247, .8); font-size: .8125rem; font-weight: 600; }
.top-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.top-strip .phone-link { color: var(--ivory); }
.top-strip .phone-link .icon { width: 16px; height: 16px; color: var(--blue); }
@media (max-width: 640px) {
  .top-strip-inner { justify-content: center; }
  .top-strip-inner p:first-child { display: none; }
}

.drawer-phone { margin-bottom: 12px; font-size: 1rem; }
.drawer-phone .phone-link { min-height: 44px; }
.footer-phone { font-size: 1rem; }
.footer-phone .phone-link { min-height: 36px; }

.cta-phone { margin-top: 14px; font-size: 1rem; }
.cta-panel .cta-phone .phone-link { color: var(--ivory); }
.cta-panel .cta-phone .phone-link .icon { color: var(--blue); }

.hero-phone { margin-top: 18px; font-weight: 600; color: var(--muted); }
.hero-phone .phone-link { font-size: 1.0625rem; }
.pd-phone { margin-top: 16px; text-align: center; font-weight: 600; color: var(--muted); font-size: .9375rem; }
.post-cta .phone-link { display: inline-flex; }
.top-strip-inner p { display: flex; align-items: center; gap: 6px; }
