@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-uk.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --milk: #f8f3eb;
  --milk-deep: #efe5d8;
  --surface: #fffdf9;
  --surface-soft: #f5ede3;
  --surface-wine: #f5e8eb;
  --wine: #8b2039;
  --wine-hover: #74162f;
  --wine-dark: #581524;
  --wine-deep: #391920;
  --ink: #2c2928;
  --muted: #716966;
  --line: #e4d8cb;
  --line-strong: #d7c4b6;
  --green: #45634d;
  --amber: #8b6230;
  --focus: #ba7444;
  --cream-text: #fff9ef;
  --radius-control: 15px;
  --radius-card: 24px;
  --radius-modal: 28px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgb(46 29 19 / 4%);
  --shadow-soft: 0 10px 30px rgb(61 39 24 / 7%);
  --shadow-card: 0 16px 40px rgb(68 39 21 / 8%);
  --shadow-hover: 0 20px 54px rgb(59 32 17 / 13%);
  --shadow-modal: 0 30px 100px rgb(27 20 18 / 28%);
  --gutter: clamp(24px, 3.4vw, 64px);
  --container: 1440px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 76px;
  --motion: 200ms;
  /* Hero CTA position. Increase values to move the button lower. */
  --hero-button-offset-desktop: 90px;
  --hero-button-offset-mobile: 295px;
  /* Negative values move the CTA closer to the left edge. */
  --hero-button-offset-x-desktop: 0px;
  --hero-button-offset-x-mobile: -12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding: 24px 0 112px; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--milk);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
body > main { flex: 1 0 auto; display: block; }
body.modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wine); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: inherit;
  color: inherit;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(44px, 5vw, 76px); }
h2 { font-size: clamp(32px, 3.2vw, 48px); }
h3 { font-size: 22px; font-weight: 720; letter-spacing: -.022em; }
p + p { margin-top: 12px; }
.wrap { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

button:disabled {
  cursor: not-allowed;
  background: #e8e0da;
  border-color: #e8e0da;
  color: #857b75;
  box-shadow: none;
  opacity: 1;
}
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}
input::placeholder, textarea::placeholder { color: #938881; opacity: 1; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  border-color: var(--wine);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(139 32 57 / 10%);
  outline: none;
}
select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23716966' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 18px;
}
textarea { resize: vertical; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.demo-banner {
  min-height: 31px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #ede2d5;
  color: #685d55;
  border-bottom: 1px solid rgb(121 88 65 / 8%);
  font-size: 14px;
  line-height: 20px;
  padding: 5px 16px;
}
.site-header {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.brand img {
  width: 112px;
  height: 72px;
  object-fit: contain;
  object-position: center;
}
.brand > span {
  font-size: 24px;
  line-height: 1.02;
  font-weight: 780;
  color: var(--wine);
  letter-spacing: -.035em;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  font-size: 16px;
  font-weight: 680;
}
.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  transition: color var(--motion), background var(--motion), transform var(--motion);
}
.site-header nav > a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--wine);
  transition: right var(--motion);
}
.site-header nav > a:not(.nav-contact):hover::after { right: 0; }
.site-header .nav-contact {
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid #ead3d8;
  border-radius: var(--radius-pill);
  background: var(--surface-wine);
  color: var(--wine);
}
.site-header .nav-contact:hover { background: #eed8dd; color: var(--wine-dark); }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  transition: background var(--motion), border-color var(--motion), color var(--motion), transform var(--motion);
}
.icon-button:hover { background: var(--surface-soft); border-color: var(--line); }
.icon-button:active { transform: translateY(1px); }
.header-viber-order { display: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 40vw, 610px);
  overflow: hidden;
  color: var(--cream-text);
  background: #24372b;
}
.hero-picture { position: absolute; inset: 0; z-index: -3; }
.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.004);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(25 24 20 / 82%) 0%, rgb(25 24 20 / 72%) 22%, rgb(25 24 20 / 46%) 39%, rgb(25 24 20 / 12%) 62%, transparent 78%),
    linear-gradient(0deg, rgb(34 22 16 / 12%), transparent 35%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  z-index: -1;
  background-color: #f8f3eb;
  background-image: url("../img/ornament-brand.webp");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 38px;
  opacity: .98;
}
.hero-inner {
  min-height: inherit;
  display: flex;
  align-items: center;
  padding-block: 54px 62px;
}
.hero-copy { max-width: 650px; text-shadow: 0 2px 22px rgb(0 0 0 / 18%); }
.hero-kicker,
.hero-lead {
  max-width: 28ch;
  margin: 0;
  color: #f4eadc;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
}
.button {
  min-height: 50px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--wine);
  border-radius: var(--radius-control);
  background: var(--wine);
  color: #fff;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -.01em;
  box-shadow: 0 8px 18px rgb(118 26 47 / 12%);
  transition: background var(--motion), border-color var(--motion), box-shadow var(--motion), transform var(--motion), color var(--motion);
}
.button:hover:not(:disabled) {
  color: #fff;
  background: var(--wine-hover);
  border-color: var(--wine-hover);
  box-shadow: 0 10px 24px rgb(92 20 38 / 20%);
  transform: translateY(-1px);
}
.button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 5px 12px rgb(92 20 38 / 16%); }
.button.secondary {
  background: var(--surface);
  color: var(--wine);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.button.secondary:hover:not(:disabled) {
  background: var(--surface-wine);
  color: var(--wine-dark);
  border-color: #d7b6be;
  box-shadow: none;
}
.button.full { width: 100%; }
.hero-button {
  margin-top: var(--hero-button-offset-desktop) !important;
  margin-left: var(--hero-button-offset-x-desktop) !important; /* Керує вертикальним положенням кнопки. !important перекриває старий inline style. */
  min-height: 54px;
  border-radius: 16px;
  background: #96243f;
  border-color: #ae4057;
  padding-inline: 26px;
  box-shadow: 0 13px 30px rgb(71 15 28 / 28%);
  text-shadow: none;
}
.hero-button .icon { width: 21px; height: 21px; }

.catalog { padding-block: 82px 88px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.section-heading h2 { max-width: 18ch; color: var(--wine); }
.section-heading p { margin-top: 10px; font-size: 17px; color: var(--muted); }
.result-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: #efe5da;
}
.filters {
  margin-bottom: 34px;
  padding: 14px;
  border: 1px solid #eadfd3;
  border-radius: 22px;
  background: rgb(255 253 249 / 78%);
  box-shadow: 0 8px 24px rgb(60 38 22 / 4%);
}
.catalog-toolbar { display: flex; align-items: center; gap: 10px; }
.category-tabs { display: flex; align-items: center; gap: 4px; }
.category-tabs button {
  min-height: 46px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 13px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  transition: color var(--motion), background var(--motion), border-color var(--motion), transform var(--motion);
}
.category-tabs button:hover { background: var(--surface-soft); color: var(--wine); }
.category-tabs button[aria-pressed=true] {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
  box-shadow: 0 7px 16px rgb(139 32 57 / 14%);
}
.category-tabs button:active { transform: translateY(1px); }
.category-select { display: none; }
.search-field {
  position: relative;
  display: block;
  margin-left: auto;
  flex: 1;
  max-width: 350px;
  min-width: 210px;
}
.search-field > .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.search-field input { padding-left: 44px; background: #fff; }
.filter-toggle { white-space: nowrap; box-shadow: none; }
.secondary-filters {
  margin-top: 12px;
  padding: 15px;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 250px) minmax(0, 250px) auto 1fr;
  gap: 12px;
  border-radius: 17px;
  background: var(--surface-soft);
}
.secondary-filters > label > span { display: block; font-size: 14px; margin: 0 0 6px 3px; color: var(--muted); }
.secondary-filters .sort-hint { align-self: center; max-width: 390px; padding-left: 8px; }
.js-ready .secondary-filters:not(.is-open) { display: none; }
html:not(.js-ready) .filter-toggle, html:not(.js-ready) .category-tabs { display: none; }
html:not(.js-ready) .category-select { display: block; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgb(219 205 192 / 78%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion);
}
.product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee5da;
  overflow: hidden;
}
.product-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(0deg, rgb(48 33 23 / 8%), transparent);
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.photo-placeholder {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  color: #8a786b;
  font-size: 14px;
  background:
    radial-gradient(circle at 20% 15%, rgb(255 255 255 / 72%), transparent 28%),
    linear-gradient(145deg, #f5eee5 0%, #e9ddd0 100%);
}
.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgb(137 105 85 / 15%);
  border-radius: 18px;
}
.placeholder-art {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  background: rgb(255 251 245 / 78%);
  border: 1px solid #dfd1c1;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgb(104 72 48 / 6%);
  transform: rotate(-4deg);
}
.placeholder-art .icon { width: 37px; height: 37px; stroke-width: 1.6; transform: rotate(4deg); color: #9d7d64; }
.badge {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  background: rgb(255 253 249 / 94%);
  color: var(--wine);
  border: 1px solid rgb(255 255 255 / 78%);
  box-shadow: 0 5px 14px rgb(58 37 22 / 8%);
  font-size: 13px;
  border-radius: var(--radius-pill);
  font-weight: 760;
  backdrop-filter: blur(6px);
}
.product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.product-category {
  color: var(--wine);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.product-copy h3 { min-height: 50px; font-size: 23px; }
.product-copy h3 a { color: var(--ink); transition: color var(--motion); }
.product-copy h3 a:hover { color: var(--wine-hover); }
.stock { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; margin-top: 12px; }
.stock::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgb(69 99 77 / 8%); }
.stock.muted, .muted { color: var(--muted); }
.stock.muted::before { box-shadow: none; }
.product-bottom {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.price { min-width: 0; }
.price strong { display: block; color: var(--ink); font-size: 29px; line-height: 1; font-weight: 820; letter-spacing: -.045em; white-space: nowrap; }
.price strong span { font-size: .58em; letter-spacing: -.01em; font-weight: 760; }
.price small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.order-button { min-width: 118px; padding-inline: 18px; }
.order-button .icon { width: 18px; height: 18px; }
.catalog-note { margin-top: 25px; color: var(--muted); font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pagination a {
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
}
.pagination a[aria-current] { color: #fff; background: var(--wine); border-color: var(--wine); }

.catalog-results {
  min-height: 1px;
  transition: height 240ms ease;
}
.catalog-results .product-grid { transition: opacity 160ms ease; }
.catalog-results.is-updating .product-grid { opacity: .58; }
.filters.is-updating { cursor: progress; }
.filters.is-updating button, .filters.is-updating select { cursor: progress; }

.social-section {
  position: relative;
  overflow: hidden;
  padding-block: 62px;
  background: linear-gradient(135deg, #eee2d5 0%, #f6efe6 100%);
}
.social-section::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  top: -190px;
  border: 70px solid rgb(139 32 57 / 3%);
  border-radius: 50%;
}
.social {
  display: grid;
  gap: 24px;
}
.social .section-heading {
  margin: 0;
}
.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.social-link-card {
  color: inherit;

  min-height: 148px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 32px;
  background:
    linear-gradient(180deg, rgb(255 251 246 / 97%) 0%, rgb(249 241 233 / 96%) 100%);
  border: 1px solid rgb(217 199 183 / 75%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.social-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    url("../img/ornament-brand.webp") top center / auto 18px repeat-x,
    url("../img/ornament-brand.webp") bottom center / auto 18px repeat-x;
  opacity: .98;
}
.social-link-card > * {
  position: relative;
  z-index: 1;
}
.social-link-card h3 { margin-bottom: 7px; font-size: 22px; }
.social-link-card p { font-size: 15px; color: var(--muted); max-width: 28ch; }
.social-link-card .surface-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.social-link-card .surface-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.1;
}

.social-instagram .surface-icon {
  color: #e4405f;
}

.social-tiktok .surface-icon {
  color: #111;
}

.social-tiktok .surface-icon .icon {
  filter:
    drop-shadow(1px 0 0 #25f4ee)
    drop-shadow(-1px 0 0 #fe2c55);
}

.social-viber .surface-icon {
  color: #7360f2;
}
.social-link-card > .icon:last-child { margin-left: auto; align-self: center; color: var(--wine); }
.social-link-card:hover { border-color: #d3b9bd; background: #fff; box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.feedback-section {
  position: relative;
  isolation: isolate;
  padding-block: 82px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wine-deep) 0%, #561a2a 62%, #672034 100%);
  color: var(--cream-text);
}
.feedback-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: -250px;
  bottom: -340px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgb(255 255 255 / 2%), 0 0 0 160px rgb(255 255 255 / 1%);
}
.feedback { display: grid; grid-template-columns: .9fr 1.12fr; align-items: center; gap: 80px; }
.feedback-copy > .surface-icon { margin-bottom: 24px; background: rgb(255 255 255 / 10%); color: #f2cfba; }
.feedback-copy h2 { margin-bottom: 18px; color: var(--wine); }
.feedback-copy > p { font-size: 18px; color: #ead9d3; max-width: 36ch; }
.feedback-copy > .hint { font-size: 14px; margin-top: 24px; color: #cdb7b2; }
.feedback-form {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 25px 65px rgb(25 8 13 / 22%);
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { font-size: 15px; font-weight: 680; }
.feedback label { display: block; }
.feedback input, .feedback textarea { margin-top: 8px; margin-bottom: 18px; background-color: #fcfaf7; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feedback .check { display: flex; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--wine); }
.feedback-form .hint { margin: 8px 0 22px; }
.feedback-form .button { width: 100%; }

.information { padding-block: 84px 88px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-grid > a {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  transition: background var(--motion), border-color var(--motion), box-shadow var(--motion), transform var(--motion);
}
.info-grid > a:hover { border-color: #d4b7b8; background: #fff; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.info-grid > a > .icon { margin-left: auto; width: 20px; height: 20px; color: var(--wine); }
.info-grid strong { font-size: 19px; font-weight: 760; line-height: 1.2; display: block; }
.info-grid small { display: block; color: var(--muted); margin-top: 7px; font-size: 14px; }
.document-links { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }
.document-links a { display: flex; align-items: center; min-height: 44px; font-weight: 650; }
.footer-document-links { margin-top: 0; }
.footer-document-links a { color: #efe1d6; }
.footer-document-links a:hover { color: #fff4eb; }

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  background: #272321;
  color: #f6eee5;
  padding: 40px 0 124px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  opacity: .95;
  background-color: #272321;
  background-image: url("../img/ornament-brand.webp");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 18px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 30px; font-size: 15px; }
.footer-block { min-width: 0; }
.footer-made-by { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer strong { font-size: 21px; font-weight: 780; color: #fff4eb; }
.site-footer p, .site-footer small { display: block; color: #bdb2aa; margin-top: 8px; font-size: 14px; }
.footer-credit { display: inline-flex; margin-top: 0; font-size: 14px; font-weight: 700; color: #fff4eb; transition: color var(--motion), opacity var(--motion); }
.footer-credit:hover { color: #fff; opacity: .9; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social-links a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 10%); color: #f6eee5; transition: background var(--motion), transform var(--motion), border-color var(--motion); }
.footer-social-links a:hover { color: #fff; background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 18%); transform: translateY(-1px); }

.floating {
  position: fixed;
  z-index: 40;
  bottom: calc(20px + env(safe-area-inset-bottom));
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 760;
  box-shadow: 0 12px 32px rgb(43 24 17 / 18%);
  backdrop-filter: blur(10px);
  transition: background var(--motion), opacity var(--motion), box-shadow var(--motion), transform var(--motion), visibility var(--motion);
}
.floating:hover { transform: translateY(-2px); }
.floating:active { transform: translateY(1px); }
.cart-button { right: 24px; background: var(--wine); color: #fff; padding: 10px 12px 10px 19px; }
.cart-button:hover { background: var(--wine-hover); }
.contact-button { left: 24px; padding: 10px 18px; background: rgb(255 253 249 / 92%); border-color: #dfcfc4; color: var(--wine); }
.contact-button:hover { background: #fff; color: var(--wine-hover); }
#cart-count {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  padding-inline: 6px;
  background: rgb(255 255 255 / 15%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 100%;
  font-size: 14px;
}
.modal-open .floating, .keyboard-open .floating, .floating.is-obstructing { opacity: 0; visibility: hidden; pointer-events: none; }
.contact-sheet-body { padding: 4px 24px 24px; }
.contact-actions { display: grid; gap: 12px; }
.contact-action { min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-xs); transition: border-color var(--motion), background var(--motion), transform var(--motion), box-shadow var(--motion); }
.contact-action:hover { background: #fff; border-color: #d7b6be; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.contact-action strong { display: block; font-size: 17px; line-height: 1.2; }
.contact-action small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.contact-action > .icon { color: var(--wine); }
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  color: #fff;
  background: #314b39;
  box-shadow: 0 12px 34px rgb(31 52 37 / 22%);
  font-size: 15px;
  font-weight: 700;
  animation: toast-in var(--motion) ease-out;
}
.toast .icon { width: 20px; height: 20px; }
[hidden] { display: none !important; }

/* Dialogs */
dialog {
  margin: auto;
  padding: 0;
  width: min(540px, calc(100% - 40px));
  max-width: 560px;
  max-height: min(85dvh, 840px);
  min-height: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: var(--radius-modal);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}
dialog[open] { display: flex; flex-direction: column; animation: modal-in var(--motion) ease-out; }
dialog::backdrop { background: rgb(27 24 22 / 55%); backdrop-filter: blur(5px); }
.modal-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 27px 28px 17px;
  flex-shrink: 0;
}
.modal-kicker {
  font-size: 13px;
  color: var(--wine);
  margin-bottom: 7px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .055em;
}
dialog h2 { font-size: 31px; font-weight: 790; letter-spacing: -.04em; }
.close-button { margin: -4px -4px 0 0; background: var(--surface-soft); border-color: transparent; }
.close-button:hover { background: #eee2d6; color: var(--wine); }
#quantity-price { margin-top: 8px; font-size: 16px; color: var(--muted); }
#quantity-form { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.quantity-body { padding: 2px 28px 0; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 7px 0 20px; }
.presets button {
  min-height: 50px;
  padding: 10px;
  border-radius: 15px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 760;
  transition: background var(--motion), border-color var(--motion), color var(--motion), transform var(--motion), box-shadow var(--motion);
}
.presets button:hover { border-color: #d4b3b9; color: var(--wine); }
.presets button[aria-pressed=true] {
  background: var(--surface-wine);
  color: var(--wine);
  border-color: #c98d99;
  box-shadow: inset 0 0 0 1px rgb(139 32 57 / 9%);
}
.presets button:active { transform: translateY(1px); }
#quantity-label { display: block; margin-bottom: 8px; }
#quantity-input { font-size: 18px; font-weight: 700; }
#quantity-hint { margin-top: 11px; }
.quantity-footer { padding: 20px 28px 27px; flex-shrink: 0; }
.notice { background: #f4eadb; color: #735937; font-size: 14px; padding: 11px 13px; border-radius: 12px; margin-top: 12px; }
.form-error { color: #a22135; font-size: 14px; margin: 12px 0 0; }
.form-error:empty { display: none; }


.checkout-dialog {
  width: min(760px, calc(100% - 40px));
  max-width: 760px;
}
#checkout-form { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.checkout-body { padding: 10px 32px 16px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.checkout-group { border: 0; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.checkout-group:first-child { border-top: 0; padding-top: 10px; }
.checkout-group legend { padding: 0; margin-bottom: 16px; font-size: 18px; font-weight: 800; }
.checkout-fields { display: grid; column-gap: 16px; row-gap: 18px; }
.checkout-fields.two-fields { grid-template-columns: 1fr 1fr; }
.checkout-fields .wide { grid-column: 1 / -1; }
.checkout-group label:not(.choice-card):not(.check) { display: block; font-size: 14px; font-weight: 700; color: var(--muted); }
.checkout-group label:not(.choice-card):not(.check) > input,
.checkout-group label:not(.choice-card):not(.check) > select,
.checkout-group label:not(.choice-card):not(.check) > textarea { margin-top: 7px; }
.checkout-autocomplete {
  position: relative;
  display: block;
  margin-top: 7px;
}
.checkout-autocomplete > input[type="text"] {
  width: 100%;
  margin: 0;
}
.checkout-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgb(45 28 18 / 18%);
}
.checkout-suggestions[hidden] { display: none; }
.autocomplete-option,
.autocomplete-empty {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 10px 11px;
  text-align: left;
  font: inherit;
  line-height: 1.35;
}
.autocomplete-option { cursor: pointer; }
.autocomplete-option:hover,
.autocomplete-option:focus-visible {
  background: var(--surface-soft);
  outline: none;
}
.autocomplete-empty { color: var(--muted); cursor: default; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf7f1;
  cursor: pointer;
}
.choice-card:has(input:checked) { border-color: #c88c99; background: var(--surface-wine); box-shadow: inset 0 0 0 1px rgb(139 32 57 / 7%); }
.choice-card input { width: 19px; height: 19px; min-height: 0; margin: 2px 0 0; accent-color: var(--wine); flex: 0 0 19px; }
.choice-card strong { display: block; font-size: 15px; color: var(--ink); }
.choice-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.demo-checkout-note { margin: 4px 0 8px; padding: 13px 15px; border-radius: 13px; background: #f5ead7; color: #6f542d; font-size: 13px; line-height: 1.45; }
.checkout-group .check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.checkout-group .check input { flex: 0 0 20px; margin-top: 1px; }
#recipient-fields { margin-top: 16px; }
.checkout-group > .notice { margin-top: 18px; }
.checkout-legal-note { margin: 17px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.checkout-legal-note a { color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#comment-field { display: block; margin-top: 14px; }
#comment-field textarea { margin-top: 8px; }


.order-result {
  padding-block: 48px 88px;
}
.order-result-card {
  width: min(1120px, 100%);
  margin-inline: auto;
}
.order-result-hero {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgb(139 32 57 / 7%), transparent 28%),
    linear-gradient(145deg, #fffdf9 0%, #f8efe6 100%);
  box-shadow: var(--shadow-soft);
}
.order-result-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 62px;
  border-radius: 20px;
  background: var(--surface-wine);
  color: var(--wine);
  border: 1px solid #ead3d9;
}
.order-result-icon .icon { width: 29px; height: 29px; }
.order-result-hero h1 {
  margin: 4px 0 12px;
  font-size: clamp(38px, 4.8vw, 64px);
}
.order-result-hero > div > p:last-child {
  max-width: 68ch;
  color: var(--muted);
  font-size: 17px;
}
.order-result-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.result-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.result-status-card span { color: var(--muted); font-size: 14px; }
.result-status-card strong { text-align: right; color: var(--wine-dark); font-size: 16px; }
.order-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  margin-top: 18px;
}
.order-result-side { display: grid; align-content: start; gap: 18px; }
.result-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.result-panel h2 { margin: 0 0 18px; font-size: 22px; }
.result-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.result-panel-heading h2 { margin: 0; }
.result-panel-heading > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.order-result-lines article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid #eee3d8;
}
.order-result-lines article > div { min-width: 0; }
.order-result-lines article strong { font-size: 16px; }
.order-result-lines article > strong { white-space: nowrap; }
.order-result-lines article span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.order-result-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  color: var(--muted);
}
.order-result-total strong { color: var(--ink); font-size: 28px; letter-spacing: -.03em; white-space: nowrap; }
.order-result-main .notice { margin-top: 20px; }
.order-result-meta { margin: 0; }
.order-result-meta > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #eee3d8;
}
.order-result-meta > div:first-child { border-top: 0; padding-top: 0; }
.order-result-meta dt { color: var(--muted); font-size: 14px; }
.order-result-meta dd { margin: 0; font-weight: 720; overflow-wrap: anywhere; }
.result-next-step { background: #f8f0e7; }
.result-next-step p { color: var(--muted); font-size: 14px; }
.order-result-actions { display: flex; justify-content: flex-start; margin-top: 20px; }



.payment-status-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.payment-status-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  margin-top: -8px;
}
.payment-status-card[data-state="paid"] { border-color: #cfe0d4; background: #f5fbf6; }
.payment-status-card[data-state="paid"] strong { color: #2f6a46; }
.payment-status-card[data-state="failed"],
.payment-status-card[data-state="expired"] { border-color: #ead0d4; background: #fff7f8; }
.payment-status-card[data-state="failed"] strong,
.payment-status-card[data-state="expired"] strong { color: var(--wine); }
.order-result-icon.is-pending { background: #f5ead7; color: #8a6429; border-color: #ead8bd; }
.result-next-step form { margin-top: 16px; }
.result-next-step .button + .button { margin-top: 8px; }

.payment-test { padding-block: 54px 90px; }
.payment-test-card {
  width: min(720px, 100%);
  margin-inline: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.payment-test-card h1 { margin: 6px 0 12px; font-size: clamp(38px, 5vw, 56px); }
.payment-test-lead { color: var(--muted); max-width: 58ch; }

.cart-dialog { max-height: min(85dvh, 760px); }
#cart-items {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 28px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#cart-items:empty { display: none; }
.cart-row {
  flex: 0 0 auto;
  padding: 15px 16px;
  border: 1px solid #eadfd4;
  border-radius: 17px;
  background: #fbf7f1;
}
.cart-row h3 { font-size: 18px; margin-bottom: 4px; }
.cart-row .hint { font-size: 13px; color: var(--muted); }
.cart-row .notice { margin-top: 9px; }
.cart-row-actions { display: flex; align-items: end; gap: 10px; margin-top: 10px; }
.cart-row label { font-size: 13px; font-weight: 680; color: var(--muted); }
.cart-quantity { display: grid; gap: 5px; }
.cart-quantity-label { display: block; font-size: 13px; font-weight: 680; color: var(--muted); }
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.quantity-stepper input {
  width: 104px;
  min-width: 0;
  text-align: center;
  margin-top: 0;
}
.quantity-step {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ead5d8;
  border-radius: 13px;
  background: #f8ecee;
  color: var(--wine);
  padding: 0;
  flex: 0 0 44px;
  transition: background var(--motion), transform var(--motion), border-color var(--motion);
}
.quantity-step:hover:not(:disabled) { background: #f3dfe4; border-color: #e0bcc3; }
.quantity-step:active:not(:disabled) { transform: translateY(1px); }
.quantity-step .icon { width: 18px; height: 18px; }
.cart-row .remove,
.quantity-step { box-shadow: none; }
.cart-row input { display: block; width: 116px; min-height: 44px; padding: 8px 11px; margin-top: 5px; background: #fff; font-weight: 700; }
.quantity-stepper input { width: 104px; margin-top: 0; }
.cart-row .remove {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #edd7db;
  padding: 0;
  background: #f8ecee;
  color: var(--wine);
  border-radius: 13px;
  transition: background var(--motion), transform var(--motion);
}
.cart-row .remove:hover { background: #f2dfe3; }
.cart-row .remove:active { transform: translateY(1px); }
.cart-row .remove .icon { width: 19px; height: 19px; }
.row-total { margin-left: auto; padding-bottom: 9px; font-size: 18px; font-weight: 800; white-space: nowrap; color: var(--ink); }
.cart-footer {
  padding: 17px 28px 25px;
  background: var(--surface);
  flex-shrink: 0;
  box-shadow: 0 -12px 26px rgb(52 32 18 / 5%);
}
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 15px; color: var(--muted); }
.cart-total strong { color: var(--ink); font-size: 25px; font-weight: 820; letter-spacing: -.035em; white-space: nowrap; }
.weight-note { margin: 10px 0 16px; font-size: 13px; }
.continue-button { margin-top: 10px; }
.cart-empty { text-align: center; padding: 6px 30px 4px; }
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: var(--surface-soft);
  color: #9a7158;
  border: 1px solid #ecded0;
  border-radius: 23px;
  margin-bottom: 16px;
}
.empty-icon .icon { width: 31px; height: 31px; stroke-width: 1.7; }
.cart-empty h3 { font-size: 22px; margin-bottom: 7px; }
.cart-empty p { font-size: 15px; color: var(--muted); max-width: 29ch; margin-inline: auto; }
.cart-dialog.is-empty { width: min(500px, calc(100% - 40px)); }
.cart-dialog.is-empty .cart-footer { box-shadow: none; padding-top: 15px; }
.cart-dialog.is-empty .continue-button { background: var(--wine); color: #fff; border-color: var(--wine); }

.empty { grid-column: 1 / -1; text-align: center; padding: 42px 0; }
.empty p { margin: 12px 0 20px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--wine); min-height: 44px; margin-bottom: 28px; font-weight: 700; }
.product-detail { padding-block: 40px 82px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 70px; align-items: center; }
.detail-grid .product-image { border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.detail-grid h1 { font-size: clamp(38px, 4vw, 58px); margin-top: 8px; }
.eyebrow { font-size: 14px; font-weight: 760; color: var(--wine); text-transform: uppercase; letter-spacing: .055em; }
.detail-description { margin-block: 23px; font-size: 17px; color: var(--muted); max-width: 58ch; }
.detail-grid .price { margin-bottom: 21px; }
.detail-grid .hint { margin-top: 20px; max-width: 50ch; }
.document { max-width: 900px; min-height: 58vh; padding-block: 48px 84px; }
.document h1 { font-size: clamp(38px, 4vw, 54px); margin: 13px 0 25px; }
.document > p { font-size: 17px; color: var(--muted); }
.document-lead { max-width: 780px; line-height: 1.75; }
.document-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.document-section h2 { margin: 0 0 13px; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.2; }
.document-section p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.document-section a { color: var(--wine); font-weight: 720; text-decoration: underline; text-underline-offset: 3px; }
.document-list { margin: 14px 0 0; padding-left: 22px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.document-list li + li { margin-top: 8px; }
.document-note { margin-top: 32px !important; padding: 18px 20px; border: 1px solid #ead7d8; border-radius: 18px; background: #fff9f7; color: var(--text) !important; line-height: 1.65; }

.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; display: block; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--wine); box-shadow: var(--shadow-soft); }
.noscript { padding: 20px; background: white; }
.reveal.is-revealed { animation: section-in 220ms ease-out; }
@keyframes modal-in { from { opacity: .5; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sheet-in { from { opacity: .62; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@keyframes section-in { from { opacity: .78; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-5px); border-color: #ddc9b9; box-shadow: var(--shadow-hover); }
  .product-card:hover .product-image img { transform: scale(1.018); }
}

@media (max-width: 1250px) {
  .site-header nav { gap: 22px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-tabs { gap: 2px; }
  .category-tabs button { padding-inline: 12px; font-size: 15px; }
  .catalog-toolbar { flex-wrap: wrap; }
  .search-field { min-width: 280px; max-width: none; }
  .info-grid > a { padding: 22px; gap: 13px; }
  .info-grid .surface-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .info-grid strong { font-size: 17px; }
}

@media (max-width: 980px) {
  :root { --gutter: 28px; --space-6: 58px; }
  body { font-size: 16px; }
  .site-header { min-height: 94px; }
  .site-header nav { gap: 17px; font-size: 15px; }
  .site-header .nav-contact { padding-inline: 13px; }
  .nav-contact .icon { display: none; }
  .brand { gap: 11px; }
  .brand img { width: 92px; height: 64px; }
  .brand > span { font-size: 21px; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 56px; }
  .hero-copy { max-width: 500px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tabs { width: 100%; }
  .category-tabs button { flex: 1; }
  .secondary-filters { grid-template-columns: 1fr 1fr auto; }
  .secondary-filters .sort-hint { grid-column: 1 / -1; padding: 0; max-width: none; }
  .feedback { gap: 38px; grid-template-columns: 1fr 1.15fr; }
  .social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-form { padding: 25px; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-grid > a { min-height: 100px; padding: 20px 24px; }
  .info-grid > a > span:not(.surface-icon) { display: flex; align-items: center; gap: 20px; }
  .info-grid small { margin: 0; }
  .detail-grid { gap: 38px; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; --space-6: 44px; --radius-card: 22px; --radius-modal: 26px; }
  html { scroll-padding-bottom: 102px; }
  body { font-size: 16px; line-height: 1.5; }
  .demo-banner { min-height: 28px; font-size: 12px; padding-block: 4px; }
  .site-header {
    min-height: 82px;
    gap: 8px;
    width: 100%;
    margin-inline: 0;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgb(255 253 249 / 96%);
    border-bottom: 1px solid rgb(121 88 65 / 10%);
    box-shadow: 0 8px 24px rgb(49 31 19 / 6%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .brand { gap: 10px; }
  .brand img { width: 78px; height: 58px; }
  .brand > span { font-size: 20px; line-height: 1.03; }
  .header-viber-order {
    min-height: 40px;
    max-width: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 9px;
    border: 1px solid #7360f2;
    border-radius: 14px;
    background: #7360f2;
    color: #fff;
    box-shadow: 0 7px 16px rgb(115 96 242 / 24%);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.12;
    text-align: center;
  }
  .header-viber-order .icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .menu-toggle { display: inline-flex; margin-left: 0; margin-right: -3px; background: transparent; }
  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgb(255 253 249 / 97%);
    box-shadow: 0 20px 50px rgb(49 31 19 / 14%);
    backdrop-filter: blur(14px);
  }
  .site-header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 3px; animation: modal-in var(--motion) ease-out; }
  .site-header nav a { padding: 11px 12px; font-size: 16px; border-radius: 12px; }
  .site-header nav > a:not(.nav-contact)::after { display: none; }
  .site-header .nav-contact { justify-content: center; margin-top: 3px; }
  .nav-contact .icon { display: block; }

  .hero { min-height: 405px; }
  .hero-inner { padding-block: 30px 38px; align-items: flex-start; }
  .hero-picture img { object-position: 65% center; }
  .hero::before {
    background:
      linear-gradient(100deg, rgb(23 24 20 / 72%) 0%, rgb(23 24 20 / 58%) 36%, rgb(23 24 20 / 20%) 58%, rgb(23 24 20 / 4%) 88%),
      linear-gradient(0deg, rgb(24 18 15 / 18%), transparent 45%);
  }
  .hero::after { height: 28px; background-size: auto 28px; opacity: .96; }
  .hero-kicker,
  .hero-lead { font-size: 16px; line-height: 1.42; max-width: 22ch; }
  .hero-button { margin-top: var(--hero-button-offset-mobile) !important; margin-left: var(--hero-button-offset-x-mobile) !important; min-height: 50px; padding-inline: 20px; border-radius: 15px; }

  .catalog { padding-block: 10px 52px; }
  .section-heading { align-items: flex-start; margin-bottom: 22px; gap: 12px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading p { font-size: 16px; max-width: 25ch; margin-top: 7px; }
  .result-count { font-size: 13px; padding: 6px 10px; margin-top: 3px; }
  .filters { margin: 0 0 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .category-tabs {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 4px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--wine);
  }
  .category-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 10px;
    color: var(--wine);
    font-size: 14px;
  }
  .category-tabs button[aria-pressed=true] {
    color: #fff;
    background: var(--wine);
    border-color: var(--wine);
  }
  .category-select { display: none; }
  .search-field { min-width: 0; max-width: none; width: 100%; margin: 0; }
  .filter-toggle { min-width: 112px; padding-inline: 13px; }
  .filter-toggle .icon { width: 19px; height: 19px; }
  .filter-toggle span { font-size: 14px; }
  .secondary-filters { grid-template-columns: 1fr; padding: 16px; background: var(--surface-soft); border-radius: 18px; }
  .secondary-filters .sort-hint { grid-column: auto; }

  .product-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-card { box-shadow: 0 10px 30px rgb(58 35 20 / 7%); }
  .product-category { display: none; }
  .product-copy { padding: 14px 18px 18px; }
  .product-copy h3 {
    min-height: 0;
    margin-top: 0;
    font-size: 24px;
  }
  .stock { margin-top: 8px; }
  .product-image { aspect-ratio: 4 / 3; }
  .product-bottom { padding-top: 14px; gap: 12px; }
  .price strong { font-size: 30px; }
  .order-button { min-width: 116px; padding-inline: 16px; }

  .social-section { padding-block: 42px; }
  .social { gap: 23px; }
  .social-links { grid-template-columns: 1fr; gap: 12px; }
  .social-link-card {
  color: inherit;
 min-height: 0; padding: 24px 22px; }
  .social-link-card h3 { font-size: 21px; }
  .social-link-card p { font-size: 14px; max-width: 34ch; }
  .feedback-section { padding-block: 50px; }
  .feedback { grid-template-columns: 1fr; gap: 27px; }
  .feedback-copy > .surface-icon { margin-bottom: 18px; }
  .feedback-copy h2 { font-size: 35px; }
  .feedback-copy > p { font-size: 16px; }
  .feedback-copy > .hint { margin-top: 14px; }
  .feedback-form { padding: 21px; border-radius: 22px; }
  .information { padding-block: 50px 58px; }
  .info-grid > a > span:not(.surface-icon) { display: block; }
  .info-grid small { margin-top: 5px; }
  .info-grid > a { min-height: 96px; padding: 18px; }
  .document-links { gap: 6px 22px; margin-top: 18px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-made-by { align-items: flex-start; }
  .site-footer { padding-top: 31px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

  .floating { bottom: calc(13px + env(safe-area-inset-bottom)); min-height: 54px; font-size: 15px; }
  .cart-button { right: 14px; padding: 9px 10px 9px 16px; gap: 9px; }
  .contact-button { left: 14px; padding: 9px 15px; gap: 8px; }
  .contact-sheet-body { padding: 2px 20px calc(20px + env(safe-area-inset-bottom)); }
  .contact-action { min-height: 68px; padding: 15px 16px; border-radius: 18px; }
  .floating .icon { width: 21px; height: 21px; }
  #cart-count { min-width: 29px; height: 29px; font-size: 13px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); font-size: 14px; padding: 12px 17px; }

  dialog {
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    min-height: 0;
    margin: auto 0 0;
    border: 0;
    border-radius: var(--radius-modal) var(--radius-modal) 0 0;
  }
  dialog[open] { animation-name: sheet-in; }
  .modal-header { padding: 27px 21px 15px; gap: 10px; }
  .modal-header::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: #ddd2c8;
    transform: translateX(-50%);
  }
  .modal-kicker { font-size: 12px; margin-bottom: 5px; }
  dialog h2 { font-size: 27px; }
  #quantity-price { font-size: 15px; margin-top: 6px; }
  .close-button { width: 44px; height: 44px; }
  .quantity-body { padding-inline: 21px; }
  .presets { margin-top: 4px; gap: 9px; margin-bottom: 17px; }
  .quantity-footer { padding: 18px 21px calc(20px + env(safe-area-inset-bottom)); }
  #cart-items { padding: 0 20px 3px; gap: 9px; }
  .cart-row { padding: 13px 14px; border-radius: 15px; }
  .cart-row-actions { gap: 8px; flex-wrap: wrap; }
  .cart-quantity { width: 100%; }
  .quantity-stepper { width: 100%; }
  .quantity-stepper input { flex: 1 1 auto; width: auto; }
  .row-total { width: 100%; margin-left: 0; padding-bottom: 0; }
  .cart-row input { width: 102px; }
  .quantity-stepper input { width: auto; margin-top: 0; }
  .row-total { font-size: 17px; }
  .cart-footer { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
  .cart-total { font-size: 14px; gap: 8px; }
  .cart-total strong { font-size: 23px; }
  .weight-note { font-size: 13px; margin: 8px 0 13px; }
  .continue-button { min-height: 44px; margin-top: 9px; padding: 9px 12px; font-size: 15px; }
  .cart-empty { padding: 3px 26px 2px; }
  .empty-icon { width: 66px; height: 66px; margin-bottom: 14px; }
  .cart-empty h3 { font-size: 21px; }
  .cart-empty p { font-size: 15px; }
  .cart-dialog.is-empty { width: 100%; }
  .checkout-dialog { width: 100%; max-width: none; }
  .checkout-body { padding: 8px 22px 8px; }
  .checkout-fields.two-fields, .choice-grid { grid-template-columns: 1fr; }
  .checkout-fields .wide { grid-column: auto; }
  .checkout-group { padding-block: 20px; }

  .order-result { padding-block: 28px 56px; }
  .order-result-hero { padding: 24px 20px; gap: 15px; border-radius: 22px; }
  .order-result-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 16px; }
  .order-result-icon .icon { width: 24px; height: 24px; }
  .order-result-hero h1 { font-size: 36px; margin-top: 2px; }
  .order-result-hero > div > p:last-child { font-size: 15px; }
  .order-result-status-grid { grid-template-columns: 1fr; gap: 10px; }
  .result-status-card { min-height: 62px; padding: 14px 16px; }
  .order-result-layout { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .order-result-side { gap: 12px; }
  .result-panel { padding: 20px; border-radius: 19px; }
  .result-panel h2 { font-size: 20px; }
  .order-result-lines article { gap: 10px; padding: 14px 0; }
  .order-result-lines article > strong { font-size: 15px; }
  .order-result-total strong { font-size: 24px; }
  .order-result-meta > div { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .order-result-actions .button { width: 100%; }

  .payment-status-card { grid-template-columns: 1fr; gap: 4px; }
  .payment-status-card strong { text-align: left; }
  .payment-status-card small { grid-column: auto; margin-top: 0; }
  .payment-test { padding-block: 28px 64px; }
  .payment-test-card { padding: 22px 20px; border-radius: 22px; }


  .detail-grid { grid-template-columns: 1fr; gap: 27px; }
  .detail-grid h1 { font-size: 38px; }
  .product-detail { padding-block: 30px 60px; }
  .document h1 { font-size: 36px; }
}

@media (max-width: 370px) {
  :root { --gutter: 16px; }
  .brand img { width: 70px; }
  .brand > span { font-size: 18px; }
  .header-viber-order {
    max-width: 96px;
    padding-inline: 6px;
    font-size: 11px;
  }
  .hero-kicker,
  .hero-lead { font-size: 15px; }
  .contact-button .floating-label { display: none; }
  .contact-button { width: 54px; padding-inline: 0; }
  .cart-button { padding-left: 14px; }
  .product-bottom { align-items: stretch; flex-direction: column; }
  .order-button { width: 100%; }
  .price { display: flex; align-items: baseline; gap: 7px; }
  .price small { margin-top: 0; }
}

@media (max-height: 600px) {
  .modal-header { padding-block: 22px 9px; }
  .modal-kicker { display: none; }
  .quantity-footer, .cart-footer { padding-top: 11px; padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .weight-note { margin-block: 6px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* product-card-inline-price-unit-v1 */
.product-copy .price {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.product-copy .price strong {
  display: inline;
  color: var(--ink);
  line-height: 1;
  margin: 0;
}

.product-copy .price span {
  line-height: 1;
  white-space: nowrap;
}

.product-copy .price small {
  display: inline;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}

/* hero-mobile-text-hide-v2 */
@media (max-width: 700px) {
  .hero-kicker,
  .hero-lead {
    display: none;
  }
}

/* catalog-ornament-bg-v2 */
/* catalog-ornament-fullbleed-v1 */
.catalog-ornament-bg {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background-color: var(--milk);
}

.catalog-ornament-bg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: url("../img/catalog-ornament-bg.webp");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.catalog-ornament-bg > * {
  position: relative;
  z-index: 1;
}

/* mobile-checkout-ux-v1 */

/* Programmatically focused dialog titles must not look selected.
   Keyboard focus on real controls remains handled by :focus-visible. */
.modal-header h2:focus {
  outline: none;
}

/* Payment hand-off page */
.payment-test {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-block: clamp(38px, 8vh, 90px);
}

.payment-test-card {
  width: min(620px, 100%);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 46px);
  border: 1px solid rgb(219 205 192 / 82%);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgb(139 32 57 / 7%), transparent 38%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.payment-test-card h1 {
  max-width: 12ch;
}

.payment-redirect-loader {
  width: 58px;
  height: 58px;
  margin: 30px auto 26px;
  display: grid;
  place-items: center;
  transition: opacity 220ms ease;
}

.payment-redirect-loader::before {
  content: "";
  width: 44px;
  height: 44px;
  border: 4px solid rgb(139 32 57 / 13%);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: payment-redirect-spin 780ms linear infinite;
}

#payment-checkout-form {
  margin-top: 2px;
}

#payment-fallback-button {
  transition:
    background var(--motion),
    border-color var(--motion),
    color var(--motion),
    box-shadow var(--motion),
    opacity var(--motion);
}

#payment-fallback-button:disabled {
  background: #eee4e5;
  border-color: #eee4e5;
  color: #967f84;
  box-shadow: none;
  cursor: default;
}

.payment-test-card.is-fallback-ready .payment-redirect-loader {
  opacity: .25;
}

.payment-test-card.is-fallback-ready .payment-redirect-loader::before {
  animation-play-state: paused;
}

@keyframes payment-redirect-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
  /* Keep bottom sheets physically locked to the viewport width. */
  dialog {
    max-width: 100vw;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .checkout-dialog,
  #checkout-form,
  .checkout-body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  .checkout-body {
    touch-action: pan-y;
  }

  /* iOS Safari zooms focused controls below 16px.
     Checkout controls inherit 14px from their labels, so force 16px. */
  .checkout-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .checkout-dialog select,
  .checkout-dialog textarea {
    font-size: 16px;
  }

  .payment-test {
    min-height: 100svh;
    padding-block:
      max(24px, env(safe-area-inset-top))
      max(36px, env(safe-area-inset-bottom));
  }

  .payment-test-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .payment-test-card h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .payment-redirect-loader {
    margin-block: 26px 23px;
  }
}

/* Admin Features V3: pickup address */
.pickup-address-note {
  margin-top: 14px; display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px; border: 1px solid #dfd0bf; border-radius: 14px;
  background: #fff8ed; color: var(--ink);
}
.pickup-address-note[hidden] { display: none !important; }
.pickup-address-icon {
  width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px;
  border-radius: 999px; background: #f0e2dc; color: var(--wine);
  font-size: 18px; font-weight: 900;
}
.pickup-address-note div { display: grid; gap: 2px; }
.pickup-address-note strong { font-size: 13px; }
.pickup-address-note span:last-child { color: var(--muted); font-size: 13px; line-height: 1.45; }
