
:root {
  --bg: #F7ECDD;
  --surface: #FFFFFF;
  --surface-soft: #FBF4EB;
  --surface-card: #F1E1C5;

  --ink: #362320;
  --ink-soft: #7A645D;
  --ink-faint: #B4A196;

  --accent: #B2495B;
  --accent-light: #C36074;
  --accent-dark: #8F3548;
  --accent-tint: #F2D9DD;

  --gold: #C98B2E;
  --gold-tint: #F3DFAF;

  --sage: #74815B;
  --sage-tint: #E3E8D6;

  --line: #D8B99A;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-card: 0 10px 30px -18px rgba(54, 35, 32, 0.35);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --- Пунктирная "линия реза" — сигнатурный элемент ---------------------- */

.dashline {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
}

.dashline--full {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-top: 44px;
}
.dashline--full::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(to bottom, rgba(54, 35, 32, 0.22), rgba(54, 35, 32, 0) 100%);
  pointer-events: none;
}

/* --- Topbar --------------------------------------------------------------*/

.topbar {
  background: var(--ink);
  color: var(--surface-soft);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 16px;
}

.topbar__phone { font-weight: 600; }
.topbar__phone:hover { color: var(--gold-tint); }
.topbar__left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.topbar__about { opacity: .85; }
.topbar__about:hover { opacity: 1; color: var(--gold-tint); }

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

.header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.logo__img { height: 48px; width: auto; display: block; }
.logo__mark { color: var(--accent); display: flex; }
.logo em { font-style: normal; color: var(--accent); }

.catalog-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}
.catalog-toggle:hover { border-color: var(--accent); color: var(--accent); }
.catalog-toggle__chevron { transition: transform .15s ease; color: var(--ink-faint); }
.catalog-toggle[aria-expanded="true"] .catalog-toggle__chevron { transform: rotate(180deg); }

.catalog-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.catalog-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}

.catalog-panel__inner { padding: 28px 24px; }

.catalog-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 28px;
}

.catalog-panel__col-title {
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  min-height: 50px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
}
.catalog-panel__col-title:hover { color: var(--accent); }

.catalog-panel__sub { list-style: none; margin: 0; padding: 0; }
.catalog-panel__sub li { margin-bottom: 2px; }
.catalog-panel__sub a {
  display: block;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.catalog-panel__sub a:hover { background: var(--surface-soft); color: var(--accent); }


.header__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.header__links a:hover { color: var(--accent); }

.quick-request-toggle { padding: 10px 20px; font-size: 13.5px; flex-shrink: 0; }

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

.mobile-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.mobile-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}

.mobile-menu-panel__inner {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 20px;
}
.mobile-menu-panel__search {
  padding: 8px 4px 16px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 4px;
}
.mobile-menu-panel__search .search-results { max-height: 240px; }
.mobile-menu-panel__inner a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.mobile-menu-panel__inner a:hover { color: var(--accent); }
.mobile-menu-panel__inner a.mobile-menu-panel__cta {
  margin-top: 16px;
  border-bottom: none;
  text-align: center;
}

.search-wrap { position: relative; margin-left: -18px; }

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.search-toggle:hover { border-color: var(--accent); color: var(--accent); }
.search-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 12px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.search-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}

.search-panel__input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--surface-soft);
  color: var(--ink);
}
.search-panel__input:focus { outline: none; border-color: var(--accent); }

.search-results {
  margin-top: 10px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  color: inherit;
}
.search-result:hover { background: var(--surface-soft); }
.search-result__photo {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--surface-soft);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 15px;
}
.search-result__photo img { width: 100%; height: 100%; object-fit: cover; }
.search-result__name {
  font-size: 13.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result__price {
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-empty, .search-hint {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 10px 4px;
}

@media (max-width: 480px) {
  .search-panel { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; max-width: none; }
}

.cart-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--surface-soft);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: auto;
}
.cart-pill:hover { background: var(--accent-dark); }

.cart-wrap { position: relative; margin-left: auto; }
.cart-wrap .cart-pill { margin-left: 0; }

.cart-preview {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 14px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.cart-preview.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}

.cart-preview__items { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.cart-preview__empty { font-size: 13.5px; color: var(--ink-faint); text-align: center; padding: 8px 0; }
.cart-preview__row { display: flex; align-items: center; gap: 10px; }
.cart-preview__photo {
  width: 40px; height: 40px; border-radius: 8px; background: var(--surface-soft);
  flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 14px;
}
.cart-preview__photo img { width: 100%; height: 100%; object-fit: contain; }
.cart-preview__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-preview__name {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-preview__side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0;
}
.cart-preview__sum { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-preview__remove {
  background: none; border: none; color: var(--ink-faint); font-size: 13px; cursor: pointer; padding: 2px;
}
.cart-preview__remove:hover { color: #b12b2b; }
.cart-preview__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 13.5px; font-weight: 700;
}
.cart-preview__goto { display: flex; width: 100%; margin-top: 12px; padding: 10px; font-size: 13px; }
.cart-preview__goto[hidden] { display: none; }

.qty-stepper--mini { height: 28px; align-self: flex-start; }
.qty-stepper--mini .qty-stepper__btn { width: 24px; height: 28px; font-size: 13px; }
.qty-stepper--mini .qty-stepper__value { width: 32px; min-width: 0; height: 28px; padding: 0 3px; font-size: 11.5px; }
.cart-pill__count {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

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

.hero { padding-top: 56px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  align-items: center;
  gap: 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero h1 .accent {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--accent);
}

.hero__lead {
  max-width: 46ch;
  font-size: 16.5px;
  margin-top: 18px;
}

.hero__cta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent-light); color: #fff; }
.btn--primary:hover { background: var(--accent); }

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

.hero__art { display: flex; justify-content: center; width: 100%; }
.hero__box-photo {
  width: 100%;
  max-width: 480px;
  display: block;
}

/* --- Features ------------------------------------------------------------*/

.features { padding: 48px 0 8px; }

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

.feature {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 24px;
  border: 1px solid var(--line);
}
.feature svg { color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14px; margin: 0; }

/* --- Catalog / product grid ---------------------------------------------*/

.catalog { padding: 64px 0 90px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 16px;
}
.section-head h2 { font-size: 28px; margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--surface-card);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .18s ease, transform .18s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.product-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  /* срезанный уголок — как крышка коробки */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.product-card__ph-icon { width: 46%; color: var(--ink-faint); }

.product-card__photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 10px 8px rgba(54, 35, 32, 0.3));
}

.product-card__media-link { display: block; }
.product-card__name-link { display: block; color: inherit; }
.product-card__name-link:hover .product-card__name { color: var(--accent); }

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag--new { background: var(--gold-tint); color: #7A5A16; }

.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }

.product-card__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  margin: 0 0 4px;
  line-height: 1.35;
}

.product-card__pack {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

.product-card__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}

.price-old {
  color: var(--ink-faint);
  font-size: 12.5px;
  margin-right: 6px;
  white-space: nowrap;
}
.price-now {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.price-per-unit {
  font-size: 13px;
  color: #332e2c;
  margin-left: 4px;
  white-space: nowrap;
}

.btn-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--surface-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn-add:hover { background: var(--accent); transform: scale(1.06); }

.qty-stepper--card {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 36px;
}
.qty-stepper--card .qty-stepper__btn {
  width: 30px;
  height: 36px;
  border: none;
  background: var(--surface-soft);
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
}
.qty-stepper--card .qty-stepper__btn:hover { background: var(--accent-tint); color: var(--accent-dark); }
.qty-stepper--card .qty-stepper__value {
  min-width: 30px;
  height: 36px;
  padding: 0 4px;
  font-size: 12.5px;
}

/* --- Placeholder page ---------------------------------------------------*/

.placeholder-page { padding: 90px 0; text-align: center; }
.placeholder-page h1 { font-size: 32px; }

/* --- Info pages (условия, доставка, о компании) --------------------------*/

.info-page { padding: 56px 0 90px; }
.info-page__inner { max-width: 720px; }
.info-page h1 { font-size: 36px; }
.info-page__lead { font-size: 17px; max-width: 56ch; }
.info-page__para { font-size: 15.5px; max-width: 62ch; }

.info-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 14.5px;
}
.info-list li svg { color: var(--sage); flex-shrink: 0; margin-top: 2px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 4px 18px;
}
.faq-item__question {
  padding: 14px 26px 14px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .15s ease;
}
.faq-item[open] .faq-item__question::after { transform: translateY(-35%) rotate(-135deg); }
.faq-item__answer { padding: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }

.info-page__note {
  margin-top: 32px;
  padding: 12px 16px;
  background: var(--gold-tint);
  color: #7A5A16;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 12.5px;
  display: inline-block;
}

/* --- Category page: breadcrumb, sidebar, product listing -----------------*/

.category-page { padding: 28px 0 90px; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb__current { color: var(--ink-soft); font-weight: 600; }

.category-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.category-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px;
  position: sticky;
  top: 90px;
}
.category-sidebar__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.category-tree { list-style: none; margin: 0; padding: 0; }
.category-tree__group { margin-bottom: 4px; }
.category-tree__group > a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.category-tree__group > a:hover { background: var(--surface-soft); }
.category-tree__group.is-active > a { color: var(--accent); }

.category-tree__sub {
  list-style: none;
  margin: 2px 0 8px;
  padding-left: 14px;
  border-left: 2px dashed var(--line);
}
.category-tree__sub a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.category-tree__sub a:hover { background: var(--surface-soft); color: var(--accent); }
.category-tree__sub li.is-current a {
  color: var(--accent-dark);
  font-weight: 700;
  background: var(--accent-tint);
}

.category-main .section-head h1 { font-size: 26px; margin: 0; }

.subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.subcat-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}
.subcat-chip:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; }
}

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

.product-detail-page { padding: 28px 0 90px; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail__photo img { width: 100%; height: 100%; object-fit: contain; padding: 16px; filter: drop-shadow(0 10px 8px rgba(54, 35, 32, 0.3)); }
.product-detail__ph-icon { width: 40%; color: var(--ink-faint); }
.product-detail__photo .tag { position: absolute; top: 16px; left: 16px; }

.product-detail__info { padding-top: 4px; }
.product-detail__info h1 { font-size: 30px; margin-bottom: 10px; }
.product-detail__pack { margin-bottom: 18px; }

.product-detail__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 20px;
}
.product-detail__price .price-now { font-size: 28px; }
.product-detail__price .price-old { font-size: 15px; }
.product-detail__price-note { font-size: 13px; color: var(--ink-faint); }

.product-detail__description {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 14px;
  row-gap: 6px;
  font-size: 15px;
  max-width: 52ch;
  margin-bottom: 22px;
  color: var(--ink-soft);
}
.product-detail__description-label { color: var(--ink); font-weight: 600; white-space: nowrap; }
.product-detail__description-value { color: var(--ink-soft); font-family: var(--font-mono); }
.product-detail__description-text { grid-column: 1 / -1; }
p.product-detail__description { display: block; }

.product-detail__stock-warning {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  margin-bottom: 20px;
  display: inline-block;
}

.product-detail__buy {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper__btn {
  width: 40px; height: 44px;
  border: none;
  background: var(--surface-soft);
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}
.qty-stepper__btn:hover { background: var(--accent-tint); color: var(--accent-dark); }
.qty-stepper__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  border-left: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  font-family: var(--font-mono);
  color: var(--ink);
}

.product-detail__add { padding: 13px 22px; }

.product-detail__note { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }

@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__photo { max-width: 420px; margin: 0 auto; }
}

/* --- Product gallery / carousel ------------------------------------------*/

.product-gallery__main { position: relative; }
.product-gallery__img.is-hidden { display: none; }

.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.product-gallery__nav:hover { background: var(--surface); color: var(--accent); }
.product-gallery__nav--prev { left: 12px; }
.product-gallery__nav--next { right: 12px; }

.product-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.product-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}
.product-gallery__dot.is-active { background: var(--accent); width: 20px; border-radius: 4px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
}
.contact-card svg { color: var(--accent); margin-bottom: 4px; }
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.contact-card__value { font-weight: 700; font-size: 15px; }
a.contact-card:hover { border-color: var(--accent); }

.contacts-cta {
  display: table;
  margin: 30px auto 0 auto;
  padding: 17px 34px;
  font-size: 16.5px;
}

@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

.footer {
  background: var(--ink);
  color: var(--ink-faint);
  margin-top: 40px;
  padding: 52px 0 20px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.2fr;
  gap: 32px;
}

.footer__col--compact a { font-size: 12.5px; }

.footer__col .logo--footer {
  display: inline-block;
  margin-bottom: 10px;
}
.footer__col .logo--footer .logo__img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer__col p { color: var(--ink-faint); font-size: 13.5px; }
.footer__col h4 {
  color: var(--surface-soft);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.footer__col a, .footer__muted {
  display: block;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.footer__col a:hover { color: var(--gold); }

.footer__legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
}

/* --- Responsive -----------------------------------------------------------*/

@media (max-width: 1080px) {
  .header__links { display: none; }
  .quick-request-toggle { display: none; }
  .search-wrap { display: none; }
  .mobile-menu-toggle { display: flex; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .catalog-toggle__label { display: none; }
  .catalog-panel__inner { padding: 18px 20px; max-height: 70vh; overflow-y: auto; }
  .catalog-panel__grid { grid-template-columns: 1fr; gap: 20px; }
  .topbar__inner { flex-direction: column; gap: 4px; padding: 8px 16px; text-align: center; }
  .topbar__left { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
  .cart-pill__label { display: none; }

  .header__inner { gap: 8px; padding: 12px 16px; }
  .catalog-toggle { padding: 8px 10px; }
  .cart-pill { padding: 8px 10px; }
  .mobile-menu-toggle { width: 36px; height: 36px; }
}

@media (max-width: 400px) {
  .logo__img { height: 42px; }
  .header__inner { gap: 6px; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features__grid { grid-template-columns: 1fr; }
  .product-card__body { padding: 12px 12px 14px; }
  .product-card__name { font-size: 13px; }
  .price-now { font-size: 14px; }
  .price-per-unit { font-size: 10.5px; display: block; margin-left: 0; }
  .btn-add { width: 30px; height: 30px; font-size: 16px; }
  .qty-stepper--card { height: 26px; }
  .qty-stepper--card .qty-stepper__btn { width: 21px; height: 26px; font-size: 11px; }
  .qty-stepper--card .qty-stepper__value { min-width: 19px; height: 26px; font-size: 9.5px; padding: 0 2px; }
  .product-card__row { gap: 6px; }
}

/* --- Generic link-button (public pages; admin has its own in admin.css) --*/

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--accent); }
.link-btn--danger:hover { color: #b12b2b; }

/* --- Generic form field (checkout) ---------------------------------------*/

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin: 16px 0 6px;
}
.field-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
}

.field-input--emphasis { border-color: var(--accent-light); background: var(--accent-tint); }
.field-input--emphasis::placeholder { color: var(--accent-dark); opacity: .65; }

textarea.field-input { resize: none; }

select.field-input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A645D' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-input:focus { outline: none; border-color: var(--accent); }

/* --- Cart page -------------------------------------------------------- */

.cart-page { padding: 28px 0 90px; }
.cart-page h1 { font-size: 30px; margin-bottom: 24px; }

.cart-empty {
  text-align: center;
  padding: 60px 0;
}
.cart-empty p { margin-bottom: 18px; }

.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 16px;
}
.cart-row__photo {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: var(--surface-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cart-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__ph { color: var(--ink-faint); font-size: 20px; }
.cart-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-row__name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.cart-row__name:hover { color: var(--accent); }
.cart-row__price { font-size: 12.5px; color: var(--ink-faint); }
.cart-row__total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  min-width: 70px;
  text-align: right;
}
.cart-row__qty-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-row__remove {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
}
.cart-row__remove:hover { color: #b12b2b; }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  max-width: 420px;
  margin-left: auto;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 6px;
}
.cart-summary__total { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.cart-summary__warning {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 10px 0;
}
.cart-summary__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.cart-summary__actions .btn.is-disabled {
  opacity: .5;
  pointer-events: none;
}

/* --- Checkout page ------------------------------------------------------ */

.checkout-page { padding: 28px 0 90px; }
.checkout-page h1 { font-size: 30px; margin-bottom: 22px; }

.checkout-errors {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 14px;
}
.checkout-errors ul { margin: 0; padding-left: 18px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: start;
}

.checkout-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.checkout-section h2 { font-size: 17px; margin-bottom: 4px; }

.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.type-toggle { display: flex; gap: 8px; margin-bottom: 6px; }
.type-toggle__btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.type-toggle__btn.is-active { background: var(--ink); color: var(--surface-soft); border-color: var(--ink); }

.radio-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

.radio-card--payment { gap: 12px; }
.payment-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.payment-badge--alfa { background: #EF3124; color: #fff; }
.payment-badge--tbank { background: #FFDD2D; color: #1A1A1A; }
.payment-badge--invoice { background: var(--surface-soft); color: var(--ink-soft); border: 1.5px solid var(--line); }

.checkout-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }
.checkout-note a { color: var(--accent); text-decoration: underline; }

.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  position: sticky;
  top: 90px;
}
.checkout-summary h2 { font-size: 17px; margin-bottom: 12px; }
.checkout-summary__items { display: flex; flex-direction: column; margin-bottom: 4px; }
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.checkout-summary__items .checkout-summary__row:first-child { padding-top: 0; }
.checkout-summary__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.checkout-summary__name {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}
.checkout-summary__qty {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.checkout-summary__price {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  padding-top: 1px;
}
.checkout-summary__row--total {
  border-top: 2px dashed var(--line);
  border-bottom: none;
  padding-top: 14px;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.checkout-submit { width: 100%; margin-top: 16px; }
.g-recaptcha { margin-top: 16px; transform: scale(0.93); transform-origin: left top; }
.checkout-submit:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .checkout-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
  }
  .cart-row__photo { order: 1; }
  .cart-row__body { order: 2; flex: 1 1 auto; min-width: 0; margin-right: 8px; }
  .cart-row__qty-group { order: 4; }
  .cart-row__total { order: 5; margin-left: auto; }
}

/* --- Order success -------------------------------------------------------*/

.order-success-page { padding: 60px 0 100px; }
.order-success {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px 32px;
}
.order-success__icon { color: var(--sage); margin-bottom: 12px; }
.order-success h1 { font-size: 24px; }
.order-success__payment {
  background: var(--surface-soft);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  margin: 20px 0;
  text-align: left;
}
.order-success__payment h2 { font-size: 14px; margin-bottom: 8px; }
