:root {
  --color-bg: #FAFAF8;
  --color-surface: #F2F0EB;
  --color-text: #1A1A18;
  --color-accent: #2B2B29;
  --color-brand: #2D6A4F;
  --color-muted: #8A8880;
}

.drip-chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  border: 2px solid #E8E5DE;
  border-radius: 6px;
  padding: 1px 9px 3px;
  white-space: nowrap;
  line-height: 1.6;
  display: inline-block;
  flex-shrink: 0;
}
.drip-select {
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--accent, #7B9A2A);
  border-radius: 10px;
  padding: 5px 26px 5px 9px;
  font-size: 13px; font-weight: 700; color: #1A1A18;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A18' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  cursor: pointer; flex-shrink: 0;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* HTMX loading — rules are repeated after display utilities to win the cascade */

/* Utility bar */
.utility-bar a {
  transition: opacity 0.15s;
}
.utility-bar a:hover {
  opacity: 0.75;
}

/* Sticky header shadow on scroll */
.header-scrolled {
  box-shadow: 0 2px 12px rgba(26,26,24,0.08);
}

/* Hero category cards */
.category-card {
  transform: translateY(-2px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
  transform: translateY(-7px);
}

/* ── Category colour tokens ── */
:root {
  --cat-monosorta: #4A7E8C;
  --cat-flavored:  #8B2020;
  --cat-espresso:  #8B7355;
  --cat-drip:      #7B9A2A;
}

/* ══════════════════════════════════
   PRODUCT CARD — redesigned
══════════════════════════════════ */
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card[data-cat="monosorta"] { --accent: var(--cat-monosorta); }
.card[data-cat="flavored"]  { --accent: var(--cat-flavored);  }
.card[data-cat="espresso"]  { --accent: var(--cat-espresso);  }
.card[data-cat="drip"]      { --accent: var(--cat-drip);      }

.product-page[data-cat="monosorta"] { --accent: var(--cat-monosorta); }
.product-page[data-cat="flavored"]  { --accent: var(--cat-flavored);  }
.product-page[data-cat="espresso"]  { --accent: var(--cat-espresso);  }
.product-page[data-cat="drip"]      { --accent: var(--cat-drip);      }

/* Image */
.card__img {
  position: relative;
  overflow: hidden;
  background: #F2F0EB;
  aspect-ratio: 2/1;
}
.card__img a { display: block; height: 100%; }
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
  }
  .card:hover .card__img img {
    transform: scale(1.04);
  }
}

/* Bookmark icon */
.card__bm {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: none; border: none; padding: 0; cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.card__bm svg { width: 28px; height: 34px; display: block; }

@media (hover: hover) {
  .card__bm:hover { opacity: 1; transform: scale(1.15); }
}

.card__bm.is-favorited { opacity: 1; }
.card__bm.is-favorited svg path { fill: var(--accent); }

@keyframes bm-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.card__bm.bm-anim { animation: bm-pop 0.3s ease; }

/* Content block — horizontal layout */
.card__content {
  padding: 10px 12px 4px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
}
.card__name-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card__title {
  font-size: 20px; font-weight: 800; line-height: 1.2; color: #1A1A18;
  text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__sub {
  font-size: 15px; font-weight: 500; color: var(--color-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__desc {
  width: 44%; flex-shrink: 0;
  font-size: 11px; color: var(--color-muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (min-width: 768px) and (max-width: 1023px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .cards-grid { grid-template-columns: 1fr; } }

/* Options row (weight + grind selectors) */
.card__opts {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; padding: 16px 12px 6px;
}
.card__opts--drip { gap: 10px; }

/* Grind selector */
.grind {
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--accent, #2D6A4F); border-radius: 10px;
  padding: 5px 26px 5px 9px; font-size: 13px; font-weight: 700; color: #1A1A18;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A18' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.grind-label {
  font-size: 13px; font-weight: 700; color: #1A1A18;
  border: 1.5px solid var(--accent, #2D6A4F); border-radius: 10px;
  padding: 5px 9px; white-space: nowrap; flex-shrink: 0;
}

/* Weight buttons */
.weights { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.w-btn {
  background: none; border: none; font-size: 13px; font-weight: 700;
  color: var(--color-muted); cursor: pointer;
  padding: 3px 0 4px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  font-family: inherit;
}
.w-btn.active { color: #1A1A18; border-bottom-color: var(--accent, #2D6A4F); }
.w-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Footer: tags + buy button */
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 16px; gap: 10px;
}
.card__tags {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0; flex: 1; min-width: 0;
}
.card__tags-br { width: 100%; height: 0; }
.cat-badge {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: #8E8E93;
  letter-spacing: .02em;
  white-space: nowrap;
  line-height: 1.5;
}
.cat-badge + .cat-badge::before {
  content: '/';
  margin: 0 5px;
  color: #C7C7CC;
}
.btn-buy {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent, #2D6A4F); color: #fff; border: none; border-radius: 10px;
  padding: 8px 17px; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap;
  font-family: inherit;
}
.btn-buy svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.2; fill: none; flex-shrink: 0; }

.counter { display: flex; align-items: center; border: 1.5px solid #E0DDD8; border-radius: 10px; overflow: hidden; background: #fff; }
.c-btn { background: none; border: none; padding: 5px 0; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; width: 30px; text-align: center; color: var(--accent, #2D6A4F); }
.c-btn:hover { background: #f5f3ef; }
.c-val { padding: 5px 8px; font-size: 13px; font-weight: 700; color: #1A1A18; background: #fff; border-left: 1.5px solid #E0DDD8; border-right: 1.5px solid #E0DDD8; min-width: 36px; text-align: center; }

/* Toast notification */
@keyframes toast-in {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}
.toast-notification {
  animation: toast-in 0.3s ease-out forwards;
}
.toast-notification.hiding {
  animation: toast-out 0.3s ease-in forwards;
}

/* Product detail tabs — daisyUI resets button padding to 0 (unlayered), overriding Tailwind px-6 py-3 */
.tab-btn {
  padding: 0.75rem 1.5rem;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: transparent;
  margin-bottom: -1px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.tab-btn.active-tab {
  border-bottom-color: #1A1A18;
  color: #1A1A18;
}

/* Brand button */
.btn-brand {
  background-color: var(--color-brand);
  color: #fff;
  border: none;
  transition: background-color 0.15s;
}
.btn-brand:hover {
  background-color: #a8692c;
  color: #fff;
}

/* Primary action button — unlayered so it wins over daisyUI CDN reset */
.btn-primary {
  background-color: #2D6A4F;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.25;
}
.btn-primary:hover { background-color: #1B4332; color: #fff; }
.btn-primary-block { display: block; width: 100%; }

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #2D6A4F;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid #2D6A4F;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.btn-outline:hover { background-color: #2D6A4F; color: #fff; }
.btn-outline-block { display: block; width: 100%; }

/* Cart badge */
.cart-badge {
  background-color: var(--color-brand);
  color: #fff;
  font-size: 0.65rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Drawer overlay */
#mobile-drawer:checked ~ .drawer-overlay {
  display: block;
}

/* Section spacing */
.section-py { padding-top: 4rem; padding-bottom: 4rem; }

.hits-filter { position:relative; }
.hits-filter__toggle {
  list-style:none; display:inline-flex; align-items:center; gap:5px;
  cursor:pointer; font-size:13px; font-weight:700; color:#1A1A18;
  background:#fff; border:1.5px solid rgba(0,0,0,.15); border-radius:10px;
  padding:7px 12px; white-space:nowrap; transition:border-color .2s; user-select:none;
}
.hits-filter__toggle::-webkit-details-marker { display:none; }
.hits-filter__toggle:hover { border-color:#1A1A18; }
.hits-filter[open] .hits-filter__toggle { border-color:#1A1A18; }
.hits-filter__arrow { width:10px; height:6px; display:block; flex-shrink:0; transition:transform .2s; }
details.hits-filter[open] .hits-filter__arrow { transform:rotate(180deg); }
.hits-filter__menu {
  position:absolute; right:0; top:calc(100% + 6px); z-index:20;
  background:#fff; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.12);
  border:1.5px solid rgba(0,0,0,.08); padding:6px; min-width:160px;
  display:flex; flex-direction:column; gap:2px;
}
.hits-filter__item {
  display:block; padding:8px 12px; font-size:13px; font-weight:600;
  color:#1A1A18; text-decoration:none; border-radius:8px; transition:background .15s;
}
.hits-filter__item:hover { background:#EFEFED; }

/* Hide scrollbar utility */
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Scrollbar style */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-muted); border-radius: 3px; }

/* ── Display utilities (unlayered override for daisyUI cascade conflict) ────── */
.hidden       { display: none; }
.block        { display: block; }
.inline       { display: inline; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.inline-grid  { display: inline-grid; }

@media (min-width: 640px) {
  .sm\:hidden       { display: none; }
  .sm\:block        { display: block; }
  .sm\:inline       { display: inline; }
  .sm\:inline-block { display: inline-block; }
  .sm\:flex         { display: flex; }
  .sm\:inline-flex  { display: inline-flex; }
  .sm\:grid         { display: grid; }
}

@media (min-width: 768px) {
  .md\:hidden       { display: none; }
  .md\:block        { display: block; }
  .md\:flex         { display: flex; }
  .md\:inline-flex  { display: inline-flex; }
  .md\:grid         { display: grid; }
}

@media (min-width: 1024px) {
  .lg\:hidden       { display: none; }
  .lg\:block        { display: block; }
  .lg\:inline       { display: inline; }
  .lg\:inline-block { display: inline-block; }
  .lg\:flex         { display: flex; }
  .lg\:inline-flex  { display: inline-flex; }
  .lg\:grid         { display: grid; }
}

@media (min-width: 1280px) {
  .xl\:hidden       { display: none; }
  .xl\:block        { display: block; }
  .xl\:flex         { display: flex; }
  .xl\:inline-flex  { display: inline-flex; }
}

/* HTMX loading — placed after display utilities so these rules win the cascade */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: flex; }
.htmx-request.htmx-indicator { display: flex; }

/* ── Text-color utilities (unlayered override — same cascade conflict as font-size) ── */
.text-white { color: #fff; }
.text-inherit { color: inherit; }

/* ── Font-weight utilities (unlayered override for daisyUI cascade conflict) ── */
.font-thin     { font-weight: 100; }
.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

/* ── Font-size utilities (unlayered override for daisyUI cascade conflict) ─── */
/* Tailwind v4 puts utilities in @layer; daisyUI (unlayered CDN) wins by default.
   Redefine size classes here (outside any layer) so they take precedence. */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1; }
.text-8xl  { font-size: 6rem;     line-height: 1; }
.text-9xl  { font-size: 8rem;     line-height: 1; }

@media (min-width: 640px) {
  .sm\:text-xs   { font-size: 0.75rem;  line-height: 1rem; }
  .sm\:text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem;     line-height: 1.5rem; }
  .sm\:text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
  .sm\:text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
  .sm\:text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
  .sm\:text-5xl  { font-size: 3rem;     line-height: 1; }
  .sm\:text-6xl  { font-size: 3.75rem;  line-height: 1; }
  .sm\:text-7xl  { font-size: 4.5rem;   line-height: 1; }
  .sm\:text-8xl  { font-size: 6rem;     line-height: 1; }
}

@media (min-width: 768px) {
  .md\:text-xs   { font-size: 0.75rem;  line-height: 1rem; }
  .md\:text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:text-base { font-size: 1rem;     line-height: 1.5rem; }
  .md\:text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
  .md\:text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
  .md\:text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
  .md\:text-5xl  { font-size: 3rem;     line-height: 1; }
  .md\:text-6xl  { font-size: 3.75rem;  line-height: 1; }
  .md\:text-7xl  { font-size: 4.5rem;   line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:text-xs   { font-size: 0.75rem;  line-height: 1rem; }
  .lg\:text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
  .lg\:text-base { font-size: 1rem;     line-height: 1.5rem; }
  .lg\:text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
  .lg\:text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
  .lg\:text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
  .lg\:text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
  .lg\:text-5xl  { font-size: 3rem;     line-height: 1; }
  .lg\:text-6xl  { font-size: 3.75rem;  line-height: 1; }
  .lg\:text-7xl  { font-size: 4.5rem;   line-height: 1; }
  .lg\:text-8xl  { font-size: 6rem;     line-height: 1; }
}

/* ══════════════════════════════════════════════════
   CATALOG REDESIGN — таб-бар, дропдауны, pdp, отзывы
══════════════════════════════════════════════════ */

/* ── Catalog grid: 2 col mobile, 3 col tablet+ ── */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ── Product grid fade transition ── */
#product-grid { transition: opacity .18s ease; }

/* ── Category tab bar ── */
.cat-tabbar {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(239,239,237,.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  padding: 0;
  box-shadow: none;
}

.cat-tabs-scroll {
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* left padding for first tab; vertical for shadow room; NO right padding — ::after spacer handles it */
  padding: 8px 0 8px 6px;
}
.cat-tabs-scroll::-webkit-scrollbar { display: none; }
.cat-tabs-scroll::after {
  content: ''; display: block; min-width: 16px; flex-shrink: 0;
}

.cat-tab {
  flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: #1A1A18;
  padding: 9px 18px; min-height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #B8B4AE;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  cursor: pointer; text-decoration: none;
  white-space: nowrap; display: inline-flex; align-items: center;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.cat-tab:hover { border-color: #8A8880; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cat-tab.active { background: #1A1A18; color: #fff; border-color: #1A1A18; box-shadow: none; font-weight: 800; }

/* ── Filter row ── */
.filter-row {
  display: flex; gap: 8px; align-items: center;
  padding: 4px 0 16px;
  margin-left: -1rem;
  margin-right: -1rem;
}

/* ── Filter dropdown scrollable area ── */
.filter-dropdowns-scroll {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* restore left padding; vertical padding keeps shadows from being clipped */
  padding: 4px 0 4px 6px;
  margin: -4px 0;
}
.filter-dropdowns-scroll::-webkit-scrollbar { display: none; }
.filter-dropdowns-scroll::after {
  content: ''; display: block; min-width: 16px; flex-shrink: 0;
}

/* ── Individual select wrapper ── */
.filter-select-wrap { position: relative; flex-shrink: 0; }

/* ── Filter chips ── */
.fchip {
  display: flex; align-items: center; gap: 5px;
  background: #fff; border: 1.5px solid #B8B4AE; border-radius: 10px;
  padding: 9px 10px; min-height: 40px;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #1A1A18;
  cursor: pointer; outline: none; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.fchip:active { transform: scale(.96); }
.fchip.has-value { background: #1A1A18; color: #fff; border-color: #1A1A18; box-shadow: none; }
.fchip-chevron { flex-shrink: 0; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: #8A8880; stroke-width: 1.5; transition: stroke .15s; }
.fchip.has-value .fchip-chevron { stroke: rgba(255,255,255,.55); }
.fchip-x { font-size: 18px; font-weight: 300; line-height: 1; opacity: .75; padding: 0 0 0 1px; }

/* ── Chip overlay ── */
.fchip-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.fchip-overlay.open { opacity: 1; pointer-events: all; }

/* ── Chip bottom panel ── */
.fchip-panel {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 301;
  background: #fff; border-radius: 20px 20px 0 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  max-height: 65vh; display: flex; flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.14);
}
.fchip-panel.open { transform: translateY(0); }
.fchip-panel-handle {
  width: 36px; height: 4px; background: #D8D5D0; border-radius: 2px;
  margin: 12px auto 0; flex-shrink: 0;
}
.fchip-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px; flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.fchip-panel-title { font-size: 15px; font-weight: 800; color: #1A1A18; letter-spacing: -.01em; }
.fchip-panel-close {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: #EEEBE7; border: none; border-radius: 50%; cursor: pointer;
  font-size: 15px; color: #6B6B6B; line-height: 1; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.fchip-panel-list { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.fchip-panel-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  font-size: 15px; font-weight: 600; color: #1A1A18;
  border-bottom: 1px solid rgba(0,0,0,.06); cursor: pointer;
  transition: background .1s; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fchip-panel-opt:last-child { border-bottom: none; }
.fchip-panel-opt:active { background: #F5F3EF; }
.fchip-panel-opt.selected { font-weight: 700; }
.fchip-panel-opt-muted { color: #8A8880; font-weight: 500 !important; }
.fchip-panel-opt-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #C8C4BF; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.fchip-panel-opt.selected .fchip-panel-opt-radio { background: #1A1A18; border-color: #1A1A18; }
.fchip-panel-opt.selected .fchip-panel-opt-radio::after {
  content: ''; width: 7px; height: 7px; background: #fff; border-radius: 50%;
}

.filter-reset {
  flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: #1A1A18;
  background: #fff; border: 1.5px solid #B8B4AE; border-radius: 10px;
  padding: 6px 12px; min-height: 36px; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.filter-reset:hover { border-color: #8A8880; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* ── Fixed bottom reset button ── */
.filter-reset-bottom {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%; transform: translateX(-50%);
  z-index: 200;
  display: inline-flex; align-items: center; gap: 6px;
  background: #1A1A18; color: #fff;
  border: none; border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: background .15s, box-shadow .15s;
}
.filter-reset-bottom:hover { background: #2B2B29; box-shadow: 0 6px 24px rgba(0,0,0,.3); }

.result-count-wrap {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.result-count-num {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1A1A18; color: #fff;
  font-size: 12px; font-weight: 800;
  min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 100px; line-height: 1;
  transition: opacity .18s;
}
.result-count-label {
  font-size: 12px; font-weight: 600; color: #8A8880;
  white-space: nowrap;
}

/* ── Bottom Sheet ── */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 299; pointer-events: none;
  transition: background .25s;
}
.sheet-backdrop.open { background: rgba(0,0,0,.45); pointer-events: auto; }

.filter-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 40px rgba(0,0,0,.12);
  z-index: 300;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.filter-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 40px; height: 4px;
  background: #E0DDD8; border-radius: 2px;
  margin: 12px auto 0; flex-shrink: 0;
}

.sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px;
  flex-shrink: 0; border-bottom: 1px solid #F2F0EB;
}
.sheet-title { font-size: 16px; font-weight: 800; color: #1A1A18; }
.sheet-reset-btn {
  font-size: 13px; font-weight: 600; color: #8A8880;
  background: none; border: none; cursor: pointer;
  padding: 4px 0; font-family: inherit;
  transition: color .15s;
}
.sheet-reset-btn:hover { color: #c0392b; }

.filter-sheet-body {
  overflow-y: auto; flex: 1;
  padding: 0 20px 8px;
  -webkit-overflow-scrolling: touch;
}

.sheet-section {
  padding-top: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #F2F0EB;
}
.sheet-section:last-child { border-bottom: none; padding-bottom: 4px; }
.sheet-label {
  font-size: 15px; font-weight: 800; color: #1A1A18;
  letter-spacing: 0; text-transform: none;
  margin: 0 0 12px;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: 100px;
  border: 1.5px solid #E0DDD8;
  background: #fff; color: #1A1A18;
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap; min-height: 40px;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: rgba(0,0,0,.25); }
.chip--active { background: #1A1A18; color: #fff; border-color: #1A1A18; }

.sheet-footer {
  flex-shrink: 0;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #F2F0EB; background: #fff;
}
.apply-btn {
  display: block; width: 100%;
  background: #3A7D44; color: #fff;
  border: none; border-radius: 14px;
  padding: 15px 20px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .15s;
}
.apply-btn:hover { background: #2E6337; }

/* ── Product detail page (PDP) ── */
.pdp-wrap { background: #EFEFED; min-height: 100dvh; padding: 0 0 16px; }

@keyframes pdp-sheet-in {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
.pdp-mobile .card {
  margin-top: 10px;
  will-change: transform;
  animation: pdp-sheet-in 0.52s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.pdp-crumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #6B6B6B; padding: 10px 14px 6px;
  overflow: hidden;
}
.pdp-crumb a { color: #6B6B6B; text-decoration: none; white-space: nowrap; }
.pdp-crumb a:hover { color: #1A1A18; }
.pdp-crumb span { color: #1A1A18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Photo 2:1 */
.pdp-photo { width: 100%; aspect-ratio: 2/1; position: relative; overflow: hidden; background: #E8E5DE; }
.pdp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pdp-photo__dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.pdp-photo__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.pdp-photo__dot.active { background: #fff; width: 18px; border-radius: 3px; }

/* Info card */
.pdp-info {
  margin: 10px 12px 0;
  background: #fff; border-radius: 20px; padding: 14px;
}
.pdp-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: #fff; padding: 2px 9px; border-radius: 20px; margin-bottom: 6px;
  background: var(--pdp-accent, #4A7E8C);
}
.pdp-name {
  font-size: clamp(20px, 5vw, 28px); font-weight: 900; line-height: 1.15;
  color: #1A1A18; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pdp-notes {
  font-size: 12px; font-weight: 600; color: var(--pdp-accent, #4A7E8C);
  margin-bottom: 8px;
}
.pdp-attrs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.pdp-attr {
  font-size: 11px; font-weight: 600; color: #1A1A18;
  background: #F2F0EB; border-radius: 20px; padding: 3px 9px;
}

/* Variant selectors inside pdp-info */
.pdp-var-label {
  font-size: 10px; font-weight: 700; color: #6B6B6B;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px;
}
.pdp-weights { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pdp-w-btn {
  font-size: 12px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; border: 1.5px solid #ddd; background: #fff;
  cursor: pointer; transition: all .15s; font-family: inherit; color: #1A1A18;
}
.pdp-w-btn.active { border-color: var(--pdp-accent, #4A7E8C); color: var(--pdp-accent, #4A7E8C); background: rgba(0,0,0,.03); }
.pdp-grinds { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pdp-g-btn {
  font-size: 11px; font-weight: 700; padding: 5px 10px;
  border-radius: 20px; border: 1.5px solid #ddd; background: #fff;
  cursor: pointer; transition: all .15s; font-family: inherit; color: #1A1A18;
}
.pdp-g-btn.active { border-color: var(--pdp-accent, #4A7E8C); background: var(--pdp-accent, #4A7E8C); color: #fff; }
.pdp-g-btn:disabled { opacity: .45; }

/* Buy row */
.pdp-buy-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pdp-price { font-size: 22px; font-weight: 900; color: #1A1A18; white-space: nowrap; }
.pdp-buy-btn {
  flex: 1; height: 44px; border-radius: 22px;
  background: var(--pdp-accent, #4A7E8C); color: #fff;
  font-size: 14px; font-weight: 800; border: none; cursor: pointer;
  font-family: inherit; transition: filter .15s;
}
.pdp-buy-btn:hover { filter: brightness(1.08); }

/* Reviews */
.pdp-reviews {
  margin: 8px 12px 0;
  background: #fff; border-radius: 20px; padding: 12px 14px;
}
.pdp-reviews__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.pdp-reviews__rating {
  font-size: 13px; font-weight: 800; color: #1A1A18;
  display: flex; align-items: center; gap: 4px;
}
.pdp-reviews__stars { color: #F5A623; font-size: 13px; letter-spacing: -.5px; }
.pdp-review-row {
  display: flex; align-items: baseline; gap: 6px;
  padding: 5px 0; border-top: 1px solid #F2F0EB;
  font-size: 12px; line-height: 1.4;
}
.pdp-review-row__stars { color: #F5A623; font-size: 11px; flex-shrink: 0; }
.pdp-review-row__author { font-weight: 700; color: #1A1A18; flex-shrink: 0; }
.pdp-review-row__text { color: #6B6B6B; }

/* Category accent vars for PDP */
.pdp-cat-monosorta { --pdp-accent: #4A7E8C; }
.pdp-cat-espresso  { --pdp-accent: #8B7355; }
.pdp-cat-flavored  { --pdp-accent: #8B2020; }
.pdp-cat-drip      { --pdp-accent: #7B9A2A; }

/* PDP mobile sections */
.pdp-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 6px;
}
.pdp-section__title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A18;
  margin-bottom: 12px;
}

/* Characteristics table */
.pdp-chars { margin: 0; }
.pdp-char-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #F2F0EB;
  font-size: 13px;
}
.pdp-char-row:last-child { border-bottom: none; padding-bottom: 0; }
.pdp-char-row dt { color: #8A8880; flex-shrink: 0; }
.pdp-char-row dd { font-weight: 600; color: #1A1A18; text-align: right; margin: 0; }
.pdp-char-accent { color: var(--pdp-accent, #4A7E8C) !important; }

/* Description prose */
.pdp-desc { font-size: 14px; color: #6B6B6B; line-height: 1.6; }
.pdp-desc p { margin: 0 0 10px; }
.pdp-desc p:last-child { margin-bottom: 0; }

/* Review cards */
.pdp-review-card {
  background: #F9F8F6;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.pdp-review-card:last-child { margin-bottom: 0; }
.pdp-review-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pdp-review-card__text {
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.5;
}

/* Desktop PDP layout */
@media (min-width: 768px) {
  .pdp-desktop { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 0 auto; padding: 16px; }
  .pdp-desktop .pdp-photo { border-radius: 20px; aspect-ratio: 4/3; }
  .pdp-desktop .pdp-info { margin: 0; }
  .pdp-desktop .pdp-reviews { margin: 12px 0 0; }
}

/* ══════════════════════════════════════════════════
   SHOP SEARCH
══════════════════════════════════════════════════ */

/* ── Search box — sits on cream background above cat-tabbar ── */
.shop-search-wrap {
  background: #EFEFED;
  padding: 10px 14px 0;
}
.shop-search {
  position: relative;
  display: flex;
  align-items: center;
}
.shop-search__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #8A8880; pointer-events: none;
  flex-shrink: 0;
}
.shop-search__input {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 10px 36px 10px 38px;
  font-size: 14px; font-weight: 500; color: #1A1A18;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.shop-search__input::placeholder { color: #8A8880; }
.shop-search__input:focus {
  border-color: #2D6A4F;
  box-shadow: 0 0 0 3px rgba(200,135,58,0.12);
}
.shop-search__clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: none;
  background: #E8E5DE; border: none;
  border-radius: 50%; width: 22px; height: 22px;
  cursor: pointer; align-items: center; justify-content: center;
  color: #8A8880; font-size: 14px; line-height: 1;
  transition: background 0.15s;
  padding: 0;
}
.shop-search__clear:hover { background: #dddad4; color: #1A1A18; }
.shop-search__clear.visible { display: flex; }

@keyframes search-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}
.htmx-request .shop-search__icon {
  animation: search-spin 0.7s linear infinite;
  color: #2D6A4F;
  transform-origin: center;
}

/* ════════════════════════════════════════════
   Static pages — shared components
   ════════════════════════════════════════════ */

/* ── Page hero (dark header for about / contacts / delivery) ── */
.page-hero {
  background: #1A1A18; color: #fff;
  padding: 56px 16px 48px;
  position: relative; overflow: hidden;
}
.page-hero__inner { max-width: 640px; position: relative; z-index: 1; }
.page-hero__label {
  color: #2D6A4F; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.page-hero__title {
  font-size: clamp(32px, 6vw, 52px); font-weight: 900; line-height: 1.05; margin-bottom: 12px;
}
.page-hero__sub { color: #8A8880; font-size: 15px; line-height: 1.6; }
.page-hero__deco {
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  font-size: clamp(80px, 14vw, 130px); font-weight: 900;
  color: rgba(255,255,255,.035); line-height: 1;
  pointer-events: none; white-space: nowrap; user-select: none;
}

/* ── About: values cards ── */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.value-card {
  background: #fff; border-radius: 20px; padding: 20px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.value-card__icon { font-size: 24px; margin-bottom: 10px; }
.value-card__title { font-weight: 700; font-size: 14px; color: #1A1A18; margin-bottom: 6px; }
.value-card__desc { font-size: 13px; color: #8A8880; line-height: 1.55; }
.value-card--1 { border-top: 3px solid #4A7E8C; }
.value-card--2 { border-top: 3px solid #2D6A4F; }
.value-card--3 { border-top: 3px solid #7B9A2A; }
.value-card--4 { border-top: 3px solid #8B2020; }
.value-card--5 { border-top: 3px solid #8B7355; }
.value-card--6 { border-top: 3px solid #2A8A8A; }

/* ── About: stats ── */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-block { text-align: center; }
.stat-block__num {
  font-size: clamp(36px, 7vw, 52px); font-weight: 900; color: #2D6A4F; line-height: 1;
}
.stat-block__label { font-size: 12px; color: #8A8880; margin-top: 6px; line-height: 1.4; }

/* ── Contacts ── */
.contact-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  background: #fff; border-radius: 20px; padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.contact-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.contact-card__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #FFF4E8; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card__title { font-weight: 700; font-size: 14px; color: #1A1A18; }
.contact-card__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #1A1A18; text-decoration: none;
  padding: 7px 0; transition: color .15s;
}
.contact-card__row:hover { color: #2D6A4F; }
.contact-card__row + .contact-card__row { border-top: 1px solid #F2F0EB; }
.contact-card__row-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: #F2F0EB; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-hours { font-size: 12px; color: #8A8880; margin-top: 8px; line-height: 1.6; }

/* B2B accent card */
.contact-b2b {
  background: linear-gradient(135deg, #1A1A18 0%, #2B2B29 100%);
  border-radius: 20px; padding: 28px 22px; color: #fff;
  position: relative; overflow: hidden;
}
.contact-b2b__deco {
  position: absolute; right: -12px; top: -16px;
  font-size: 96px; font-weight: 900;
  color: rgba(200,135,58,.12); line-height: 1; pointer-events: none; user-select: none;
}
.contact-b2b__label {
  color: #2D6A4F; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
}
.contact-b2b__title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.contact-b2b__sub { font-size: 13px; color: #8A8880; line-height: 1.55; margin-bottom: 18px; }
.contact-b2b__btn {
  display: inline-block; background: #2D6A4F; color: #fff;
  font-size: 13px; font-weight: 700; padding: 10px 20px;
  border-radius: 12px; text-decoration: none; transition: background .15s;
}
.contact-b2b__btn:hover { background: #b5762f; }

/* Map / address card */
.contact-map { background: #F2F0EB; border-radius: 20px; padding: 22px 20px; }
.contact-map__addr { font-size: 15px; font-weight: 700; color: #1A1A18; margin-bottom: 4px; }
.contact-map__hours { font-size: 13px; color: #8A8880; line-height: 1.6; margin-bottom: 16px; }
.contact-map__placeholder {
  background: #E8E5DE; border-radius: 14px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  color: #8A8880; font-size: 13px; gap: 8px;
}

/* ── Delivery ── */
.delivery-tiles { display: grid; gap: 12px; }
@media (min-width: 480px) { .delivery-tiles { grid-template-columns: repeat(3, 1fr); } }
.delivery-tile {
  border-radius: 20px; padding: 20px 16px; color: #fff;
  position: relative; overflow: hidden; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.delivery-tile--courier { background: linear-gradient(135deg, #2D6A4F, #52B788); }
.delivery-tile--cdek    { background: linear-gradient(135deg, #4A7E8C, #5e9aac); }
.delivery-tile--pickup  { background: linear-gradient(135deg, #7B9A2A, #94b832); }
.delivery-tile__top {}
.delivery-tile__name { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.delivery-tile__desc { font-size: 12px; opacity: .85; line-height: 1.5; }
.delivery-tile__price {
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.2); display: inline-block;
  padding: 3px 10px; border-radius: 8px; margin-top: 12px; align-self: flex-start;
}
.delivery-tile__deco {
  position: absolute; right: -8px; bottom: -14px;
  font-size: 72px; opacity: .1; line-height: 1; pointer-events: none; user-select: none;
}

/* Free shipping banner */
.free-ship {
  background: #FFF4E8; border: 2px solid #F5D9B5; border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center;
  gap: 12px; font-size: 14px; color: #8A5A1A; margin-top: 14px;
}
.free-ship__icon { font-size: 20px; flex-shrink: 0; }

/* Payment cards */
.payment-grid { display: grid; gap: 12px; }
@media (min-width: 480px) { .payment-grid { grid-template-columns: repeat(2, 1fr); } }
.payment-card {
  background: #fff; border-radius: 20px; padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.payment-card__title { font-size: 15px; font-weight: 700; color: #1A1A18; margin-bottom: 10px; }
.payment-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.payment-badge {
  font-size: 11px; font-weight: 600; background: #F2F0EB;
  border-radius: 6px; padding: 3px 8px; color: #1A1A18;
}
.payment-card__sub { font-size: 13px; color: #8A8880; line-height: 1.55; }

/* Packaging dark card */
.packaging-card {
  background: #1A1A18; color: #fff; border-radius: 20px;
  padding: 24px 20px; position: relative; overflow: hidden;
}
.packaging-card__deco {
  position: absolute; right: -12px; bottom: -20px;
  font-size: 100px; color: rgba(200,135,58,.08);
  line-height: 1; pointer-events: none; user-select: none;
}
.packaging-card__title { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.packaging-card__row {
  display: flex; gap: 12px; font-size: 13px; color: #8A8880;
  line-height: 1.55; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07);
}
.packaging-card__row:first-of-type { border-top: none; padding-top: 0; }
.packaging-card__dot { color: #2D6A4F; font-size: 16px; flex-shrink: 0; line-height: 1.4; }

/* ── PDP card page — continuous sections ── */
.pdp-card-sections {
  background: #fff;
  margin-top: 8px;
}
.pdp-card-sec {
  padding: 14px 14px;
  border-top: 1px solid #F2F0EB;
}
.pdp-card-sec:first-child { border-top: none; }

/* Delivery & payment two-column block */
.pdp-delivery {
  display: flex;
  gap: 8px;
}
.pdp-delivery__col {
  flex: 1;
  background: #F8F6F2;
  border-radius: 10px;
  padding: 10px 12px;
}
.pdp-delivery__title {
  font-size: 12px;
  font-weight: 800;
  color: #1A1A18;
  margin-bottom: 8px;
}
.pdp-delivery__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pdp-delivery__list li {
  font-size: 12px;
  color: #8A8880;
  line-height: 1.4;
}

/* ── Review form ── */
.review-form { display: flex; flex-direction: column; gap: 8px; }

.review-stars-input {
  display: flex;
  flex-direction: row-reverse;
  gap: 2px;
  margin-bottom: 4px;
}
.review-stars-input input { display: none; }
.review-stars-input label {
  font-size: 28px; color: #D0CEC9; cursor: pointer;
  transition: color .15s;
}
.review-stars-input input:checked ~ label,
.review-stars-input label:hover,
.review-stars-input label:hover ~ label { color: #F5A623; }

.review-input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #E0DDD8; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  color: #1A1A18; background: #fff; outline: none;
}
.review-input:focus { border-color: var(--accent, #2D6A4F); }

.review-error { font-size: 11px; color: #C0392B; margin: 0; }

/* Similar products — 1 col on mobile */
.pdp-similar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ── Contacts page — Swiss Grid ──────────────────────────────── */
.cnt-page { background: #fff; min-height: 60vh; }

.cnt-header {
  padding: 40px 20px 28px;
  border-bottom: 1px solid #E8E5DE;
}
.cnt-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8A8880;
  margin-bottom: 6px;
}
.cnt-title {
  font-size: 32px;
  font-weight: 900;
  color: #1A1A18;
  line-height: 1.1;
}

.cnt-row {
  padding: 24px 20px;
  border-bottom: 1px solid #E8E5DE;
}
.cnt-row__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8A8880;
  margin-bottom: 8px;
}
.cnt-row__phone {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #7AB52A;
  line-height: 1.1;
  margin-bottom: 4px;
  text-decoration: none;
}
.cnt-row__phone:hover { opacity: .82; }
.cnt-row__value {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A18;
  text-decoration: none;
  display: block;
}
.cnt-row__value--sm { font-size: 14px; }
.cnt-row__note {
  font-size: 12px;
  color: #8A8880;
  margin-top: 4px;
}
.cnt-row__inline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.cnt-row__link {
  font-size: 14px;
  font-weight: 600;
  color: #7AB52A;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.cnt-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cnt-map { border-bottom: 1px solid #E8E5DE; height: 220px; }
.cnt-map iframe { height: 220px; }

.cnt-b2b-wrap { padding: 32px 20px 48px; }
.cnt-b2b-ruled {
  border-left: 3px solid #1A1A18;
  padding-left: 20px;
}
.cnt-b2b-ruled__title {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A18;
  margin: 8px 0 12px;
  line-height: 1.2;
}
.cnt-b2b-ruled__desc {
  font-size: 15px;
  color: #8A8880;
  margin-bottom: 16px;
  line-height: 1.55;
}
.cnt-b2b-ruled__email {
  color: #7AB52A;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cnt-b2b-ruled__link {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A18;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cnt-b2b-ruled__link:hover { color: #7AB52A; }

/* Desktop: two-column layout */
@media (min-width: 768px) {
  .cnt-header { padding: 56px 48px 36px; }
  .cnt-page-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
  .cnt-page-left { border-right: 1px solid #E8E5DE; }
  .cnt-page-right { position: sticky; top: 72px; }
  .cnt-row { padding: 28px 48px; }
  .cnt-map { border-bottom: none; height: 100%; min-height: 400px; }
  .cnt-map iframe { height: 100%; min-height: 400px; }
  .cnt-b2b-wrap { padding: 40px 48px 64px; }
}

/* ── Account (личный кабинет) — Swiss Grid ───────────────── */
/* Back link in the .cnt-label slot of sub-pages */
.acc-back {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #8A8880; text-decoration: none;
}
.acc-back:hover { color: #1A1A18; }

/* Stat rows: label left / value right */
.acc-stat {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid #F0EDE8; font-size: 14px; color: #6A6760;
}
.acc-stat:first-child { border-top: 1px solid #F0EDE8; }
.acc-stat:last-child { border-bottom: 0; }
.acc-stat b { color: #2D6A4F; font-weight: 800; font-size: 17px; white-space: nowrap; }

/* Order list — ruled rows */
.acc-list { display: flex; flex-direction: column; }
.acc-order {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #F0EDE8;
  text-decoration: none; color: inherit;
}
.acc-order:first-child { border-top: 1px solid #F0EDE8; }
.acc-order:last-child { border-bottom: 0; }
.acc-order__title { font-size: 15px; font-weight: 700; color: #1A1A18; }
.acc-order__meta { font-size: 12px; color: #8A8880; margin-top: 2px; }
.acc-order__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.acc-order__sum { font-size: 14px; font-weight: 700; color: #1A1A18; white-space: nowrap; }
.acc-order:hover .acc-order__title { color: #2D6A4F; }

/* Action links */
.acc-link {
  display: block; padding: 11px 0; border-bottom: 1px solid #F0EDE8;
  font-size: 14px; font-weight: 600; color: #1A1A18; text-decoration: none;
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.acc-link:hover { color: #2D6A4F; }
.acc-link--danger { color: #8A8880; }
.acc-link--danger:hover { color: #B23A2E; }

/* "See all" inline link */
.acc-seeall { font-size: 13px; font-weight: 600; color: #2D6A4F; text-decoration: none; }
.acc-seeall:hover { text-decoration: underline; }

/* Empty state */
.acc-empty { padding: 28px 0 8px; text-align: center; }
.acc-empty p { font-size: 15px; color: #8A8880; margin-bottom: 16px; }

/* Order detail — meta grid */
.acc-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.acc-meta__label { font-size: 11px; color: #8A8880; margin-bottom: 3px; }
.acc-meta__value { font-size: 15px; font-weight: 600; color: #1A1A18; }
.acc-meta__value--total { font-size: 20px; font-weight: 800; color: #2D6A4F; }
.acc-meta__full { grid-column: 1 / -1; }

/* Order detail — item rows */
.acc-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #F0EDE8;
}
.acc-item:first-child { border-top: 1px solid #F0EDE8; }
.acc-item__thumb {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px;
  object-fit: cover; background: #F2F0EB;
}
.acc-item__ph {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px;
  background: #F2F0EB; display: flex; align-items: center; justify-content: center;
  color: #B7B3AA;
}
.acc-item__body { flex: 1; min-width: 0; }
.acc-item__name { font-size: 14px; font-weight: 600; color: #1A1A18; }
.acc-item__opts { font-size: 12px; color: #8A8880; margin-top: 2px; }
.acc-item__price { text-align: right; flex-shrink: 0; }
.acc-item__qty { font-size: 12px; color: #8A8880; }
.acc-item__total { font-size: 14px; font-weight: 700; color: #1A1A18; margin-top: 2px; }

/* Total strip */
.acc-total {
  display: flex; align-items: center; justify-content: space-between;
  background: #F2F0EB; border-radius: 12px; padding: 14px 16px; margin-top: 16px;
}
.acc-total__label { font-size: 14px; font-weight: 700; color: #1A1A18; }
.acc-total__value { font-size: 20px; font-weight: 800; color: #2D6A4F; }

/* Profile form fields */
.acc-form input[type="text"],
.acc-form input[type="email"],
.acc-form input[type="tel"],
.acc-form textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1px solid #E5E3DE; border-radius: 0.75rem;
  font-size: 0.875rem; color: #1A1A18; background: #FAFAF8;
  outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.acc-form input:focus, .acc-form textarea:focus {
  border-color: #2D6A4F; box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
.acc-form textarea { resize: vertical; min-height: 80px; }
.acc-field { margin-bottom: 18px; }
.acc-field:last-child { margin-bottom: 0; }
.acc-field__label { display: block; font-size: 13px; font-weight: 600; color: #1A1A18; margin-bottom: 6px; }
.acc-field__err { margin-top: 5px; font-size: 12px; color: #B23A2E; }
.acc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acc-form-grid .acc-field { margin-bottom: 0; }
.acc-field--full { grid-column: 1 / -1; }
.acc-form-actions { display: flex; align-items: center; gap: 18px; padding: 20px; }

@media (max-width: 600px) {
  .acc-meta-grid { grid-template-columns: 1fr 1fr; }
  .acc-form-grid { grid-template-columns: 1fr; }
}

/* ── Cart page ── */
.card__del {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  border: none; border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: #8A8880; transition: all .18s;
}
.card__del:hover { background: #fff; color: #c0392b; }

.cart-totals-bar {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 10px rgba(0,0,0,.07);
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 10px;
}
.cart-totals-bar .t-row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-totals-bar .t-lbl { font-size: 12px; color: #8A8880; }
.cart-totals-bar .t-sum { font-size: 26px; font-weight: 900; color: #1A1A18; letter-spacing: -.02em; }
.cart-totals-bar .t-cta {
  display: block; background: #2D6A4F; color: #fff; border: none;
  border-radius: 14px; padding: 15px; font-size: 15px; font-weight: 700;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background .18s; box-sizing: border-box;
}
.cart-totals-bar .t-cta:hover { background: #1B4332; }

/* ── Cart M2-B ─────────────────────────────── */
#cart-totals { animation: ktFadeIn .22s ease; }
@keyframes ktFadeIn { from { opacity: .4; } to { opacity: 1; } }
.kbox { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 16px rgba(26,26,24,.07); }
.kitem { padding: 12px 13px 12px 12px; border-bottom: 1px solid #F0EDE8; border-left: 5px solid #4A7E8C; }
.kitem:last-child { border-bottom: none; }
.kitem[data-cat="espresso"] { border-left-color: #8B7355; }
.kitem[data-cat="flavored"] { border-left-color: #8B2020; }
.kitem[data-cat="drip"]     { border-left-color: #7B9A2A; }
.kitem__cat { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4A7E8C; margin-bottom: 4px; }
.kitem[data-cat="espresso"] .kitem__cat { color: #8B7355; }
.kitem[data-cat="flavored"] .kitem__cat { color: #8B2020; }
.kitem[data-cat="drip"]     .kitem__cat { color: #7B9A2A; }
.kitem__row1 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.kitem__name { font-size: 14px; font-weight: 800; color: #1A1A18; flex: 1; min-width: 0; line-height: 1.3; }
.kitem__price { font-size: 15px; font-weight: 900; color: #2D6A4F; flex-shrink: 0; }
.kitem__del { background: none; border: none; color: #D0CDC8; font-size: 14px; cursor: pointer; padding: 0 0 0 8px; line-height: 1; flex-shrink: 0; transition: color .15s; }
.kitem__del:hover { color: #c0392b; }
.kitem__row2 { display: flex; align-items: center; }
.kitem__chip { font-size: 13px; font-weight: 600; color: #8A8880; flex: 1; }
.kitem__stepper { display: flex; align-items: center; background: #F2F0EB; border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.kitem__stepper button { width: 32px; height: 32px; background: none; border: none; font-size: 17px; font-weight: 400; color: #1A1A18; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.kitem__stepper button:hover { background: #E8E5DE; }
.kitem__stepper span { font-size: 13px; font-weight: 700; color: #1A1A18; min-width: 28px; text-align: center; }

/* ══════════════════════════════════════════════════════════
   КАТАЛОГ — десктоп-раскладка с боковыми фильтрами (≥1024px)
   База: всё скрыто → мобильная/планшетная версия (<1024px) не меняется
══════════════════════════════════════════════════════════ */
.cat-sidebar { display: none; }
.cside-resulthead { display: none; }

@media (min-width: 1024px) {
  /* Прячем мобильные элементы фильтрации */
  .cat-tabbar { display: none; }
  .filter-row { display: none; }
  .filter-reset-bottom { display: none !important; }

  /* Двухколоночная раскладка: сайдбар + сетка */
  .cat-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 24px;
  }

  .cat-sidebar {
    display: block;
    position: sticky; top: 80px;
    background: #fff;
    border: 1px solid #E8E5DE;
    border-radius: 16px;
    padding: 18px 16px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
  /* Группы фильтров — сворачивающиеся выпадающие списки (<details>) */
  .cside-group { margin: 0; border-top: 1px solid #F0EDE8; }
  .cat-sidebar > .cside-group:first-of-type { border-top: none; }
  .cside-title {
    font-family: 'Nunito', sans-serif;
    font-size: 12px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #8A8880;
    padding: 12px 6px;
    cursor: pointer; user-select: none; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    transition: color .15s;
  }
  .cside-title::-webkit-details-marker { display: none; }
  .cside-title:hover { color: #1A1A18; }
  .cside-title::after {
    content: ''; width: 7px; height: 7px; flex-shrink: 0;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg); transition: transform .2s;
  }
  details.cside-group[open] > .cside-title::after { transform: translateY(2px) rotate(-135deg); }
  details.cside-group > .cside-opt:last-child { margin-bottom: 8px; }
  .cside-opt {
    display: block; width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 14px; font-weight: 600; color: #1A1A18;
    text-decoration: none;
    padding: 8px 10px; border-radius: 9px;
    transition: background .15s, color .15s;
  }
  .cside-opt:hover { background: #F2F0EB; }
  .cside-opt.active { background: #1A1A18; color: #fff; font-weight: 700; }

  .cside-reset {
    margin-top: 4px; width: 100%;
    background: none; border: 1px solid #E8E5DE; cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 13px; font-weight: 700; color: #8A8880;
    padding: 9px; border-radius: 10px;
    transition: border-color .15s, color .15s;
  }
  .cside-reset:hover { border-color: #8A8880; color: #1A1A18; }

  .cside-resulthead { display: block; margin-bottom: 14px; }

  /* Чуть плотнее сетка внутри основной колонки на широких экранах */
  .cat-main .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (min-width: 1440px) {
  .cat-main .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ══════════════════════════════════════════════════════════
   КОРЗИНА — десктоп: 2 колонки (товары + липкий итог), ≥1024px
   База повторяет прежние инлайн-значения → мобильная версия не меняется
══════════════════════════════════════════════════════════ */
.cart-page { max-width: 480px; margin: 0 auto; padding: 20px 16px 48px; }

@media (min-width: 1024px) {
  .cart-page { max-width: 1080px; padding: 32px 32px 64px; }
  .cart-page > h1 { font-size: 30px; margin-bottom: 22px; }

  .cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
  }
  .cart-layout .kbox { margin-bottom: 0 !important; }
  .cart-summary-col { position: sticky; top: 90px; }
  .cart-summary-col .cart-totals-bar { margin-top: 0; }
}

/* ══════════════════════════════════════════════════════════
   СТРАНИЦА ТОВАРА — десктоп-полировка (≥1024px)
   Базовая ПК-вёрстка (.pdp-desktop @768px) не меняется → планшет как был
══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .pdp-desktop {
    max-width: 1120px;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    padding: 28px 24px;
    align-items: start;
  }
  /* Фото-колонка остаётся на месте при прокрутке */
  .pdp-desktop > div:first-child { position: sticky; top: 90px; }

  /* Похожие товары — 4 в ряд на ПК (только на странице товара) */
  .pdp-similar-wrap .catalog-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* Страница товара — блоки Описание/Характеристики/Доставка на ПК (≥1024px) */
.pdp-d-sections { display: none; }
@media (min-width: 1024px) {
  .pdp-d-sections { display: block; }
  .pdp-d-sections__inner { max-width: 1120px; margin: 0 auto; padding: 4px 24px 8px; }
  .pdp-d-block { margin-bottom: 28px; }
  .pdp-d-block__title { font-size: 20px; font-weight: 800; color: #1A1A18; margin-bottom: 12px; letter-spacing: -.01em; }
  .pdp-d-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}

/* ══════════════════════════════════════════════════════════
   СТРАНИЦА ТОВАРА — на ПК показываем мобильную карточку по центру
   (десктопную 2-колоночную вёрстку и дубль «Похожих» отключаем)
══════════════════════════════════════════════════════════ */
.pdp-desktop      { display: none !important; }  /* старая ПК-вёрстка не используется */
.pdp-d-sections   { display: none !important; }  /* её доп. блоки тоже */

@media (min-width: 768px) {
  .pdp-mobile { max-width: 560px; margin: 0 auto; }
  /* широкий дубль «Похожих» прячем только на ПК (на мобиле всё как было) */
  .pdp-similar-wrap { display: none !important; }
}

/* ── ПК (≥1024): фото+покупка слева, Описание+Характеристики справа,
      Доставка/Отзывы и Похожие — снизу на всю ширину. Единые карточки. ── */
@media (min-width: 1024px) {
  .pdp-wrap { padding-top: 28px; }

  .pdp-mobile {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;  /* текст слева, карточка покупки справа */
    gap: 24px 28px;
    align-items: stretch;   /* карточки в ряду одной высоты — нижние края совпадают */
  }

  /* Карточка покупки (справа) и панель Описание+Характеристики (слева) — единый стиль */
  .pdp-mobile > .card,
  .pdp-mobile > .pdp-card-sections:not(.pdp-sections-rest) {
    background: #fff;
    border-radius: 20px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.06) !important;
    margin-top: 0;
  }
  .pdp-mobile > .card { grid-column: 2; grid-row: 1; position: sticky; top: 88px; align-self: start; }
  .pdp-mobile > .pdp-card-sections:not(.pdp-sections-rest) { grid-column: 1; grid-row: 1; padding: 6px 26px; }

  /* Нижний ряд: прозрачный контейнер, каждая секция = отдельная карточка */
  .pdp-mobile > .pdp-sections-rest {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px; /* совпадает с верхним рядом — кромки в линию */
    gap: 24px 28px;
    align-items: stretch;   /* Доставка и Отзывы одной высоты — выровнены по низу */
    background: transparent;
    margin-top: 0;
  }
  .pdp-sections-rest > .pdp-card-sec {
    background: #fff;
    border-top: none !important;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    padding: 22px 26px;
  }
  /* Доставка (1-я секция) — справа под карточкой; Отзывы (2-я) — слева под описанием */
  .pdp-sections-rest > .pdp-card-sec:nth-child(1) { grid-column: 2; grid-row: 1; }
  .pdp-sections-rest > .pdp-card-sec:nth-child(2) { grid-column: 1; grid-row: 1; }
  /* Внутренний белый бокс в «Доставке» выпрямляем — карточкой служит сама секция */
  .pdp-sections-rest .pdp-card-sec > div:not(.pdp-section__title) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* Дубль «Похожих» в правой колонке прячем */
  .pdp-card-sec--similar { display: none; }

  /* Широкий блок «Похожих» снизу — на всю ширину, 4 в ряд */
  .pdp-similar-wrap { display: block !important; max-width: 1080px; margin: 0 auto; padding-top: 4px; }
  .pdp-similar-wrap .catalog-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* ══════════════════════════════════════════════════════════
   ДОГОВОР ОФЕРТЫ / правовой документ — оформление (.ofr-*)
══════════════════════════════════════════════════════════ */
.ofr-wrap { max-width: 820px; margin: 0 auto; padding: 40px 16px 72px; }

/* Шапка */
.ofr-hero { margin-bottom: 28px; }
.ofr-label {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #2D6A4F; margin-bottom: 10px;
}
.ofr-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 30px; font-weight: 800; line-height: 1.15; color: #1A1A18; margin-bottom: 8px;
}
.ofr-subtitle { font-size: 15px; color: #8A8880; line-height: 1.5; margin-bottom: 16px; }
.ofr-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F2F0EB; color: #1A1A18; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}
.ofr-pill svg { width: 15px; height: 15px; color: #2D6A4F; }

/* Преамбула */
.ofr-lead {
  font-size: 15px; line-height: 1.7; color: #33332F;
  padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #E8E5DE;
}
.ofr-lead p + p { margin-top: 12px; }

/* Оглавление */
.ofr-toc {
  background: #FAFAF8; border: 1px solid #E8E5DE; border-radius: 18px;
  padding: 20px 22px; margin-bottom: 40px;
}
.ofr-toc__title {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #8A8880; margin-bottom: 14px;
}
.ofr-toc__grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.ofr-toc__link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #1A1A18; text-decoration: none;
  transition: background .15s, color .15s;
}
.ofr-toc__link:hover { background: #fff; color: #2D6A4F; }
.ofr-toc__n {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  background: #EDEAE3; color: #2D6A4F; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.ofr-toc__link:hover .ofr-toc__n { background: #2D6A4F; color: #fff; }

/* Разделы */
.ofr-section { scroll-margin-top: 90px; padding-top: 8px; margin-bottom: 34px; }
.ofr-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ofr-badge {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
  background: #2D6A4F; color: #fff; font-size: 14px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(45,106,79,.25);
}
.ofr-badge--sym { font-size: 18px; }
.ofr-h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 19px; font-weight: 800; color: #1A1A18; line-height: 1.25; margin: 0;
}
.ofr-p {
  font-size: 14.5px; line-height: 1.7; color: #33332F;
  margin: 0 0 10px; padding-left: 44px;
}
.ofr-num { font-weight: 700; color: #1A1A18; margin-right: 2px; }
.ofr-link { color: #2D6A4F; text-decoration: underline; }
.ofr-link:hover { color: #1B4332; }

/* Реквизиты */
.ofr-req {
  margin-left: 44px; border: 1px solid #E8E5DE; border-top: 3px solid #2D6A4F;
  border-radius: 14px; overflow: hidden;
}
.ofr-req__row {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 12px 16px; border-bottom: 1px solid #F0EDE8;
}
.ofr-req__row:last-child { border-bottom: none; }
.ofr-req__row:nth-child(even) { background: #FAFAF8; }
.ofr-req__key {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #8A8880;
}
.ofr-req__val { font-size: 14px; color: #1A1A18; line-height: 1.5; }

/* Нижний CTA */
.ofr-cta {
  margin-top: 48px; background: #F2F0EB; border-radius: 18px;
  padding: 30px 24px; text-align: center;
}
.ofr-cta__title { font-family: 'DM Sans', system-ui, sans-serif; font-size: 19px; font-weight: 800; color: #1A1A18; margin-bottom: 6px; }
.ofr-cta__sub { font-size: 14px; color: #8A8880; margin-bottom: 18px; }
.ofr-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ofr-btn {
  display: inline-block; font-size: 14px; font-weight: 700;
  padding: 11px 22px; border-radius: 12px; text-decoration: none; transition: all .15s;
}
.ofr-btn--primary { background: #2D6A4F; color: #fff; }
.ofr-btn--primary:hover { background: #1B4332; }
.ofr-btn--ghost { background: #fff; color: #1A1A18; border: 1px solid #E5E3DE; }
.ofr-btn--ghost:hover { background: #FAFAF8; }

@media (min-width: 1024px) {
  .ofr-wrap { padding: 56px 24px 88px; }
  .ofr-title { font-size: 40px; }
  .ofr-toc__grid { grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .ofr-req__row {
    grid-template-columns: minmax(200px, 38%) 1fr; gap: 16px;
    align-items: baseline; padding: 13px 18px;
  }
  .ofr-req__key { padding-top: 1px; }
}

/* .ofr-* — дополнения: маркированные списки и цитаты-рекомендации */
.ofr-ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 44px; }
.ofr-li {
  position: relative; padding-left: 18px; margin-bottom: 7px;
  font-size: 14.5px; line-height: 1.65; color: #33332F;
}
.ofr-li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: #2D6A4F;
}
.ofr-quote {
  margin: 0 0 12px 44px; padding: 14px 18px;
  background: #FAFAF8; border-left: 3px solid #2D6A4F; border-radius: 0 12px 12px 0;
  font-size: 14px; line-height: 1.65; color: #33332F; font-style: italic;
}
.ofr-quote__cap {
  display: block; font-style: normal; font-weight: 700; font-size: 12px;
  letter-spacing: .03em; text-transform: uppercase; color: #8A8880; margin-bottom: 6px;
}

/* Чекбоксы согласий (регистрация / чекаут) */
.consent-wrap { margin: 4px 0 16px; }
.consent {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.consent input[type="checkbox"] {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  accent-color: #2D6A4F; cursor: pointer;
}
.consent label {
  flex: 1; min-width: 0;
  font-size: 13px; line-height: 1.5; color: #55544F; cursor: pointer;
}
.consent label a { color: #2D6A4F; text-decoration: underline; }
.consent label a:hover { color: #1B4332; }
.consent__err { margin: -4px 0 10px 28px; font-size: 12px; color: #DC2626; }

/* Заметный блок согласий (шаг «Контакты») */
.consent-box {
  margin-top: 18px; padding: 14px 16px;
  background: #FAFAF8; border: 1px solid #E8E5DE; border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.consent-box .consent:last-child { margin-bottom: 0; }
.consent--err { position: relative; flex-wrap: wrap; }
.consent--err::before {
  content: ''; position: absolute; left: -8px; right: -8px; top: -6px; bottom: -4px;
  border: 1.5px dashed #E5736F; border-radius: 10px; pointer-events: none;
}
.consent--err .co__val-err {
  flex-basis: 100%; margin: 6px 0 0 30px; color: #DC2626;
}

/* Валидация полей телефон/почта */
input.is-err { border-color: #E05C5C !important; }
input.is-ok  { border-color: #2D6A4F !important; }
.fld-err-msg { display: block; margin-top: 4px; font-size: 12px; color: #DC2626; }
.fld-hint { margin-top: 6px; padding: 7px 11px; font-size: 12.5px; line-height: 1.45;
  color: #6B5A2E; background: #FBF7EC; border: 1px solid #ECE0C2; border-radius: 9px; }
.fld-hint b { color: #1A1A18; }
.fld-hint button { margin-left: 6px; padding: 0; border: none; background: none;
  color: #2D6A4F; font-weight: 700; font-size: 12.5px; cursor: pointer;
  text-decoration: underline; font-family: inherit; }

/* Нет в наличии — карточка заблюрена и недоступна */
.card--soldout > *:not(.card__soldout) {
  filter: blur(2.5px); opacity: .5;
  pointer-events: none; user-select: none;
}
.card__soldout {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.card__soldout span {
  background: #1A1A18; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  padding: 9px 20px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
