:root {
  /* Jalousie-Moscow storefront + Hobyt-like product page accents */
  --color-ink: #1c1b19;
  --color-paper: #ffffff;
  --color-paper-soft: #f6f5f2;
  --color-line: #e8e4dc;
  --color-muted: #6f6a63;
  --color-accent: #e67a00;
  --color-accent-hover: #cc6b00;
  --color-ok: #2f7a45;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 2rem);
  --pd-max: 1180px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.5;
}

/* Subtle rounding ? buttons, forms, bordered UI */
button,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea,
.btn,
.btn-sm,
.btn-ghost,
.home-btn,
a.checkout-back {
  border-radius: var(--radius-md);
}

.pd-qty button,
.pd-qty input,
.cart-qty button,
.site-search-btn,
.home-hero-dots button,
.catalog-btn,
.section-nav a,
.cart-count-label,
.home-hit-mark,
.article-tabs span {
  border-radius: 0;
}

.catalog-panel,
.site-search-suggest,
.pd-qty,
.pd-thumb,
.pd-stage,
.pd-fav-btn,
.pd-sticky-card,
.pd-side-card,
.pd-side-card-media,
.pd-bought-card,
.pd-bought-card-media,
.pd-recent,
.pd-save,
.ai-widget-panel,
.cat-side-nav a,
.cat-filter-reset,
.pcard-media,
.cart-row-img,
.metrics div,
.kanban-col,
.kanban-card,
.home-cat-grid,
.home-blog-featured,
.home-blog-card,
.home-about-media,
.cko-dialog,
.auth-page form,
.shop-form input:not([type="checkbox"]):not([type="radio"]),
.shop-form select,
.shop-form textarea {
  border-radius: var(--radius-md);
}

.pd-qty {
  overflow: hidden;
}

.cookie-banner {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.header-top {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) minmax(16rem, 1.6fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.85rem var(--space) 0.65rem;
}

.brand {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--color-ink);
  max-width: 26rem;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(180px, 42vw);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--color-muted);
  font-weight: 500;
}

.header-aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}

.header-contacts {
  display: grid;
  gap: 0.1rem;
  text-align: right;
  line-height: 1.25;
}

.header-contacts a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.header-contacts span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-account {
  align-items: flex-start;
  position: relative;
}

.header-account-main {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.header-account-main:hover {
  color: var(--color-accent);
}

.header-account-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.header-account > a {
  color: inherit;
  text-decoration: none;
}

.header-account > a:hover {
  color: var(--color-accent);
}

.header-account-text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.2;
  max-width: 14rem;
}

.header-account-greet {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.header-account-text a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
}

.header-account-text a:hover {
  color: var(--color-accent);
}

.header-icon-mark {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  display: block;
}

svg.header-icon-mark {
  overflow: visible;
}

.header-icon-heart {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.header-icon-heart::before {
  content: "♥";
  font-size: 1.05rem;
  line-height: 1;
  color: #c0392b;
}

.header-fav {
  position: relative;
  padding-right: 0.35rem;
}

.header-fav-badge {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: var(--radius-pill);
  background: #e8b4b4;
  color: #5a2020;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-cart {
  position: relative;
  padding-right: 0.35rem;
}

.header-cart-badge {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: var(--radius-pill);
  background: #cfcfcf;
  color: #222;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-nav-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0 var(--space) 0.55rem;
  border-top: 1px solid var(--color-line);
}

.header-promo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.35rem var(--space) 0.65rem;
}

.header-promo-text {
  display: inline-block;
  max-width: 100%;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-accent) 8%, #fff);
  color: var(--color-ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.order-discount-promo {
  padding: 0.75rem var(--space) 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  background: #fff;
}

.order-discount-promo-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.order-discount-promo-img {
  display: block;
  max-width: min(100%, 420px);
  height: auto;
  margin: 0 auto 0.65rem;
}

.order-discount-promo-box {
  width: min(50%, 100%);
  margin: 0.65rem auto 0;
  padding: 0.75rem 1rem;
  border: 2px solid #e53935;
  border-radius: 10px;
  background: #f5f5f5;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--color-ink);
}

.order-discount-promo-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  color: #e53935;
}

.order-discount-promo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-discount-promo-list li {
  margin: 0.15rem 0;
}

.order-discount-promo-list .pct-5 {
  color: #ffc107;
  font-weight: 800;
}

.order-discount-promo-list .pct-10 {
  color: orange;
  font-size: 1.2em;
  font-weight: 800;
}

.order-discount-promo-list .pct-15 {
  color: #e53935;
  font-size: 1.45em;
  font-weight: 800;
}

.order-discount-promo-note {
  margin: 0.45rem 0 0;
  font-weight: 600;
}

@media (max-width: 720px) {
  .order-discount-promo-box {
    width: 100%;
  }
}

.store-notice {
  padding: 0.85rem var(--space) 1rem;
  background:
    linear-gradient(180deg, #fff9f2 0%, var(--color-paper-soft) 100%);
  border-bottom: 1px solid var(--color-line);
}

.store-notice-inner {
  width: min(var(--pd-max), 100%);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.1rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--color-line));
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px rgba(28, 27, 25, 0.06);
  text-align: center;
}

.store-notice-inner::before {
  content: "";
  display: block;
  height: 3px;
  margin: -1rem -1.25rem 0.85rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--color-accent), #f0b35c 55%, var(--color-accent));
}

.store-notice-title {
  margin: 0 0 0.65rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.store-notice-inner p {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3a3834;
  text-align: center;
}

.store-notice-inner p:last-child {
  margin-bottom: 0;
}

.store-notice-warn {
  color: #b42318;
  font-weight: 700;
}

.store-notice-ok {
  color: var(--color-ok);
  font-weight: 700;
}

.store-notice-foot {
  margin-top: 0.35rem;
  color: var(--color-muted);
}

.store-notice-countdown-line {
  margin-bottom: 0.45rem !important;
}

.store-notice-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.75rem;
}

.store-notice-cal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.85rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, #fffefb 0%, #f4efe6 100%);
  border: 1px solid #d9d0c3;
  box-shadow:
    0 1px 0 #fff inset,
    0 2px 0 #ebe4d8,
    0 4px 0 #e3dbce,
    0 6px 10px rgba(28, 27, 25, 0.12);
  overflow: hidden;
}

.store-notice-cal-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.55rem;
  background: linear-gradient(180deg, #c0392b 0%, #a93226 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.store-notice-cal-top::before,
.store-notice-cal-top::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
}

.store-notice-cal-top::before {
  left: 0.35rem;
}

.store-notice-cal-top::after {
  right: 0.35rem;
}

.store-notice-cal-num {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #2b2926;
  font-variant-numeric: tabular-nums;
}

.store-notice-cal::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 1px;
  background: color-mix(in srgb, #c9bfb0 70%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.store-notice-cal-word {
  margin-left: 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ok);
}

.catalog-menu {
  position: static;
  flex: 0 0 auto;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem 0.15rem;
  border: 0;
  border-bottom: 3px solid var(--color-accent);
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.catalog-btn-bars,
.catalog-btn-bars::before,
.catalog-btn-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.catalog-btn-bars {
  position: relative;
}

.catalog-btn-bars::before {
  position: absolute;
  top: -5px;
}

.catalog-btn-bars::after {
  position: absolute;
  top: 5px;
}

.catalog-panel {
  position: absolute;
  top: calc(100% + 0.15rem);
  left: var(--space);
  min-width: 14rem;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 28px rgba(28, 27, 25, 0.08);
  display: grid;
  z-index: 50;
}

.catalog-panel[hidden] {
  display: none !important;
}

.catalog-panel a {
  padding: 0.7rem 0.9rem;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
  font-weight: 600;
}

.catalog-panel a:hover {
  background: var(--color-paper-soft);
  color: var(--color-accent);
}

.catalog-panel--mega {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0;
  width: min(72rem, calc(100vw - 2 * var(--space)));
  max-height: min(78vh, 34rem);
  overflow: auto;
  padding: 0.35rem 0;
}

.catalog-mega-col {
  padding: 0.75rem 1rem 1rem;
  border-right: 1px solid var(--color-line);
}

.catalog-mega-col:last-child {
  border-right: 0;
}

.catalog-mega-parent {
  display: block;
  padding: 0.35rem 0 0.55rem !important;
  border-bottom: 0 !important;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.catalog-mega-parent:hover {
  background: transparent !important;
  color: var(--color-accent);
}

.catalog-mega-child {
  display: block;
  padding: 0.32rem 0 0.32rem 0.15rem !important;
  border-bottom: 0 !important;
  font-weight: 500 !important;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.catalog-mega-child:hover {
  background: transparent !important;
  color: var(--color-accent);
}

.catalog-panel--tree {
  min-width: 18rem;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}

.catalog-panel-group {
  border-bottom: 1px solid var(--color-line);
}

.catalog-panel-group:last-child {
  border-bottom: 0;
}

.catalog-panel-parent {
  font-weight: 700;
}

.catalog-panel-child {
  padding-left: 1.35rem !important;
  font-weight: 500;
  font-size: 0.92rem;
}

.mobile-catalog-root {
  font-weight: 700;
}

.mobile-catalog-child {
  padding-left: 1rem;
  font-size: 0.95rem;
  opacity: 0.92;
}

.section-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0;
  padding: 0.45rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-right: 1px solid var(--color-line);
  white-space: nowrap;
}

.section-nav a:last-child {
  border-right: 0;
}

.section-nav a:hover {
  color: var(--color-accent);
}

.site-search {
  position: relative;
  width: 100%;
}

.site-search form {
  display: flex;
  align-items: stretch;
  background: var(--color-paper-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.site-search input {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 0.7rem 0.9rem;
  border: 0;
  background: transparent;
  font: inherit;
}

.site-search-btn {
  margin: 0;
  width: 2.75rem;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.site-search-btn::before {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.8px solid var(--color-muted);
  border-radius: 50%;
  top: 0.7rem;
  left: 0.75rem;
}

.site-search-btn::after {
  content: "";
  position: absolute;
  width: 0.45rem;
  height: 1.8px;
  background: var(--color-muted);
  top: 1.45rem;
  left: 1.4rem;
  transform: rotate(45deg);
}

.site-search-suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  display: grid;
  max-height: 20rem;
  overflow: auto;
}

.site-search-suggest a {
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}

.site-search-suggest a:hover {
  background: var(--color-paper-soft);
}

.site-search-suggest span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .header-top {
    grid-template-columns: 1fr;
  }

  .header-aside {
    justify-content: flex-start;
  }

  .header-contacts {
    text-align: left;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.18em;
}

.breadcrumbs a:hover {
  color: var(--color-accent-hover);
}

.muted {
  color: var(--color-muted);
}

/* ?? Product page (Hobyt-inspired) ?? */
.pd {
  width: min(var(--pd-max), calc(100% - 2 * var(--space)));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.pd-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  background: #efe8dc;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.pd-title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.pd-gallery {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 28rem;
  overflow: auto;
}

.pd-thumb {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  background: var(--color-paper-soft);
  cursor: pointer;
}

.pd-thumb.is-active,
.pd-thumb:hover {
  border-color: var(--color-accent);
}

.pd-thumb img {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
}

.pd-stage {
  position: relative;
  background: var(--color-paper-soft);
  min-height: 22rem;
}

.pd-zoom-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.pd-stage img,
.pd-zoom-open img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: contain;
  background: #fff;
}

.pd-loupe-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.pd-loupe-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pd-loupe-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.pd-loupe-icon::after {
  content: "";
  position: absolute;
  width: 0.45rem;
  height: 2px;
  background: currentColor;
  right: -0.35rem;
  bottom: -0.15rem;
  transform: rotate(45deg);
  border-radius: 1px;
}

.pd-lightbox {
  border: 0;
  padding: 0;
  width: min(960px, calc(100vw - 1.5rem));
  max-width: 960px;
  max-height: calc(100vh - 1.5rem);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.pd-lightbox[open] {
  display: flex;
  flex-direction: column;
}

.pd-lightbox::backdrop {
  background: rgba(20, 18, 16, 0.72);
}

.pd-lightbox-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-line);
  background: #faf9f7;
}

.pd-lightbox-zoom {
  display: inline-flex;
  gap: 0.35rem;
}

.pd-lightbox-zoom button,
.pd-lightbox-loupe,
.pd-lightbox-close {
  margin: 0;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pd-lightbox-zoom button.is-active,
.pd-lightbox-loupe[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: #fff4e8;
  color: var(--color-accent-hover);
}

.pd-lightbox-loupe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pd-lightbox-loupe .pd-loupe-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.pd-lightbox-close {
  margin-left: auto;
  width: 2.25rem;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.pd-lightbox-stage {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: min(70vh, 560px);
  cursor: default;
}

.pd-lightbox-stage.is-zoomed {
  cursor: zoom-in;
}

.pd-lightbox-stage.is-loupe {
  cursor: none;
}

.pd-lightbox-stage img {
  display: block;
  width: 100%;
  height: min(70vh, 560px);
  object-fit: contain;
  user-select: none;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.pd-lightbox-lens {
  position: absolute;
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  background-repeat: no-repeat;
  z-index: 2;
}

.pd-lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.pd-lightbox-thumb {
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  background: var(--color-paper-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex: 0 0 auto;
}

.pd-lightbox-thumb.is-active,
.pd-lightbox-thumb:hover {
  border-color: var(--color-accent);
}

.pd-lightbox-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.pd-stage-empty {
  display: grid;
  place-items: center;
  color: var(--color-muted);
}

.pd-stage-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  background: rgba(20, 18, 16, 0.82);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.3;
}

.pd-buy {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.pd-buy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.pd-buy-meta a {
  color: var(--color-ink);
}

.pd-short {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.pd-short a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.pd-price-block {
  display: grid;
  gap: 0.35rem;
}

.pd-price,
.pd-sticky-price {
  font-size: 1.65rem;
  font-weight: 700;
}

.pd-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.pd-price-old {
  font-size: 1.05rem;
  color: #c81e1e;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.pd-price.is-deal {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok);
}

.pd-save {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #e8f7ec;
  color: var(--color-ok);
  font-size: 0.85rem;
  font-weight: 700;
}

.pd-stock {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.pd-stock.is-in {
  color: var(--color-ok);
}

.pd-stock.is-in::before {
  content: "? ";
}

.pd-stock.is-out {
  color: #a33;
}

.pd-cart-form {
  display: grid;
  gap: 0.75rem;
}

.pd-qty {
  display: inline-grid;
  grid-template-columns: 2.5rem 3.5rem 2.5rem;
  border: 1px solid var(--color-line);
  width: max-content;
}

.pd-qty button,
.pd-qty input {
  margin: 0;
  border: 0;
  background: #fff;
  height: 2.75rem;
  text-align: center;
  font: inherit;
}

.pd-qty button {
  cursor: pointer;
  background: var(--color-paper-soft);
  color: var(--color-ink);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.pd-qty input {
  width: 100%;
  max-width: none;
  padding: 0;
  -moz-appearance: textfield;
}

.pd-qty input::-webkit-outer-spin-button,
.pd-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.pd-add {
  margin: 0;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pd-add:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.pd-add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pd-buy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.85rem;
  gap: 0.55rem;
  align-items: stretch;
}

.pd-fav-btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  min-height: 2.85rem;
  padding: 0;
  border: 1px solid var(--color-line);
  background: #fff;
  color: #b45a5a;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pd-fav-btn:hover,
.pd-fav-btn.is-active {
  border-color: #d49a9a;
  background: #fff5f5;
  color: #c0392b;
}

.pd-fav-btn .icon-heart {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  overflow: visible;
}

.pd-fav-btn.is-active .icon-heart {
  fill: currentColor;
  stroke: currentColor;
}

.pd-fav-btn:hover .icon-heart {
  fill: currentColor;
}

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.7fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.pd-block {
  margin-bottom: 1.75rem;
}

.pd-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.useful-links {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  background: #f7f3eb;
  border: 1px solid #e8dfd0;
  border-radius: var(--radius-md, 8px);
}

.useful-links h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.useful-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.useful-links-list a {
  color: #6b4a1e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.useful-links-list a:hover {
  color: #e67a00;
}

.pd-description {
  color: var(--color-ink);
  line-height: 1.55;
}

.pd-description p {
  margin: 0 0 0.75rem;
}

.pd-description p:last-child {
  margin-bottom: 0;
}

.pd-description.is-collapsed {
  max-height: 9.5rem;
  overflow: hidden;
  mask-image: linear-gradient(#000 60%, transparent);
}

.pd-link-btn {
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pd-attrs {
  margin: 0;
  display: grid;
}

.pd-attrs > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-line);
}

.pd-attrs dt {
  color: var(--color-muted);
  font-weight: 500;
}

.pd-attrs dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.pd-reviews {
  display: grid;
  gap: 1.1rem;
}

.pd-review {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
}

.pd-review-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efe8dc;
  font-weight: 700;
}

.pd-review header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.25rem;
}

.pd-review header span {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.pd-review p {
  margin: 0;
}

.pd-cat-list {
  margin: 0;
  padding: 0 0 0 40px;
  list-style: disc;
  display: grid;
  gap: 0.45rem;
}

.pd-cat-list a {
  color: var(--color-accent, #c45c00);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.pd-cat-list a:hover {
  color: var(--color-ink, #1a1a1a);
}

.pd-side-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pd-side-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  background: var(--color-paper-soft);
  padding: 0.55rem;
}

.pd-side-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}

.pd-side-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-side-card-media .pcard-badges {
  top: 0.35rem;
  left: 0.35rem;
}

.pd-side-card-media .pcard-badge {
  font-size: 0.72rem;
  padding: 0.28rem 0.5rem;
}

.pd-side-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-side-card-price {
  font-weight: 700;
  font-size: 0.88rem;
}

.pd-side-card-price.is-deal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok);
}

.pd-side-card-old {
  color: #c81e1e;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.pd-side-card-save {
  display: inline-flex;
  width: fit-content;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #e8f7ec;
  color: var(--color-ok);
  font-size: 0.75rem;
  font-weight: 700;
}

.pd-sticky-card {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: calc((100% - 0.75rem) / 2);
  padding: 0.55rem;
  border: 1px solid var(--color-line);
  background: #fff;
  text-align: left;
  margin-top: 0.75rem;
}

.pd-sticky-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-sticky-card .pd-stock,
.pd-sticky-card .pd-sticky-price {
  margin: 0;
  font-size: 0.88rem;
}

.pd-sticky-card .pd-sticky-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.pd-sticky-card .pd-sticky-price.is-deal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok);
}

.why-buy {
  margin: 2rem 0 1.25rem;
  padding: 1.4rem 1.5rem 1.45rem 1.55rem;
  max-width: var(--pd-max);
  border-radius: 1.1rem;
  border: 1px solid #dde8df;
  border-left: 4px solid var(--color-ok);
  background:
    linear-gradient(135deg, rgba(47, 122, 69, 0.06), transparent 42%),
    linear-gradient(180deg, #f4faf6 0%, #eef6f0 100%);
  box-shadow: 0 6px 20px rgba(30, 60, 40, 0.07);
  color: var(--color-ink);
}

.why-buy h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f4d2e;
}

.why-buy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.why-buy-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-buy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-ok);
  box-shadow: 0 0 0 3px rgba(47, 122, 69, 0.15);
}

.why-buy-list a {
  color: var(--color-ok);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.mp-diff {
  margin: 2rem 0 1.5rem;
  padding: 1.35rem 1.5rem 1.4rem;
  max-width: var(--pd-max);
  border-radius: 1.1rem;
  border: 1px solid #e6e0d4;
  background-color: #f7f3ea;
  background-image:
    radial-gradient(ellipse at 12% 20%, rgba(180, 150, 110, 0.07) 0, transparent 42%),
    radial-gradient(ellipse at 88% 70%, rgba(160, 140, 100, 0.06) 0, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c4b59a' stroke-width='1.2' opacity='0.18'%3E%3Cpath d='M20 60c10-18 28-18 40 0s30 18 40 0'/%3E%3Cpath d='M20 40c12-14 28-14 40 0s28 14 40 0'/%3E%3Cpath d='M30 80c8-12 22-12 30 0s22 12 30 0'/%3E%3Ccircle cx='60' cy='30' r='6'/%3E%3Ccircle cx='28' cy='70' r='4'/%3E%3Ccircle cx='92' cy='55' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 120px 120px;
  box-shadow: 0 6px 22px rgba(40, 30, 10, 0.08);
  color: var(--color-ink);
}

.mp-diff h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.mp-diff-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.mp-diff-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.45rem 0.55rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mp-diff-ico {
  line-height: 1.35;
  font-size: 1.05rem;
  text-align: center;
}

.pd-trust {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-line);
}

.pd-trust h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.25rem;
}

.pd-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.pd-trust-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.pd-trust-grid p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.pd-recent {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--color-paper-soft);
}

.pd-bought {
  margin-top: 1.5rem;
  padding: 1.25rem 0 0.5rem;
}

.pd-bought-head {
  margin-bottom: 1rem;
}

.pd-bought h2 {
  margin: 0;
  font-size: 1.15rem;
}

.pd-bought-shell {
  position: relative;
}

.pd-bought-btn {
  position: absolute;
  top: 4.2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.pd-bought-btn.is-prev {
  left: 0.25rem;
}

.pd-bought-btn.is-next {
  right: 0.25rem;
}

.pd-bought-btn.is-prev::before {
  content: "‹";
  display: block;
  line-height: 1;
  transform: translate(-0.04em, -0.06em);
}

.pd-bought-btn.is-next::before {
  content: "›";
  display: block;
  line-height: 1;
  transform: translate(0.04em, -0.06em);
}

.pd-bought-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pd-bought-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.pd-bought-viewport {
  overflow: hidden;
  margin: 0 1.6rem;
}

.pd-bought-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.25rem) / 4);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.pd-bought-track::-webkit-scrollbar {
  display: none;
}

.pd-bought-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  background: var(--color-paper-soft);
  padding: 0.65rem;
  min-width: 0;
}

.pd-bought-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 3.5;
  overflow: hidden;
  background: #fff;
}

.pd-bought-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-bought-card-media .pcard-badges {
  top: 0.4rem;
  left: 0.4rem;
}

.pd-bought-card-media .pcard-badge {
  font-size: 0.78rem;
  padding: 0.32rem 0.55rem;
}

.pd-bought-card-title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
}

.pd-bought-card-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.pd-bought-card-price.is-deal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok);
}

.pd-bought-card-old {
  color: #c81e1e;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.pd-bought-card-save {
  display: inline-flex;
  width: fit-content;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #e8f7ec;
  color: var(--color-ok);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .pd-bought-track {
    grid-auto-columns: calc((100% - 0.75rem) / 2);
  }
}

@media (max-width: 560px) {
  .pd-bought-track {
    grid-auto-columns: 78%;
  }
}

.pd-recent h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.pd-recent-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 18rem);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pd-recent-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  text-decoration: none;
  color: inherit;
  padding: 0.55rem;
  min-height: 5.5rem;
}

.pd-recent-card img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.3rem;
  background: var(--color-paper-soft, #efeae0);
}

.pd-recent-card strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.pd-recent-card em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 5.5rem;
  z-index: 35;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.ai-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(22rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

.ai-widget > * {
  pointer-events: auto;
}

.ai-widget-toggle {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #2b3d66;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.95rem 0.4rem 0.4rem;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(43, 61, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-widget-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(43, 61, 102, 0.34);
}

.ai-widget-toggle-face {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.ai-widget-panel {
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(28, 27, 25, 0.16);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(0.85rem) scale(0.94);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ai-widget.is-visible .ai-widget-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ai-widget.is-pop .ai-widget-panel {
  animation: ai-widget-pop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

@keyframes ai-widget-pop {
  0% {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.88);
  }
  60% {
    opacity: 1;
    transform: translateY(-0.2rem) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-widget-panel[hidden] {
  display: none !important;
}

.ai-widget.is-open .ai-widget-panel {
  display: grid;
}

.ai-widget-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  background: linear-gradient(135deg, #2b3d66 0%, #3d527f 100%);
  color: #fff;
}

.ai-widget-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ai-widget-head-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.ai-widget-head-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.ai-widget-head-text span {
  font-size: 0.78rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-widget-close {
  margin: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ai-widget-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.ai-widget-log {
  max-height: 16rem;
  min-height: 8rem;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.8rem;
  background: linear-gradient(180deg, #fbfaf7 0%, #fff 100%);
}

.ai-msg {
  display: flex;
  gap: 0.45rem;
  align-items: flex-end;
  max-width: 100%;
}

.ai-msg.user {
  justify-content: flex-end;
}

.ai-msg-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
}

.ai-msg-body {
  display: inline-block;
  max-width: min(100%, 16rem);
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-msg.assistant .ai-msg-body {
  background: #fff;
  border: 1px solid var(--color-line);
  border-bottom-left-radius: 0.25rem;
  color: var(--color-ink);
}

.ai-msg.user .ai-msg-body {
  background: color-mix(in srgb, var(--color-accent) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--color-line));
  border-bottom-right-radius: 0.25rem;
  color: var(--color-ink);
}

.ai-msg-link {
  color: #2b3d66;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ai-msg-link:hover {
  color: var(--color-accent);
}

.ai-widget-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.ai-widget-form input {
  flex: 1;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font: inherit;
  max-width: none;
  background: var(--color-paper-soft);
}

.ai-widget-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
  outline-offset: 1px;
}

.ai-widget-form button {
  margin-top: 0;
  background: var(--color-accent);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 5rem);
  padding: var(--space);
  max-width: 40rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.section-page {
  width: min(var(--pd-max), calc(100% - 2 * var(--space)));
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 1.1rem 0 3rem;
}

.cart-page,
.checkout-page,
.search-page,
.auth-page,
.error-page {
  padding: var(--space);
  max-width: 56rem;
  margin: 0 auto;
}

.smart-404 {
  width: min(var(--pd-max), 100%);
  margin: 0 auto;
  padding: 1.75rem var(--space) 2.5rem;
}

.smart-404-hero {
  text-align: center;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.25rem 1.35rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #fffdf9 0%, var(--color-paper-soft) 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.smart-404-code {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--color-accent) 75%, #8a4b1a);
  opacity: 0.9;
}

.smart-404-hero h1 {
  margin: 0.55rem 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.smart-404-lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.smart-404-suggest-title {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: 1.2rem;
}

.smart-404-matched {
  margin: 0 0 1.1rem;
  text-align: center;
  color: var(--color-muted);
}

.smart-404-matched a {
  font-weight: 700;
  color: var(--color-ink);
}

.smart-404-grid {
  margin-top: 0.35rem;
}

.smart-404-more,
.smart-404-home {
  display: flex;
  justify-content: center;
  margin: 1.35rem 0 0;
}

.smart-404-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.smart-404-cat {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smart-404-cat:hover {
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-line));
  box-shadow: 0 8px 20px rgba(28, 27, 25, 0.06);
}

.smart-404-cat-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 0.2rem);
  background: var(--color-paper-soft);
}

.smart-404-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.smart-404-cat-name {
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 900px) {
  .smart-404-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .smart-404 {
    padding-top: 1.1rem;
  }

  .smart-404-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-404-grid.cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.65rem;
  }
}

.auth-page form {
  display: grid;
  gap: 0.85rem;
  max-width: 24rem;
}

.auth-page label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.auth-page label:has(> input[type="checkbox"]),
.auth-page label:has(> input[type="radio"]),
.auth-page label.pd-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

.auth-page label:has(> input[type="checkbox"]) > input[type="checkbox"],
.auth-page label:has(> input[type="radio"]) > input[type="radio"],
.auth-page label.pd-consent > input[type="checkbox"] {
  width: auto;
  max-width: none;
  min-width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
}

.auth-page input[type="email"],
.auth-page input[type="password"],
.auth-page input[type="text"] {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-line);
  font: inherit;
}

.auth-page .error {
  color: #b42318;
  margin: 0 0 0.75rem;
}

.auth-oauth {
  margin: 1.1rem 0 0.85rem;
  max-width: 24rem;
}

.auth-oauth-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.auth-oauth-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.auth-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  background: #fff;
}

.auth-oauth-btn:hover {
  border-color: #c9b79a;
  filter: brightness(0.97);
}

.auth-oauth-btn--yandex {
  background: #fc3f1d;
  border-color: #fc3f1d;
  color: #fff;
}

.auth-oauth-btn--mailru {
  background: #005ff9;
  border-color: #005ff9;
  color: #fff;
}

.section-page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}

.section-page-desc {
  margin-top: 2rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1.25rem 1.1rem;
  margin: 0.35rem 0 1.5rem;
}

.catalog-grid-cell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  background: transparent;
}

.catalog-grid-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-paper-soft);
  border: 1px solid color-mix(in srgb, var(--color-line) 80%, transparent);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.catalog-grid-thumb:hover {
  border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-line));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.catalog-grid-thumb img,
.catalog-grid-thumb-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.catalog-grid-body {
  min-width: 0;
  text-align: center;
}

.catalog-grid-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.catalog-grid-title a {
  color: var(--color-ink);
  text-decoration: none;
}

.catalog-grid-title a:hover {
  color: var(--color-accent);
}

.catalog-grid-subs {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-muted);
  text-align: left;
}

.catalog-grid-subs li + li {
  margin-top: 0.18rem;
}

.catalog-grid-subs a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  text-underline-offset: 0.18em;
}

.catalog-grid-subs a:hover {
  color: var(--color-accent-hover);
}

.sale-page {
  max-width: var(--pd-max);
  width: min(var(--pd-max), calc(100% - 2 * var(--space)));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

/* ?? Category listing (Hobyt-inspired) ?? */
.cat {
  width: min(var(--pd-max), calc(100% - 2 * var(--space)));
  margin: 0 auto;
  padding: 1.1rem 0 3rem;
}

.cat-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
  position: relative;
}

.cat-top .admin-pencil--card {
  position: static;
  margin-left: auto;
}

.cat-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}

.cat-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.35rem 0 1rem;
}

.cat-child-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.cat-child-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cat-seo-tags {
  margin: 1.75rem 0 0.5rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--color-line);
}

.cat-seo-tags-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.cat-seo-tags-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.cat-seo-tags-nav {
  display: inline-flex;
  gap: 0.35rem;
}

.cat-seo-tags-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.cat-seo-tags-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cat-seo-tags-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.cat-seo-tags-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: max-content;
  padding: 0.1rem 0.1rem 0.35rem;
}

.cat-seo-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  max-width: 18rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-seo-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 8%, #fff);
}

.cat-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.35rem 0 1rem;
}

.cat-filter-tag {
  appearance: none;
  border: 1px solid #d8d0c4;
  background: #fff;
  color: #3a342c;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.2;
}

.cat-filter-tag:hover {
  border-color: #c45f00;
  color: #c45f00;
}

.cat-filter-tag.is-active {
  border-color: #c45f00;
  background: #fff4ea;
  color: #9a4600;
  font-weight: 600;
}

.cat-price-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--color-paper-soft);
  border: 1px solid var(--color-line);
}

.cat-price-filter-main {
  flex: 1 1 14rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cat-price-filter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.cat-price-filter-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.cat-price-slider {
  position: relative;
  height: 2.85rem;
  margin: 0.15rem 0.55rem 0;
  touch-action: none;
  user-select: none;
}

.cat-price-slider-rail,
.cat-price-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 0.55rem);
  height: 4px;
  margin-top: -2px;
  border-radius: 999px;
  pointer-events: none;
}

.cat-price-slider-rail {
  background: #ddd5c8;
}

.cat-price-slider-track {
  right: auto;
  width: 0;
  background: var(--color-accent);
}

.cat-price-thumb {
  position: absolute;
  top: calc(50% + 0.55rem);
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 2;
}

.cat-price-thumb-value {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  line-height: 1;
  pointer-events: none;
}

.cat-price-thumb:active {
  cursor: grabbing;
}

.cat-price-thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cat-price-thumb-max {
  z-index: 3;
}

.cat-price-filter-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  align-items: center;
}

.cat-price-apply {
  margin: 0;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.cat-price-reset {
  margin: 0;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.cat-price-reset:disabled {
  opacity: 0.45;
  cursor: default;
}

.cat-products.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.cat-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.cat-side-nav {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.cat-side-nav a {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--color-paper-soft);
}

.cat-side-nav a:hover {
  color: var(--color-accent);
}

.cat-side-nav a.is-active {
  background: var(--color-accent);
  color: #fff;
}

.cat-filters h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.cat-filter-group {
  border-top: 1px solid var(--color-line);
  padding: 0.55rem 0;
}

.cat-filter-group summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.cat-filter-group summary::-webkit-details-marker {
  display: none;
}

.cat-filter-options {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.cat-filter-options label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.cat-filter-options input {
  width: auto;
  max-width: none;
}

.cat-filter-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cat-filter-apply {
  margin: 0;
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.cat-filter-reset {
  display: block;
  text-align: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
}

.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.cat-toolbar-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.cat-toolbar-form label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.cat-toolbar-form select {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
}

.cat-count {
  margin: 0;
  font-size: 0.88rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem 1rem;
}

.pcard {
  position: relative;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--color-paper-soft);
  overflow: hidden;
  text-decoration: none;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcard-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.pcard-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  pointer-events: none;
}

.pcard-badges .pcard-badge {
  position: static;
}

.pcard-badge.is-sale {
  background: #c81e1e;
}

.pcard-badge.is-new {
  background: #157a36;
}

.pd-media-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.pd-media-badges .pcard-badge {
  position: static;
  font-size: 0.9rem;
  padding: 0.42rem 0.75rem;
}

.pcard-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.pcard-body {
  display: grid;
  gap: 0.25rem;
}

.pcard-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.pcard-title a {
  color: var(--color-ink);
  text-decoration: none;
}

.pcard-title a:hover {
  color: var(--color-accent);
}

.pcard-stock {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.pcard-stock.is-in {
  color: var(--color-ok);
}

.pcard-stock.is-in::before {
  content: "✓ ";
}

.pcard-stock.is-out {
  color: var(--color-muted);
}

.pcard-sku {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.pcard-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-top: 0.2rem;
}

.pcard-prices.has-deal {
  align-items: baseline;
}

.pcard-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.pcard-price.is-deal {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok);
  line-height: 1.25;
}

.pcard-price-old {
  margin: 0;
  font-size: 0.92rem;
  color: #c81e1e;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.pcard-save {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  background: #e8f7ec;
  color: var(--color-ok);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cat-more {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.75rem;
}

.cat-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
}

.cat-more a::before {
  content: "";
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 0.55rem 2px, 2px 0.55rem;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(90deg);
}

.cat-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.cat-pager a,
.cat-pager span {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
}

.cat-pager .is-active {
  background: var(--color-accent);
  color: #fff;
}

.cat-pager-gap {
  color: var(--color-muted);
}

.cat-desc {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.cat-desc-top {
  margin: 0.75rem 0 1.5rem;
  padding-top: 0;
  border-top: 0;
  color: var(--color-ink);
  font-size: 1rem;
}

.cat-desc img,
.cat-desc-top img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
}

.cat-desc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.cat-desc table.blinds-table th {
  background: var(--color-paper-soft);
}

.cat-desc th,
.cat-desc td {
  border: 1px solid var(--color-line);
  padding: 0.45rem 0.6rem;
}

.cat-slider {
  margin: 1.5rem 0 2rem;
}

.cat-slider-title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  text-align: center;
}

.cat-slider-mode-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-slider-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: min(720px, 100%);
  margin: 0 auto;
}

.cat-slider-hero-figure {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.cat-slider-hero-figure img {
  display: block;
  width: 100%;
  max-height: min(62vh, 520px);
  object-fit: contain;
  background: var(--color-paper-soft);
  border-radius: 0.35rem;
}

.cat-slider-hero-figure figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-weight: 600;
}

.cat-slider-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0;
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0.85rem auto 0;
  border-top: 1px solid var(--color-line);
  padding-top: 0.35rem;
  text-align: center;
}

.cat-slider-menu-item {
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.cat-slider-menu-item:hover,
.cat-slider-menu-item.is-active {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
}

.cat-slider-accordion {
  display: none;
}

.cat-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-slider-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.cat-slider-track {
  display: flex;
  gap: 0.85rem;
  transition: transform 0.3s ease;
}

.cat-slider-item {
  flex: 0 0 auto;
  width: min(220px, 70vw);
  margin: 0;
}

.cat-slider-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.35rem;
}

.cat-slider-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.cat-slider-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  text-align: center;
}

.cat-slider-btn {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cat-slider-lightbox {
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.86);
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
}

.cat-slider-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.cat-slider-lightbox img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 80vh;
  margin: 8vh auto 0;
  object-fit: contain;
}

.cat-slider-lightbox-cap {
  color: #fff;
  text-align: center;
  margin: 0.75rem 0 0;
}

.cat-slider-lightbox-close,
.cat-slider-lightbox-nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
}

.cat-slider-lightbox-close {
  top: 0.75rem;
  right: 1rem;
}

.cat-slider-lightbox-nav.prev {
  left: 0.75rem;
  top: 45%;
}

.cat-slider-lightbox-nav.next {
  right: 0.75rem;
  top: 45%;
}

.eeat-block {
  margin: 2.5rem 0 1.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--color-paper-soft);
  border: 1px solid var(--color-line);
  border-radius: 0.35rem;
}

.eeat-head {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.eeat-head h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  line-height: 1.35;
}

.eeat-lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.eeat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.eeat-card {
  background: #fff;
  padding: 1.1rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 0.25rem;
}

.eeat-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.eeat-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.eeat-card p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.eeat-card--experience {
  border-top: 3px solid #6b9080;
}

.eeat-card--expertise {
  border-top: 3px solid #5c7cfa;
}

.eeat-card--authority {
  border-top: 3px solid #b08968;
}

.eeat-card--trust {
  border-top: 3px solid #7f5539;
}

.eeat-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.eeat-foot p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.eeat-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ocStore tag/category expert block */
.eeat-category-block {
  margin-top: 2.2rem;
  padding: 1.55rem 1.85rem;
  background: #faf8f5;
  border-radius: 10px;
  border: 1px solid #eee3d7;
  line-height: 1.6;
}

.eeat-category-block h2 {
  margin: 0 0 1rem;
  color: #5b4030;
  font-size: 1.35rem;
  line-height: 1.35;
}

.eeat-category-block p {
  margin: 0 0 0.95rem;
  color: var(--color-ink);
}

.eeat-category-block p:last-child {
  margin-bottom: 0;
}

.tag-page-footer + .tag-expert-block {
  margin-top: 1.75rem;
}

@media (max-width: 640px) {
  .eeat-category-block {
    padding: 1.15rem 1rem;
  }

  .eeat-category-block h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .eeat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cat-layout {
    grid-template-columns: 1fr;
  }

  .cat-price-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .cat-price-filter-actions {
    width: 100%;
  }

  .cat-price-apply {
    flex: 1;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mega-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.mega-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink);
  text-decoration: none;
}

label {
  display: block;
  margin-bottom: 0.75rem;
}

/* Checkbox/radio always beside label text (not stacked above). */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]),
label.pd-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

label:has(> input[type="checkbox"]) > input[type="checkbox"],
label:has(> input[type="radio"]) > input[type="radio"] {
  width: auto;
  max-width: none;
  min-width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--color-accent, #c45c26);
}

input,
textarea,
button,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: var(--radius-md);
}

button,
.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.error {
  color: #8b2e2e;
}

.ok {
  color: var(--color-ok);
}

.stack {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 1rem 0;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .section-nav,
  .header-tools {
    justify-content: flex-start;
  }

  .pd-hero,
  .pd-grid,
  .pd-trust-grid,
  .eeat-grid {
    grid-template-columns: 1fr;
  }

  .pd-gallery {
    grid-template-columns: 1fr;
  }

  .pd-stage {
    order: 1;
  }

  .pd-thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pd-thumbs::-webkit-scrollbar {
    display: none;
  }

  .pd-bought-viewport {
    margin: 0 0.85rem;
  }

  .pd-bought-btn {
    top: 50%;
    transform: translateY(-130%);
  }

  .pd-sticky-card {
    position: static;
  }
}

/* ??? Cart & checkout ??? */
.cart-page,
.checkout-page,
.thanks-page {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 1.25rem var(--space) 3rem;
}

.cart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cart-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-filter input {
  width: min(16rem, 70vw);
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.cart-filter-clear {
  position: absolute;
  right: 0.35rem;
  background: transparent;
  color: var(--color-muted);
  margin: 0;
  padding: 0.25rem 0.4rem;
}

.cart-toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-count-label {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.15rem;
}

.cart-clear-btn {
  background: transparent;
  color: var(--color-muted);
  margin: 0;
  padding: 0.25rem 0.4rem;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.cart-row-img {
  display: block;
  width: 96px;
  height: 96px;
  background: var(--color-paper-soft);
  overflow: hidden;
}

.cart-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-row-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.cart-row-title {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.cart-remove {
  background: transparent;
  color: var(--color-muted);
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.cart-row-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
}

.cart-unit span {
  display: block;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.15rem;
}

.cart-qty button {
  margin: 0;
  background: transparent;
  color: var(--color-ink);
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.cart-qty-val {
  text-align: center;
  min-width: 2.5rem;
}

.cart-qty-val input {
  width: 2.4rem;
  border: 0;
  text-align: center;
  padding: 0;
  max-width: none;
}

.cart-qty-val span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.cart-line-total {
  text-align: right;
  font-weight: 700;
  font-size: 1.05rem;
}

.cart-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.cart-coupon label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-muted);
}

.cart-coupon-row {
  display: flex;
  gap: 0.35rem;
}

.cart-coupon-row input {
  flex: 1;
  max-width: none;
}

.cart-coupon-apply {
  margin: 0;
  width: 2.5rem;
  padding: 0;
}

.cart-coupon-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.cart-totals {
  text-align: center;
}

.cart-total-label {
  font-weight: 700;
}

.cart-total-weight {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.cart-total-sum {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.cart-min-order {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--color-ink);
  line-height: 1.35;
}

.cart-min-order.is-short {
  color: #8a3a3a;
}

.cart-min-order-need {
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
}

.cart-min-order-alert {
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e4b4b4;
  background: #fff5f5;
  color: #8a3a3a;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.cart-checkout-btn.is-disabled,
.cart-manager-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.cart-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: stretch;
}

.cart-checkout-btn,
.cart-manager-btn,
.checkout-submit {
  margin: 0;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
}

.cart-manager-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
}

.cart-added-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 32rem;
  width: calc(100% - 2rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.cart-added-dialog::backdrop {
  background: rgba(28, 27, 25, 0.45);
}

.cart-gate-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.cart-gate-dialog::backdrop {
  background: rgba(28, 27, 25, 0.5);
}

.cart-gate-inner {
  padding: 1.35rem 1.5rem 1.5rem;
}

.cart-gate-inner h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.cart-gate-lead {
  margin: 0 0 1.15rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.cart-gate-options {
  display: grid;
  gap: 0.75rem;
}

.cart-gate-option {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-border, #ddd6cb);
  border-radius: var(--radius-md, 10px);
  background: var(--color-paper, #fff);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cart-gate-option:hover,
.cart-gate-option:focus-visible {
  border-color: var(--color-accent, #8b5a2b);
  outline: none;
}

.cart-gate-option--accent {
  background: var(--color-paper-soft, #f7f3ec);
}

.cart-gate-option strong {
  font-size: 1.05rem;
}

.cart-gate-option span {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.cart-gate-back {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
}

.cart-gate-login-form {
  display: grid;
  gap: 0.85rem;
}

.cart-gate-login-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.cart-gate-login-form input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border, #ddd6cb);
  border-radius: var(--radius-sm, 6px);
  font: inherit;
}

.cart-gate-error {
  margin: 0;
  color: #a33;
  font-size: 0.9rem;
}

.cart-gate-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.25rem;
}

.cart-added-inner {
  padding: 1.35rem 1.5rem 1.5rem;
}

.cart-added-inner h3 {
  margin: 0 0 1rem;
}

.cart-added-product {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cart-added-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-paper-soft);
}

.cart-added-product span {
  display: block;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.cart-added-upsell {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line, #e6e2db);
}

.cart-added-upsell h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-added-upsell-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-added-upsell-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: space-between;
}

.cart-added-upsell-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.cart-added-upsell-media {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-paper-soft);
}

.cart-added-upsell-link img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--color-paper-soft);
}

.cart-added-upsell-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.cart-added-upsell-media .pcard-badges {
  top: 0.15rem;
  left: 0.15rem;
  gap: 0.12rem;
}

.cart-added-upsell-media .pcard-badge {
  font-size: 0.58rem;
  padding: 0.15rem 0.28rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.cart-added-upsell-link span {
  min-width: 0;
}

.cart-added-upsell-link strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-added-upsell-link em {
  display: block;
  font-style: normal;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-added-upsell-old {
  color: #c81e1e !important;
  text-decoration: line-through;
  font-weight: 500 !important;
}

.cart-added-upsell-price.is-deal {
  display: inline-flex !important;
  width: fit-content;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok) !important;
}

.cart-added-upsell-save {
  color: var(--color-ok) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
}

.cart-added-upsell-link em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.cart-added-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-upsell {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line, #e6e2db);
}

.cart-upsell h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.cart-upsell-lead {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.cart-upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}

.cart-upsell-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-upsell-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.cart-upsell-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-paper-soft);
}

.cart-upsell-media img,
.cart-upsell-link img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--color-paper-soft);
}

.cart-upsell-media .pcard-badges {
  top: 0.4rem;
  left: 0.4rem;
}

.cart-upsell-media .pcard-badge {
  font-size: 0.78rem;
  padding: 0.32rem 0.55rem;
}

.cart-upsell-name {
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-upsell-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-upsell-price.is-deal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok);
  font-weight: 700;
}

.cart-upsell-old {
  color: #c81e1e;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.cart-upsell-save {
  display: inline-flex;
  width: fit-content;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #e8f7ec;
  color: var(--color-ok);
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-upsell-add {
  margin: 0;
}

.btn-ghost,
.btn-sm {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-accent);
  background: #fff;
  color: var(--color-accent);
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font: inherit;
}

.btn-sm {
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
}

.checkout-page {
  background: transparent;
}

.checkout-top {
  margin-bottom: 1.25rem;
}

.checkout-back {
  display: inline-block;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.checkout-crumbs {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.checkout-page h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.checkout-error,
.checkout-hint-error {
  color: #c0392b;
  margin: 0.75rem 0;
}

.checkout-hint-error[hidden] {
  display: none !important;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 1rem;
}

.checkout-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  padding: 1.15rem 1.25rem;
  scroll-margin-top: 5.5rem;
}

.checkout-section-title {
  margin: 0 0 0.85rem;
  color: #9a958c;
  font-weight: 500;
  font-size: 1.35rem;
}

.checkout-customer-type {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cko-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.cko-radio input {
  accent-color: var(--color-accent);
  width: 1.1rem;
  height: 1.1rem;
}

.checkout-location {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.checkout-flag {
  width: 1.35rem;
  height: 1rem;
  background: linear-gradient(#fff 33%, #0039a6 33% 66%, #d52b1e 66%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.cko-options {
  display: grid;
  gap: 0.35rem;
}

.cko-option {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.35rem;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.cko-option:hover {
  background: #faf9f7;
}

.cko-option input {
  accent-color: var(--color-accent);
  width: 1.15rem;
  height: 1.15rem;
}

.cko-option-icon {
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  position: relative;
}

.cko-icon-box::before {
  content: "";
  position: absolute;
  inset: 0.25rem;
  border: 1.5px solid var(--color-accent);
}

.cko-icon-truck {
  border: 0;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) 0.15rem 0.55rem / 0.85rem 0.45rem no-repeat,
    radial-gradient(circle at 0.35rem 1.15rem, var(--color-accent) 0.18rem, transparent 0.2rem),
    radial-gradient(circle at 1rem 1.15rem, var(--color-accent) 0.18rem, transparent 0.2rem);
}

.cko-icon-post {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom-width: 3px;
}

.cko-option-text strong {
  font-weight: 600;
}

.cko-option-text em {
  font-style: normal;
  color: var(--color-muted);
  margin-left: 0.25rem;
}

.cko-payment {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.cko-payment .cko-option-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cko-payment-desc {
  grid-column: 2;
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cko-pay-icons {
  display: inline-flex;
  gap: 0.35rem;
}

.cko-pay-icon {
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.35rem;
  color: var(--color-muted);
  background: #fff;
}

.cko-form-grid {
  display: grid;
  gap: 0.85rem;
}

.cko-field span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-muted);
}

.cko-field i {
  color: #c0392b;
  font-style: normal;
}

.cko-field input,
.cko-field textarea,
.cko-address input {
  width: 100%;
  max-width: none;
  border: 1px solid #d9d5ce;
  border-radius: var(--radius-md);
  padding: 0.7rem 0.8rem;
}

.cko-address-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.cko-address-row label span {
  font-size: 0.85rem;
}

.sticky-summary {
  position: sticky;
  top: 5.5rem;
}

.cko-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.cko-summary-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.cko-summary-head a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.cko-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cko-items li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.65rem;
  align-items: start;
}

.cko-items img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-paper-soft);
}

.cko-item-name {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-muted);
}

.cko-totals {
  margin: 1rem 0;
  display: grid;
  gap: 0.35rem;
}

.cko-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cko-totals dt {
  color: var(--color-muted);
}

.cko-totals dd {
  margin: 0;
}

.cko-total {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-line);
}

.cko-total dt,
.cko-total dd {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.cko-coupon {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.cko-coupon input {
  flex: 1;
  max-width: none;
  border: 1px solid #d9d5ce;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.7rem;
}

.cko-coupon button {
  margin: 0;
  background: #eceae4;
  color: var(--color-ink);
  border-radius: var(--radius-md);
}

.cko-login-note {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.cko-coupon-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.cko-selected {
  border: 1px dashed #d0cbc1;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.checkout-submit {
  width: 100%;
}

.checkout-submit-mobile {
  display: none;
}

.checkout-point-selected {
  margin: 0.5rem 0 0;
  color: var(--color-ok);
  font-size: 0.9rem;
}

.cko-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
}

.cko-dialog::backdrop {
  background: rgba(28, 27, 25, 0.45);
}

.cko-dialog-inner {
  padding: 1.25rem;
}

.cko-dialog-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cko-points-list {
  display: grid;
  gap: 0.5rem;
  max-height: 20rem;
  overflow: auto;
  margin: 0.75rem 0;
}

.cko-point-item {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  margin: 0;
  color: var(--color-ink);
  cursor: pointer;
}

.cko-point-item:hover {
  border-color: var(--color-accent);
}

.thanks-page {
  text-align: center;
  padding-top: 3rem;
}

.thanks-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.shop-tabs a.is-active {
  font-weight: 700;
  text-decoration: underline;
}

.shop-form {
  max-width: 40rem;
  margin-top: 1rem;
}

.header-cart-badge[hidden],
.header-cart-badge:empty,
.header-fav-badge[hidden],
.header-fav-badge:empty {
  display: none;
}

@media (max-width: 900px) {
  .cart-footer,
  .checkout-layout,
  .cart-row-meta {
    grid-template-columns: 1fr;
  }

  .cart-line-total,
  .cart-totals {
    text-align: left;
  }

  .checkout-submit-mobile {
    display: block;
  }

  .sticky-summary {
    position: static;
  }

  .cko-option {
    grid-template-columns: auto auto 1fr;
  }

  .cko-option .btn-sm {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* ??? Reviews & Blog ??? */
.section-nav a.is-active {
  color: var(--color-accent);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.content-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.content-back {
  display: inline-block;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
}

.breadcrumbs {
  color: var(--color-muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.18em;
}

.content-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.content-head h1,
.blog-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.content-head--stack {
  display: grid;
  gap: 0.5rem;
  align-items: start;
}

.content-head .content-lead {
  margin: 0;
  max-width: 48rem;
  line-height: 1.55;
}

.content-lead,
.content-muted {
  color: var(--color-muted);
}

.reviews-page,
.blog-page,
.blog-article-page {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 1.25rem var(--space) 3rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.review-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.65rem;
}

.review-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff4e8;
  color: var(--color-accent);
  font-weight: 700;
}

.review-city {
  display: block;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.review-stars span {
  color: #d9d5ce;
}

.review-stars span.is-on {
  color: var(--color-accent);
}

.review-card time {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.review-product {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.review-form-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #faf9f7;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.review-form label,
.comment-form label {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.review-form label:has(> input[type="checkbox"]),
.review-form label:has(> input[type="radio"]),
.review-form label.pd-consent,
.comment-form label:has(> input[type="checkbox"]),
.comment-form label:has(> input[type="radio"]),
.comment-form label.pd-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.review-form input,
.review-form select,
.review-form textarea,
.comment-form input,
.comment-form textarea {
  width: 100%;
  max-width: none;
  border: 1px solid #d9d5ce;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.blog-rss,
.article-icon-btn {
  color: var(--color-muted);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.9fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-featured {
  display: grid;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.blog-featured h2,
.blog-card h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.blog-featured-media,
.blog-card-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-paper-soft);
  aspect-ratio: 16 / 10;
}

.blog-featured-media img,
.blog-card-media img,
.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background:
    linear-gradient(135deg, #f0ebe3, #e4ddd2 40%, #f7f3eb);
}

.blog-media-placeholder.is-wide {
  min-height: 18rem;
  border-radius: var(--radius-lg);
}

.blog-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-card-badge {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  background: #3b82f6;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
}

.blog-secondary {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.blog-secondary-item {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-line);
}

.blog-secondary-item strong {
  display: block;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.blog-secondary-item time,
.blog-card time,
.article-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.blog-secondary-item img,
.blog-thumb-ph {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-paper-soft);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-card {
  display: grid;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ece8e1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.blog-aside-card {
  background: #f6f5f2;
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.blog-aside-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.blog-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-cats li + li {
  border-top: 1px solid #e5e1d8;
}

.blog-cats a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--color-ink);
}

.blog-cats a.is-active,
.blog-cats a.is-active span {
  color: var(--color-accent);
  font-weight: 600;
}

.blog-cats em {
  color: var(--color-muted);
  font-style: normal;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-tags a {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  background: #ebe7df;
  color: #5c574f;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.blog-tags a.is-active {
  background: #fff4e8;
  color: var(--color-accent);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.75rem 0 0.5rem;
}

.pager a {
  min-width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
}

.pager a.is-active,
.pager span.is-active {
  background: var(--color-accent);
  color: #fff;
}

.pager-gap {
  min-width: 1.5rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  color: var(--color-muted);
}

.article-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.article-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  max-width: 48rem;
}

.article-meta {
  margin: 0.75rem 0 1.25rem;
}

.article-meta a {
  color: var(--color-accent);
  text-decoration: none;
}

.article-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.article-cover {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-content {
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.article-content p {
  margin: 0 0 1rem;
}

.article-content img,
.info-prose img {
  max-width: 100%;
  height: auto;
}

.article-toc {
  position: relative;
  margin: 5px 0 1.25rem;
  padding: 28px 32px 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid #d6e6f5;
  overflow: hidden;
}

.article-toc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

.article-toc__title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f3b5c;
  margin: 0;
  letter-spacing: 0.3px;
}

.article-toc__count {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a95ad;
  letter-spacing: 0.02em;
}

.article-toc__body {
  position: relative;
}

.article-toc ul {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 1.25rem;
}

.article-toc__list > li {
  margin-bottom: 0.85rem;
}

.article-toc li {
  position: relative;
  padding-left: 0.15rem;
}

.article-toc li::marker {
  color: #4fa3e3;
}

.article-toc a {
  display: inline;
  text-decoration: none;
  transition: color 0.2s ease;
  color: #2c4f73;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.article-toc a:hover {
  color: #1b6fb8;
}

.article-toc__list ul {
  list-style: disc;
  margin-top: 0.55rem;
  margin-left: 0.15rem;
  padding-left: 1.15rem;
}

.article-toc__list ul > li {
  margin-bottom: 0.45rem;
}

.article-toc__list ul a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #5f7f9e;
}

.article-toc__list ul ul a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a95ad;
}

.article-toc--collapsible.is-collapsed .article-toc__body {
  max-height: 11.5rem;
  overflow: hidden;
}

.article-toc--collapsible.is-collapsed .article-toc__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0) 0%, #f6faff 78%);
}

.article-toc__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.85rem 0 0;
  padding: 0.45rem 0.95rem;
  border: 1px solid #b7d8f0;
  border-radius: 999px;
  background: #fff;
  color: #1f6fa8;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.article-toc__toggle:hover {
  background: #eef7ff;
  border-color: #7ec4ef;
  color: #125a8c;
}

@media (max-width: 768px) {
  .article-toc {
    padding: 20px 18px 18px;
  }

  .article-toc__title {
    font-size: 22px;
  }

  .article-toc a {
    font-size: 1rem;
  }

  .article-toc--collapsible.is-collapsed .article-toc__body {
    max-height: 10rem;
  }
}

.article-links {
  margin: 50px 0 20px;
  padding: 28px;
  background: linear-gradient(180deg, #f9fdff, #eef9ff);
  border: 2px solid #8fd4ff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.1);
  position: relative;
  overflow: hidden;
}

.article-links::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: rgba(80, 190, 255, 0.12);
  border-radius: 50%;
}

.article-links::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 140px;
  height: 140px;
  background: rgba(80, 190, 255, 0.08);
  border-radius: 50%;
}

.article-links h3 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #1167a8;
  position: relative;
  z-index: 2;
}

.article-links p {
  margin: 0 0 22px;
  color: #4f6473;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.article-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
}

.article-links-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid #d9eefc;
  border-radius: 12px;
  text-decoration: none;
  color: #175b91;
  font-weight: 600;
  transition: 0.25s;
}

.article-links-list a::before {
  content: "➜";
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dff5ff;
  color: #0f84d8;
  flex-shrink: 0;
  transition: 0.25s;
}

.article-links-list a:hover {
  transform: translateY(-3px);
  border-color: #5cc5ff;
  box-shadow: 0 10px 25px rgba(0, 145, 255, 0.16);
  color: #0b5c97;
}

.article-links-list a:hover::before {
  background: #39b6ff;
  color: #fff;
}

@media (max-width: 768px) {
  .article-links {
    padding: 20px;
  }

  .article-links h3 {
    font-size: 23px;
  }

  .article-links-list {
    grid-template-columns: 1fr;
  }
}

.article-content .tablewrap,
.info-prose .tablewrap {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1rem;
}

/* Legacy article tables (ocStore apple theme) */
.decoupage-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: Georgia, "Times New Roman", serif;
  background: #fffdf8;
  color: #4a3b30;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 1rem;
}

.decoupage-table thead {
  background: linear-gradient(135deg, #f3dcc5, #f9e9d7);
}

.decoupage-table th,
.decoupage-table td {
  padding: clamp(0.45rem, 1.5vw, 0.85rem) clamp(0.6rem, 1.2vw, 1rem);
  border-bottom: 1px solid #ead9c7;
  text-align: left;
}

.decoupage-table th {
  font-size: clamp(0.55rem, 1.8vw, 0.65rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b5c48;
}

.decoupage-table td {
  font-size: clamp(0.65rem, 1.8vw, 0.92rem);
}

.decoupage-table tbody tr:nth-child(even) {
  background-color: rgba(248, 240, 228, 0.7);
}

/* Plain tables in blog / info pages */
.article-content > table,
.article-content table:not(.decoupage-table),
.info-prose > table,
.info-prose table:not(.decoupage-table) {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

.article-content table:not(.decoupage-table) th,
.article-content table:not(.decoupage-table) td,
.info-prose table:not(.decoupage-table) th,
.info-prose table:not(.decoupage-table) td {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-line);
  vertical-align: top;
  text-align: left;
}

@media (max-width: 1400px) {
  .decoupage-table th {
    font-size: clamp(0.55rem, 1.8vw, 0.65rem);
    padding: 0.75rem 0.9rem;
  }

  .decoupage-table td {
    font-size: clamp(0.82rem, 2.5vw, 0.92rem);
    padding: 0.75rem 0.9rem;
  }
}

@media (max-width: 1024px) {
  .decoupage-table th {
    font-size: clamp(0.55rem, 1.8vw, 0.65rem);
    padding: 0.75rem 0.9rem;
  }

  .decoupage-table td {
    font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    padding: 0.65rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .decoupage-table th {
    font-size: clamp(0.55rem, 1.8vw, 0.65rem);
    padding: 0.75rem 0.9rem;
  }

  .decoupage-table td {
    font-size: clamp(0.7rem, 2vw, 0.78rem);
    padding: 0.55rem 0.7rem;
  }
}

/* Mobile: shrink + wrap, hide secondary columns (legacy) */
@media (max-width: 600px) {
  .decoupage-table {
    table-layout: fixed;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .decoupage-table .col-note,
  .decoupage-table .col-price {
    display: none;
  }
}

.article-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}

.article-tabs {
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 1.25rem;
}

.article-tabs span {
  display: inline-block;
  padding: 0.55rem 0;
  color: var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  font-weight: 600;
}

.comment-add-btn {
  display: block;
  width: fit-content;
  margin: 1rem auto;
  list-style: none;
}

.comment-add-btn::-webkit-details-marker {
  display: none;
}

.comment-form {
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.comments-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.comment-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
}

.comment-item time {
  display: block;
  color: var(--color-muted);
  font-size: 0.8rem;
  margin: 0.15rem 0 0.45rem;
}

/* ocStore category-info-links (product page footer block) */
.category-info-links {
  max-width: var(--pd-max);
  width: calc(100% - 2 * var(--space));
  margin: 2rem auto 1.25rem;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee4d8;
  box-sizing: border-box;
}

.category-info-links h2 {
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 22px;
  color: #5b4030;
}

.category-links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.category-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  background: #faf8f5;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s;
}

.category-link-item:hover {
  background: #f2e7da;
}

.category-link-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.category-link-item strong {
  color: #5b4030;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.category-link-item small {
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .category-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .category-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-info-links {
    margin-left: var(--space);
    margin-right: var(--space);
    padding: 20px 14px;
  }
}

/* Blinds quiz + Telegram discuss button (from jalousie-moscow.ru product page) */
.blinds-quiz-block {
  max-width: var(--pd-max);
  width: calc(100% - 2 * var(--space));
  margin: 0 auto 1.5rem;
  box-sizing: border-box;
}

#blinds-quiz-pro {
  max-width: 520px;
  margin: 20px auto;
  padding: 10px;
}

#blinds-quiz-pro .quiz-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  animation: blinds-quiz-fade 0.4s ease;
}

@keyframes blinds-quiz-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#blinds-quiz-pro .progress {
  height: 6px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

#blinds-quiz-pro .progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: 0.3s;
}

#blinds-quiz-pro .top-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
  color: #777;
}

#blinds-quiz-pro .trust {
  background: #f1f8e9;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}

#blinds-quiz-pro h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.3;
}

#blinds-quiz-pro .options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#blinds-quiz-pro .option {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}

#blinds-quiz-pro .option:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#blinds-quiz-pro .icon {
  font-size: 26px;
  margin-bottom: 6px;
}

#blinds-quiz-pro .quiz-custom {
  margin-top: 12px;
}

#blinds-quiz-pro .input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#blinds-quiz-pro .quiz-btn {
  width: 100%;
  padding: 14px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

#blinds-quiz-pro .result {
  text-align: center;
}

#blinds-quiz-pro .result h2 {
  margin: 0.4rem 0 0.6rem;
}

#blinds-quiz-pro .phone {
  font-size: 22px;
  font-weight: bold;
  margin: 10px 0;
}

.tg-button-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.tg-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #26a5e4 0%, #1291d1 100%);
  color: #ffffff !important;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none !important;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(38, 165, 228, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tg-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tg-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.tg-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 165, 228, 0.6);
  background: linear-gradient(135deg, #32b1f0 0%, #1291d1 100%);
}

.tg-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  animation: tg-pulse 2s infinite;
  z-index: 0;
}

@keyframes tg-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.tg-text,
.tg-icon {
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  #blinds-quiz-pro .options {
    grid-template-columns: 1fr;
  }

  .tg-button {
    width: 90%;
    justify-content: center;
    font-size: 16px;
    padding: 12px 20px;
  }
}

.tg-promo {
  margin: 2rem var(--space) 0;
}

.tg-promo-inner {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 1rem 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid #e4ddd0;
  background-color: #f6f1e6;
  background-image:
    radial-gradient(ellipse at 10% 15%, rgba(180, 150, 110, 0.08) 0, transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(160, 140, 100, 0.07) 0, transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23c4b59a' stroke-width='1.1' opacity='0.2'%3E%3Cpath d='M20 70c12-20 32-20 46 0s34 20 46 0'/%3E%3Cpath d='M24 48c14-16 32-16 46 0s32 16 46 0'/%3E%3Cpath d='M36 96c10-14 26-14 36 0s26 14 36 0'/%3E%3Ccircle cx='70' cy='34' r='7'/%3E%3Ccircle cx='32' cy='82' r='5'/%3E%3Ccircle cx='108' cy='64' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 140px 140px;
  box-shadow: 0 8px 24px rgba(40, 30, 10, 0.07);
}

.tg-promo .district-slider-section {
  margin: 0;
}

.tg-promo .slider-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink, #1a1a1a);
  text-align: center;
}

.tg-promo .slider-subtitle {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--color-muted, #666);
  text-align: center;
}

.tg-promo .slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.tg-promo .slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
  will-change: transform;
}

.tg-promo .slide {
  position: relative;
  min-width: 100%;
  height: min(700px, 72vw);
  flex-shrink: 0;
}

.tg-promo .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-promo .slider-prev,
.tg-promo .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 45px;
  height: 45px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #1a1a1a;
  padding: 0;
  line-height: 1;
}

.tg-promo .slider-prev:hover,
.tg-promo .slider-next:hover {
  background: #fff;
}

.tg-promo .slider-prev {
  left: 15px;
}

.tg-promo .slider-next {
  right: 15px;
}

.tg-promo .slide-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  display: inline-block;
  max-width: 80%;
  background: rgba(26, 26, 26, 0.85);
  border-left: 4px solid #26a5e4;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 15px 25px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.tg-promo .slide-caption h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tg-promo .slide-caption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  white-space: normal;
}

@media (max-width: 768px) {
  .tg-promo .slide {
    height: min(420px, 78vw);
  }

  .tg-promo .slide-caption {
    bottom: 20px;
    left: 20px;
    padding: 10px 15px;
    max-width: calc(100% - 40px);
  }

  .tg-promo .slide-caption h3 {
    font-size: 16px;
  }

  .tg-promo .slide-caption p {
    font-size: 13px;
  }

.tg-promo .slider-prev,
.tg-promo .slider-next {
  width: 35px;
  height: 35px;
  font-size: 16px;
}
}

@media (max-width: 640px) {
  .tg-promo-inner {
    padding: 0.75rem;
  }
}

.site-footer {
  background: #f3f1ec;
  border-top: 1px solid var(--color-line);
  margin-top: 1.25rem;
  padding: 2rem var(--space);
}

.site-footer-inner {
  max-width: var(--pd-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-counters {
  max-width: var(--pd-max);
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  text-align: center;
  line-height: 0;
}
.footer-counters a,
.footer-counters span,
.footer-counters div {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}
.footer-counters img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.25rem;
}
.footer-counters noscript {
  display: none;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #6b6560;
}

.site-footer a,
.site-footer span {
  display: block;
  color: #6b6560;
  text-decoration: none;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.footer-contacts-title {
  color: var(--color-accent) !important;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.footer-contact-row::before {
  content: '';
  flex: 0 0 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  background: #9a948c;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.footer-contact-row.is-phone::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.6 10.8c1.5 3 3.8 5.3 6.8 6.8l2.3-2.3c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .4 1 1V21c0 .6-.4 1-1 1C10.6 22 2 13.4 2 3c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E");
}

.footer-contact-row.is-mail::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.footer-contact-row.is-address::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5c-1.4 0-2.5-1.1-2.5-2.5S10.6 6.5 12 6.5s2.5 1.1 2.5 2.5S13.4 11.5 12 11.5z'/%3E%3C/svg%3E");
}

.footer-contact-row a,
.footer-contact-row span {
  margin: 0;
}

.footer-subscribe {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.footer-subscribe input {
  flex: 1;
  border: 1px solid #d9d5ce;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  max-width: none;
}

.footer-subscribe button {
  margin: 0;
  width: 2.4rem;
  padding: 0;
}

.footer-socials {
  display: flex;
  gap: 0.4rem;
}

.footer-socials span,
.site-footer .footer-socials a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #ddd6c8;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin: 0;
  color: #6b6560;
  text-decoration: none;
  border: 1px solid transparent;
}

.site-footer .footer-socials a:hover {
  background: #d0e9f7;
  border-color: #29a9eb;
  color: #1d6f98;
}

.footer-legal {
  max-width: var(--pd-max);
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer-legal-copy {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4f4a45;
  letter-spacing: 0.01em;
}

.footer-legal-details {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
}

.footer-legal-item {
  display: grid;
  gap: 0.15rem;
  min-width: 9.5rem;
}

.footer-legal-item dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
}

.footer-legal-item dd {
  margin: 0;
  font-size: 0.9rem;
  color: #5c564f;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .footer-legal-inner {
    flex-direction: column;
    gap: 0.9rem;
  }

  .footer-legal-details {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.admin-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.admin-tag-related,
.admin-tag-tree {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--color-line, #e5e1d8);
  border-radius: 0.75rem;
  background: #fff;
}

.admin-tag-related-list,
.admin-tag-suggest,
.admin-tag-tree-root ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.admin-tag-related-list li,
.admin-tag-suggest li,
.admin-tag-tree-root li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.2rem 0;
}

.admin-tag-suggest {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--color-line, #e5e1d8);
  border-radius: 0.5rem;
  padding: 0.35rem;
  background: #faf9f6;
}

.admin-tag-tree-root {
  margin-top: 0.75rem;
  max-height: 420px;
  overflow: auto;
}

.admin-tag-tree-root ul ul {
  margin-left: 1rem;
  border-left: 1px solid #ece7dc;
  padding-left: 0.5rem;
}

.admin-tag-products-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.tag-related-catalogs {
  margin: 1.5rem 0 1rem;
}

.tag-related-catalogs h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.tag-index-placeholder {
  min-height: 140px;
  background:
    linear-gradient(135deg, #efe8da 0%, #e4ddd0 55%, #d9d0c0 100%);
}

/* Tag shared footer — 1:1 from live /internet-magazin/tag/* */
.tag-shared-footer {
  margin-top: 2rem;
}

.tag-shared-footer .portfolio-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
  box-sizing: border-box;
  clear: both;
}

.tag-shared-footer .portfolio-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: #2c2c2c;
}

.tag-shared-footer .slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.tag-shared-footer .portfolio-section .slider-container {
  overflow: hidden;
  width: 100%;
  margin: 0 10px;
}

.tag-shared-footer .portfolio-section .slider-track {
  display: flex;
  gap: 15px;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.tag-shared-footer .slider-item {
  flex: 0 0 calc((100% - (15px * 4)) / 5);
  box-sizing: border-box;
}

.tag-shared-footer .slider-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tag-shared-footer .slider-item img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.tag-shared-footer .portfolio-section .slider-btn {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  z-index: 10;
  user-select: none;
  flex-shrink: 0;
}

.tag-shared-footer .portfolio-section .slider-btn:hover {
  background-color: #f5f5f5;
  color: #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tag-portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  box-sizing: border-box;
}

.tag-portfolio-modal.show {
  display: flex;
  opacity: 1;
}

.tag-portfolio-modal .modal-content {
  max-width: 80vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.93);
  transition: transform 0.25s ease-in-out;
  user-select: none;
}

.tag-portfolio-modal.show .modal-content {
  transform: scale(1);
}

.tag-portfolio-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
  line-height: 1;
  z-index: 100001;
  background: none;
  border: 0;
  padding: 0;
}

.tag-portfolio-modal .close-modal:hover {
  color: #cccccc;
}

.tag-portfolio-modal .modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 100000;
  user-select: none;
}

.tag-portfolio-modal .modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.tag-portfolio-modal .prev-modal-btn {
  left: 30px;
}

.tag-portfolio-modal .next-modal-btn {
  right: 30px;
}

.tag-shared-video {
  margin: 1.5rem 0 2rem;
}

.tag-shared-video h3 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1.35rem;
}

.tag-shared-video-frame {
  background-color: #fff;
}

.tag-shared-video-inner {
  text-align: center;
}

.tag-shared-video video {
  width: 50%;
  max-width: 720px;
  height: auto;
}

.tag-shared-footer .modern-promo-block {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 30px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: #2c3e50;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid #eaeaea;
}

.tag-shared-footer .modern-promo-block h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 15px;
  color: #1a1a1a;
}

.tag-shared-footer .modern-promo-block .subtitle {
  font-size: 18px;
  color: #666;
  margin: 0 0 30px;
  line-height: 1.5;
}

.tag-shared-footer .highlight-years {
  color: #007aff;
  font-weight: 700;
}

.tag-shared-footer .promo-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.tag-shared-footer .feature-item {
  flex: 1;
  min-width: 200px;
  background: #f8f9fa;
  padding: 20px 15px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #4a5568;
  border: 1px solid #f1f3f5;
}

.tag-shared-footer .feature-item strong {
  display: block;
  color: #1a1a1a;
  margin-bottom: 5px;
  font-size: 16px;
}

.tag-shared-footer .badge-free {
  background: #e6f4ea;
  color: #137333;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-left: 3px;
}

.tag-shared-footer .promo-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.tag-shared-footer .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.tag-shared-footer .whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.tag-shared-footer .whatsapp-btn .fab {
  font-size: 19px;
}

.tag-shared-footer .works-link {
  font-size: 15px;
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed #007aff;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tag-shared-footer .works-link:hover {
  color: #0056b3;
  border-bottom-color: #0056b3;
}

.tag-shared-footer .warranty-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  color: #333333;
}

.tag-shared-footer .warranty-title {
  font-size: 28px;
  text-align: center;
  margin: 0 0 35px;
  color: #222222;
}

.tag-shared-footer .warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.tag-shared-footer .warranty-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-shared-footer .warranty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tag-shared-footer .warrant-img {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tag-shared-footer .warrant-img img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.tag-shared-footer .warrant-img img.warrant-img--service {
  width: 160px;
}

.tag-shared-footer .warrant-img img.warrant-img--hours {
  width: 150px;
}

.tag-shared-footer .warrant-post {
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #222222;
  font-weight: 700;
}

.tag-shared-footer .warranty-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

.tag-shared-footer .reviews-section {
  padding: 60px 20px;
  background: #f7faff;
  margin: 1.5rem 0;
}

.tag-shared-footer .reviews-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.tag-shared-footer .reviews-title {
  font-size: 30px;
  color: #1a2a3a;
  margin: 0 0 40px;
  font-weight: 700;
}

.tag-shared-footer .reviews-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

.tag-shared-footer .reviews-wrapper {
  width: 100%;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tag-shared-footer .review-card {
  display: none;
  width: 100%;
  max-width: 650px;
  background: #ffffff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 149, 255, 0.08);
  border: 2px solid #eef5fc;
  text-align: left;
  box-sizing: border-box;
  position: relative;
}

.tag-shared-footer .review-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 130px;
  line-height: 1;
  color: rgba(0, 162, 255, 0.07);
  font-family: Georgia, serif;
}

.tag-shared-footer .review-card.active {
  display: block;
  animation: tagSharedBrightFade 0.5s ease-out;
}

@keyframes tagSharedBrightFade {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tag-shared-footer .review-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.tag-shared-footer .review-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-right: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.tag-shared-footer .avatar-blue {
  background: linear-gradient(135deg, #00b4db, #0083b0);
}

.tag-shared-footer .avatar-pink {
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
}

.tag-shared-footer .review-info {
  display: flex;
  flex-direction: column;
}

.tag-shared-footer .review-name {
  margin: 0 0 4px;
  font-size: 19px;
  color: #111111;
  font-weight: 700;
}

.tag-shared-footer .review-stars {
  color: #ffb300;
  font-size: 15px;
  letter-spacing: 2px;
}

.tag-shared-footer .review-text {
  margin: 0;
  font-size: 16px;
  color: #334155;
  line-height: 1.6;
  font-weight: 500;
}

.tag-shared-footer .reviews-section .slider-btn {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  color: #0083b0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  user-select: none;
  flex-shrink: 0;
}

.tag-shared-footer .reviews-section .slider-btn:hover {
  color: #ffffff;
  background: #ff758c;
  border-color: #ff758c;
  box-shadow: 0 8px 20px rgba(255, 117, 140, 0.4);
  transform: translateY(-2px);
}

.tag-shared-footer .slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.tag-shared-footer .slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0;
  padding: 0;
}

.tag-shared-footer .slider-dots .dot.active {
  background-color: #ff758c;
  width: 30px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(255, 117, 140, 0.3);
}

.tag-shared-ready h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  text-align: center;
}

.tag-shared-footer .card-blocks {
  margin-bottom: 40px;
  padding-top: 30px;
  margin-top: 20px;
  background: #fff;
  border-radius: 25px;
  box-shadow: inset 0 0 0 1px transparent;
}

.tag-shared-footer .card-block-2__items {
  display: flex;
  flex-wrap: wrap;
  margin: 0 10px;
}

.tag-shared-footer .card-block-2__item {
  margin: 0 15px 30px;
  width: calc(25% - 30px);
  display: flex;
  flex-wrap: wrap;
}

.tag-shared-footer .card-block-2__num {
  width: 46px;
  height: 46px;
  margin: 0 18px 0 0;
  font-size: 20px;
  line-height: 46px;
  border-radius: 50%;
  text-align: center;
  color: #ff806e;
  background: rgba(255, 110, 100, 0.2);
  flex-shrink: 0;
}

.tag-shared-footer .card-block-2__text {
  width: calc(100% - 46px - 18px);
}

.tag-shared-footer .card-block-2__title {
  font-size: 18px;
  line-height: 1.1;
  color: #485159;
  font-weight: 500;
}

.tag-shared-footer .card-block-2__title + .card-block-2__desc {
  margin-top: 10px;
}

.tag-shared-footer .card-block-2__desc {
  font-size: 15px;
  line-height: 1.4;
  color: #7a8490;
}

.tag-shared-cta-note {
  font-size: 16px;
  margin: 10px auto;
  text-align: center;
  max-width: 52rem;
  line-height: 1.5;
}

.tag-shared-cta-alert {
  color: #d00;
}

.tag-shared-phone {
  text-align: center;
  margin: 1.25rem 0 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.tag-shared-phone a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .tag-shared-footer .slider-item {
    flex: 0 0 calc((100% - (15px * 2)) / 3);
  }
}

@media (max-width: 850px) {
  .tag-shared-footer .warranty-grid {
    grid-template-columns: 1fr;
  }

  .tag-shared-footer .warranty-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .tag-portfolio-modal .modal-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .tag-portfolio-modal .prev-modal-btn {
    left: 10px;
  }

  .tag-portfolio-modal .next-modal-btn {
    right: 10px;
  }

  .tag-portfolio-modal .modal-content {
    max-width: 85vw;
  }

  .tag-shared-footer .card-blocks {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tag-shared-footer .card-block-2__items {
    margin: 0;
  }

  .tag-shared-footer .card-block-2__item {
    width: 100%;
    margin: 0 0 20px;
  }

  .tag-shared-video video {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .tag-shared-footer .reviews-section {
    padding: 40px 10px;
  }

  .tag-shared-footer .reviews-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .tag-shared-footer .review-card {
    padding: 25px 20px;
  }

  .tag-shared-footer .review-card::before {
    display: none;
  }

  .tag-shared-footer .reviews-section .slider-btn {
    display: none;
  }
}

@media (max-width: 600px) {
  .tag-shared-footer .slider-item {
    flex: 0 0 calc((100% - 15px) / 2);
  }

  .tag-portfolio-modal .close-modal {
    top: 15px;
    right: 20px;
    font-size: 38px;
  }

  .tag-shared-footer .modern-promo-block {
    padding: 30px 20px;
    margin: 20px 10px;
  }

  .tag-shared-footer .modern-promo-block h2 {
    font-size: 22px;
  }

  .tag-shared-footer .modern-promo-block .subtitle {
    font-size: 16px;
  }

  .tag-shared-footer .feature-item {
    min-width: 100%;
  }
}

/* ??? Homepage ??? */
.home-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.home-section {
  padding: 1.75rem var(--space) 0.5rem;
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.home-section-head a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.home-hit-mark {
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.05rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.35rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 0;
}

.home-btn:hover {
  background: var(--color-accent-hover);
}

.home-btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}

.home-btn-ghost:hover {
  background: var(--color-paper-soft);
  border-color: var(--color-accent);
}

.home-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-offer-card {
  display: grid;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-offer-card:hover {
  box-shadow: 0 10px 28px rgba(28, 27, 25, 0.1);
  transform: translateY(-2px);
}

.home-offer-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-paper-soft);
  overflow: hidden;
}

.home-offer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-offer-title {
  padding: 0 0.9rem 0.95rem;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-benefit-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.15rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.home-benefit-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.home-benefit-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.home-benefit-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.home-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.home-price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-line);
}

.home-price-list li:last-child {
  border-bottom: 0;
}

.home-price-list a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
}

.home-price-list a:hover {
  color: var(--color-accent);
}

.home-price-list strong {
  white-space: nowrap;
  color: var(--color-accent);
}

.home-price-note {
  margin: 0.9rem 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-scheme-lead {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.home-scheme-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-scheme-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.home-scheme-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

.home-scheme-steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.home-scheme-steps p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.home-warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-warranty-card {
  text-align: center;
  padding: 1.15rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.home-warranty-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.home-warranty-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.home-warranty-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.home-ready-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-ready-grid article {
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper-soft);
}

.home-ready-grid strong {
  display: block;
  margin-bottom: 0.3rem;
}

.home-ready-grid p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.home-cta-band {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--color-line));
  background: color-mix(in srgb, var(--color-accent) 8%, #fff);
}

.home-cta-band h2 {
  margin: 0 0 0.45rem;
}

.home-cta-band p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .home-offer-grid,
  .home-benefit-grid,
  .home-warranty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-scheme-steps,
  .home-ready-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-offer-grid,
  .home-benefit-grid,
  .home-warranty-grid,
  .home-scheme-steps,
  .home-ready-grid {
    grid-template-columns: 1fr;
  }
}

.home-hero {
  position: relative;
  margin: 0.75rem var(--space) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ece8e1;
  min-height: clamp(16rem, 32vw, 24rem);
}

.home-hero-track {
  position: relative;
  min-height: inherit;
}

.home-hero-slide {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: inherit;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  gap: 1.5rem;
}

.home-hero-slide.is-active {
  display: grid;
}

.home-hero-slide.tone-dark {
  background:
    linear-gradient(105deg, rgba(28, 27, 25, 0.82) 0%, rgba(28, 27, 25, 0.35) 55%, transparent 100%),
    var(--hero-image, none),
    linear-gradient(135deg, #c4b8a8, #e8e2d8 45%, #d5cfc4);
  background-size: auto, cover, auto;
  background-position: center;
  color: #fff;
}

.home-hero-slide.tone-light {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    var(--hero-image, none),
    linear-gradient(135deg, #f7f4ef, #ebe6dc);
  background-size: auto, cover, auto;
  background-position: center;
  color: var(--color-ink);
}

.home-hero-slide.tone-accent {
  background:
    linear-gradient(105deg, rgba(230, 122, 0, 0.88) 0%, rgba(230, 122, 0, 0.35) 55%, transparent 100%),
    var(--hero-image, none),
    linear-gradient(135deg, #f0c070, #e8a040);
  background-size: auto, cover, auto;
  background-position: center;
  color: #fff;
}

.home-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 18ch;
}

.home-hero-copy p {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  opacity: 0.92;
}

.home-hero-visual {
  min-height: 12rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(145deg, #f7f3eb, #d9d0c2);
}

.home-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.home-hero-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.home-hero-dots button.is-active {
  background: var(--color-accent);
}

.home-promo {
  padding: 1.25rem var(--space) 0;
}

.home-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: stretch;
  min-height: 8.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: color-mix(in srgb, var(--promo-accent) 55%, #2a2a2a);
}

.home-promo-copy {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: 1rem 0.85rem 1rem 1.1rem;
  z-index: 1;
}

.home-promo-copy span {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.home-promo-copy em {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--promo-accent);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  justify-self: end;
}

.home-cat-circles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-cat-circle {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  text-decoration: none;
  color: var(--color-ink);
  border-right: 1px solid var(--color-line);
  text-align: center;
}

.home-cat-circle:last-child {
  border-right: 0;
}

.home-cat-circle-img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-paper-soft);
}

.home-cat-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cat-circle-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.home-product-rail {
  position: relative;
}

.home-product-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12.5rem, 18%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 2.2rem 0.75rem;
  scrollbar-width: thin;
}

.home-pcard {
  position: relative;
  scroll-snap-align: start;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.home-pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-paper-soft);
}

.home-pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-pcard-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0ebe3, #e4ddd2);
}

.home-pcard-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: grid;
  gap: 0.25rem;
  z-index: 1;
}

.home-pcard-badges span {
  display: inline-block;
  padding: 0.32rem 0.58rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.home-pcard-badges .is-sale {
  background: #c81e1e;
}

.home-pcard-badges .is-order {
  background: #c81e1e;
}

.home-pcard-badges .is-bulk {
  background: #2563eb;
}

.home-pcard-badges .is-new {
  background: #157a36;
}

.home-pcard-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 500;
}

.home-pcard-title a {
  color: inherit;
  text-decoration: none;
}

.home-pcard-stock {
  margin: 0;
  font-size: 0.8rem;
}

.home-pcard-stock.is-in {
  color: var(--color-ok);
}

.home-pcard-stock.is-out {
  color: var(--color-muted);
}

.home-pcard-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}

.home-pcard-prices strong {
  font-size: 0.95rem;
}

.home-pcard-prices strong.is-deal {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #dff3e4;
  color: var(--color-ok);
}

.home-pcard-prices s {
  color: #c81e1e;
  font-size: 0.85rem;
  text-decoration-thickness: 1.5px;
}

.home-pcard-save {
  margin: 0;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-ok);
  background: #e8f7ec;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.home-rail-btn {
  position: absolute;
  top: 28%;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.home-rail-btn.is-prev {
  left: 0;
}

.home-rail-btn.is-next {
  right: 0;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-cat-cell {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.1rem 0.65rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-ink);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}

.home-cat-cell:nth-child(5n) {
  border-right: 0;
}

.home-cat-cell-img {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-paper-soft);
}

.home-cat-cell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 0.85rem;
}

.home-blog-featured,
.home-blog-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.home-blog-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-paper-soft);
}

.home-blog-featured .home-blog-media {
  aspect-ratio: 16 / 11;
  min-height: 14rem;
}

.home-blog-media img,
.home-blog-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-blog-ph {
  background: linear-gradient(135deg, #efe8dc, #ddd4c6);
}

.home-blog-ph.is-delivery {
  background:
    linear-gradient(160deg, #ffe8c8, #ffd4a0 40%, #f5efe6);
}

.home-blog-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  display: grid;
  gap: 0.25rem;
}

.home-blog-overlay strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-blog-card strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.home-blog-card time,
.home-blog-overlay time {
  color: inherit;
  opacity: 0.8;
  font-size: 0.82rem;
}

.home-blog-card time {
  color: var(--color-muted);
  opacity: 1;
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem 2rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.home-about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-paper-soft);
}

.home-about-media img,
.home-about-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-about-ph {
  background: linear-gradient(145deg, #f3eee6, #e2d8c8);
}

.home-about-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.3;
}

.home-about-lead {
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.home-about-copy p {
  margin: 0 0 0.75rem;
  color: #3a3834;
}

.home-about-copy .home-btn {
  margin-top: 0.5rem;
}

.home-recent {
  padding-bottom: 1rem;
}

.home-recent h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--space);
  background: #fff;
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
  max-width: 52rem;
}

.cookie-banner a {
  color: var(--color-accent);
}

.cookie-banner button {
  flex-shrink: 0;
  margin: 0;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .home-promo-grid,
  .home-cat-circles,
  .home-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-blog-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .blog-layout,
  .blog-hero,
  .blog-grid,
  .review-form-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .home-hero-slide,
  .home-about {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    min-height: 8rem;
  }

  .home-promo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-cat-circles,
  .home-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }

  .home-cat-circle {
    border-bottom: 1px solid var(--color-line);
  }

  .home-product-track {
    grid-auto-columns: minmax(11rem, 42%);
    padding-left: 0;
    padding-right: 0;
  }

  .home-rail-btn {
    display: none;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .home-blog-grid,
  .home-promo-grid {
    grid-template-columns: 1fr;
  }
}

/* ??? Static info pages ??? */
.info-page {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 1.25rem var(--space) 3rem;
}

.info-prose {
  max-width: none;
  width: 100%;
  line-height: 1.65;
  font-size: 1.02rem;
}

.info-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.info-prose h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.1rem;
}

.info-prose p,
.info-prose ul {
  margin: 0 0 0.9rem;
}

.info-prose ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.info-prose li + li {
  margin-top: 0.35rem;
}

.info-prose a {
  color: var(--color-accent);
}

.info-note {
  padding: 0.85rem 1rem;
  background: #faf7f2;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-related {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
}

/* CMS CTA «Жалюзи под ключ» (from old site turnkey-btn) */
a.turnkey-btn {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: #fff;
  border: 1px solid #dce7f0;
  border-radius: 1rem;
  text-decoration: none;
  color: #555;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  text-align: center;
}

a.turnkey-btn:hover {
  border-color: #2da8ff;
  box-shadow: 0 15px 40px rgba(45, 168, 255, 0.15);
  transform: translateY(-3px);
  color: #555;
}

.turnkey-title {
  display: block;
  font-size: 1.65rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1678c8;
  margin-bottom: 0.85rem;
}

.turnkey-description {
  display: block;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.25rem;
}

.turnkey-link {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: #1678c8;
  color: #fff;
  border-radius: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
}

a.turnkey-btn:hover .turnkey-link {
  background: #0d5fa5;
  color: #fff;
}

@media (max-width: 768px) {
  a.turnkey-btn {
    padding: 1.25rem;
    margin: 1.75rem 0;
  }

  .turnkey-title {
    font-size: 1.3rem;
  }

  .turnkey-description {
    font-size: 1rem;
  }

  .turnkey-link {
    display: block;
    text-align: center;
  }
}

/* Staff frontend edit pencils */
.admin-pencil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #2c2a28;
  border: 1px solid rgba(44, 42, 40, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  z-index: 40;
  transition: transform 0.15s ease, background 0.15s ease;
}
.admin-pencil:hover {
  background: #f5f1ea;
  transform: scale(1.06);
  color: #1a1918;
}
.admin-pencil--page {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  z-index: 90;
}
.admin-pencil--card {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
@media (max-width: 720px) {
  .admin-pencil--page {
    top: auto;
    bottom: 5.5rem;
    right: 0.75rem;
  }
}

.search-result-row {
  position: relative;
  padding-right: 2.5rem;
}
.search-result-row .admin-pencil--card {
  top: 0;
  right: 0;
}

/* Delivery methods (cart + checkout) */
.delivery-methods-block {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--color-line, #e6e2db);
  border-radius: var(--radius-lg);
}
.delivery-methods-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.delivery-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.delivery-method-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.delivery-method-row:hover {
  background: var(--color-paper-soft, #f7f3eb);
}
.delivery-method-row.is-test {
  border: 1px dashed #c9a227;
  background: #fffdf5;
}
.delivery-method-row input[type=radio] {
  margin-top: 0.35rem;
}
.delivery-method-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.delivery-method-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.delivery-method-name {
  font-weight: 500;
  line-height: 1.35;
}
.delivery-method-price {
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text, #1a1814);
}
.delivery-method-hint {
  font-size: 0.88rem;
  color: var(--color-muted, #6b6560);
  line-height: 1.35;
}
.delivery-method-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: #efe7d8;
  color: #6b4a1e;
}
.delivery-test-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.payment-methods-block {
  margin: 0 0 1.25rem;
}
.payment-methods-block + .payment-methods-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--color-line, #e6e2db);
}
.payment-methods-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.payment-method-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.payment-method-row:hover {
  background: var(--color-paper-soft, #f7f3eb);
}
.payment-method-row.is-test {
  border: 1px dashed #c9a227;
  background: #fffdf5;
}
.payment-method-row input[type=radio] {
  margin-top: 0.35rem;
}
.payment-method-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.payment-method-name {
  font-weight: 500;
  line-height: 1.35;
}
.payment-method-hint {
  font-size: 0.88rem;
  color: var(--color-muted, #6b6560);
  line-height: 1.35;
}
.payment-method-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: #efe7d8;
  color: #6b4a1e;
}
.visibility-switch--delivery label.is-on,
.visibility-switch--payment label.is-on {
  font-weight: 600;
}
.admin-shop tr.row-test td {
  background: #fffdf5;
}

/* Favorites (wishlist) */
.account-nav-links { margin: 0.75rem 0 1.25rem; }
.account-back { margin: 0 0 0.75rem; }
.account-favorites { max-width: 64rem; }
.account-addr-hint {
  margin: -0.35rem 0 0.25rem;
  font-size: 0.86rem;
  line-height: 1.4;
}
.fav-empty { margin-top: 1.25rem; color: var(--color-muted); }
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.fav-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: var(--radius-md);
}
.fav-card-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-paper-soft);
  border-radius: var(--radius-md);
}
.fav-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fav-card-ph {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--color-muted);
  font-size: 0.85rem;
}
.fav-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.fav-card-title a {
  color: inherit;
  text-decoration: none;
}
.fav-card-title a:hover { color: var(--color-accent); }
.fav-card-price {
  margin: 0.35rem 0 0.65rem;
  font-weight: 700;
}
.fav-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.fav-remove-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-line);
  background: #fff;
  color: #8a3a3a;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.fav-remove-btn:hover { background: #fff5f5; }
.account-fav-preview { margin-top: 2rem; }
.account-fav-list { margin: 0.5rem 0 1rem; padding-left: 1.1rem; }

@media (max-width: 520px) {
  .pd-buy-row {
    grid-template-columns: minmax(0, 1fr) 2.6rem;
  }
  .header-fav span:not(.header-icon-mark):not(.header-fav-badge) {
    display: none;
  }
}

/* —— Toast notifications (ADNotify) —— */
.ad-notify-root {
  position: fixed;
  z-index: 12000;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(24.5rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.ad-notify {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem 0.75rem;
  align-items: start;
  padding: 0.9rem 0.85rem 0.95rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fffdf9;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 36px rgba(28, 27, 25, 0.14);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ad-notify.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ad-notify.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.ad-notify-mark {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 18%, #fff);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.ad-notify-mark::before {
  content: "i";
}

.ad-notify--success .ad-notify-mark {
  background: color-mix(in srgb, var(--color-ok) 18%, #fff);
  color: var(--color-ok);
}
.ad-notify--success .ad-notify-mark::before { content: "✓"; }

.ad-notify--favorite .ad-notify-mark {
  background: #fff0f0;
  color: #c0392b;
}
.ad-notify--favorite .ad-notify-mark::before { content: "♥"; }

.ad-notify--warning .ad-notify-mark {
  background: #fff6e8;
  color: #b56a00;
}
.ad-notify--warning .ad-notify-mark::before { content: "!"; }

.ad-notify--error .ad-notify-mark {
  background: #fdeeee;
  color: #a33;
}
.ad-notify--error .ad-notify-mark::before { content: "!"; }

.ad-notify-body {
  min-width: 0;
}

.ad-notify-title {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
}

.ad-notify-msg {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.ad-notify-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.ad-notify-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.ad-notify-close {
  margin: -0.15rem -0.1rem 0 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.ad-notify-close:hover {
  color: var(--color-ink);
}

@media (max-width: 520px) {
  .ad-notify-root {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    width: auto;
  }
}

/* 152-FZ consent — checkbox left of text (global input{width:100%} must not apply) */
label.pd-consent,
.pd-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-muted, #6f6a63);
  cursor: pointer;
  font-weight: 500;
}
label.pd-consent input[type="checkbox"],
.pd-consent input[type="checkbox"] {
  width: auto;
  max-width: none;
  min-width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
  accent-color: var(--color-accent, #c45c26);
}
.pd-consent > span {
  flex: 1;
  min-width: 0;
}
.pd-consent a {
  color: inherit;
  text-decoration: underline;
}
.cko-consent .pd-consent {
  margin-top: 0;
}

/* AI feedback CTA under greeting */
.ai-feedback-invite {
  margin-top: 0.35rem;
}
.ai-feedback-cta-link {
  display: inline;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--color-accent, #8a5a2b);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
}
.ai-feedback-cta-link:hover {
  color: var(--color-accent-hover, #6b4420);
}

/* Site feedback dialog — compact, no inner scroll */
.site-feedback-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: min(28rem, calc(100vw - 1.5rem));
  width: calc(100% - 2rem);
  max-height: none;
  overflow: visible;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.site-feedback-dialog::backdrop {
  background: rgba(28, 24, 20, 0.45);
}
.site-feedback-inner {
  padding: 0.9rem 1.1rem 1rem;
  margin: 0;
  max-width: none;
  gap: 0;
}
.site-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.15rem;
}
.site-feedback-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.site-feedback-hint {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  line-height: 1.35;
}
.site-feedback-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted, #6f6a63);
  border-radius: var(--radius-md);
  padding: 0.1rem 0.35rem;
}
.site-feedback-inner label {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
}
.site-feedback-inner input:not([type="checkbox"]):not([type="hidden"]),
.site-feedback-inner textarea {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 0.2rem;
  border: 1px solid var(--color-line, #d9d5ce);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.6rem;
  font: inherit;
  background: #fff;
}
.site-feedback-inner textarea {
  min-height: 4.2rem;
  resize: vertical;
}
.site-feedback-inner .pd-consent {
  display: flex;
  align-items: flex-start;
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}
.site-feedback-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.site-feedback-actions .btn,
.site-feedback-actions .btn-ghost,
.site-feedback-actions button {
  margin-top: 0;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
}

.works-page {
  max-width: var(--pd-max);
}

.works-body {
  max-width: none;
}

.works-lead {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.works-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.works-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(40 28 16 / 6%);
}

.works-card-link {
  position: relative;
  display: block;
  background: var(--color-paper-soft);
}

.works-card-link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.works-card-link:hover img {
  transform: scale(1.04);
}

.works-card-count {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.works-card figcaption {
  margin: 0;
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--color-ink);
}

.works-card figcaption a {
  color: inherit;
  text-decoration: none;
}

.works-card figcaption a:hover {
  color: var(--color-accent);
}

.works-project-meta {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.works-project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.works-project-shot {
  display: block;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #fff;
  box-shadow: 0 8px 24px rgb(40 28 16 / 6%);
}

.works-project-shot img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.works-project-shot:hover img {
  transform: scale(1.03);
}

.works-project-back {
  margin: 0;
}

.works-project-back a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.works-project-back a:hover {
  text-decoration: underline;
}

.works-lightbox {
  width: min(96vw, 72rem);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: #111;
  color: #fff;
}

.works-lightbox::backdrop {
  background: rgb(0 0 0 / 72%);
}

.works-lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
}

.works-lightbox-caption {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}

.works-lightbox-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.works-lightbox-stage {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.4rem;
  min-height: 50vh;
  padding: 0 0.4rem 0.6rem;
}

.works-lightbox-stage img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.works-lightbox-nav {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.works-lightbox-counter {
  margin: 0;
  padding: 0 1rem 0.85rem;
  text-align: center;
  color: rgb(255 255 255 / 72%);
  font-size: 0.85rem;
}

/* Floating messengers (from old jalousie-moscow.ru) */
.whatsapp-button,
.telegram-button {
  position: fixed;
  right: 13px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  color: #fff;
  text-align: center;
  line-height: 53px;
  font-size: 35px;
  z-index: 9999;
  box-sizing: border-box;
}

.whatsapp-button {
  bottom: 150px;
  background: #25d366;
}

.telegram-button {
  bottom: 80px;
  background: #0088cc;
}

.whatsapp-button a,
.telegram-button a,
a .whatsapp-button,
a .telegram-button {
  color: #fff;
}

.whatsapp-button:before,
.whatsapp-button:after,
.telegram-button:before,
.telegram-button:after {
  content: " ";
  display: block;
  position: absolute;
  border: 1px solid currentColor;
  left: -20px;
  right: -20px;
  top: -20px;
  bottom: -20px;
  border-radius: 50%;
  animation: messenger-pulse 1.5s linear infinite;
  opacity: 0;
  backface-visibility: hidden;
  pointer-events: none;
}

.whatsapp-button:before,
.whatsapp-button:after {
  border-color: #25d366;
}

.telegram-button:before,
.telegram-button:after {
  border-color: #0088cc;
}

.whatsapp-button:after,
.telegram-button:after {
  animation-delay: 0.5s;
}

.whatsapp-button i {
  margin-top: 10px;
}

.telegram-button i {
  margin-top: 8px;
  margin-right: 4px;
}

@keyframes messenger-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .whatsapp-button {
    bottom: 9.5rem;
  }

  .telegram-button {
    bottom: 5.5rem;
  }
}
