/* Les Aliments Benito — Design System v3 */

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

/* ── Tokens ───────────────────────────────────────────────────────────────── */

:root {
  --ink:        #0f0b08;
  --ink-2:      #2b1e12;
  --muted:      #7a6c5f;
  --soft:       #f3ece3;
  --paper:      #faf7f3;
  --white:      #ffffff;
  --line:       #e3d8cc;
  --border:     #c9bdb0;
  --red:        #8d1c1c;
  --red-dark:   #5e1010;
  --red-light:  #fff2f2;
  --gold:       #b8892e;
  --gold-light: #f8efd6;
  --green:      #2a5c3f;
  --blue:       #1f3d61;
  --danger:     #9e1c1c;

  --shadow-xs: 0 1px 3px rgba(15,11,8,0.07);
  --shadow-sm: 0 4px 20px rgba(15,11,8,0.10);
  --shadow-md: 0 12px 42px rgba(15,11,8,0.14);
  --shadow-lg: 0 24px 72px rgba(15,11,8,0.20);

  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --header-h: 72px;
  --content:  1200px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
h1, h2, h3, p { overflow-wrap: anywhere; }

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(30px, 3.2vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 2.8vw, 42px); font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(141,28,28,0.26);
}

.button.primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(141,28,28,0.34);
}

.button.secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}

.button.secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.85);
}

.button.outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-2);
}

.button.outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.button.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(184,137,46,0.26);
}

.button.gold:hover {
  background: #9a7222;
  border-color: #9a7222;
  transform: translateY(-1px);
}

.button.full { width: 100%; }

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(12,9,6,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(1.05);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.brand-name span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.nav-action),
.text-button,
.language-toggle {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 7px 13px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.site-nav a:not(.nav-action):hover,
.text-button:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.language-toggle {
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.05em;
}

.language-toggle:hover {
  border-color: rgba(255,255,255,0.50);
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(141,28,28,0.32);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-action:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(141,28,28,0.40);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.hero-bg img {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(105deg, rgba(8,5,3,0.90) 0%, rgba(8,5,3,0.68) 50%, rgba(8,5,3,0.30) 100%),
    linear-gradient(0deg, rgba(8,5,3,0.72) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: block;
  width: 700px;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 72px);
  color: var(--white);
}

.hero-content .eyebrow {
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(28px, 2.8vw, 50px);
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-lead {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.20);
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
}

.trust-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

/* ── Stats strip ──────────────────────────────────────────────────────────── */

.stats-strip {
  background: var(--ink);
  padding: 0 clamp(20px, 5vw, 72px);
}

.stats-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-strip-item {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-strip-item:last-child { border-right: none; }

.stat-strip-item strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-strip-item span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Shared section layout ────────────────────────────────────────────────── */

.section {
  padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 72px);
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.centered .eyebrow {
  justify-content: center;
}

.section-header.centered .eyebrow::before { display: none; }

.section-header h2 { margin-bottom: 14px; }

.section-header p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}

/* ── Categories ───────────────────────────────────────────────────────────── */

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

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--white);
  aspect-ratio: 3 / 4;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-card:hover img { transform: scale(1.07); }

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,5,3,0.82) 0%, rgba(8,5,3,0.22) 60%, transparent 100%);
  transition: background 0.30s ease;
}

.category-card:hover::after {
  background: linear-gradient(0deg, rgba(141,28,28,0.88) 0%, rgba(8,5,3,0.35) 65%, transparent 100%);
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 20px 16px;
}

.category-label strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-label span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Process ──────────────────────────────────────────────────────────────── */

.process-section { background: var(--soft); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.process-step:last-child { border-right: none; }

.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: 18px;
}

.process-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.process-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

/* ── Product grid — homepage + order page ─────────────────────────────────── */

.products-section { background: var(--paper); }

.product-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.product-card,
.catalog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover,
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(141,28,28,0.18);
}

.product-card img,
.catalog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--soft);
  display: block;
}

.product-card-body {
  padding: 18px;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.product-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Split section ────────────────────────────────────────────────────────── */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.split-img {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-body {
  padding: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.split-body.dark {
  background: var(--ink);
  color: var(--white);
}

.split-body.dark .eyebrow { color: var(--gold); }
.split-body.dark h2       { color: var(--white); }
.split-body.dark p        { color: rgba(255,255,255,0.72); }

.split-body h2 { margin: 0 0 18px; }

.split-body > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 18px;
}

.strengths-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.strength-item {
  padding: 18px;
  background: var(--soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.strength-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.strength-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(135deg, #0e0804 0%, #1c100a 60%, #080503 100%);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band-body { max-width: 580px; }

.cta-band .eyebrow { color: var(--gold); }

.cta-band h2 {
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 46px);
  margin: 12px 0 16px;
}

.cta-band p {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

/* ── Contact / Location ───────────────────────────────────────────────────── */

.contact-section {
  background: linear-gradient(135deg, #100b07 0%, #1d1108 55%, #0c0703 100%);
  padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 72px);
}

.contact-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-body .eyebrow { color: var(--gold); }

.contact-body h2 {
  color: var(--white);
  margin: 0 0 18px;
}

.contact-body p {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 14px;
}

.contact-details { display: grid; gap: 12px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(184,137,46,0.15);
  border: 1px solid rgba(184,137,46,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 17px;
}

.contact-text strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.contact-text span {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: #090604;
  color: rgba(255,255,255,0.42);
  padding: 22px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer a {
  color: rgba(255,255,255,0.60);
  font-weight: 600;
  transition: color 0.16s ease;
}

.site-footer a:hover { color: var(--white); }

/* ── Order page ───────────────────────────────────────────────────────────── */

.order-shell {
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px);
  max-width: calc(var(--content) + 144px);
  margin: 0 auto;
}

.order-heading { margin-bottom: 32px; }

.order-heading h1 {
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 10px;
}

.order-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: 680px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px) minmax(0, 320px);
  gap: 24px;
  align-items: start;
}

.catalog-panel { min-width: 0; }

.order-panel--summary,
.order-panel--form {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
  margin-bottom: 20px;
}

.catalog-card-body { padding: 14px; }

.catalog-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  margin-bottom: 14px;
  min-height: 40px;
}

.catalog-controls {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
}

.catalog-controls textarea {
  grid-column: 1 / -1;
  min-height: 50px;
  font-size: 13px;
}

.order-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  min-width: 0;
}

.order-panel > h2 {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

.selected-list {
  display: grid;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 18px;
}

.selected-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.selected-item strong { display: block; font-size: 14px; font-weight: 700; }
.selected-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.icon-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: rgba(141,28,28,0.08);
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, color 0.16s ease;
}

.icon-button:hover { background: var(--red); color: var(--white); }

.order-form { display: grid; gap: 14px; }

/* ── Checkout float button ────────────────────────────────────────────────── */

.checkout-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.checkout-float:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.28); }

.checkout-float-badge {
  background: #fff;
  color: var(--red);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* ── Order layout full-width (catalog only) ───────────────────────────────── */

.order-layout--full {
  display: block;
}

/* ── Checkout page ────────────────────────────────────────────────────────── */

.checkout-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 32px) 80px;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--red); }

.checkout-items-list { display: grid; gap: 10px; }

.checkout-item {
  display: grid;
  grid-template-columns: 1fr 80px 90px 36px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.checkout-item-name strong { display: block; font-size: 14px; font-weight: 700; }
.checkout-item-sku { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }

.checkout-item input[type="number"],
.checkout-item select {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 13px;
}

.checkout-item .btn-remove {
  width: 36px;
  height: 36px;
  min-height: unset;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.checkout-item .btn-remove:hover { background: var(--red); color: #fff; border-color: var(--red); }

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

@media (max-width: 520px) {
  .checkout-item { grid-template-columns: 1fr 70px 80px 32px; gap: 6px; }
  .checkout-float { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 14px; }
}

/* ── Forms ────────────────────────────────────────────────────────────────── */

input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea { resize: vertical; }

input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(141,28,28,0.09);
}

.order-form label,
.modal-form label,
.profile-edit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.form-status.error { color: var(--danger); }

/* ── Auth pages ───────────────────────────────────────────────────────────── */

.auth-shell {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: clamp(36px, 5vw, 64px) 20px;
  background: var(--paper);
}

.auth-panel {
  width: min(100%, 440px);
  padding: clamp(30px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.auth-panel .eyebrow { margin-bottom: 6px; }

.auth-panel h1 {
  font-size: 36px;
  margin-bottom: 26px;
}

.auth-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-note a { color: var(--red); font-weight: 700; }
.auth-note a:hover { text-decoration: underline; }

/* ── Account page ─────────────────────────────────────────────────────────── */

.account-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) clamp(20px, 5vw, 64px);
}

.account-summary {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.profile-card,
.order-card,
.stat-card,
.product-admin-card,
.modal-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.profile-card {
  padding: clamp(22px, 4vw, 32px);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.profile-card-header,
.account-orders-header,
.admin-section-header,
.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-card-header { margin-bottom: 20px; }

.profile-card-header h2,
.account-orders-header h2 {
  font-size: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}

.profile-field { display: grid; gap: 4px; }

.profile-field .label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-field .value { color: var(--ink); font-size: 15px; }

.profile-edit-form { display: grid; gap: 14px; margin-top: 18px; }

.profile-edit-form .form-row,
.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-edit-actions,
.modal-actions,
.product-admin-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.account-orders-header { align-items: center; margin-bottom: 16px; }

.orders-list { display: grid; gap: 14px; }
.order-card  { padding: 20px; }

.order-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 14px;
  margin: 0 0 14px;
}

.order-card dt,
.order-card-meta dt,
.order-detail-inner dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-card dd,
.order-card-meta dd,
.order-detail-inner dd { margin: 0; }

.order-card ul { margin: 0; padding-left: 18px; }

.order-card-expanded {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.order-items-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.order-items-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
}

.order-items-list .item-qty { color: var(--muted); font-size: 13px; font-weight: 700; }

.order-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 13px;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-new         { background: #e8f0fb; color: #1a3d6e; }
.badge-processing  { background: #fff3cc; color: #7a5010; }
.badge-ready       { background: #dcf2e6; color: #1d5c3a; }
.badge-delivered   { background: #eceff2; color: #384450; }
.badge-cancelled   { background: #fde0de; color: var(--danger); }

/* ── Admin ────────────────────────────────────────────────────────────────── */

.admin-tabs {
  display: flex;
  gap: 2px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab-btn {
  padding: 15px 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.tab-btn.active { border-bottom-color: var(--red); color: var(--ink); }

.tab-panel        { display: none; }
.tab-panel.active { display: block; }

.admin-content {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 72px);
}

.admin-section-header {
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-section-header h2 {
  font-size: 20px;
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-filters input,
.admin-filters select,
.status-select {
  width: auto;
  min-height: 38px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card { padding: 20px; }

.stat-card .stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card .stat-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
}

.stat-card.accent {
  border-color: rgba(141,28,28,0.22);
  background: linear-gradient(180deg, #fff, #fff8f8);
}

.stat-card.accent .stat-value { color: var(--red); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.orders-table,
.customers-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.orders-table th,
.customers-table th {
  padding: 12px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.orders-table td,
.customers-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.orders-table tr:last-child td,
.customers-table tr:last-child td { border-bottom: 0; }

.orders-table tr:hover td,
.customers-table tr:hover td { background: #fffcf9; }

.order-items-preview { max-width: 260px; color: var(--muted); font-size: 13px; }

.order-detail-row td { padding: 0; background: var(--soft); }

.order-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  font-size: 13px;
}

.detail-toggle {
  border: 0;
  background: transparent;
  color: var(--red);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.products-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-admin-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-admin-card.inactive { opacity: 0.55; }

.product-admin-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.product-admin-img img { width: 100%; height: 140px; object-fit: cover; }

.product-admin-body { padding: 14px; }
.product-admin-body h3 { font-size: 15px; margin-bottom: 4px; }

.product-admin-body .product-cat {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-admin-actions { margin-top: 12px; }

/* ── Small buttons ────────────────────────────────────────────────────────── */

.btn-sm {
  min-height: 34px;
  padding: 6px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-2);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-sm:hover { border-color: var(--ink-2); background: var(--soft); }

.btn-sm.primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-sm.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-sm.danger { background: var(--red-light); border-color: #f0b0ae; color: var(--danger); }

/* ── Modal ────────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8,5,3,0.65);
  backdrop-filter: blur(5px);
}

.modal-overlay.hidden { display: none; }

.modal-box {
  width: min(100%, 580px);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-lg);
}

.modal-box h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

.modal-form { display: grid; gap: 14px; }
.modal-actions { justify-content: flex-end; margin-top: 6px; }

.image-upload-preview {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--soft);
}

/* ── Dashboard lists ──────────────────────────────────────────────────────── */

.recent-orders-list { display: grid; gap: 10px; }

.recent-order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  font-size: 14px;
}

.recent-order-row .order-num     { color: var(--red); font-weight: 700; }
.recent-order-row .order-company { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.recent-order-row .order-date    { color: var(--muted); font-size: 13px; white-space: nowrap; }

.top-products-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }

.top-products-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
}

.top-products-list .qty-badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* ── Hero Ken Burns animation ─────────────────────────────────────────────── */

@keyframes heroDrift {
  0%   { transform: scale(1.00) translate(0%,    0%); }
  33%  { transform: scale(1.06) translate(-1.2%, 0.4%); }
  66%  { transform: scale(1.09) translate(-0.4%, -0.8%); }
  100% { transform: scale(1.00) translate(0%,    0%); }
}

.hero-bg {
  animation: heroDrift 22s ease-in-out infinite;
  transform-origin: center center;
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 540ms cubic-bezier(.2,.9,.2,1), transform 540ms cubic-bezier(.2,.9,.2,1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; animation: none !important; }
  .hero-bg { animation: none !important; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

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

  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step:nth-child(odd) { border-right: 1px solid var(--line); }
  .process-step:last-child { border-bottom: none; }

  .strengths-list { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .catalog-panel {
    grid-column: 1 / -1;
  }
  .order-panel--summary,
  .order-panel--form {
    position: static;
  }
}

@media (max-width: 640px) {
  .order-layout { grid-template-columns: 1fr; }
  .catalog-panel { grid-column: 1; }
}

@media (max-width: 960px) {
  .split-section  { grid-template-columns: 1fr; }
  .contact-inner  { grid-template-columns: 1fr; }
  .stats-inner    { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-item:nth-child(2) { border-right: none; }
  .stat-strip-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-strip-item:last-child   { border-bottom: none; }
  .cta-band       { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px clamp(16px, 4vw, 28px);
    gap: 10px;
  }

  .site-nav { flex-wrap: wrap; width: 100%; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  .toolbar { grid-template-columns: 1fr; }

  .catalog-controls,
  .profile-fields,
  .profile-edit-form .form-row,
  .modal-form .form-row,
  .order-detail-inner,
  .order-card-meta { grid-template-columns: 1fr; }

  .profile-card-header,
  .account-orders-header,
  .order-card-header { flex-direction: column; }

  .site-footer { flex-direction: column; gap: 8px; align-items: flex-start; }

  .hero-trust { flex-direction: column; gap: 12px; }

  .split-body { padding: 36px 24px; }
}

@media (max-width: 520px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps   { grid-template-columns: 1fr; }
  .process-step    { border-right: none !important; }
  .stats-inner     { grid-template-columns: 1fr 1fr; }

  .section, .admin-content { padding-left: 16px; padding-right: 16px; }
  .admin-tabs  { padding: 0 16px; }
  .order-shell { padding-left: 16px; padding-right: 16px; }
  .order-panel { padding: 16px; }

  .product-grid,
  .catalog-grid,
  .products-admin-grid { grid-template-columns: 1fr; }

  .recent-order-row { grid-template-columns: 1fr; }
  .order-card dl    { grid-template-columns: 1fr; }
}
