﻿:root {
  --red: #c8102e;
  --red-dark: #9d0c24;
  --ink: #1d1d1f;
  --muted: #6d6a67;
  --line: #ece7e4;
  --bg: #fff;
  --soft: #f6f3f1;
  --shadow: 0 10px 30px rgba(40, 16, 16, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Manrope, "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0 0 0.4em; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar { background: #1a1012; color: #f6efe9; font-size: 14px; }
.topbar-row { display: flex; gap: 22px; flex-wrap: wrap; padding: 8px 0; }
.topbar a:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: Literata, Georgia, serif; font-size: 28px; letter-spacing: -0.03em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8fa3, var(--red) 55%, #7a1024);
  box-shadow: inset -6px -6px 0 rgba(255,255,255,.25);
}
.nav { display: flex; gap: 18px; font-weight: 650; }
.nav a[aria-current="page"], .nav a:hover { color: var(--red); }
.menu-toggle { display: none; }
.header-controls { display: flex; align-items: center; gap: 8px; }
.branch-control select {
  max-width: 142px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 9px 28px 9px 12px;
  font: inherit;
  font-weight: 700;
}
.language-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}
.language-switch button {
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.language-switch button[aria-pressed="true"] { background: #1a1012; color: #fff; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.search { flex: 1; }
.search input, .checkout input, .checkout textarea, .buy input, .cart-item input {
  width: 100%;
  border: 1px solid #e4ddd8;
  background: var(--soft);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}
.search input:focus, .checkout input:focus, .checkout textarea:focus, .buy input:focus, .cart-item input:focus {
  border-color: var(--red);
  background: #fff;
}
.checkout textarea { border-radius: 16px; resize: vertical; }
.cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700;
}
.cart-link:hover { background: var(--red-dark); }
.cart-count {
  min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center;
  background: #fff; color: var(--red); font-size: 13px;
}
.cart-count[hidden] { display: none; }

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
  padding: 42px 0 18px;
}
.hero-copy h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 12px; }
.hero-copy p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.hero-photo {
  border-radius: 28px; overflow: hidden; height: 420px; background: #2a1016;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.btn, .card-row button, .buy button, .buy-button, .checkout button {
  border: 0; cursor: pointer; border-radius: 999px; background: var(--red); color: #fff; font-weight: 750;
}
.btn { display: inline-block; padding: 12px 18px; margin-top: 8px; }
.btn:hover, .card-row button:hover, .buy button:hover, .buy-button:hover, .checkout button:hover { background: var(--red-dark); }
.eyebrow { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.catalog-page { padding-bottom: 48px; }
.catalog-note { max-width: 38ch; margin: 0; color: var(--muted); font-size: 14px; }
.search-summary { margin: 0 0 16px; color: var(--muted); }

.catalog { padding: 18px 0 50px; }
.catalog-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.catalog-head h1, .catalog-head h2, .related h2, .cart-page h1, .product-page h1 { font-size: 34px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.filters button.is-on { background: #1a1012; color: #fff; border-color: #1a1012; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); }
.card-photo { position: relative; display: block; aspect-ratio: 1; background: #f3eeea; overflow: hidden; }
.card-photo img, .product-photo img, .cart-photo img {
  width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center;
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--red); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 750;
}
.badge-inline { position: static; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h2 { font-size: 18px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-row strong, .price { color: var(--red); }
.card-row button { padding: 8px 12px; }

.product-page, .cart-page { padding: 28px 0 56px; }
.crumbs { color: var(--muted); margin: 0 0 18px; }
.crumbs a:hover { color: var(--red); }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.product-photo { background: var(--soft); border-radius: 28px; overflow: hidden; aspect-ratio: 1; }
.product-info h1 { font-size: clamp(32px, 4vw, 46px); }
.lead { font-size: 18px; }
.meta, .order-note, .fine, .empty { color: var(--muted); }
.price { font-size: 32px; margin: 8px 0 16px; font-family: Literata, Georgia, serif; }
.buy { display: flex; gap: 12px; align-items: end; }
.buy label { display: grid; gap: 6px; font-size: 14px; }
.buy input { width: 90px; border-radius: 14px; text-align: center; }
.buy button, .buy-button, .checkout button { padding: 12px 22px; }
.order-note {
  margin-top: 22px; padding: 16px 18px; background: var(--soft); border-radius: 18px;
  display: grid; gap: 4px;
}
.order-note a { color: var(--red); font-weight: 800; font-size: 20px; }
.related { margin-top: 48px; }

.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr 90px auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-photo { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--soft); }
.cart-item h2 { font-size: 18px; }
.cart-item p { margin: 0; color: var(--muted); }
.cart-item input { border-radius: 12px; padding: 8px; }
.text-btn { border: 0; background: none; color: var(--muted); cursor: pointer; }
.text-btn:hover { color: var(--red); }
.checkout { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 24px; padding: 18px; display: grid; gap: 12px; }
.checkout label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.total { margin: 0; font-size: 18px; }
.done { background: var(--soft); border-radius: 24px; padding: 22px; max-width: 640px; }
.empty { padding: 20px 0 40px; }

.about { background: var(--soft); padding: 48px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { background: #fff; border-radius: 16px; padding: 14px 16px; }

.footer { background: #1a1012; color: #f4ebe6; padding: 36px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 24px; }
.footer h2 { font-size: 20px; color: #fff; }
.footer a:hover { color: #fff; }
.footer-logo { color: #fff; margin-bottom: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px);
  background: #1a1012; color: #fff; padding: 12px 16px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body {
  transition: opacity .16s ease;
}
body.lang-switching {
  opacity: .35;
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

@media (max-width: 980px) {
  .hero, .product, .cart-layout, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .header-row { flex-wrap: wrap; padding: 10px 0; }
  .search { order: 5; min-width: 100%; }
  .header-controls { margin-left: auto; }
  .checkout { position: static; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item strong, .cart-item label, .text-btn { grid-column: 2; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-row { gap: 10px; }
  .logo { font-size: 25px; margin-right: auto; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    order: 2;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .cart-link { order: 3; padding: 10px 13px; }
  .nav {
    display: none;
    order: 4;
    width: 100%;
    padding: 10px 0 2px;
    border-top: 1px solid var(--line);
    gap: 4px;
  }
  .nav a { padding: 10px 4px; }
  .header.menu-open .nav { display: grid; }
  .search { display: none; order: 5; min-width: 0; width: 100%; }
  .header.menu-open .search { display: block; }
  .header-controls {
    display: none;
    order: 6;
    width: 100%;
    justify-content: space-between;
    padding: 4px 0 8px;
  }
  .header.menu-open .header-controls { display: flex; }
  .branch-control select { max-width: none; min-width: 150px; }
  .topbar-row { gap: 4px 14px; font-size: 12px; }
  .hero { padding-top: 24px; gap: 18px; }
  .hero-photo { height: min(78vw, 360px); border-radius: 22px; }
  .hero-copy p { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; gap: 7px; }
  .card-body h2 { font-size: 16px; }
  .card-row { align-items: stretch; flex-direction: column; }
  .card-row button { min-height: 40px; }
  .badge { top: 8px; left: 8px; padding: 3px 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .filters button { flex: 0 0 auto; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .cart-photo { width: 64px; height: 64px; }
  .cart-page, .product-page { padding-top: 20px; }
  .buy { flex-wrap: wrap; }
  .footer { padding: 28px 0 22px; }
}

.test {
  color: skyblue;
  font-size: 30px;
  font-family: cursive;
}