:root {
  --black: #141210;
  --black-2: #24201c;
  --red: #b4232a;
  --red-dark: #8f1b21;
  --red-soft: #fff4f3;
  --kraft: #c6a16a;
  --kraft-dark: #a47a43;
  --kraft-light: #e5d2b0;
  --kraft-pale: #f3e9d8;
  --paper: #ffffff;
  --warm: #faf8f4;
  --warm-2: #f4f0e8;
  --muted: #6e675f;
  --line: #ded8cf;
  --line-dark: #c8c0b5;
  --success: #3e6a50;
  --danger: #a61f25;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 8px 24px rgba(24, 19, 14, .06);
  --shadow: 0 18px 48px rgba(24, 19, 14, .10);
  --container: min(1180px, calc(100% - 40px));
  --control-h: 46px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--paper);
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(180,35,42,.18);
  outline-offset: 2px;
}
img, svg { display: block; }
.container { width: var(--container); margin-inline: auto; }
.narrow { width: min(780px, 100%); margin-inline: auto; }
.muted { color: var(--muted); }

/* Header */
.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,238,.96);
  border-bottom: 1px solid rgba(164,122,67,.34);
  box-shadow: 0 1px 0 rgba(198,161,106,.08);
  backdrop-filter: blur(14px);
}
.nav {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--black);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .105em;
}
.brand-word { white-space: nowrap; }
.brand-red { color: var(--red); }
.brand-wordmark {
  width: auto;
  height: 31px;
  display: block;
  flex: 0 0 auto;
}
.brand-wordmark-light { height: 31px; }
.header .brand-wordmark { height: 28px; }
.header .brand-mark,
.footer .brand-mark {
  width: 96px;
  height: 96px;
  display: block;
  flex: 0 0 96px;
  object-fit: contain;
  object-position: center;
}
/* Keep admin branding compact; the 96px treatment is public header/footer only. */
.admin-top .brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 750;
}
.nav-links a, .footer-links a { transition: color .16s ease, background .16s ease, border-color .16s ease; }
.nav-links a { padding: 8px 9px; border-radius: var(--radius-sm); }
.nav-links a:hover { color: var(--red); background: rgba(198,161,106,.14); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  border: 1px solid rgba(164,122,67,.38);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.78);
  color: var(--black);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.icon-btn:hover { background: var(--kraft-pale); border-color: var(--kraft-dark); color: var(--red); }
.icon-btn .ui-icon { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #faf6ee;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.currency-wrap { position: relative; }
.currency-select {
  height: 44px;
  min-width: 86px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(164,122,67,.38);
  border-radius: var(--radius-sm);
  background-color: rgba(255,255,255,.78);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.25 6 7.75l3.5-3.5' fill='none' stroke='%23141210' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  color: var(--black);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.currency-select:hover { border-color: var(--kraft-dark); background-color: var(--kraft-pale); }
.mobile-menu { display: none; }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #faf6ee;
  padding: 10px 20px 18px;
}
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 750; }

/* Type + controls */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { color: var(--black); }
h1, h2 { letter-spacing: -.035em; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head h2 { margin: 8px 0 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; }
.text-link, .tool-link {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 850;
}
.text-link:hover, .tool-card:hover .tool-link { text-decoration: underline; text-underline-offset: 4px; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 8px 18px rgba(143,27,33,.16); }
.btn-dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2622; }
.btn-light, .btn-outline { background: #fff; border-color: var(--line-dark); color: var(--black); }
.btn-light:hover, .btn-outline:hover { background: var(--warm); border-color: var(--black); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Home */
.hero {
  min-height: 570px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff 0%, #fff 53.4%, #fbf8f2 54.1%, var(--kraft-pale) 55.1%, var(--kraft-light) 100%);
}
.hero-grid {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: 42px;
  padding: 64px 0;
}
.hero h1 { max-width: 680px; margin: 15px 0 20px; font-size: clamp(43px, 5.15vw, 66px); line-height: 1.01; }
.hero p { max-width: 615px; margin: 0 0 27px; color: #575049; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 34px; }
.hero-stat strong { display: block; color: var(--red); font-size: 27px; line-height: 1.05; }
.hero-stat span { display: block; margin-top: 5px; color: #766e65; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-art {
  min-height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-elephant {
  width: min(720px, 134%);
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translate(-5%, -4%);
  filter: drop-shadow(0 28px 34px rgba(20,18,16,.16));
  user-select: none;
  pointer-events: none;
}
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-card { min-height: 138px; display: flex; align-items: center; gap: 16px; padding: 28px 24px; border-right: 1px solid var(--line); }
.trust-card:last-child { border-right: 0; }
.trust-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--kraft-pale);
  color: var(--red);
}
.trust-icon .ui-icon { width: 20px; height: 20px; }
.trust-card strong { display: block; margin: 0 0 5px; font-size: 14px; line-height: 1.3; }
.trust-card span { display: block; max-width: 210px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.section { padding: 78px 0; background: #fff; }
.section.soft, .content-section.soft { background: var(--warm); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.category-card::after { content: ""; position: absolute; right: -42px; bottom: -56px; width: 160px; height: 160px; border-radius: 50%; background: var(--kraft-pale); }
.category-card:hover { border-color: var(--line-dark); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.category-card .num { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.category-card h3 { position: relative; z-index: 1; margin: 37px 0 7px; font-size: 19px; }
.category-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 12px; }
.category-card .arrow { position: absolute; right: 21px; bottom: 18px; z-index: 2; color: var(--red); font-size: 20px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { border-color: var(--line-dark); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-art { height: 250px; position: relative; display: grid; place-items: center; background: linear-gradient(145deg,var(--kraft-pale),#d6b887); }
.boxpack {
  width: 68%;
  height: 43%;
  position: relative;
  border: 1px solid var(--black);
  border-radius: 4px;
  background: linear-gradient(110deg,#d9bd8d 0%,#ead8b8 72%,#b9905b 72%);
  box-shadow: 8px 11px 0 rgba(20,18,16,.11);
  transform: perspective(600px) rotateY(-4deg);
}
.boxpack::before { content: "PEPTHAIDES"; position: absolute; left: 9%; top: 24%; color: var(--black); font-size: 11px; font-weight: 950; letter-spacing: .11em; }
.boxpack::after { content: attr(data-label); position: absolute; left: 9%; bottom: 20%; max-width: 78%; overflow: hidden; padding: 6px 8px; border: 1px solid var(--black); border-radius: 3px; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.badge { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 8px; border-radius: 3px; background: var(--black); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 18px 18px 17px; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-body h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.product-body > p { min-height: 62px; margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 15px; }
.tag { padding: 4px 6px; border: 1px solid rgba(180,35,42,.28); border-radius: 3px; background: var(--red-soft); color: var(--red-dark); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.catalog-price { font-size: 13px; font-weight: 900; }
.stock { color: var(--success); font-size: 10px; font-weight: 850; text-transform: uppercase; }

.finder {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 40px 42px;
  border: 1px solid #2e2a25;
  border-radius: var(--radius-lg);
  background: var(--black);
  color: #fff;
}
.finder::after { content: ""; position: absolute; right: -85px; top: -100px; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(circle,rgba(198,161,106,.44),transparent 66%); pointer-events: none; }
.finder > * { position: relative; z-index: 1; }
.finder h2 { max-width: 740px; margin: 9px 0 8px; color: #fff; font-size: clamp(28px,3.3vw,40px); line-height: 1.08; }
.finder p { max-width: 680px; margin: 0; color: #d5cec5; }
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tool-card {
  min-height: 205px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tool-card:hover { border-color: var(--line-dark); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tool-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: var(--kraft-pale); color: var(--red); }
.tool-icon .ui-icon { width: 19px; height: 19px; }
.tool-card h3 { margin: 28px 0 7px; font-size: 17px; }
.tool-card p { min-height: 42px; margin: 0 0 18px; color: var(--muted); font-size: 12px; }

/* Shared inner-page structure */
.page-hero { position: relative; overflow: hidden; padding: 49px 0 44px; border-bottom: 1px solid var(--line); background: var(--warm); }
.page-hero::after { content: ""; position: absolute; right: -100px; top: -205px; width: 400px; height: 400px; border-radius: 50%; background: var(--kraft-light); opacity: .65; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 800px; margin: 9px 0 8px; font-size: clamp(34px,4vw,52px); line-height: 1.02; }
.page-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; }
.breadcrumb { margin-bottom: 11px; color: var(--muted); font-size: 11px; font-weight: 700; }
.breadcrumb a:hover { color: var(--red); }
.content-section { padding: 72px 0; background: #fff; }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 34px; align-items: start; }
.filters { position: sticky; top: 94px; }
.filter-box { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-block { padding: 17px; border-bottom: 1px solid var(--line); }
.filter-box .btn { width: calc(100% - 34px); margin: 17px; }

/* Forms */
.field { display: block; }
.field > span, .field > label, .field label, .field > label:first-child {
  display: block;
  margin: 0 0 7px;
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea,
.search-modal input, .select, .variant-select, .qty input {
  width: 100%;
  min-height: var(--control-h);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--black);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input, .field select, .select, .variant-select, .qty input { padding: 0 12px; }
.field textarea { min-height: 132px; padding: 12px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aaa197; }
.field input:focus, .field select:focus, .field textarea:focus, .search-modal input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180,35,42,.09); outline: none; }
.field small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-span-2 { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: #514a43; font-size: 12px; }
.check-row input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--red); }

.auth-card, .account-card, .success-card, .calc-card, .quiz-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.auth-card, .account-card { padding: 25px; }
.auth-card form, .account-card form { display: grid; gap: 15px; }
.auth-card h1, .account-card h2, .success-card h1 { margin-top: 0; }
.flash { width: min(1080px,calc(100% - 32px)); margin: 13px auto 0; padding: 11px 14px; border: 1px solid; border-radius: var(--radius-sm); font-size: 12px; font-weight: 750; }
.flash.success { background: #eef7f0; border-color: #96b39f; color: #254a31; }
.flash.error { background: #fff0f0; border-color: #d7a1a3; color: #7a1f24; }
.empty-state { padding: 34px; border: 1px dashed var(--line-dark); border-radius: var(--radius); background: var(--warm); text-align: center; }
.empty-state h3 { margin-top: 0; }

/* Product detail */
.product-layout { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 48px; align-items: start; }
.product-media { min-width: 0; }
.product-image-panel {
  min-height: 510px;
  display: grid;
  place-items: center;
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg,var(--kraft-pale),#d7bb8c);
}
.product-image-panel .boxpack { width: 63%; height: 28%; }
.product-info { min-width: 0; padding: 12px 0; }
.product-info h1 { margin: 11px 0 11px; font-size: clamp(38px,4.4vw,58px); line-height: 1; }
.product-info .lead { max-width: 610px; margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.purchase-box { display: grid; grid-template-columns: minmax(0,1fr) 110px; gap: 12px; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--warm); }
.purchase-box .btn { grid-column: 1 / -1; }
.purchase-box small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.variant-price { margin-top: 4px; color: var(--black); font-size: 19px; font-weight: 900; }
.standard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.standard { min-height: 148px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.standard h3 { margin: 0 0 8px; font-size: 13px; }
.standard p { margin: 0; color: var(--muted); font-size: 12px; }

/* Checkout / contact */
.request-grid { display: grid; grid-template-columns: minmax(300px,360px) minmax(0,1fr); gap: 22px; align-items: start; }
.request-grid > .account-card:first-child { position: sticky; top: 94px; }
.request-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.request-line:last-child { border-bottom: 0; }
.request-line small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.request-line > span { flex: 0 0 auto; font-size: 12px; font-weight: 850; }
.success-card { padding: 44px 28px; text-align: center; }
.legal h2 { margin-top: 30px; }

/* Calculator */
.calc-card { max-width: 930px; margin: 0 auto; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); }
.calc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 28px; }
.result-box { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 30px; background: var(--black); color: #fff; }
.result-box small { color: #d2cbc3; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.result-big { margin-top: 4px; font-size: clamp(25px,3vw,38px); font-weight: 950; letter-spacing: -.035em; }
.result-gap { height: 26px; }

/* Finder */
.quiz-card { max-width: 830px; margin: 0 auto; padding: 28px; }
.quiz-card h2 { margin: 10px 0 22px; font-size: 30px; }
.quiz-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.quiz-option { min-height: 74px; display: flex; flex-direction: column; justify-content: center; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 850; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.quiz-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 650; }
.quiz-option:hover { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); transform: translateY(-1px); }

/* Drawers / search */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  background: rgba(20,18,16,.55);
  transition: opacity .18s ease, visibility .18s ease;
}
.overlay.open { visibility: visible; opacity: 1; }
.drawer { width: min(430px,100%); height: 100%; margin-left: auto; display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 55px rgba(0,0,0,.16); transform: translateX(100%); transition: transform .22s ease; }
.overlay.open .drawer { transform: translateX(0); }
.drawer-head { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
#cart-body { flex: 1; overflow: auto; padding: 7px 20px 20px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { flex: 0 0 54px; width: 54px; height: 54px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: var(--kraft-pale); }
.cart-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.cart-item-price { margin-top: 4px; font-size: 11px; font-weight: 850; }
.cart-controls { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.cart-controls button { min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.cart-controls button:hover { border-color: var(--black); background: var(--warm); }
.cart-controls .remove { margin-left: auto; color: var(--red); }
.drawer-footer { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.close-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: #fff; color: var(--black); cursor: pointer; }
.close-btn:hover { border-color: var(--black); background: var(--warm); }
.close-btn .ui-icon { width: 17px; height: 17px; }
.search-modal { width: min(680px,calc(100% - 32px)); margin: 110px auto 0; padding: 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transform: translateY(-10px); transition: transform .18s ease; }
.overlay.open .search-modal { transform: translateY(0); }
.search-row { display: flex; align-items: center; gap: 9px; }
.search-modal input { min-width: 0; height: 46px; padding: 0 13px; }

/* Footer */
.footer { padding: 58px 0 24px; border-top: 4px solid var(--red); background: var(--black); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.65fr repeat(3,1fr); gap: 42px; }
.footer .brand { color: #fff; }
.footer .brand-word { color: #fff; }
.footer .brand-red { color: #e35258; }
.footer .brand-mark { filter: brightness(0) invert(1); opacity: .94; }
.footer p, .footer a, .footer-bottom { color: #c8c0b7; font-size: 12px; }
.footer h4 { margin: 3px 0 15px; color: var(--kraft-light); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 39px; padding-top: 19px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }

/* Admin-compatible utilities */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap { overflow: auto; }
.status-pill { display: inline-block; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--warm); font-size: 11px; text-transform: capitalize; }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; }
.detail-list dt { color: var(--muted); font-weight: 850; }
.detail-list dd { margin: 0; }

::selection { background: var(--red); color: #fff; }

@media (max-width: 1050px) {
  .nav-links { display: none; }
  .mobile-menu { display: grid; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-card:nth-child(2) { border-right: 0; }
  .trust-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .catalog-layout { grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
  .product-layout { gap: 30px; }
  .product-image-panel { min-height: 440px; }
}

@media (max-width: 800px) {
  :root { --container: min(100% - 28px, 1180px); }
  .announcement { min-height: 31px; font-size: 9px; }
  .nav { height: 92px; gap: 12px; }
  .brand { font-size: 17px; gap: 10px; }
  .header .brand-mark, .footer .brand-mark { width: 72px; height: 72px; flex-basis: 72px; }
  .brand-wordmark, .brand-wordmark-light { height: 24px; }
  .currency-select { min-width: 78px; width: 78px; height: 42px; padding: 0 30px 0 9px; background-position: right 10px center; font-size: 11px; }
  .nav-actions { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; }
  .hero { min-height: auto; background: linear-gradient(180deg,#fff 0%,#fff 70%,var(--kraft-pale) 70%,var(--kraft-light) 100%); }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding: 52px 0 30px; }
  .hero h1 { font-size: clamp(40px,12vw,58px); }
  .hero-art { min-height: 360px; overflow: visible; }
  .hero-elephant { width: min(720px, 112vw); transform: translate(-1%, -2%); }
  .hero-stats { gap: 20px; }
  .section { padding: 58px 0; }
  .section-head { align-items: flex-start; }
  .section-head .text-link { margin-top: 8px; }
  .category-grid, .product-grid, .tools-grid, .quiz-options, .standard-grid { grid-template-columns: 1fr; }
  .product-body > p { min-height: 0; }
  .finder { min-height: 0; flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .page-hero { padding: 38px 0 34px; }
  .catalog-layout, .product-layout, .request-grid, .calc-card { grid-template-columns: 1fr; }
  .filters, .product-image-panel, .request-grid > .account-card:first-child { position: static; }
  .catalog-layout { gap: 26px; }
  .product-image-panel { min-height: 390px; }
  .product-info { padding-top: 0; }
  .purchase-box { grid-template-columns: 1fr 100px; }
  .calc-grid { padding: 22px; }
  .result-box { padding: 26px 22px; }
  .footer-top { grid-template-columns: repeat(2,1fr); gap: 28px; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 24px); }
  .currency-wrap { display: none; }
  .nav { height: 80px; }
  .brand { font-size: 16px; letter-spacing: .08em; gap: 8px; }
  .header .brand-mark, .footer .brand-mark { width: 60px; height: 60px; flex-basis: 60px; }
  .brand-wordmark, .brand-wordmark-light { height: 20px; }
  .hero-grid { padding-top: 42px; }
  .hero h1 { font-size: 43px; }
  .hero p { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
  .hero-stat strong { font-size: 23px; }
  .hero-stat span { font-size: 8px; }
  .hero-art { min-height: 300px; }
  .hero-elephant { width: min(640px, 116vw); transform: translate(-1%, -1%); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card, .trust-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-card:last-child { border-bottom: 0; }
  .category-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 12px; }
  .product-art { height: 220px; }
  .form-grid, .calc-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .purchase-box { grid-template-columns: 1fr; }
  .purchase-box .btn, .purchase-box small { grid-column: auto; }
  .account-card, .auth-card, .quiz-card { padding: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .search-modal { margin-top: 78px; }
}

/* Mobile layout correction — 2026-08-15 */
@media (max-width: 800px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .container { max-width: 100%; }
  .header { backdrop-filter: blur(10px); }
  .mobile-nav {
    background: rgba(250,246,238,.99);
    border-top-color: rgba(164,122,67,.24);
  }
  .mobile-nav-search {
    width: 100%;
    min-height: 44px;
    margin: 8px 0 2px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(164,122,67,.34);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--black);
    font-weight: 800;
    text-align: left;
  }
  .mobile-nav-search .ui-icon { width: 18px; height: 18px; color: var(--red); }

  .hero { background: #fff; }
  .hero-grid { align-items: stretch; }
  .hero-grid > div:first-child { min-width: 0; }
  .hero p { max-width: 100%; }
  .hero-stat { min-width: 0; }
  .hero-stat span { overflow-wrap: anywhere; }
  .hero-art {
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
    border-top: 1px solid rgba(164,122,67,.18);
    background: linear-gradient(180deg, #f7efe1 0%, var(--kraft-pale) 46%, var(--kraft-light) 100%);
  }
  .hero-elephant {
    margin-inline: auto;
    max-width: none;
    filter: drop-shadow(0 20px 28px rgba(20,18,16,.13));
  }

  .content-section { padding: 54px 0; }
  .catalog-layout main, .product-info, .account-card, .calc-card, .quiz-card { min-width: 0; }
  .filter-box { width: 100%; }
  .page-hero::after { width: 260px; height: 260px; right: -120px; top: -135px; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .section-head h2 { font-size: clamp(29px, 8vw, 38px); }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 28px); }

  .announcement {
    min-height: 0;
    padding: 8px 14px;
    font-size: 8.5px;
    line-height: 1.35;
    letter-spacing: .075em;
  }

  .nav {
    height: 78px;
    gap: 8px;
  }
  .brand {
    min-width: 0;
    gap: 8px;
  }
  .header .brand-mark {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }
  .header .brand-wordmark {
    width: auto;
    height: 18px;
    max-width: min(43vw, 158px);
  }
  .nav-actions {
    flex: 0 0 auto;
    gap: 5px;
  }
  .nav-actions > [data-search] { display: none; }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .icon-btn .ui-icon { width: 17px; height: 17px; }
  .cart-count {
    right: -4px;
    top: -5px;
  }
  .mobile-nav { padding: 8px 14px 16px; }
  .mobile-nav a { padding: 12px 0; }

  .hero-grid {
    gap: 0;
    padding: 34px 0 0;
  }
  .hero .eyebrow { font-size: 10px; }
  .hero h1 {
    max-width: 100%;
    margin: 13px 0 18px;
    font-size: clamp(36px, 10.4vw, 42px);
    line-height: 1.035;
    letter-spacing: -.04em;
  }
  .hero p {
    margin-bottom: 23px;
    font-size: 15.5px;
    line-height: 1.55;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
  }
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 10.5px;
  }
  .hero-stats {
    margin-top: 28px;
    margin-bottom: 28px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
  }
  .hero-stat strong { font-size: 22px; }
  .hero-stat span {
    margin-top: 5px;
    font-size: 7.5px;
    line-height: 1.25;
    letter-spacing: .055em;
  }
  .hero-art {
    min-height: 292px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-elephant {
    width: min(96vw, 620px);
    transform: translateY(1%);
  }

  .section { padding: 50px 0; }
  .content-section { padding: 48px 0; }
  .page-hero { padding: 31px 0 29px; }
  .page-hero h1 { font-size: 36px; line-height: 1.04; }
  .page-hero p { font-size: 14px; line-height: 1.55; }
  .section-head { margin-bottom: 23px; }
  .section-head h2 { font-size: 32px; }

  .trust-card {
    min-height: 116px;
    padding: 22px 18px;
  }
  .trust-icon { width: 42px; height: 42px; flex-basis: 42px; }

  .filter-box { border-radius: 8px; }
  .filter-block { padding: 15px; }
  .filter-box .btn { width: calc(100% - 30px); margin: 15px; }

  .product-image-panel { min-height: 320px; }
  .product-info h1 { font-size: clamp(35px, 10vw, 45px); }
  .product-info .lead { font-size: 15px; }
  .purchase-box { padding: 18px; }

  .request-grid { gap: 16px; }
  .account-card, .auth-card, .quiz-card { padding: 18px; }
  .account-card h2 { font-size: 22px; }
  .form-grid { gap: 13px; }
  .field input, .field select, .field textarea { font-size: 16px; }

  .calc-grid { padding: 18px; }
  .result-box { padding: 22px 18px; }

  .finder { padding: 26px 20px; }
  .finder h2 { font-size: 30px; }

  .footer .brand-mark {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .footer .brand-wordmark-light { height: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer-top > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 380px) {
  :root { --container: calc(100% - 22px); }
  .header .brand-mark { width: 52px; height: 52px; flex-basis: 52px; }
  .header .brand-wordmark { height: 16px; max-width: 142px; }
  .nav { height: 74px; }
  .icon-btn { width: 38px; height: 38px; }
  .hero h1 { font-size: 35px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .hero-stat strong { font-size: 21px; }
  .hero-art { min-height: 270px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: auto; }
}


/* Compact mobile currency preference row — 2026-08-15 */
@media (max-width: 800px) {
  .mobile-nav-search {
    min-height: 42px;
    margin: 8px 0 3px;
    border-color: rgba(164,122,67,.28);
    box-shadow: none;
  }

  .mobile-currency-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
  }

  .mobile-currency-label {
    color: var(--black);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
  }

  .mobile-nav .currency-select {
    display: block;
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
    height: 42px;
    margin: 0;
    padding: 0 31px 0 11px;
    border-color: rgba(164,122,67,.34);
    background-color: rgba(255,255,255,.82);
    background-position: right 10px center;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .mobile-nav .currency-select {
    flex-basis: 106px;
    width: 106px;
    min-width: 106px;
  }
}


/* Mobile currency row hard fix — 2026-08-15 */
@media (max-width: 800px) {
  .mobile-nav .mobile-currency-row {
    width: 100%;
    min-height: 60px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    column-gap: 16px;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 0;
  }

  .mobile-nav .mobile-currency-label {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
  }

  .mobile-nav .mobile-currency-row > .currency-select {
    justify-self: end;
    box-sizing: border-box;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 30px 0 11px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  .mobile-nav .mobile-currency-row {
    grid-template-columns: minmax(0, 1fr) 106px;
  }
  .mobile-nav .mobile-currency-row > .currency-select {
    width: 106px !important;
    min-width: 106px !important;
    max-width: 106px !important;
  }
}
