@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;600;700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #f3f1ec;
  --surface: #fffcf7;
  --text: #1c1917;
  --muted: #78716c;
  --line: #e4e0d8;
  --brand: #2f4a3c;
  --brand-ink: #24382e;
  --brand-soft: #e8efe9;
  --accent: #b45309;
  --success: #3f6212;
  --danger: #9f1239;
  --warn: #a16207;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 0 rgba(28, 25, 23, .04);
  --shadow-sm: none;
  --maxw: 1180px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 74, 60, .06), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(180, 83, 9, .05), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, .page-title, .hero-card h1, .product h1, .section-head h2, .doc h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex; align-items: center; gap: 18px;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  display: flex; align-items: baseline; gap: 0;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--text);
}
.logo img { height: 28px; }
.logo .mark {
  width: 10px; height: 10px; margin-right: 10px;
  background: var(--brand); border-radius: 1px;
  display: inline-block; align-self: center;
}
.nav-link {
  font-weight: 500; font-size: 14px; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.nav-link:hover { color: var(--text); border-bottom-color: var(--text); }

.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 8px 2px;
  max-width: 420px;
}
.search input {
  border: 0; background: transparent; outline: none; width: 100%;
  font-size: 14px; color: var(--text); font-family: inherit;
}
.search input::placeholder { color: #a8a29e; }
.search svg { flex-shrink: 0; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; font-size: 13px;
  font-family: inherit; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover { background: var(--brand-soft); border-color: #c9d4cc; }
.badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* nav categories / chips — underline tabs, not pills */
.catbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.catbar .container { display: flex; gap: 4px; overflow-x: auto; padding-top: 0; padding-bottom: 0; }
.chip {
  white-space: nowrap; padding: 12px 14px; border-radius: 0;
  border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s;
  font-family: inherit;
}
.chip:hover { color: var(--text); }
.chip.active { color: var(--text); border-bottom-color: var(--brand); background: transparent; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-card {
  background: var(--brand);
  color: #f5f2eb;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: end;
  min-height: 280px;
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(255,252,247,.08) 40.5%, transparent 41%),
    linear-gradient(225deg, transparent 55%, rgba(0,0,0,.12) 100%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 540px; }
.hero-kicker {
  display: inline-block; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(245, 242, 235, .72);
  margin-bottom: 14px; font-weight: 500; font-family: var(--font);
}
.hero-card h1 {
  font-size: clamp(32px, 5vw, 46px); margin: 0 0 14px;
  color: #fffcf7; font-weight: 600;
}
.hero-card p {
  font-size: 16px; color: rgba(245, 242, 235, .78);
  margin: 0 0 28px; max-width: 440px; line-height: 1.6;
  font-family: var(--font);
}
.hero-aside {
  position: relative; z-index: 1;
  border-left: 1px solid rgba(255,252,247,.18);
  padding-left: 28px;
  display: flex; flex-direction: column; gap: 18px;
  font-size: 13px; color: rgba(245, 242, 235, .7);
}
.hero-aside strong { display: block; color: #fffcf7; font-size: 15px; font-weight: 600; margin-bottom: 4px; font-family: var(--font); }
.hero-blob { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; letter-spacing: .02em;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fffcf7; color: var(--brand-ink); border-color: #fffcf7; }
.btn-primary:hover { background: #ebe6dc; }
.hero-card .btn-primary { background: #fffcf7; color: var(--brand-ink); }
.card .btn-primary,
.buy-row .btn-primary,
.layout-2 .btn-primary,
.pay-card .btn-primary,
.empty .btn-primary {
  background: var(--brand); color: #fffcf7; border-color: var(--brand);
}
.card .btn-primary:hover,
.buy-row .btn-primary:hover,
.layout-2 .btn-primary:hover,
.pay-card .btn-primary:hover,
.empty .btn-primary:hover {
  background: var(--brand-ink);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); border-color: #c9d4cc; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 36px 0 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.section-head h2 { font-size: 28px; margin: 0; }
.section-head a {
  color: var(--muted); font-weight: 500; font-size: 13px;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  font-family: var(--font);
}
.section-head a:hover { color: var(--text); border-bottom-color: var(--text); }

/* categories grid */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
  overflow: hidden;
}
.cat-tile:hover { border-color: var(--brand); background: #fff; }
.cat-tile .cat-thumb {
  width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 0;
  margin-bottom: 0; background: #ebe7df;
}
.cat-tile .cat-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cat-tile .name { font-weight: 600; font-size: 13px; padding: 12px 12px 2px; }
.cat-tile .count { color: var(--muted); font-size: 12px; padding: 0 12px 12px; margin-top: 0; }

/* products grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s;
}
.card:hover { border-color: #b8b2a6; }
.card .thumb {
  display: block; aspect-ratio: 1; background: #ebe7df;
  position: relative; overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .35s ease;
}
.card:hover .thumb img { transform: scale(1.03); }
.card .tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 2px;
  letter-spacing: .03em;
}
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 500;
}
.card .title { font-size: 14px; font-weight: 500; min-height: 40px; line-height: 1.35; }
.card .title:hover { color: var(--brand); }
.card .rating { font-size: 12px; color: var(--warn); letter-spacing: .02em; }
.card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.card .price { font-size: 18px; font-weight: 700; font-family: var(--display); }
.card .old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card .add { margin-top: 12px; width: 100%; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 28px 0; }
.product .gallery {
  background: #ebe7df; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1;
}
.product .gallery img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.product h1 { font-size: clamp(26px, 3.5vw, 36px); margin: 6px 0 10px; }
.product .p-price { font-size: 32px; font-weight: 700; margin: 16px 0; font-family: var(--display); }
.product .p-old { font-size: 17px; color: var(--muted); text-decoration: line-through; margin-left: 10px; font-weight: 500; }
.product .desc { color: #44403c; margin: 16px 0; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.qty button {
  width: 40px; height: 44px; border: 0; background: var(--surface);
  font-size: 18px; cursor: pointer; font-family: inherit; color: var(--text);
}
.qty button:hover { background: var(--brand-soft); }
.qty span { width: 46px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.features { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.features li {
  display: flex; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.features b { color: var(--text); font-weight: 600; min-width: 88px; }

.breadcrumbs { color: var(--muted); font-size: 13px; padding: 18px 0 0; }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- cart / checkout ---------- */
.page-title { font-size: clamp(28px, 4vw, 36px); margin: 28px 0 20px; }
.layout-2 { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding-bottom: 48px; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
}
.panel + .panel { margin-top: 16px; }

.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
  width: 84px; height: 84px; border-radius: var(--radius);
  object-fit: cover; object-position: center; background: #ebe7df;
}
.cart-item .ci-title { font-weight: 600; font-size: 14px; }
.cart-item .ci-cat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item .ci-price { font-weight: 700; white-space: nowrap; font-family: var(--display); font-size: 17px; }
.link-danger { color: var(--danger); background: none; border: 0; cursor: pointer; font-size: 13px; padding: 0; font-family: inherit; }

.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); font-size: 14px; }
.summary-total {
  display: flex; justify-content: space-between; padding: 14px 0 4px;
  font-size: 20px; font-weight: 700; color: var(--text);
  border-top: 1px solid var(--line); margin-top: 8px; font-family: var(--display);
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; outline: none; background: #fff;
}
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 74, 60, .12);
}

.empty { text-align: center; padding: 72px 20px; color: var(--muted); }
.empty .big { font-size: 42px; margin-bottom: 12px; opacity: .55; }

/* ---------- status pages ---------- */
.status-wrap { max-width: 560px; margin: 60px auto; text-align: center; }
.status-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  margin: 0 auto 22px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
}
.status-icon.ok { background: var(--success); }
.status-icon.bad { background: var(--danger); }
.status-wrap h1 { font-size: 30px; margin: 0 0 10px; }
.status-wrap p { color: var(--muted); font-size: 16px; }
.order-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; margin: 24px 0; text-align: left;
}

/* pay page */
.pay-card {
  max-width: 440px; margin: 56px auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.pay-card .brandline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.pay-amount { font-size: 40px; font-weight: 700; text-align: center; margin: 10px 0 4px; font-family: var(--display); }
.pay-sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.demo-note {
  background: #faf6ef; border: 1px solid #e7d9c4; color: #7c2d12;
  font-size: 13px; padding: 10px 14px; border-radius: var(--radius); margin-top: 18px;
}

/* ---------- footer ---------- */
.footer { background: #1c1917; color: #d6d3d1; margin-top: 56px; }
.footer .container { padding: 48px 22px 28px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 40px;
  align-items: start;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer h4 {
  color: #fffcf7; font-size: 12px; margin: 0 0 16px;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
  font-family: var(--font);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #a8a29e; font-size: 14px; }
.footer a:hover { color: #fffcf7; }
.footer .muted { color: #78716c; font-size: 13px; }
.footer .brand-word {
  font-family: var(--display); font-size: 22px; color: #fffcf7;
  font-weight: 600; letter-spacing: -.02em; display: inline-block;
}
.footer .pays { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.footer .pays span {
  background: transparent; border: 1px solid #44403c; border-radius: 2px;
  padding: 4px 8px; font-size: 11px; letter-spacing: .04em; color: #a8a29e;
}
.footer-company {
  margin-top: 36px; padding: 22px 0;
  border-top: 1px solid #292524;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  align-items: flex-end;
}
.footer-company-title {
  color: #fffcf7; font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.footer-company-links {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.footer-company-links a {
  font-size: 13px; border-bottom: 1px solid #44403c; padding-bottom: 2px;
}
.footer-company-links a:hover { border-bottom-color: #fffcf7; }
.footer-bottom {
  border-top: 1px solid #292524; margin-top: 8px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px;
}

/* legal / company pages */
.doc { max-width: 780px; margin: 0 auto; padding: 36px 0 56px; }
.doc h1 { font-size: 34px; margin-bottom: 10px; }
.doc h2 { font-size: 22px; margin-top: 28px; font-family: var(--display); }
.info-block h2 { margin-top: 0; }
.doc h3 { font-size: 15px; margin: 22px 0 10px; font-family: var(--font); font-weight: 600; letter-spacing: .02em; }
.doc p, .doc li { color: #44403c; }
.doc .stub {
  background: #faf6ef; border: 1px solid #e7d9c4; color: #7c2d12;
  padding: 12px 16px; border-radius: var(--radius); font-size: 14px;
}
.doc .lead { color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.doc .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.doc .crumbs a:hover { color: var(--brand); }
.page-anchors {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  padding: 14px 0 8px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 64px; z-index: 20;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.page-anchors a {
  font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.page-anchors a:hover { color: var(--text); border-bottom-color: var(--text); }
.info-block {
  scroll-margin-top: 110px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  margin-bottom: 16px;
}
.info-block h2 { margin-bottom: 16px; }
.info-list { margin: 0; display: grid; gap: 14px; }
.info-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.info-list dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 4px;
}
.info-list dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 500; }
.muted-label { font-size: 12px; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.note {
  margin: 18px 0 0; padding: 12px 14px;
  background: #faf6ef; border: 1px solid #e7d9c4;
  color: #7c2d12; font-size: 13px; border-radius: var(--radius);
}
.contact-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.feedback-form { max-width: 520px; }
.contact-card {
  display: block; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
  transition: border-color .15s, background .15s;
}
.contact-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.contact-card-label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 6px;
}
.contact-card-value { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.back-home { margin-top: 28px; font-size: 14px; color: var(--muted); }
.back-home a { border-bottom: 1px solid var(--line); }
.back-home a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast {
  background: var(--text); color: #fffcf7; padding: 12px 16px;
  border-radius: var(--radius); font-size: 13px; animation: slidein .2s ease;
}
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.skeleton {
  background: linear-gradient(90deg, #ebe7df 25%, #e4e0d8 37%, #ebe7df 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* bestsellers rail */
.rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 0; }
.rail .card { min-width: 220px; max-width: 220px; scroll-snap-align: start; }

.chips-row { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }

.cat-section { padding-top: 6px; }
.cat-section + .cat-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }

/* support */
.support-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 48px; height: 48px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--brand); color: #fffcf7;
  box-shadow: 0 8px 20px rgba(28, 25, 23, .18);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .12s;
}
.support-fab:hover { background: var(--brand-ink); transform: translateY(-2px); }
.support-pop {
  position: fixed; right: 20px; bottom: 80px; z-index: 120;
  width: 250px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 2px;
}
.support-pop[hidden] { display: none; }
.support-pop .support-title { font-weight: 700; margin-bottom: 8px; font-family: var(--display); }
.support-pop a { padding: 9px 8px; border-radius: var(--radius); font-size: 13px; color: var(--text); }
.support-pop a:hover { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .layout-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; padding: 40px 32px; }
  .hero-aside {
    border-left: 0; border-top: 1px solid rgba(255,252,247,.18);
    padding-left: 0; padding-top: 20px;
    flex-direction: row; flex-wrap: wrap; gap: 20px 28px;
  }
  .info-list.cols-2 { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-card { padding: 28px 22px; border-radius: var(--radius); }
  .hero-card h1 { font-size: 30px; }
  .search { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .card .body { padding: 12px; }
  .card .title { min-height: 0; font-size: 13px; }
  .card .price { font-size: 16px; }
  .header .container { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .logo { font-size: 20px; }
  .buy-row { flex-direction: column; align-items: stretch; }
  .buy-row .btn { width: 100%; }
  .page-anchors { top: 56px; }
  .info-block { padding: 18px; }
}


/* auth / account */
.auth-card {
  max-width: 440px; margin: 40px auto 60px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 30px; }
.auth-alt { margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { border-bottom: 1px solid var(--line); }
.legal-accept { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 4px 0 16px; }
.legal-accept a { color: var(--brand); border-bottom: 1px solid #c9d4cc; }
.form-error { color: var(--danger); font-size: 14px; margin: 0 0 12px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin-bottom: 10px; }
.plain-list a { border-bottom: 1px solid var(--line); }
