
:root {
  --bg: #f6f6f8;
  --bg-deep: #eceef2;
  --ink: #1b1b1f;
  --muted: #6b6f76;
  --brand: #e6231a;
  --brand-dark: #b71c12;
  --accent: #ffd200;
  --lego-red: #e6231a;
  --lego-yellow: #ffd200;
  --lego-blue: #006db7;
  --lego-green: #008e3c;
  --surface: #ffffff;
  --border: #e1e3e8;
  --shadow: rgba(15, 16, 20, 0.12);
  --grid-gap: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 45%, var(--bg-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  animation: pageFade 0.8s ease both;
}

[hidden] {
  display: none !important;
}

html.i18n-pending [data-i18n],
html.i18n-pending [data-i18n-placeholder],
html.i18n-pending [data-i18n-html] {
  visibility: hidden;
}

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

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 18px 6vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-search {
  grid-column: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.topbar-search input {
  width: min(520px, 100%);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-btn svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-toggle {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
}

.favorites-toggle {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
}

.icon-btn.lang-toggle,
.icon-btn.favorites-toggle {
  padding: 0;
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--brand);
  text-decoration: none;
  display: inline-block;
}

.cart-toggle {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
}

.lang-btn.active {
  background: var(--ink);
  color: #fff;
}

.lang-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 70;
}

.lang-modal.open {
  display: flex;
}

.lang-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  width: min(520px, 92vw);
  box-shadow: 0 20px 40px rgba(15, 16, 20, 0.2);
}

.lang-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lang-close {
  border: none;
  background: var(--ink);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.lang-option {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.lang-option.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.flag-ru {
  background-image: linear-gradient(#ffffff 0 33%, #2f4bff 33% 66%, #d61f2a 66% 100%);
}

.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012469'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' stroke='%23c8102e' stroke-width='3'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23c8102e' stroke-width='6'/%3E%3C/svg%3E");
}

.hero {
  display: grid;
  padding: 64px 6vw 48px;
  position: relative;
  z-index: 2;
}

.hero-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 34px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-copy-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.hero-copy-eyebrow:empty {
  display: none;
}

.hero-copy-title {
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: #111318;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

.hero-copy-lead {
  max-width: 520px;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 600;
  line-height: 1.35;
  color: #111318;
}

.hero-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-right {
  display: grid;
  gap: 18px;
  align-items: center;
}

.hero-custom-card,
.hero-feature-card {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 28px;
  background: #17181d;
  color: #f6f6f8;
  box-shadow: 0 26px 50px rgba(15, 16, 20, 0.25);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.hero-feature-card {
  grid-template-columns: minmax(220px, 1.1fr) minmax(200px, 0.9fr);
}

.hero-feature-card.loading {
  position: relative;
  background: #1f2026;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  min-height: 240px;
}

.hero-feature-card.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 8%, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.04) 33%);
  background-size: 200% 100%;
  animation: heroShimmer 1.4s linear infinite;
  z-index: 2;
}

.hero-feature-card.loading::after {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroSpin 0.9s linear infinite;
  z-index: 3;
}

.hero-feature-card.loading .hero-feature-info {
  opacity: 0;
}

.hero-feature-card.loading .hero-feature-media {
  opacity: 0;
}

.hero-feature-card.loading .hero-feature-actions,
.hero-feature-card.loading a,
.hero-feature-card.loading button {
  pointer-events: none;
}

.hero-feature-card::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.16);
  right: -90px;
  top: -80px;
  pointer-events: none;
  animation: spin 22s linear infinite;
}

.hero-feature-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 8px 0 12px;
  line-height: 1.1;
}

.hero-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 223, 162, 0.18);
  border: 1px solid rgba(56, 223, 162, 0.4);
  color: #f6f6f8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#heroProductMeta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.hero-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-feature-card .ghost {
  color: #f6f6f8;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-feature-card .ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 12px;
  position: relative;
  min-height: 240px;
}

.hero-feature-media img {
  width: 100%;
  max-width: 560px;
  max-height: 420px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3));
}

.hero-feature-media.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(17, 19, 24, 0.06) 8%, rgba(17, 19, 24, 0.14) 18%, rgba(17, 19, 24, 0.06) 33%);
  background-size: 200% 100%;
  animation: heroShimmer 1.4s linear infinite;
}

.hero-feature-media.is-loading::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(17, 19, 24, 0.22);
  border-top-color: rgba(17, 19, 24, 0.85);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroSpin 0.9s linear infinite;
}

.hero-feature-media.is-loading img {
  opacity: 0;
}

.hero-feature-media.is-empty {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

.hero-custom-card {
  grid-template-columns: 1fr;
  text-align: left;
  padding-bottom: 76px;
}

.hero-custom-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-custom-badge:empty {
  display: none;
}

.hero-custom-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.12;
}

.hero-custom-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.hero-custom-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-custom-card .ghost {
  color: #f6f6f8;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-custom-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.14);
  right: -40px;
  top: -50px;
  animation: spin 18s linear infinite;
}

.hero-custom-bricks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-custom-brick {
  position: absolute;
  width: 120px;
  height: 44px;
  border-radius: 14px;
  background: url("/assets/brick.png") center/contain no-repeat;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
  animation: heroBrickFloat 5.4s ease-in-out infinite;
  opacity: 0.9;
}

.hero-custom-brick.brick-1 {
  left: -10px;
  bottom: 16px;
  transform: rotate(-10deg);
  z-index: 1;
}

.hero-custom-brick.brick-2 {
  right: 60px;
  bottom: -8px;
  width: 110px;
  height: 40px;
  animation-delay: 0.6s;
  transform: rotate(6deg);
  z-index: 1;
}

.hero-custom-brick.brick-3 {
  right: 12px;
  top: 42px;
  width: 100px;
  height: 38px;
  animation-delay: 1.2s;
  transform: rotate(-4deg);
  z-index: 1;
}

@keyframes heroShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes heroSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cta,
.ghost {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.cta:active,
.ghost:active,
.product-actions button:active {
  transform: translateY(1px) scale(0.98);
}

.cta {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 12px 20px var(--shadow);
}

.ghost {
  background: transparent;
  color: var(--ink);
}

.cta:hover,
.ghost:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px var(--shadow);
}



.mini {
  background: #fff;
  color: var(--ink);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.filters,
.catalog {
  padding: 40px 6vw;
  position: relative;
  z-index: 2;
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.catalog-more .ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(15, 16, 20, 0.08);
}

.recent {
  padding: 26px 6vw 40px;
  position: relative;
  z-index: 1;
}

.reviews {
  padding: 20px 6vw 40px;
  position: relative;
  z-index: 1;
}

.reviews-inner {
  background: transparent;
  border-radius: 28px;
  padding: 20px 0 10px;
  box-shadow: none;
  display: grid;
  gap: 20px;
}

.reviews-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.reviews-head .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 210, 0, 0.22);
  color: #b71c12;
  border: 1px solid rgba(230, 35, 26, 0.25);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.reviews-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #1b1b1f;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 16px;
  align-items: stretch;
  overflow-x: auto;
  padding: 6px 2vw 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  height: 0;
}

.review-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(15, 16, 20, 0.06);
  box-shadow: 0 16px 28px rgba(15, 16, 20, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  height: 100%;
  text-align: center;
}

.review-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(60, 86, 241, 0.08), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.review-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f0f2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 4px;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
}

.review-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-media.is-empty {
  background: linear-gradient(120deg, #f0f2f6, #ffffff);
}

.review-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.review-stars {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.review-star {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.12);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.review-star.filled {
  background: #ffb200;
  box-shadow: 0 6px 10px rgba(255, 178, 0, 0.35);
}

.review-text {
  color: #5c6473;
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-line;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.55em * 3);
  max-height: calc(1.55em * 3);
}

.review-card.is-expanded .review-text {
  -webkit-line-clamp: initial;
  max-height: none;
}

.review-toggle {
  align-self: center;
  border: none;
  background: transparent;
  color: #1d63ff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.review-toggle[hidden] {
  display: none;
}

.review-name {
  color: rgba(27, 27, 31, 0.55);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 2px;
}

.review-card.is-animating {
  animation: reviewFade 0.6s ease both;
}

.reviews-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.reviews-nav .ghost {
  padding: 8px 14px;
}

@keyframes reviewFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.advantages {
  padding: 16px 6vw 40px;
  position: relative;
  z-index: 1;
}

.advantages-inner {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border-radius: 28px;
  padding: 32px 28px 30px;
  border: 1px solid #eef0f4;
  box-shadow: 0 18px 30px rgba(15, 16, 20, 0.08);
  overflow: hidden;
}

.advantages-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 20, 30, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.25;
  pointer-events: none;
}

.advantages-inner::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 90, 48, 0.18), transparent 60%);
  pointer-events: none;
}

.advantages-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.advantage-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e9ecf2;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 22px rgba(15, 16, 20, 0.08);
  overflow: hidden;
}

.advantage-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a30, #ff9b2f);
}

.advantage-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 205, 0, 0.15);
  transform: rotate(18deg);
}

.advantage-card:nth-child(2)::before {
  background: linear-gradient(90deg, #2ab3ff, #4bd1ff);
}

.advantage-card:nth-child(3)::before {
  background: linear-gradient(90deg, #12c77b, #5ee08c);
}

.advantage-card:nth-child(4)::before {
  background: linear-gradient(90deg, #7f5bff, #b894ff);
}

.advantage-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.advantage-text {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.faq {
  padding: 34px 6vw 50px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.7) 0%, rgba(246, 247, 251, 0.2) 100%);
}

.faq-inner {
  background: #fff;
  border-radius: 26px;
  padding: 30px 26px 10px;
  box-shadow: 0 18px 32px rgba(15, 16, 20, 0.08);
}

.faq-badge {
  margin: 0 auto 10px;
  width: fit-content;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #b71c12;
  background: rgba(255, 210, 0, 0.22);
  border: 1px solid rgba(230, 35, 26, 0.25);
  text-transform: uppercase;
}

.faq-inner h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 14px;
  text-align: center;
  color: #1b1b1f;
}

.faq-list {
  display: grid;
}

.faq-item {
  border-bottom: 1px solid rgba(15, 16, 20, 0.08);
  background: transparent;
  transition: background 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item.open {
  background: rgba(255, 210, 0, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 8px;
  background: transparent;
  border: none;
  font-weight: 600;
  text-align: left;
  color: #0f244d;
  cursor: pointer;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #7a869a;
}

.faq-chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 8px 18px;
  color: #4c5a73;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-inline {
  padding: 30px 6vw 10px;
  position: relative;
  z-index: 2;
}

.newsletter-inline-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(200px, 0.9fr);
  gap: 24px;
  align-items: center;
  background: radial-gradient(circle at top left, #25262b 0%, #0f0f12 60%);
  border-radius: 28px;
  padding: 28px 32px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.newsletter-inline-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.newsletter-inline-text p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
  max-width: 520px;
}

.newsletter-inline-form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 12px;
  margin-bottom: 12px;
}

.newsletter-inline-form input {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.newsletter-inline-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-inline-note {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.newsletter-inline-note a {
  color: #fff;
  text-decoration: underline;
}

.newsletter-inline-visual {
  position: relative;
  min-height: 180px;
}

.newsletter-inline-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  right: -30px;
  top: -40px;
  animation: spin 14s linear infinite;
}

.newsletter-inline-brick {
  position: absolute;
  width: 120px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  background: url("/assets/brick.png") center/contain no-repeat;
  animation: legoDrop 2.8s ease-in-out infinite;
}

.newsletter-inline-brick::before {
  display: none;
}

.newsletter-inline-brick.brick-red {
  left: 10%;
  top: 25%;
  filter: hue-rotate(-10deg) saturate(1.2);
}

.newsletter-inline-brick.brick-blue {
  right: 10%;
  top: 45%;
  width: 110px;
  height: 40px;
  filter: hue-rotate(190deg) saturate(1.1);
  animation-delay: 0.4s;
}

.newsletter-inline-brick.brick-green {
  left: 30%;
  bottom: 10%;
  width: 100px;
  height: 38px;
  filter: hue-rotate(95deg) saturate(1.1);
  animation-delay: 0.8s;
}

.recent-inner {
  background: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 30px rgba(15, 16, 20, 0.08);
  text-align: center;
}

.recent-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 22px;
}

.recent-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.recent-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 140px;
}

.recent-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.2);
}

.recent-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.catalog-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 6px;
}

.catalog-sub {
  color: var(--muted);
}

.catalog-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.catalog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.catalog-actions button,
.catalog-tools input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
}

.catalog-actions button {
  cursor: pointer;
}

#toggleFavorites.active {
  background: #ff3b30;
  color: #fff;
  border-color: #ff3b30;
}

.filters-open-btn {
  display: none;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.catalog-actions .filters-open-btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.catalog-tools input {
  min-width: 240px;
}

.sort-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: visible;
  background: #fff;
  position: relative;
}

.sort-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.sort-btn.active {
  background: var(--ink);
  color: #fff;
}

.sort-select {
  border: none;
  background: #fff;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
}

.sort-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.sort-toggle {
  border: none;
  background: #fff;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-width: 180px;
  width: 100%;
  text-align: left;
  position: relative;
  border-radius: 999px;
}

.sort-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.7;
}

.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(15, 16, 20, 0.15);
  padding: 6px;
  z-index: 5;
}

.sort-menu.open {
  display: grid;
  gap: 4px;
}

.sort-option {
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.sort-option:hover {
  background: rgba(15, 16, 20, 0.06);
}

.sort-option.active {
  background: var(--ink);
  color: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 28px;
}

.catalog-main {
  max-width: none;
  width: 100%;
}

.filters-panel {
  background: linear-gradient(160deg, #ffffff 0%, #f7f8fb 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  position: sticky;
  top: 100px;
  align-self: start;
  box-shadow: 0 16px 32px rgba(15, 16, 20, 0.12);
  max-height: calc(100vh - 140px);
  overflow: auto;
  overscroll-behavior: contain;
}

.filters-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.filters-panel-head,
.filters-panel-head button,
.filters-open-btn,
.filters-close,
.filters-apply,
.range-group,
.filter-card {
  cursor: pointer;
}

.range-group {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 16px rgba(15, 16, 20, 0.06);
  margin-bottom: 14px;
}

.range-group h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.range-inputs label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 0;
}

.range-inputs input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  width: 100%;
}

.range-inputs input:focus {
  outline: none;
  border-color: var(--ink);
}

.filters-close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  display: none;
}

.filters-apply {
  display: none;
  width: 100%;
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filters-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  position: static;
  background: transparent;
  padding: 0;
  border-top: 0;
}

.filters-clear {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-groups {
  display: grid;
  gap: 16px;
}

.filter-card {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-card.discount-card {
  background: linear-gradient(135deg, rgba(240, 90, 35, 0.12), rgba(255, 255, 255, 0.95));
  border-color: rgba(240, 90, 35, 0.28);
  position: relative;
  overflow: hidden;
}

.filter-card.discount-card::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -10%;
  height: 140%;
  background: radial-gradient(circle, rgba(240, 90, 35, 0.18), transparent 60%);
  pointer-events: none;
}

.filter-card.discount-card h4 {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--brand-dark);
}

.discount-chip {
  border-color: rgba(240, 90, 35, 0.4);
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.85);
}

.discount-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.filter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.filter-toggle:hover {
  transform: translateY(-1px);
  background: #f7f7f9;
  border-color: rgba(15, 16, 20, 0.25);
}

.filter-card.revealed {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 16, 20, 0.12);
}

.filter-card h4 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-card.collapsed .chips {
  display: none;
}

.filter-card .chips {
  transition: opacity 0.2s ease;
  opacity: 1;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip-count {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0f2f6;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
}

.chip.active .chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  justify-content: stretch;
  justify-items: stretch;
  align-items: stretch;
}

.product-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 8px;
  border: 1px solid rgba(15, 16, 20, 0.07);
  box-shadow: 0 10px 20px rgba(15, 16, 20, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: cardRise 0.6s ease both;
}

.product-card.no-animate {
  animation: none;
}

.skeleton-card {
  pointer-events: none;
  animation: none;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.6) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-img {
  height: 180px;
  border-radius: 16px;
  background: #e6e8ee;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: #e6e8ee;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-meta {
  height: 40px;
  border-radius: 12px;
  background: #e6e8ee;
}

.skeleton-actions {
  height: 36px;
  border-radius: 999px;
  background: #e6e8ee;
}

.product-bought-wrap {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  pointer-events: none;
}

.product-bought-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #d9f5c7;
  color: #1d4b2f;
  border-radius: 16px;
  padding: 12px 14px 12px 44px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  max-width: 260px;
  min-height: 44px;
}

.product-bought-inline span {
  line-height: 1.3;
  flex: 1 1 auto;
}

.product-bought-close {
  border: none;
  background: rgba(29, 75, 47, 0.15);
  color: #1d4b2f;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
}

.product-bought-inline::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: url("/assets/bag.png") center/contain no-repeat;
}

@media (max-width: 700px) {
  .product-bought-wrap {
    left: 16px;
    right: 16px;
  }
  .product-bought-inline {
    max-width: none;
  }
}

.product-card.has-discount {
  grid-column: auto;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(15, 16, 20, 0.14);
  border-color: rgba(15, 16, 20, 0.16);
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f6fa;
  padding: 6px;
  border-radius: 12px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 16, 20, 0.03);
}

.product-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f5f6fa;
}

.product-link-image {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-fab {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--lego-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 20px rgba(230, 35, 26, 0.35);
  cursor: pointer;
  z-index: 4;
}

.cart-fab svg {
  width: 20px;
  height: 20px;
}

.cart-fab-global {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--lego-yellow), #ffb100);
  color: #1b1b1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(255, 177, 0, 0.35);
  border: none;
  z-index: 60;
}

.cart-fab-global svg {
  width: 26px;
  height: 26px;
}

.cart-fab-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--lego-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(230, 35, 26, 0.3);
  padding: 0 6px;
}

.discount-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--lego-red);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 16px rgba(230, 35, 26, 0.28);
  z-index: 3;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 16, 20, 0.15);
  background: rgba(255, 255, 255, 0.9);
  color: #1b1b1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.media-nav svg {
  width: 18px;
  height: 18px;
}

.media-nav.prev {
  left: 10px;
}

.media-nav.next {
  right: 10px;
}

.product-card:hover .media-nav,
.media-nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1.02);
}

@media (hover: none) {
  .media-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

.product-link {
  display: block;
  color: inherit;
}

.product-link-title {
  font-weight: 700;
}

.product-info {
  display: grid;
  gap: 6px;
  padding: 0 2px 2px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111318;
  line-height: 1.25;
  min-height: 1.25em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  padding: 0;
  background: transparent;
  border: none;
}

.product-meta > div {
  min-width: 0;
}

.product-notes {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.product-notes.product-info-card {
  background: #ecfff2;
  border: 1px solid #bfe6cb;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: none;
}

.product-notes-detail {
  margin-top: 0;
}

.product-note {
  background: transparent;
  border: none;
  padding: 0 0 0 30px;
  font-size: 0.95rem;
  color: #0f7a45;
  position: relative;
  --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' stroke='white' stroke-width='2'/%3E%3Cpath d='M3 9h18' stroke='white' stroke-width='2'/%3E%3Cpath d='M7 3v4M17 3v4' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.product-note + .product-note {
  margin-top: 6px;
}
.product-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #0f7a45;
  background-image: var(--note-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
}
.product-note::after {
  content: none;
}
.product-note.note-stock {
  --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L3 14h6l-2 8 10-12h-6l2-8z' fill='white'/%3E%3C/svg%3E");
}
.product-note.note-delivery {
  --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' stroke='white' stroke-width='2'/%3E%3Cpath d='M3 9h18' stroke='white' stroke-width='2'/%3E%3Cpath d='M7 3v4M17 3v4' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.product-refunds {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.product-refunds.product-info-card {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 16, 20, 0.05);
}

.refund-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-radius: 0;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1b2a52;
  box-shadow: none;
  --refund-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='6' width='16' height='12' rx='2' stroke='%231d63ff' stroke-width='2'/%3E%3Cpath d='M4 10h16' stroke='%231d63ff' stroke-width='2'/%3E%3Cpath d='M10 6v12' stroke='%231d63ff' stroke-width='2'/%3E%3C/svg%3E");
}

.refund-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  flex: 0 0 18px;
  background-image: var(--refund-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.refund-icon::after {
  content: none;
}

.refund-blue {
  color: #1d63ff;
  background: transparent;
  border-color: transparent;
}
.refund-item.refund-damaged {
  --refund-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4l8 14H4l8-14z' stroke='%231d63ff' stroke-width='2'/%3E%3Cpath d='M12 9v4' stroke='%231d63ff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16' r='1' fill='%231d63ff'/%3E%3C/svg%3E");
}
.refund-item.refund-delivery {
  --refund-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='8' stroke='%231d63ff' stroke-width='2'/%3E%3Cpath d='M12 8v5l3 2' stroke='%231d63ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.price-value {
  font-size: 1.08rem;
  font-weight: 800;
  white-space: nowrap;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  white-space: normal;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.price-current {
  font-size: 1.08rem;
  font-weight: 800;
  color: #111318;
  white-space: nowrap;
}

.price-current,
.discount-pill {
  flex: 0 0 auto;
}

.discount-pill {
  background: rgba(255, 210, 0, 0.2);
  color: #8a5b00;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  max-width: 100%;
}

.price-old {
  position: relative;
  color: #8b8f97;
  font-size: 0.82rem;
  opacity: 0.9;
  padding: 0 2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.price-old::after {
  content: "";
  position: absolute;
  left: -2px;
  width: calc(100% + 4px);
  top: 50%;
  height: 2px;
  background: #8b8f97;
  transform: translateY(-50%) rotate(-10deg);
  transform-origin: 50% 50%;
}

.pieces-block {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #6f7480;
  background: #f5f6fa;
  border-radius: 8px;
  padding: 4px 6px;
}

.pieces-label {
  display: none;
}

.product-meta-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffd200;
  color: #111318;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  z-index: 2;
  box-shadow: 0 10px 16px rgba(240, 90, 35, 0.25);
}

.fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(15, 16, 20, 0.1);
  background: #fff;
  color: #b0b3b8;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.fav-btn.active {
  color: #ff3b30;
  border-color: #ff3b30;
}

.fav-btn.active svg {
  fill: currentColor;
}

.fav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(15, 16, 20, 0.12);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  justify-content: flex-end;
}

.product-actions button {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-actions .icon-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-actions .icon-btn svg {
  width: 20px;
  height: 20px;
}

.product-actions .icon-btn + button {
  flex: 1;
}

.product-actions .icon-btn {
  background: linear-gradient(135deg, #0f1014 0%, #23252d 100%);
  color: #fff;
  box-shadow: 0 12px 18px rgba(15, 16, 20, 0.22);
}

.product-actions button:not(.icon-btn) {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(15, 16, 20, 0.12);
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: #fff;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.2);
  border-radius: 24px 0 0 24px;
  transform: translateX(110%);
  transition: transform 0.35s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.cart.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-header button {
  cursor: pointer;
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.waitlist-modal.open {
  display: flex;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 20, 0.55);
  backdrop-filter: blur(2px);
}

.waitlist-card {
  position: relative;
  max-width: 520px;
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 40px rgba(15, 16, 20, 0.2);
  z-index: 1;
}

.waitlist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f0f2f6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.waitlist-lead {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.waitlist-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.waitlist-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.waitlist-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.waitlist-success-card {
  text-align: center;
  padding: 30px 28px 26px;
}

.waitlist-success-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: #fff6d9;
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.2), 0 18px 30px rgba(15, 16, 20, 0.12);
}

.cart-item {
  background: var(--bg);
  padding: 12px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.cart-item-media {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-link {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.cart-item-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-item-title:hover {
  text-decoration: underline;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.qty-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 6px;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.qty-minus {
  background: #ff5a5a;
}

.qty-plus {
  background: #46d1b2;
  color: #083a35;
}

.buy-single {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: #1c1b19;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  line-height: 1;
}

.remove {
  border: none;
  background: #1c1b19;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 90;
}

.cart-page .cart {
  position: static;
  transform: none;
  width: min(980px, 92vw);
  height: auto;
  margin: 30px auto 60px;
  box-shadow: 0 18px 32px rgba(15, 16, 20, 0.16);
  border-radius: 24px;
}

.cart-page .cart-items {
  max-height: none;
}

.cart-page-content {
  padding: 30px 6vw 10px;
}

.cart-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.modal.open {
  display: flex;
}

.image-zoom {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 15, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.image-zoom.open {
  display: flex;
}

.image-zoom img {
  max-width: min(92vw, 900px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.image-zoom video {
  max-width: min(92vw, 900px);
  max-height: 90vh;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
  background: #000;
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.1fr);
  gap: 20px;
  padding: 20px;
  position: relative;
}

.modal-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

.modal-media {
  display: grid;
  gap: 10px;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px;
}

.modal-thumb {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.modal-thumb.active {
  border-color: var(--ink);
  opacity: 1;
}

.modal-thumb img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #1c1b19;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 12px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


.product-page {
  padding: 28px 4vw 80px;
  position: relative;
  z-index: 2;
  background: #f6f7f9;
  border-top: 1px solid rgba(15, 16, 20, 0.08);
}

.product-page[hidden] {
  display: none;
}

.product-page-inner {
  display: grid;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

#productBack {
  justify-self: start;
  font-weight: 600;
  color: #3f4450;
  border-radius: 999px;
  border: 1px solid #e2e3ea;
  padding: 6px 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 16, 20, 0.06);
  margin-bottom: 12px;
}

.product-page-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 24px;
  align-items: start;
}

.product-page.loading .product-page-card,
.product-page.loading .recommendations {
  position: relative;
  overflow: hidden;
}

.product-page.loading .product-page-card::after,
.product-page.loading .recommendations::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.6) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
}

.product-page.loading .product-main,
.product-page.loading .product-page-meta,
.product-page.loading .product-page-actions {
  background: #e6e8ee;
  border-color: transparent;
}

.product-page.loading #productTitle,
.product-page.loading #productDescription,
.product-page.loading .product-thumb {
  background: #e6e8ee;
  color: transparent;
}

.product-page.loading #productTitle {
  height: 28px;
  border-radius: 999px;
}

.product-page.loading #productDescription {
  height: 80px;
  border-radius: 14px;
}

.product-page-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  background: #fff;
  border-radius: 22px;
  border: 1px solid #eaedf2;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 16, 20, 0.06);
}

.product-main {
  background: #f7f8fb;
  border-radius: 18px;
  border: 1px solid #edf0f5;
  padding: 10px;
}

.product-main-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(15, 16, 20, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #1b1b1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.product-gallery-nav.prev {
  left: 8px;
}

.product-gallery-nav.next {
  right: 8px;
}

.product-page-gallery:hover .product-gallery-nav {
  opacity: 1;
  transform: translateY(-50%) scale(1.02);
}

.product-gallery-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.product-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  filter: none;
}

.product-main video {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  background: #f7f8fb;
  display: none;
}

.product-main video.is-active {
  display: block;
}

.product-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 10px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 2px;
  justify-content: start;
}

.product-gallery-col {
  display: contents;
}

.product-related {
  display: grid;
  gap: 10px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(15, 16, 20, 0.08);
  padding: 14px;
  margin-top: 18px;
  box-shadow: 0 12px 24px rgba(15, 16, 20, 0.08);
}

.product-related-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.product-related-track {
  position: relative;
  overflow: hidden;
}

.product-related-track .swiper-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 36px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.product-related-track .swiper-wrapper::-webkit-scrollbar {
  height: 6px;
}

.product-related-track .swiper-wrapper::-webkit-scrollbar-thumb {
  background: rgba(15, 16, 20, 0.25);
  border-radius: 999px;
}

.product-related-track .swiper-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.swiper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(15, 16, 20, 0.12);
  background: #fff;
  color: #1b1b1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.12);
}

.swiper-nav.prev {
  left: 0;
}

.swiper-nav.next {
  right: 0;
}

.swiper-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.product-related-card {
  background: #fff;
  border: 1px solid rgba(15, 16, 20, 0.12);
  border-radius: 14px;
  padding: 6px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  min-width: 92px;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.product-related-card.active {
  border-color: rgba(240, 90, 35, 0.6);
  box-shadow: 0 8px 18px rgba(240, 90, 35, 0.25);
}

.product-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.12);
}

.product-related-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #f4f4f7;
  display: block;
}

.product-related-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.product-related-price {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-thumb {
  border: 1px solid #e6e7ee;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  cursor: pointer;
  opacity: 0.7;
  width: 92px;
  height: 72px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.product-thumb.active {
  border-color: #f4b400;
  opacity: 1;
  box-shadow: 0 8px 16px rgba(244, 180, 0, 0.25);
}

.product-thumb {
  scroll-snap-align: start;
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.product-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #fff;
}

.product-page-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  grid-column: 2;
  background: #fff;
  border-radius: 22px;
  border: 1px solid #eaedf2;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 16, 20, 0.06);
}

.product-buy-col {
  position: static;
  align-self: start;
  grid-column: 2;
  grid-row: auto;
}

.product-buy-card {
  display: grid;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.product-buy-card .product-price-card,
.product-buy-card .product-inline-stats,
.product-buy-card .product-qty-row,
.product-buy-card .product-page-actions-top {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.product-buy-card .product-qty-row,
.product-buy-card .product-page-actions-top {
  border-top: 1px solid #edf0f5;
  padding-top: 14px;
}

.product-buy-card .product-page-actions-top {
  padding-top: 16px;
}

.product-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
  min-width: 0;
}

.product-inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  color: #1f2937;
  min-width: 0;
  max-width: 100%;
}

.product-inline-label {
  color: var(--muted);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-left: 22px;
  --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='7' height='7' rx='1' fill='%2364748b'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1' fill='%2364748b'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1' fill='%2364748b'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1' fill='%2364748b'/%3E%3C/svg%3E");
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.product-inline-label::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  background-color: #f8fafc;
  background-image: var(--stat-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.product-inline-label::after {
  content: none;
}
.product-inline-label.label-pieces {
  --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='7' height='7' rx='1' fill='%2364748b'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1' fill='%2364748b'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1' fill='%2364748b'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1' fill='%2364748b'/%3E%3C/svg%3E");
}
.product-inline-label.label-age {
  --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='8' stroke='%2364748b' stroke-width='2'/%3E%3Cpath d='M12 8v5l3 2' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.product-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #7b7f87;
  letter-spacing: 0.04em;
  text-transform: none;
  grid-column: 1;
}

.product-category {
  font-weight: 700;
  color: #2f3137;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff2f7;
}

.product-sku {
  color: var(--muted);
}

.product-badge-pill {
  margin-left: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
  grid-column: 1;
}

.product-title-row h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.18;
  flex: 1 1 auto;
  min-width: 0;
}

.product-info-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8e8ef;
  padding: 14px 16px;
  box-shadow: 0 12px 26px rgba(15, 16, 20, 0.08);
}

.product-info-header {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.product-info-header {
  align-items: flex-start;
}

.product-fav {
  border: 1px solid rgba(15, 16, 20, 0.12);
  background: #fff;
  color: var(--muted);
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.product-fav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.product-fav.active {
  color: #f05a23;
  box-shadow: 0 10px 18px rgba(240, 90, 35, 0.22);
  border-color: rgba(240, 90, 35, 0.4);
}

.product-fav.active svg {
  fill: currentColor;
}

.product-fav:hover {
  transform: translateY(-1px);
}

.product-page-meta .price-label,
.product-page-meta .pieces-label,
.product-price-card .price-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.product-page-meta .pieces-label {
  display: inline;
}

.product-page-meta > div {
  text-align: left;
}

.product-page-meta #productPrice {
  margin-top: 6px;
}

.product-page-meta #productPieces {
  margin-top: 6px;
  font-weight: 700;
}

.product-page-meta .price-current,
.product-page-meta .price-value {
  font-size: 1.5rem;
}

.product-page-meta .price-old {
  font-size: 0.92rem;
}

.product-price-card {
  display: grid;
  gap: 6px;
}

.product-price-card .price-current,
.product-price-card .price-value {
  font-size: 2.3rem;
  color: #111318;
  font-weight: 800;
}

.product-price-card .price-old {
  font-size: 0.95rem;
}

.product-availability {
  font-weight: 600;
  color: #0f8a4a;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 138, 74, 0.1);
}

.product-availability.available-now {
  color: #306f4f;
  background: rgba(48, 111, 79, 0.12);
}

.product-availability.out {
  color: #b91c1c;
}

.product-qty-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.product-qty-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
}

.qty-control button {
  width: 40px;
  height: 40px;
  border: 1px solid #e1e3ea;
  border-radius: 12px;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 16, 20, 0.06);
}

.qty-control button:disabled {
  opacity: 0.4;
  cursor: default;
}

.qty-control span {
  width: 42px;
  height: 40px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #e1e3ea;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fb;
}

.product-limit {
  font-size: 0.85rem;
  color: var(--muted);
}

.product-specs {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-specs.product-info-card {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: none;
}

.product-specs-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #0a0a0a;
  letter-spacing: 0.01em;
}

.product-specs-list {
  display: grid;
  gap: 12px;
  font-size: 0.98rem;
  color: #364153;
  background: #f9fafb;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  padding: 16px 18px;
}

.product-specs-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}

.product-specs-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-specs-row span:last-child {
  color: #0a0a0a;
  font-weight: 600;
}

.product-specs-row--pill span:last-child {
  color: inherit;
  font-weight: 600;
}

.product-specs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 16, 20, 0.06);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.product-description {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  cursor: default;
}

.product-description.product-info-card {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
}

.product-desc-title {
  padding: 2px 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a0a0a;
}

.product-desc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px 12px;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  border-bottom: 1px solid #edf0f5;
}

.product-desc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.product-description .product-desc-action .hide {
  display: none;
}

.product-description.open .product-desc-action .show {
  display: none;
}

.product-description.open .product-desc-action .hide {
  display: inline;
}

.product-desc-body {
  max-height: none;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.product-desc-body::after {
  content: none;
}

.product-description.open .product-desc-body {
  max-height: none;
}

.product-description.open .product-desc-body::after {
  display: none;
}

.product-desc-body > div {
  color: #364153;
  line-height: 1.75;
  font-size: 1rem;
}

.product-desc-body > div p {
  margin: 0 0 10px;
}

.product-desc-body > div p:last-child {
  margin-bottom: 0;
}

.product-description .product-desc-toggle {
  display: none;
}

.product-page-actions-top {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-page-actions-top .cta,
.product-page-actions-top .ghost {
  width: 100%;
  justify-content: center;
}

.product-page-actions-top .cta {
  background: #f4b400;
  border-color: #f4b400;
  color: #1b1b1f;
  box-shadow: 0 10px 18px rgba(244, 180, 0, 0.25);
}

.product-page-actions-top .ghost {
  background: #1c57ff;
  border-color: #1c57ff;
  color: #fff;
  box-shadow: 0 10px 18px rgba(28, 87, 255, 0.25);
}

@media (max-width: 900px) {
  .product-page-actions-top .cta,
  .product-page-actions-top .ghost {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

.product-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  padding: 16px;
  background: #f7f8fa;
  box-shadow: none;
}

.product-stat {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.product-stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-stat strong {
  font-size: 1.05rem;
}

.product-additional {
  display: grid;
  gap: 12px;
}

.product-section-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.product-details {
  display: grid;
  gap: 18px;
  align-items: start;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.product-divider {
  height: 1px;
  background: #e6e9ef;
  width: 100%;
  margin: 8px 0 16px;
}

.product-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recommendations {
  margin-top: 20px;
}

.recommendations h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 16px;
}

.recommendations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  gap: 16px;
  justify-content: start;
}

.recommendation-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 22px rgba(15, 16, 20, 0.08);
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.recommendation-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.recommendation-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.recommendation-meta {
  display: grid;
  gap: 8px;
}

.recommendation-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.recommendation-actions button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.product-page-actions .cta,
.product-page-actions .ghost {
  padding: 10px 18px;
  line-height: 1;
  min-height: 40px;
}


@media (min-width: 900px) {
  .product-page-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  }
  .product-page-gallery {
    grid-column: 1;
    grid-row: 1;
  }
  .product-page-info {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .product-related {
    grid-column: 1;
    grid-row: 2;
  }
  .product-buy-card {
    position: static;
    top: auto;
  }
  .product-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-main img {
    height: 520px;
  }
  .product-main video {
    height: 520px;
  }
  .product-thumbs {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .product-page-card {
    grid-template-columns: 1fr;
  }
  .product-page-gallery,
  .product-related,
  .product-page-info,
  .product-buy-col {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .product-page-gallery {
    padding: 12px;
  }
  .product-thumbs {
    order: 2;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .product-main {
    order: 1;
  }
  .product-thumb {
    width: 72px;
    height: 56px;
  }
  .product-thumb img {
    height: 100%;
    width: 100%;
  }
  .product-gallery-nav {
    opacity: 1;
  }
  .product-related-track .swiper-wrapper {
    padding: 2px 8px 8px;
  }
  .swiper-nav {
    display: none;
  }
}

.modal-meta .price-current {
  font-size: 1.1rem;
}

.cart-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 12px;
  display: grid;
  gap: 12px;
}

.promo-input {
  display: flex;
  gap: 8px;
}

.promo-input input {
  flex: 1;
}

.promo-input button {
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.cart-discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #ff3b30;
}

.payment-block {
  display: grid;
  gap: 12px;
  margin: 14px 0 6px;
}

.payment-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}

.payment-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.payment-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.payment-icon.stripe {
  background: #635bff;
}

.payment-title.stripe {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(45, 49, 52, 0.65);
  opacity: 0.7;
}

.payment-icon.bank {
  background: #0f172a;
}

.payment-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.payment-details {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.payment-charity {
  border: 1px dashed rgba(25, 195, 125, 0.5);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(25, 195, 125, 0.08);
  display: flex;
  gap: 12px;
  align-items: center;
  color: #0f3d2e;
}

.payment-charity > div {
  text-align: left;
}

.payment-charity .charity-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #19c37d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  line-height: 0;
}

.payment-charity svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  display: block;
}

.payment-page {
  display: grid;
  gap: 14px;
}

.payment-alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(99, 91, 255, 0.12);
  color: #3b35c9;
  border: 1px solid rgba(99, 91, 255, 0.3);
  font-weight: 600;
}

.payment-sum {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
}

.payment-paid-btn {
  width: 100%;
}

.payment-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.email-field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.email-field input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.85rem;
  color: var(--muted);
}

.consent-field input {
  margin-top: 4px;
}

.consent-field a {
  color: var(--ink);
  text-decoration: underline;
}

.address-suggestions {
  position: relative;
}

.address-suggestions-list {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  z-index: 10;
  max-height: 220px;
  overflow: auto;
}

.address-suggestion {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.address-suggestion:last-child {
  border-bottom: none;
}

.address-suggestion:hover {
  background: rgba(0, 0, 0, 0.04);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.interest-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, 0.55);
  display: grid;
  place-items: center;
  z-index: 9999;
}

.interest-overlay-card {
  background: var(--surface);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.cart-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-modal-card {
  background: #fff;
  border-radius: 24px;
  width: min(560px, 92vw);
  padding: 24px;
  box-shadow: 0 26px 50px rgba(15, 16, 20, 0.25);
  display: grid;
  gap: 18px;
  position: relative;
}

.cart-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cart-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #19c37d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-modal-body {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
}

.cart-modal-media {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #f6f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal-media-link {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.cart-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-modal-name {
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-modal-price {
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-modal-suggest {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: #f8fafc;
}

.cart-modal-suggest-title {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.cart-modal-suggest-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.cart-modal-suggest-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.cart-modal-suggest-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-modal-suggest-price {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-modal-suggest-cta {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.85rem;
}

.cart-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-modal-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-modal-btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .cart-modal-card {
    padding: 20px;
  }
  .cart-modal-body {
    grid-template-columns: 1fr;
  }
  .cart-modal-media {
    width: 100%;
    height: 180px;
  }
  .cart-modal-suggest-card {
    grid-template-columns: 56px 1fr;
  }
  .cart-modal-suggest-cta {
    grid-column: 2 / 3;
    justify-self: start;
  }
  .cart-modal-actions {
    grid-template-columns: 1fr;
  }
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(15, 16, 20, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 31;
}

.scroll-top:hover {
  box-shadow: 0 16px 28px rgba(15, 16, 20, 0.2);
  transform: translateY(6px);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .scroll-top {
    right: 16px;
    bottom: 76px;
    width: 40px;
    height: 40px;
  }
}

.partner {
  padding: 60px 6vw 80px;
  position: relative;
  z-index: 2;
}

.partner-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 0.9fr);
  gap: 32px;
  box-shadow: 0 18px 36px rgba(15, 16, 20, 0.08);
}

.partner-spoiler {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(15, 16, 20, 0.08);
  overflow: hidden;
}

.partner-spoiler summary {
  cursor: pointer;
  padding: 12px 22px 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
}

.partner-spoiler summary small {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}

.partner-spoiler summary::marker {
  display: none;
}

.partner-spoiler summary::-webkit-details-marker {
  display: none;
}

.partner-spoiler summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
}

.partner-spoiler[open] summary::after {
  content: "-";
}

.partner-spoiler[open] summary {
  border-bottom: 1px solid var(--border);
}

.partner-spoiler .partner-content {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.support-content {
  border-style: dashed;
}

.partner-text p {
  margin-bottom: 12px;
  color: var(--ink);
}

.partner-text ol {
  margin: 12px 0 16px 18px;
  color: var(--ink);
}

.partner-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  margin-top: 10px;
}

.partner-form {
  display: grid;
  gap: 12px;
}

.partner-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.partner-form input,
.partner-form textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.partner-form textarea {
  resize: vertical;
}

.partner-form small {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer {
  margin-top: 24px;
  padding: 36px 6vw 60px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f2f3f7 100%);
  position: relative;
  z-index: 2;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-main strong {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.footer-main a {
  color: var(--ink);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  box-shadow: 0 10px 18px rgba(15, 16, 20, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  box-shadow: 0 14px 24px rgba(15, 16, 20, 0.16);
}

.social-link.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  border-color: #dd2a7b;
  color: #ffffff;
}

.social-link.tiktok:hover {
  background: linear-gradient(135deg, #25f4ee 0%, #010101 50%, #fe2c55 100%);
  border-color: #010101;
  color: #ffffff;
}

.footer-note {
  display: none;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-note a {
  color: var(--muted);
  text-decoration: underline;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}

.newsletter-modal.open {
  display: flex;
}

.newsletter-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(15, 16, 20, 0.2);
}

.newsletter-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.newsletter-card p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.newsletter-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: var(--ink);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.contacts {
  padding: 70px 6vw 80px;
  position: relative;
  z-index: 2;
}

.contacts-hero {
  max-width: 720px;
  margin-bottom: 32px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 26px rgba(15, 16, 20, 0.08);
}

.contact-email {
  display: inline-block;
  font-weight: 700;
  margin: 8px 0 6px;
}

.contact-hint {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 30px rgba(15, 16, 20, 0.1);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.docs {
  padding: 70px 6vw 80px;
  position: relative;
  z-index: 2;
}

.docs-hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.doc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 30px rgba(15, 16, 20, 0.1);
  margin-bottom: 24px;
}

.doc-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 6px;
}

.doc-heading {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  margin: 0 0 8px;
}

.doc-date {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 18px;
}

.doc-block {
  margin-top: 16px;
}

.doc-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.doc-block p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.doc-list {
  margin: 0 0 10px 18px;
  padding: 0;
  display: grid;
  gap: 6px;
  line-height: 1.6;
}

.doc-links {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(15, 16, 20, 0.08);
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes floatIn {
  from { transform: translateY(18px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes cardRise {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes legoDrop {
  0% {
    transform: translateY(-40px) rotate(-6deg) scale(0.95);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  70% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes heroBrickFloat {
  0% {
    transform: translateY(6px) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(6px) rotate(-4deg);
  }
}

@media (max-width: 1100px) {
  .topbar {
    z-index: 5;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters-open-btn {
    display: inline-flex;
    justify-content: center;
  }
  .filters-close {
    display: inline-flex;
  }
  .filters-panel {
    position: fixed;
    inset: 0;
    border-radius: 0;
    padding: 0 20px calc(180px + env(safe-area-inset-bottom));
    height: 100vh;
    max-height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    z-index: 50;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .filters-panel.open {
    transform: translateY(0);
    opacity: 1;
  }
  .filters-panel-head {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 18px 20px;
    margin: 0 -20px 12px;
    z-index: 2;
    border-bottom: 1px solid var(--border);
  }
  .filters-actions {
    position: static;
    padding: 0;
    margin: 16px 0 0;
    background: transparent;
    border-top: 0;
  }
  .filters-apply {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 16px;
  }
body.filters-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.mode-product .hero {
  display: none;
}

body.mode-product .favorites-toggle {
  display: none;
}

body.mode-product .topbar-search {
  display: none;
}

body.mode-product .reviews {
  display: none;
}

body.filters-hide-header .topbar {
  display: none;
}
}

@media (max-width: 900px) {
  .product-page {
    padding: 12px 0 32px;
  }
  .product-page-inner {
    padding: 0 16px;
    gap: 16px;
  }
  .product-page-card {
    gap: 16px;
  }
  .product-page-info {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .product-buy-card {
    order: 1;
  }
  .product-refunds {
    order: 2;
  }
  .product-notes {
    order: 3;
  }
  .product-eyebrow,
  .product-title-row {
    grid-column: 1;
  }
  .product-buy-card {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .product-page-gallery {
    padding: 16px;
    box-shadow: 0 10px 22px rgba(15, 16, 20, 0.08);
  }
  .product-details {
    padding: 0;
    border-radius: 0;
    gap: 16px;
  }
  .product-buy-card,
  .product-hero-stats,
  .product-description.product-info-card,
  .product-specs.product-info-card,
  .product-note,
  .refund-item {
    border-radius: 16px;
  }
  .product-page-inner {
    padding-bottom: 24px;
  }
  .topbar {
    padding: 10px 4vw;
  }
  .logo {
    font-size: 22px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(15, 16, 20, 0.08);
  }
  .hero {
    padding-top: 60px;
  }
  .hero-feature {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }
  .hero-feature-card,
  .hero-custom-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-feature-actions,
  .hero-custom-actions {
    justify-content: flex-start;
  }
  .product-page-card {
    grid-template-columns: 1fr;
  }
  .product-gallery-col {
    order: 1;
  }
  .product-page-info {
    order: 2;
    grid-column: auto;
  }
  .product-buy-col {
    order: 3;
    grid-column: auto;
    grid-row: auto;
  }
  .product-buy-col {
    position: static;
  }
  .product-buy-card {
    position: static;
  }
  .product-main img {
    height: 300px;
  }
  .product-main video {
    height: 300px;
  }
  .product-thumbs {
    max-height: none;
  }
  .product-page-actions-top {
    grid-template-columns: 1fr;
  }
  .product-card.has-discount {
    grid-column: auto;
  }
  .newsletter-inline-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .newsletter-inline-form {
    grid-template-columns: 1fr;
  }
  .newsletter-inline-visual {
    min-height: 140px;
  }
  .product-desc-body {
    max-height: 140px;
  }
  .hero-copy-lead {
    max-width: 100%;
  }
  .review-media {
    max-width: 260px;
  }
  .reviews-nav {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: 40px;
    align-items: stretch;
    gap: 8px;
    padding: 6px 3vw;
  }
  .logo {
    display: none;
  }
  .topbar-search {
    grid-column: 2;
    width: 100%;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: stretch;
    align-items: center;
    align-self: center;
  }
  .topbar-search input {
    width: 100%;
    padding: 8px 12px;
    height: 100%;
    line-height: 40px;
    margin: 0;
    font-size: 0.9rem;
  }
  .lang-toggle {
    grid-column: 1;
    align-self: center;
  }
  .favorites-toggle {
    grid-column: 3;
    align-self: center;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  .cart-fab-global {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .cart-page .topbar {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 10px 4vw;
    gap: 10px;
  }
  .cart-page .logo {
    display: inline-block;
    justify-self: start;
  }
  .cart-page .topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  .cart-page .topbar-actions .ghost {
    padding: 10px 16px;
  }
  .cart-page .cart-count-pill {
    margin-left: auto;
  }
  .media-nav {
    display: none;
  }
  body {
    overflow-x: hidden;
  }
  .catalog-tools {
    align-items: stretch;
  }
  .catalog-tools input {
    min-width: 0;
    width: 100%;
  }
  .sort-group {
    width: min(360px, 100%);
    justify-content: space-between;
    align-self: flex-start;
  }
  .sort-menu {
    min-width: min(360px, 100%);
  }
  .range-inputs {
    grid-template-columns: 1fr;
  }
  .advantages-inner {
    padding: 22px;
  }
  .reviews-inner {
    padding: 16px 0 6px;
  }
  .review-card {
    padding: 16px;
  }
  .advantage-card {
    padding: 14px 16px;
  }
  .faq-inner {
    padding: 22px 18px 8px;
  }
  .faq-question {
    padding: 14px 4px;
  }
  .faq-answer p {
    padding: 0 4px 14px;
  }
  .image-zoom {
    padding: 12px;
  }
  .image-zoom img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
  }
  .product-related,
  .product-related-track {
    max-width: 100%;
  }
  .product-related-track {
    overflow: hidden;
  }
  .product-related-track .swiper-wrapper {
    padding: 2px 12px 8px;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    max-width: 100%;
    min-width: 0;
  }
  .product-page-inner {
    padding: 0;
    gap: 0;
  }
  .product-page-card {
    gap: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .product-page-gallery {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: #fff;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .product-main,
  .product-main-frame {
    max-width: 100%;
    min-width: 0;
  }
  .product-main img,
  .product-main video {
    height: 320px;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
  }
  .product-thumbs {
    padding: 10px 12px 14px;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
  }
  .product-thumb {
    flex: 0 0 auto;
  }
  .product-page-info {
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 14px 16px 10px;
    background: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .product-eyebrow {
    min-width: 0;
  }
  .product-category,
  .product-badge-pill {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }
  .product-details {
    padding: 0 16px 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .recommendations {
    padding: 0 16px 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .product-eyebrow {
    gap: 6px;
    font-size: 0.7rem;
  }
  .product-category,
  .product-badge-pill {
    padding: 4px 8px;
  }
  .product-badge-pill {
    font-size: 0.62rem;
  }
  .product-sku {
    font-size: 0.7rem;
  }
  .product-title-row h1 {
    font-size: 1.45rem;
  }
  .product-price-card {
    padding: 0;
    border: none;
    box-shadow: none;
  }
  .product-inline-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
    justify-content: start;
  }
  .product-inline-stat {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .product-qty-row {
    grid-template-columns: auto 1fr;
    row-gap: 6px;
  }
  .product-limit {
    grid-column: 2;
    justify-self: start;
  }
  .product-page-actions-top {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .reviews-track {
    grid-auto-columns: 80%;
    padding-inline: 10%;
    scroll-padding-inline: 10%;
    gap: 14px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 14%, #000 86%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 14%, #000 86%, rgba(0, 0, 0, 0) 100%);
  }
  .review-card {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .catalog {
    padding: 24px 10px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    justify-content: stretch;
    gap: 8px;
  }
  .product-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px;
    gap: 8px;
  }
  .recommendations-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    justify-content: stretch;
  }
  .price-value,
  .price-current {
    font-size: 0.98rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 36px 6vw 24px;
  }
  .hero-feature-card {
    padding: 20px;
  }
  .hero-custom-card {
    padding: 20px;
  }
  .hero-custom-brick {
    width: 90px;
    height: 34px;
  }
  .hero-custom-brick.brick-2 {
    width: 84px;
    height: 30px;
  }
  .hero-custom-brick.brick-3 {
    width: 78px;
    height: 28px;
  }
  .topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: 40px;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    padding: 6px 3vw;
  }
  .topbar-search {
    display: flex;
    width: 100%;
    padding: 0;
    grid-column: 2;
    height: 40px;
    align-items: center;
  }
  .topbar-search input {
    width: 100%;
    height: 100%;
    line-height: 40px;
    padding: 8px 12px;
  }
  .logo {
    display: none;
  }
  .lang-toggle {
    grid-column: 1;
    align-self: center;
  }
  .favorites-toggle {
    grid-column: 3;
    align-self: center;
  }
  .modal-content {
    grid-template-columns: 1fr;
  }
  .partner-content {
    grid-template-columns: 1fr;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}


/* Checkout success */
.success-page {
  background: radial-gradient(circle at top, #f1fff4 0%, #ffffff 50%, #f7f7f7 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1f2937;
}

.success-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.success-card {
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 22px 60px rgba(31, 41, 55, 0.12);
  text-align: center;
}

.success-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
  stroke: #16a34a;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: #e8f9ee;
}

.success-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.success-order {
  font-weight: 600;
  margin-bottom: 14px;
}

.success-note {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 22px;
}

.success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.success-link:hover {
  background: #0b111b;
}
