:root {
  --brown: #3d2b1f;
  --accent: #8b5e3c;
  --green: #435846;
  --cream: #f7f3eb;
  --white: #fff;
  --muted: #756b62;
  --border: #e5ded2;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--brown);
  background: var(--cream);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

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

.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.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;
}

.top-message {
  padding: 8px 16px;
  background: var(--green);
  color: white;
  text-align: center;
  font-size: 13px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 243, 235, .97);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 26px;
}

.navigation, .header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navigation a, .catalog-back {
  text-decoration: none;
  font-size: 14px;
}

.navigation a:hover { color: var(--accent); }

.cart-button, .menu-button, .small-button {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--brown);
}

.menu-button { display: none; }

.hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(32,22,15,.9), rgba(32,22,15,.3)),
    url("https://images.unsplash.com/photo-1556911220-bff31c812dba?auto=format&fit=crop&w=1800&q=85")
    center / cover;
}

.hero-content {
  max-width: 660px;
  padding: 85px 0;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 2px;
}

.hero h1 {
  margin-bottom: 24px;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
}

.hero p {
  max-width: 500px;
  margin-bottom: 30px;
  color: #e5ded2;
  font-size: 18px;
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s;
}

.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--brown); }
.button-outline { border-color: #b9afa5; color: white; }
.button-outline:hover { background: white; color: var(--brown); }

.benefits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 30px #3d2b1f10;
}

.benefits article {
  display: flex;
  gap: 14px;
  padding: 24px 20px;
}

.benefits article + article { border-left: 1px solid var(--border); }
.benefits article > span { color: var(--accent); font-size: 30px; }
.benefits h3 { margin-bottom: 4px; font-size: 14px; }
.benefits p { margin: 0; color: var(--muted); font-size: 12px; }

.section { padding: 80px 0; }
.section-white { background: white; }

.section-heading {
  max-width: 700px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.2;
}

.section-heading p, .about-grid p { color: var(--muted); }

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

.category {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #eee5d8;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.category:hover { transform: translateY(-4px); background: #e6d8c5; }
.category-symbol { display: block; width: 42px; height: 42px; color: var(--accent); }
.category-symbol svg { width: 42px; height: 42px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.category h3 { margin: 12px 0 5px; font-family: Georgia, serif; font-size: 22px; }
.category > span:last-child { font-size: 13px; }

.catalog-tools {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.search-label { flex: 1; }

.catalog-tools input, .catalog-tools select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--brown);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.filters button {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: white;
  color: var(--brown);
}

.filters button.active { background: var(--brown); color: white; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px #3d2b1f12;
}

.card-image {
  display: block;
  overflow: hidden;
  background: #eee5d8;
}

.card-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .3s;
}

.card-image:hover img { transform: scale(1.04); }
.card-body { padding: 18px; }
.card-material { color: var(--accent); font-size: 12px; text-transform: uppercase; }
.card-body h3 { margin: 7px 0; font-family: Georgia, serif; font-size: 21px; line-height: 1.3; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-size { color: var(--muted); font-size: 13px; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.card-bottom strong { font-size: 20px; }
.card-bottom .button { min-height: 40px; padding: 8px 12px; font-size: 13px; }

.demo-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.empty-state { padding: 45px 15px; text-align: center; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-photo {
  min-height: 440px;
  border-radius: 10px;
  background:
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80")
    center / cover #e5ded2;
}

.about-grid .button { margin-top: 10px; }
.delivery-section { background: #eee7dc; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.delivery-grid article { padding: 25px; border: 1px solid #d7c9b7; border-radius: 8px; }
.delivery-grid h3 { margin-bottom: 8px; }
.delivery-grid p { margin-bottom: 0; color: var(--muted); }


/* Сторінка товару */

.product-main { padding-bottom: 40px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; font-size: 13px; color: var(--muted); }

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-photo {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #eee5d8;
  cursor: zoom-in;
}

.product-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.product-information h1 {
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-price { margin-bottom: 20px; font-size: 30px; font-weight: 800; }
.specifications { margin: 25px 0; border-top: 1px solid var(--border); }
.specifications div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.specifications dt { color: var(--muted); }
.specifications dd { margin: 0; text-align: right; }
.purchase-row { display: flex; gap: 12px; margin-top: 9px; }
.purchase-row > .button { flex: 1; padding-inline: 14px; }

.quantity-control {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}

.quantity-control button { width: 36px; height: 50px; border: 0; background: white; color: var(--brown); font-size: 22px; }
.quantity-control input { width: 44px; padding: 0; border: 0; text-align: center; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.subtotal { margin: 12px 0 25px; font-size: 14px; color: var(--muted); }
details { padding: 16px 0; border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 12px 0 0; color: var(--muted); }
.back-link { display: inline-block; margin-top: 25px; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Кошик і збільшення фото */

dialog {
  width: min(560px, calc(100% - 24px));
  max-height: 88vh;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  color: var(--brown);
}

dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; font-size: 28px; }
.cart-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-item > a { font-weight: 700; }
.cart-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cart-controls button { padding: 6px 12px; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--brown); }
.cart-total { margin-top: 20px; font-size: 21px; }
.image-dialog { width: min(1000px, calc(100% - 24px)); }
.image-dialog form { text-align: right; margin-bottom: 15px; }
.image-dialog img { width: 100%; max-height: 72vh; object-fit: contain; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 12px 20px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  box-shadow: 0 8px 30px #0002;
  pointer-events: none;
}

@media (max-width: 950px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefits article + article { border-left: 0; }
  .categories, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { gap: 30px; }
  .about-grid { gap: 30px; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 70px; gap: 10px; }
  .logo { font-size: 18px; gap: 7px; }
  .logo-icon { width: 32px; height: 32px; font-size: 22px; }
  .header-actions { gap: 7px; }
  .cart-button { padding: 9px 10px; font-size: 13px; }
  .menu-button { display: block; padding: 8px 12px; }
  .catalog-back { display: none; }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 22px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
  }

  .navigation.open { display: flex; flex-direction: column; align-items: flex-start; }
  .hero { min-height: 550px; }
  .hero-content { padding: 65px 0; }
  .hero p { font-size: 16px; }
  .benefits { margin-top: 16px; }
  .benefits article { padding: 15px 10px; gap: 8px; }
  .benefits article > span { font-size: 25px; }
  .section { padding: 55px 0; }
  .categories { gap: 12px; }
  .category { padding: 20px 15px; }
  .category h3 { font-size: 19px; }
  .catalog-tools { flex-direction: column; }
  .about-grid, .product-layout, .delivery-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 310px; }
  .product-layout { gap: 25px; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; }
  .purchase-row { flex-wrap: wrap; }
  .purchase-row > .button { min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* Оформлення замовлення */
.checkout-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.checkout-form h3 {
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: 24px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--brown);
  font: inherit;
}

.checkout-form textarea {
  resize: vertical;
  min-height: 88px;
}

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

.optional {
  color: var(--muted);
  font-weight: 400;
}

.checkout-submit {
  width: 100%;
  margin-top: 4px;
}

.checkout-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

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

/* Вибір служби доставки */
.checkout-heading {
  margin-bottom: 20px;
}

.checkout-heading .section-label {
  margin-bottom: 5px;
}

.checkout-heading h3 {
  margin-bottom: 6px;
}

.checkout-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.delivery-picker {
  margin: 6px 0 18px;
  padding: 0;
  border: 0;
}

.delivery-picker legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.delivery-option {
  position: relative;
  display: block !important;
  margin: 0 !important;
  cursor: pointer;
}

.delivery-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.delivery-option-body {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.delivery-option-body strong {
  font-size: 15px;
}

.delivery-option-body small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.delivery-option:hover .delivery-option-body {
  transform: translateY(-1px);
  border-color: #cdbda9;
}

.delivery-option input:checked + .delivery-option-body {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #8b5e3c20;
  background: #fbf7f1;
}

.delivery-option input:focus-visible + .delivery-option-body {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.delivery-fields {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f1e9de;
}

.delivery-fields-title {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.delivery-fields label:last-child {
  margin-bottom: 0;
}

.field-hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

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

/* Етап 2: оплата та фінальне підтвердження */
.payment-picker {
  margin: 6px 0 18px;
  padding: 0;
  border: 0;
}

.payment-picker legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.payment-options .delivery-option-body {
  min-height: 88px;
}

.payment-info-note {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #d6b27f;
  border-radius: 10px;
  background: #fff7e9;
  color: #68441f;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-review {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.review-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.review-list {
  margin: 0;
  padding: 8px 18px;
}

.review-list > div {
  display: grid;
  grid-template-columns: minmax(105px, .7fr) minmax(0, 1.5fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.review-list dt {
  color: var(--muted);
  font-size: 12px;
}

.review-list dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-products {
  padding: 16px 18px;
  background: #fbf8f3;
}

.review-products h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.review-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  font-size: 13px;
}

.review-item span {
  min-width: 0;
}

.review-item strong {
  white-space: nowrap;
}

.review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border-top: 1px solid var(--border);
  background: #f1e9de;
}

.review-total span {
  font-size: 13px;
  font-weight: 700;
}

.review-total strong {
  font-size: 23px;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 14px;
}

.review-back {
  border-color: var(--border);
  background: white;
  color: var(--brown);
}

.review-back:hover {
  border-color: var(--accent);
  background: #fbf7f1;
}

.checkout-success {
  display: grid;
  gap: 5px;
  padding: 24px;
  border: 1px solid #b8c9b9;
  border-radius: 10px;
  background: #eef5ee;
}

.checkout-success strong {
  font-family: Georgia, serif;
  font-size: 22px;
}

.checkout-success span {
  color: var(--muted);
  font-size: 12px;
}

.checkout-success-payment {
  border-color: #d6b27f;
  background: #fff8ec;
}

.payment-requisites {
  width: 100%;
  margin-top: 12px;
  text-align: left;
}

.payment-requisites-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  text-align: center;
}

.payment-requisites-heading strong { font: 700 20px Georgia, serif; color: var(--brown); }
.payment-requisites-heading span { color: var(--muted); font-size: 12px; }

.payment-requisites-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.payment-requisite-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #ddc9ae;
  border-radius: 12px;
  background: #fff;
}

.payment-requisite-iban { border-color: #9fb9a6; background: #f7fbf8; }
.payment-requisite-card h4 { margin: 3px 0 12px; font-size: 16px; color: var(--brown); }
.payment-requisite-kicker { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.payment-requisite-card dl { display: grid; gap: 8px; margin: 0; }
.payment-requisite-card dl div { display: grid; gap: 2px; }
.payment-requisite-card dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.payment-requisite-card dd { margin: 0; color: var(--brown); font-size: 12px; font-weight: 700; line-height: 1.4; }
.payment-requisite-number { overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; font-size: 13px !important; letter-spacing: .02em; }
.payment-requisites-or { align-self: center; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brown); color: #fff; font-size: 10px; font-weight: 900; }
.payment-requisites-purpose, .payment-requisites-after { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: #f3eadc; color: var(--brown); font-size: 12px; line-height: 1.5; }
.payment-requisites-after { margin-top: 7px; background: transparent; padding: 0 2px; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .review-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .review-list dd {
    text-align: left;
  }

  .review-actions {
    grid-template-columns: 1fr;
  }

  .payment-requisites-grid { grid-template-columns: 1fr; }
  .payment-requisites-or { justify-self: center; }
}

/* Повний каталог та посилання «Переглянути ще» */
.catalog-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.catalog-more-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, color .2s;
}

.catalog-more-link:hover {
  color: var(--accent);
  transform: translateY(3px);
}

.catalog-more-arrow {
  font-size: 28px;
  line-height: 1;
}

.catalog-page-hero {
  padding: 45px 0 34px;
  border-bottom: 1px solid var(--border);
  background: #eee5d8;
}

.catalog-page-hero .breadcrumbs { margin-top: 0; }
.catalog-page-hero h1 {
  margin: 8px 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 64px);
}
.catalog-page-hero p { max-width: 680px; margin: 0; color: var(--muted); }
.catalog-page-section { padding-top: 42px; }
.catalog-count { margin: -8px 0 22px; color: var(--muted); font-size: 14px; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 950px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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


/* Реальний каталог Prom.ua — статичний знімок 15.09.2026 */

.catalog-snapshot-note,
.photo-note,
.product-code {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.card-image {
  position: relative;
}

.availability-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(41, 30, 23, .9);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.product-card-unavailable .card-image img {
  filter: grayscale(.35);
  opacity: .72;
}

.product-card-unavailable .card-body {
  opacity: .82;
}

.product-availability {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e8f2e9;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.product-availability.is-unavailable {
  background: #eee7dc;
  color: var(--muted);
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.product-thumbnail {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
}

.product-thumbnail.active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.product-thumbnail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-description {
  white-space: pre-line;
  color: var(--muted);
}

.specifications dt {
  max-width: 55%;
}

.specifications dd {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .product-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .filters button {
    flex: 0 0 auto;
  }
}


/* Customer account */
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--brown);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.account-link:hover, .account-link.account-signed-in { border-color: var(--accent); color: var(--accent); }
.account-link.active { background: var(--brown); border-color: var(--brown); color: white; }
.account-page { min-height: 65vh; }
.account-hero { padding: 42px 0 28px; background: #eee7dc; }
.account-hero h1 { margin-bottom: 10px; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 54px); }
.account-hero p { max-width: 700px; color: var(--muted); }
.account-container { max-width: 980px; }
.account-setup, .auth-card, .profile-panel, .account-sidebar {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 30px #3d2b1f0d;
}
.account-setup { padding: 28px; }
.account-setup h2 { font-size: 28px; }
.auth-card { width: min(520px, 100%); margin: 0 auto; padding: 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.auth-tabs button { padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px; background: #faf8f4; color: var(--brown); font-weight: 700; }
.auth-tabs button.active { background: var(--brown); border-color: var(--brown); color: white; }
.google-button { width: 100%; min-height: 50px; border: 1px solid var(--border); border-radius: 7px; background: white; color: var(--brown); font-weight: 700; }
.google-button:hover { border-color: #b9afa5; background: #faf8f4; }
.google-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border: 1px solid var(--border); border-radius: 50%; font-family: Arial, sans-serif; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.account-form { display: grid; gap: 16px; }
.account-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.account-form input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 7px; background: white; color: var(--brown); }
.account-form input[readonly] { background: #f4f0e8; color: var(--muted); }
.account-form .button { width: 100%; }
.link-button { padding: 4px 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.account-status { min-height: 24px; margin: 18px 0 0; text-align: center; font-weight: 700; }
.account-status[data-type="error"] { color: #9a2e2e; }
.account-status[data-type="success"] { color: var(--green); }
.account-dashboard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-sidebar { display: grid; gap: 4px; padding: 20px; position: sticky; top: 105px; }
.account-sidebar > strong { margin-bottom: 10px; font-family: Georgia, serif; font-size: 20px; }
.account-sidebar a, .account-coming { padding: 10px 11px; border-radius: 6px; text-decoration: none; font-size: 13px; }
.account-sidebar a.active { background: #eee5d8; font-weight: 700; }
.account-coming { color: var(--muted); }
.account-coming small { display: block; margin-top: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.account-signout { justify-self: start; margin: 10px 0 0 10px; }
.profile-panel { padding: 30px; }
.profile-panel h2 { margin-bottom: 8px; }
.profile-note { color: var(--muted); }
.customer-id-box { margin-top: 25px; padding: 14px; border-radius: 7px; background: #f4f0e8; }
.customer-id-box span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.customer-id-box code { overflow-wrap: anywhere; font-size: 12px; }

@media (max-width: 700px) {
  .account-link { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .header-actions { gap: 6px; }
  .account-dashboard { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .profile-panel, .auth-card { padding: 20px; }
  .account-hero { padding-top: 30px; }
}

/* Account — order history */
.account-panel[hidden] { display: none !important; }
.account-orders-list { display: grid; gap: 14px; margin-top: 20px; }
.orders-state {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  margin-top: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #faf8f4;
  color: var(--muted);
}
.orders-state strong { color: var(--brown); font-size: 18px; }
.orders-state .button { margin-top: 4px; }
.account-order-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.account-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.account-order-head > div { display: grid; gap: 3px; }
.account-order-head strong { font-size: 16px; overflow-wrap: anywhere; }
.account-order-head span:not(.order-status) { color: var(--muted); font-size: 12px; }
.order-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f0e9;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.order-status-shipped, .order-status-arrived { background: #e8eef7; color: #315c8c; }
.order-status-received { background: #e4f3e6; color: #2d7136; }
.order-status-returned, .order-status-cancelled { background: #f7e8e7; color: #963a32; }
.account-order-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 14px;
  padding: 16px 0;
}
.account-order-meta > span { display: grid; gap: 3px; min-width: 0; }
.account-order-meta small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.account-order-items { display: grid; gap: 8px; }
.account-order-items > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid #eee8de;
  font-size: 13px;
}
.account-order-items span { min-width: 0; overflow-wrap: anywhere; }
.checkout-account-link { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; }
.checkout-success small { display: block; margin-top: 6px; color: var(--muted); }

@media (max-width: 700px) {
  .account-order-head { flex-direction: column; }
  .account-order-meta { grid-template-columns: 1fr; }
  .account-order-items > div { align-items: flex-start; }
}


/* Account — live CRM status sync */
.orders-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.orders-panel-heading h2 { margin-bottom: 8px; }
.orders-refresh-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 13px;
  white-space: nowrap;
}
.account-order-status-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.order-archive-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0ece5;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.account-order-archived {
  background: #fdfbf8;
}
.order-status-created { background: #eee8dc; color: #765f3c; }
.order-status-payment_pending { background: #fff0d2; color: #86530a; }
.order-status-in_transit { background: #e8eef7; color: #315c8c; }
.order-status-problem { background: #fff0d8; color: #8b5b13; }
.order-status-archived { background: #f0ece5; color: #6e655b; }

.account-order-payment-notice {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid #dfb66f;
  border-radius: 10px;
  background: #fff6e4;
  color: #71450b;
}

.account-order-payment-notice span {
  color: #755f45;
  font-size: 13px;
  line-height: 1.5;
}
.account-order-meta {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 700px) {
  .orders-panel-heading { flex-direction: column; }
  .orders-refresh-button { width: 100%; }
  .account-order-status-stack { justify-items: start; }
}

/* Nova Poshta — autocomplete населених пунктів та відділень */
.np-autocomplete-field {
  position: relative;
}

.np-autocomplete {
  position: relative;
  display: block;
}

.checkout-form .np-autocomplete > input,
.saved-address-form .np-autocomplete > input {
  padding-right: 38px;
}

.checkout-form .np-autocomplete > input:disabled,
.saved-address-form .np-autocomplete > input:disabled {
  background: #f4f0e9;
  color: var(--muted);
  cursor: not-allowed;
}

.np-autocomplete::after {
  content: "⌄";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-54%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.np-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(63, 49, 37, .16);
}

.np-suggestions[hidden] {
  display: none;
}

.np-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brown);
  text-align: left;
  cursor: pointer;
}

.np-suggestion:hover,
.np-suggestion.is-active,
.np-suggestion:focus-visible {
  background: #f3eee6;
  outline: none;
}

.np-suggestion-main {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.np-suggestion-type {
  align-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eee8dc;
  color: #765f3c;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.np-suggestion-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.np-suggestion-empty {
  display: block;
  padding: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .np-suggestions {
    max-height: 240px;
  }
}



/* Favorites */
.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #ffffffcc;
  border-radius: 50%;
  background: #fffdf8eb;
  color: var(--brown);
  box-shadow: 0 5px 18px #3d2b1f25;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.favorite-button:hover, .favorite-button.active {
  border-color: #a85a43;
  color: #a43f2d;
  background: white;
}
.favorite-product-button { min-width: 145px; }
.favorite-product-button.active { border-color: #a85a43; color: #a43f2d; background: #fff7f4; }
.account-favorites-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.account-favorite-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
.account-favorite-image { display: block; min-height: 100%; background: #eee5d8; }
.account-favorite-image img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.account-favorite-info { display: grid; align-content: start; gap: 7px; padding: 16px; }
.account-favorite-info h3 { margin: 0; font-family: Georgia, serif; font-size: 19px; line-height: 1.25; }
.account-favorite-info h3 a { text-decoration: none; }
.account-favorite-info h3 a:hover { text-decoration: underline; }
.account-favorite-price { font-size: 19px; }
.favorite-available { color: var(--green); font-size: 12px; font-weight: 700; }
.favorite-unavailable { color: #9a2e2e; font-size: 12px; font-weight: 700; }
.account-favorite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.account-favorite-actions .button { min-height: 39px; padding: 8px 11px; font-size: 12px; }
.favorite-remove-button { color: #8d3f31; }

@media (max-width: 900px) {
  .account-favorites-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .account-favorite-card { grid-template-columns: 105px minmax(0, 1fr); }
  .account-favorite-image img { min-height: 145px; }
  .favorite-button { width: 39px; height: 39px; top: 9px; right: 9px; font-size: 23px; }
  .favorite-product-button { width: 100%; }
}

/* Єдиний футер сайту */
.site-footer {
  padding: 48px 0 42px;
  background: #291e17;
  color: #eee5d8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.footer-brand-name {
  display: inline-block;
  margin-bottom: 14px;
  color: #fff8ef;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  color: #cdbfb1;
  font-size: 14px;
  line-height: 1.65;
}

.footer-column h2 {
  margin: 2px 0 16px;
  color: #fff8ef;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: #d9cec2;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.footer-link[href]:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-link-icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  color: #d3aa73;
  font-weight: 700;
}

.footer-link-pending {
  cursor: default;
  opacity: .52;
}

.footer-soon {
  margin-left: 2px;
  padding: 2px 6px;
  border: 1px solid rgba(238,229,216,.18);
  border-radius: 999px;
  color: #b9aa9d;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-footer { padding: 36px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-name { font-size: 25px; }
}


/* Account — saved addresses */
.saved-address-form { margin-top: 22px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #faf8f4; }
.saved-address-provider { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 0; border: 0; }
.saved-address-provider legend { width: 100%; margin-bottom: 2px; font-size: 13px; font-weight: 700; }
.saved-address-provider label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.saved-address-provider input { width: auto; min-height: 0; }
.saved-address-fields { display: grid; gap: 16px; }
.saved-address-fields[hidden] { display: none !important; }
.saved-address-list-heading { margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.saved-address-list { display: grid; gap: 12px; margin-top: 14px; }
.saved-address-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.saved-address-info { display: grid; gap: 4px; min-width: 0; }
.saved-address-info strong { font-size: 16px; }
.saved-address-info span { color: var(--accent); font-size: 12px; font-weight: 700; }
.saved-address-info small { color: var(--muted); overflow-wrap: anywhere; }
.saved-address-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.saved-address-actions .button { width: auto; min-height: 38px; padding: 8px 12px; }
.danger-link { color: #9a2e2e; }

.checkout-saved-addresses { margin: 18px 0; padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: #faf8f4; }
.checkout-saved-addresses[hidden] { display: none !important; }
.checkout-saved-addresses label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.checkout-saved-addresses select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; background: white; color: var(--brown); }
.checkout-saved-note { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

@media (max-width: 700px) {
  .saved-address-card { align-items: flex-start; flex-direction: column; }
  .saved-address-actions { width: 100%; justify-content: space-between; }
}


/* v1.7 — CRM-історія замовлень */
.account-order-progress-wrap {
  display: grid;
  gap: 10px;
  padding: 14px 0 4px;
}
.account-order-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}
.account-order-progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
  color: var(--muted);
}
.account-order-progress-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: #dfd6c8;
  z-index: 0;
}
.account-order-progress-step:first-child::before { left: 50%; }
.account-order-progress-step:last-child::before { right: 50%; }
.account-order-progress-step.is-done::before,
.account-order-progress-step.is-current::before { background: #92734e; }
.account-order-progress-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbbda9;
  background: #fffdf9;
}
.account-order-progress-step.is-done .account-order-progress-dot {
  border-color: #92734e;
  background: #92734e;
}
.account-order-progress-step.is-current .account-order-progress-dot {
  border-color: #6f5134;
  box-shadow: 0 0 0 4px rgba(146, 115, 78, .14);
}
.account-order-progress-step small {
  max-width: 90px;
  font-size: 10px;
  line-height: 1.25;
}
.account-order-progress-step.is-current small,
.account-order-progress-step.is-done small { color: #4f3a28; }
.account-order-progress-notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: #f5efe6;
}
.account-order-progress-notice-returned { background: #f7e8e7; color: #873b35; }
.account-order-progress-notice-problem { background: #fff0d8; color: #80520f; }
.account-order-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.account-order-repeat { white-space: nowrap; }
@media (max-width: 720px) {
  .account-order-progress {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .account-order-progress-step {
    grid-template-columns: 22px 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
    gap: 8px;
  }
  .account-order-progress-step::before {
    top: -9px;
    bottom: -9px;
    left: 7px !important;
    right: auto !important;
    width: 2px;
    height: auto;
  }
  .account-order-progress-step:first-child::before { top: 7px; }
  .account-order-progress-step:last-child::before { bottom: calc(100% - 7px); }
  .account-order-progress-step small { max-width: none; font-size: 12px; }
  .account-order-actions { justify-content: stretch; }
  .account-order-repeat { width: 100%; }
}
\n\n/* Передоплата */\n.prepayment-badge {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 5px;\n  width: max-content;\n  max-width: 100%;\n  padding: 6px 9px;\n  border: 1px solid #d99b4b;\n  border-radius: 999px;\n  background: #fff4df;\n  color: #7b4514;\n  font-size: 12px;\n  font-weight: 800;\n  line-height: 1;\n  cursor: help;\n  outline: none;\n}\n.prepayment-badge:focus-visible { box-shadow: 0 0 0 3px rgba(217,155,75,.25); }\n.prepayment-badge::after {\n  content: attr(data-tooltip);\n  position: absolute;\n  z-index: 80;\n  left: 0;\n  bottom: calc(100% + 10px);\n  width: min(340px, 76vw);\n  padding: 11px 12px;\n  border-radius: 9px;\n  background: #33251c;\n  color: #fff;\n  font-size: 12px;\n  font-weight: 500;\n  line-height: 1.45;\n  box-shadow: 0 8px 28px rgba(0,0,0,.22);\n  opacity: 0;\n  visibility: hidden;\n  transform: translateY(4px);\n  transition: opacity .15s, transform .15s, visibility .15s;\n  pointer-events: none;\n  white-space: normal;\n}\n.prepayment-badge:hover::after,\n.prepayment-badge:focus::after {\n  opacity: 1;\n  visibility: visible;\n  transform: translateY(0);\n}\n.card-prepayment-badge { margin: 4px 0 10px; }\n.product-prepayment-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: -8px 0 18px; }\n.detail-prepayment-badge { font-size: 13px; padding: 7px 10px; }\n.prepayment-short-text { color: var(--muted); font-size: 13px; font-weight: 700; }\n.cart-item-info { display: grid; gap: 7px; align-content: start; }\n.cart-prepayment-badge { font-size: 11px; padding: 5px 7px; }\n.cart-prepayment-notice {\n  margin: 12px 0 16px; padding: 12px 13px; display: grid; gap: 4px;\n  border: 1px solid #e0b16f; border-radius: 9px; background: #fff4df; color: #70400f; font-size: 12px;\n}\n.cart-prepayment-notice strong { font-size: 13px; }\n@media (max-width: 620px) {\n  .prepayment-badge::after { left: 50%; transform: translate(-50%, 4px); }\n  .prepayment-badge:hover::after, .prepayment-badge:focus::after { transform: translate(-50%, 0); }\n}\n

/* v1.9 — акції та керування головною */
.card-price { display: flex; align-items: baseline; min-height: 24px; }
.sale-price-wrap { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.sale-price-current { color: #2f6a3d; font-size: 20px; }
.sale-price-old { color: var(--muted); font-size: 13px; text-decoration: line-through; font-weight: 600; }
.detail-price .sale-price-current { font-size: inherit; }
.detail-price .sale-price-old { font-size: 15px; }
.sale-badge {
  position: absolute; top: 10px; left: 10px; right: auto; z-index: 3;
  padding: 5px 8px; border-radius: 999px; background: #2f6a3d; color: #fff;
  font-size: 11px; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.availability-badge + .sale-badge { top: 10px; }
.exclusive-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 5px 9px; border-radius: 999px; background: #654087; color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.sale-badge + .exclusive-badge { top: 43px; }
.special-category-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(41,30,23,.88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  backdrop-filter: blur(4px);
}


/* v1.15 — інформаційні сторінки магазину */
.info-page-hero { padding: 42px 0 30px; background: #f4efe7; border-bottom: 1px solid var(--border); }
.info-page-hero h1 { margin: 8px 0 0; font-size: clamp(32px, 5vw, 54px); }
.info-page-narrow { max-width: 1040px; }
.info-page-section { min-height: 48vh; }
.info-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.info-card, .info-panel { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(65,45,28,.04); }
.info-card { padding: 24px; }
.info-card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; background: #f5ede1; font-size: 22px; }
.info-card h2, .info-panel h2 { margin: 0 0 10px; font-size: 22px; }
.info-card p, .info-panel p { color: var(--muted); line-height: 1.7; }
.info-panel { padding: 26px; margin-top: 18px; }
.info-list { display: grid; gap: 0; }
.info-list > div { padding: 15px 0; border-top: 1px solid var(--border); }
.info-list > div:first-child { border-top: 0; }
.info-list strong { display: block; margin-bottom: 4px; color: var(--brown); }
.info-list p { margin: 0; }
.info-notice { margin-top: 18px; padding: 13px 15px; border: 1px solid #dfc49e; border-radius: 10px; background: #fff7e9; color: #664826; font-size: 13px; line-height: 1.55; }
.info-notice code { padding: 2px 5px; border-radius: 5px; background: rgba(82,57,34,.08); }
.info-steps { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.info-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.info-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #76563c; color: #fff; font-weight: 800; }
.info-steps strong { display: block; margin: 3px 0 4px; }
.info-steps p { margin: 0; }
.contact-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.contact-page-grid .info-panel { margin-top: 0; }
.contact-dl { margin: 8px 0 0; }
.contact-dl > div { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0,1.5fr); gap: 18px; padding: 13px 0; border-top: 1px solid var(--border); }
.contact-dl > div:first-child { border-top: 0; }
.contact-dl dt { color: var(--muted); font-size: 13px; }
.contact-dl dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.contact-dl a { color: inherit; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.contact-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--brown); text-decoration: none; font-size: 13px; font-weight: 700; }
.contact-chip[href]:hover { border-color: #a88967; background: #faf5ed; }
.contact-chip.is-disabled { opacity: .42; cursor: default; }
.contact-payment-panel { grid-column: 1 / -1; }
.contact-payment-intro { margin: 0 0 18px; }
.contact-payment-panel .payment-requisite-card { padding: 20px; }
.contact-payment-panel .payment-requisite-card dd { font-size: 14px; }
.contact-payment-panel .payment-requisite-number { font-size: 14px !important; }
@media (max-width: 760px) {
  .info-card-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .info-panel, .info-card { padding: 20px; }
  .contact-dl > div { grid-template-columns: 1fr; gap: 4px; }
}


/* v1.16 — профіль + основна адреса */
.saved-address-card.is-default { border-color: #b88a45; box-shadow: 0 0 0 1px rgba(184, 138, 69, .12); background: #fffdf8; }
.saved-address-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.saved-address-default-badge { display: inline-flex; align-items: center; width: max-content; padding: 3px 8px; border-radius: 999px; background: #f3ead8; color: #6f4a1d !important; font-size: 11px !important; font-weight: 800 !important; }
#profileEmailHint { margin-top: -3px; }

