/* g1tar.ru — Deep orchid dark theme */
:root {
  --bg-deep: #12081a;
  --bg: #1a0f24;
  --bg-elevated: #241533;
  --bg-card: #2a183c;
  --bg-card-hover: #342047;
  --orchid: #9b4dca;
  --orchid-bright: #c77dff;
  --orchid-deep: #6b2d8b;
  --orchid-glow: rgba(155, 77, 202, 0.35);
  --accent: #e056fd;
  --accent-hot: #ff6bcb;
  --text: #f3e9fb;
  --text-muted: #b9a3c9;
  --border: rgba(199, 125, 255, 0.18);
  --success: #5eead4;
  --hit: #ff6bcb;
  --sale: #fbbf24;
  --markdown: #94a3b8;
  --danger: #fb7185;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(8, 2, 16, 0.55);
  --header-h: 72px;
  --font: "Manrope", system-ui, sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(155, 77, 202, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(224, 86, 253, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #160c1f 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orchid-bright);
  text-decoration: none;
  transition: color var(--transition);
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ——— Logo ——— */
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.logo span {
  color: var(--orchid-bright);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orchid) 0%, var(--accent) 100%);
  color: #1a0a22;
  box-shadow: 0 6px 24px var(--orchid-glow);
}

.btn--primary:hover {
  color: #12081a;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(224, 86, 253, 0.4);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--orchid-bright);
  background: rgba(155, 77, 202, 0.12);
  color: var(--text);
}

.btn--ghost {
  background: rgba(155, 77, 202, 0.1);
  border-color: var(--border);
  color: var(--text-muted);
}

.btn--ghost:hover,
.btn--ghost.is-active {
  color: var(--text);
  border-color: var(--orchid);
  background: rgba(155, 77, 202, 0.2);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--cta {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  animation: ctaPulse 2.8s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 24px var(--orchid-glow); }
  50% { box-shadow: 0 8px 32px rgba(224, 86, 253, 0.55); }
}

.btn--status {
  padding: 0.5rem 0.85rem;
}

.btn--login {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 125, 255, 0.45);
  background: linear-gradient(135deg, rgba(155, 77, 202, 0.22), rgba(139, 92, 246, 0.1));
  color: var(--orchid-bright);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(199, 125, 255, 0.08), 0 4px 18px rgba(139, 92, 246, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn--login:hover {
  border-color: var(--orchid-bright);
  color: #fff;
  background: linear-gradient(135deg, rgba(155, 77, 202, 0.35), rgba(139, 92, 246, 0.18));
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4), inset 0 0 0 1px rgba(199, 125, 255, 0.3);
  transform: translateY(-1px);
}

.btn--login .btn__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.btn--login .btn__text {
  display: inline;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(18, 8, 26, 0.82);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.nav {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem 0.85rem;
  margin-left: 0.35rem;
  min-width: 0;
}

.nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--orchid-bright);
}

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(155, 77, 202, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background var(--transition), transform var(--transition);
}

.icon-btn:hover {
  background: rgba(155, 77, 202, 0.25);
  color: var(--text);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-hot);
  color: #1a0a22;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Heart pulse */
.heart-icon {
  fill: var(--accent-hot);
  stroke: none;
  animation: heartBeat 1.4s ease-in-out infinite;
  transform-origin: center;
}

.icon-btn.has-items .heart-icon,
#favoritesBtn.is-active .heart-icon {
  filter: drop-shadow(0 0 8px rgba(255, 107, 203, 0.7));
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

/* Cart bounce animation */
.cart-btn.is-animating {
  animation: cartBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-btn.is-animating .cart-icon {
  animation: cartWiggle 0.55s ease;
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  55% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes cartWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-6deg); }
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.btn--cta .btn__text,
.btn--status .btn__text {
  display: none;
}

@media (min-width: 768px) {
  .btn--status .btn__text {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }

  .nav {
    display: flex;
  }

  .btn--cta {
    display: inline-flex;
  }
}

@media (max-width: 1023px) {
  .btn--cta {
    display: none;
  }
}

@media (min-width: 1100px) {
  .btn--status .btn__text {
    display: inline;
  }
}

/* ——— Mobile nav + swipe ——— */
.mobile-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 86vw);
  z-index: 200;
  background: linear-gradient(180deg, #1f0f2e 0%, #160a20 100%);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 1rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav__close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav__links a {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
}

.mobile-nav__links a:hover {
  background: rgba(155, 77, 202, 0.15);
  color: var(--orchid-bright);
}

.mobile-nav__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav__status svg {
  width: 18px;
  height: 18px;
}

.mobile-nav__cta {
  margin-top: 0.75rem;
  width: 100%;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 2, 14, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.swipe-hint {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.swipe-hint.is-visible {
  opacity: 0.55;
}

@media (min-width: 1024px) {
  .swipe-hint {
    display: none;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(480px, calc(56vh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 1.5rem 0 1.75rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 40%, rgba(155, 77, 202, 0.28), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(224, 86, 253, 0.12), transparent 40%),
    linear-gradient(120deg, #120a18 0%, #1a0f24 55%, #2a183c 100%);
}

.hero__bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 8, 18, 0.88) 0%, rgba(12, 8, 18, 0.55) 48%, rgba(12, 8, 18, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 8, 18, 0.35) 0%, rgba(12, 8, 18, 0.7) 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  right: -5%;
  top: 10%;
  z-index: 1;
  width: min(55vw, 560px);
  height: min(58vh, 520px);
  background:
    linear-gradient(160deg, rgba(155, 77, 202, 0.18), rgba(26, 15, 36, 0.05)),
    repeating-linear-gradient(
      -25deg,
      transparent,
      transparent 18px,
      rgba(199, 125, 255, 0.03) 18px,
      rgba(199, 125, 255, 0.03) 19px
    );
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  border: 1px solid var(--border);
  animation: floatBlob 8s ease-in-out infinite;
  opacity: 0.65;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 20%, var(--orchid-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.7s ease both;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text-muted);
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 42ch;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

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

/* ——— Video carousel ——— */
.video-carousel {
  position: relative;
  width: 100%;
  animation: fadeUp 0.7s 0.2s ease both;
  user-select: none;
}

.video-carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  touch-action: pan-y;
}

.video-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  will-change: transform, opacity, filter;
}

.video-carousel__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(199, 125, 255, 0.22);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.video-carousel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 8, 26, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.video-carousel__arrow:hover {
  background: rgba(139, 92, 246, 0.85);
  border-color: transparent;
}

.video-carousel__arrow--prev { left: 12px; }
.video-carousel__arrow--next { right: 12px; }

.video-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.video-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(199, 125, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, width 0.25s ease;
}

.video-carousel__dot.is-active {
  width: 26px;
  background: var(--orchid-bright);
  border-color: var(--orchid-bright);
}

@media (max-width: 640px) {
  .video-carousel__arrow {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }
  .video-carousel__arrow--prev { left: 4px; }
  .video-carousel__arrow--next { right: 4px; }
  .video-carousel__dots {
    gap: 0.4rem;
    margin-top: 0.65rem;
  }
  .video-carousel__dot {
    width: 8px;
    height: 8px;
  }
  .video-carousel__dot.is-active {
    width: 20px;
  }
}

/* ——— Catalog ——— */
.catalog {
  padding: 3.5rem 0 5rem;
}

.catalog__head {
  margin-bottom: 1.75rem;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1rem;
  background: rgba(36, 21, 51, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filters__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.chip:hover {
  color: var(--text);
  border-color: var(--orchid);
}

.chip.is-active {
  background: linear-gradient(135deg, var(--orchid-deep), var(--orchid));
  border-color: transparent;
  color: var(--text);
}

.filters__sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.filters__sort select {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.filters__sort select:focus {
  border-color: var(--orchid-bright);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* Product card — interaction container */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  animation: cardIn 0.45s ease both;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 125, 255, 0.4);
  background: var(--bg-card-hover);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.product-card__link:hover {
  color: inherit;
}

.product-card__footer {
  padding: 0 1rem 1.1rem;
}

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

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #3a2152 0%, #1e102c 60%, #2d1840 100%);
  overflow: hidden;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(199, 125, 255, 0.35);
}

.product-card__placeholder svg {
  width: 48%;
  height: auto;
}

.product-card__labels {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.label {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.label--hit {
  background: var(--hit);
  color: #1a0a22;
}

.label--sale {
  background: var(--sale);
  color: #1a0a22;
}

.label--markdown {
  background: var(--markdown);
  color: #1a0a22;
}

.product-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(18, 8, 26, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-card__fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-card__fav.is-active {
  color: var(--accent-hot);
  background: rgba(255, 107, 203, 0.15);
  animation: favPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card__fav.is-active svg {
  fill: var(--accent-hot);
  stroke: var(--accent-hot);
}

@keyframes favPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 0.5rem;
  flex: 1;
}

.product-card__category {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orchid-bright);
}

.product-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.product-card__old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__add {
  width: 100%;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.product-card__add.is-added {
  background: linear-gradient(135deg, #2d6a5a, #5eead4);
  color: #0a1a16;
  animation: addFlash 0.5s ease;
}

.btn--in-cart {
  background: rgba(94, 234, 212, 0.18) !important;
  color: #5eead4 !important;
  border: 1px solid rgba(94, 234, 212, 0.45) !important;
  box-shadow: none !important;
}

.btn--in-cart:hover {
  background: rgba(94, 234, 212, 0.3) !important;
  color: #99f6e4 !important;
}

@keyframes addFlash {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--orchid);
  background: var(--bg-card-hover);
}

.pagination button.is-active {
  background: linear-gradient(135deg, var(--orchid-deep), var(--orchid));
  border-color: transparent;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* ——— Pages ——— */
.page {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - var(--header-h) - 200px);
}

.page__inner h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 55ch;
}

.content-block {
  max-width: 720px;
  padding: 1.5rem 1.75rem;
  background: rgba(36, 21, 51, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.content-block h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--orchid-bright);
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.status-form {
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.status-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
}

.status-form input:focus {
  border-color: var(--orchid-bright);
}

.status-result {
  max-width: 480px;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.status-result h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.status-result p {
  margin: 0;
  color: var(--text-muted);
}

/* List pages: cart / favorites */
.list-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.list-empty a {
  font-weight: 700;
}

.list-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.list-item__thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #3a2152, #1e102c);
  display: grid;
  place-items: center;
  color: rgba(199, 125, 255, 0.4);
  text-decoration: none;
  overflow: hidden;
}

.list-item__thumb svg {
  width: 40%;
}

#cartPage .list-item {
  grid-template-columns: 120px 1fr auto;
}

#cartPage .list-item__thumb {
  width: 120px;
  height: 120px;
}

#cartPage .list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cartPage .list-item__thumb svg {
  width: 45%;
}

.list-item__info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.list-item__info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.list-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.list-item__price {
  font-weight: 800;
  white-space: nowrap;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.qty-control span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.btn--danger {
  background: transparent;
  border: 1px solid rgba(251, 113, 133, 0.4);
  color: var(--danger);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn--danger:hover {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
}

.cart-summary {
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(155, 77, 202, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-summary__total {
  font-size: 1.25rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .list-item {
    grid-template-columns: 72px 1fr;
  }

  .list-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(12, 4, 18, 0.85);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  gap: 2rem;
}

.footer__brand p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 36ch;
  font-size: 0.95rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer__col h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orchid-bright);
}

.footer__col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1.2fr 2fr;
  }

  .footer__copy {
    grid-column: 1 / -1;
  }
}

/* ——— Toast ——— */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 300;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orchid-deep), var(--orchid));
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--fav {
  background: linear-gradient(135deg, #8b2252, var(--accent-hot));
}

/* Flying item to cart */
.fly-item {
  position: fixed;
  z-index: 250;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--orchid-bright), var(--orchid));
  box-shadow: 0 0 16px var(--orchid-glow);
  pointer-events: none;
  opacity: 0;
  transition: none;
}

.fly-item.is-flying {
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.22, 0.8, 0.25, 1), opacity 0.65s ease;
}

/* ——— Product page ——— */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--orchid-bright);
}

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

.product-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Gallery */
.gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  touch-action: pan-y;
  outline: none;
  cursor: grab;
  user-select: none;
}

.gallery__viewport:active {
  cursor: grabbing;
}

.gallery__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: pan-y;
}

.gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--ph-hue, 290), 55%, 45%, 0.35), transparent 50%),
    linear-gradient(160deg, #3a2152 0%, #1e102c 60%, #2d1840 100%);
  color: rgba(199, 125, 255, 0.4);
  user-select: none;
}

.gallery__placeholder svg {
  width: min(42%, 180px);
  height: auto;
}

.gallery__placeholder--video {
  color: var(--orchid-bright);
}

.gallery__placeholder--video svg {
  width: min(28%, 120px);
}

.gallery__video-poster {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.gallery__video {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0610;
}

.gallery__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.gallery__thumb--video {
  color: var(--orchid-bright);
}

.gallery__thumb--video svg {
  width: 48%;
}

.gallery__ph-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(18, 8, 26, 0.75);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}

.gallery__nav:hover {
  background: rgba(155, 77, 202, 0.35);
}

.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }

.gallery__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(18, 8, 26, 0.75);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--ph-hue, 290), 55%, 45%, 0.3), transparent 55%),
    linear-gradient(160deg, #3a2152, #1e102c);
  color: rgba(199, 125, 255, 0.35);
  cursor: pointer;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color var(--transition);
}

.gallery__thumb svg {
  width: 55%;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__thumb.is-active {
  border-color: var(--orchid-bright);
}

.gallery__swipe-hint {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 900px) {
  .gallery__swipe-hint {
    display: none;
  }
}

/* Product info */
.product-info__labels {
  margin-bottom: 0.5rem;
}

.product-info__category {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orchid-bright);
}

.product-info__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-info__price {
  font-size: 1.6rem;
  font-weight: 800;
}

.product-info__old {
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-info__desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

.product-specs {
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.product-specs > div {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(36, 21, 51, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Combined spec row for Мензура + Ширина порожка */
.product-specs__combined {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(36, 21, 51, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.product-specs__combined .spec-inline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.product-specs__combined .spec-inline dt {
  margin: 0;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--orchid-bright);
  white-space: nowrap;
}

.product-specs__combined .spec-inline dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .product-specs__combined {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.product-specs dt {
  margin: 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orchid-bright);
}

.product-specs dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .product-specs > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-fav-btn.is-active {
  color: var(--accent-hot);
  border-color: rgba(255, 107, 203, 0.45);
}

.product-video {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.product-video h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.product-video__link {
  display: inline-flex;
}

.product-video__hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-video__hint code {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(155, 77, 202, 0.2);
}

.list-item__info a {
  color: var(--text);
  font-weight: 700;
}

.list-item__info a:hover {
  color: var(--orchid-bright);
}

/* Ask modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: end center;
  padding: 0;
}

@media (min-width: 640px) {
  .modal {
    place-items: center;
    padding: 1.5rem;
  }
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 14, 0.7);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.5rem 1.35rem 1.75rem;
  background: linear-gradient(180deg, #241533, #160a20);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .modal__dialog {
    border-radius: var(--radius);
  }
}

.modal__dialog h2 {
  margin: 0 1.5rem 0.35rem 0;
  font-size: 1.25rem;
}

.modal__hint {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.ask-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ask-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.ask-form input,
.ask-form textarea {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  resize: vertical;
}

.ask-form input:focus,
.ask-form textarea:focus {
  border-color: var(--orchid-bright);
}

.ask-form .btn {
  margin-top: 0.75rem;
}

/* ——— UI forms ——— */
.ui-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ui-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ui-field[hidden] {
  display: none !important;
}

.ui-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ui-field .optional {
  font-weight: 500;
  opacity: 0.7;
}

.ui-field input[type="text"],
.ui-field input[type="tel"],
.ui-field input[type="email"],
.ui-field input[type="password"],
.ui-field input[type="file"],
.ui-field textarea,
.ui-field select,
.ask-form input,
.ask-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 21, 51, 0.9), rgba(26, 15, 36, 0.95));
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(199, 125, 255, 0.06);
}

.ui-field input:focus,
.ui-field textarea:focus,
.ui-field input[type="password"]:focus,
.ask-form input:focus,
.ask-form textarea:focus {
  border-color: var(--orchid-bright);
  box-shadow: 0 0 0 3px rgba(155, 77, 202, 0.2);
}

.ui-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.ui-consent input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--orchid);
  flex-shrink: 0;
}

.ui-consent a {
  font-weight: 700;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.panel-form {
  background: rgba(36, 21, 51, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel-form__title {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
}

.btn--block {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--success);
  font-weight: 600;
  font-size: 0.95rem;
}

.field-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-drop {
  position: relative;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(18, 8, 26, 0.35);
  overflow: hidden;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.file-drop__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.file-drop__preview {
  margin: 0.75rem auto 0;
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.rating-select {
  display: flex;
  gap: 0.25rem;
}

.rating-select button {
  border: 0;
  background: transparent;
  color: rgba(199, 125, 255, 0.25);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.rating-select button.is-on {
  color: #fbbf24;
}

.reviews-layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}

.reviews-list {
  display: grid;
  gap: 1rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.review-card--compact {
  padding: 0.85rem 1rem;
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.review-card__date {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.review-card__stars {
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.review-card__stars .stars-off {
  color: rgba(199, 125, 255, 0.25);
}

.review-card__meta {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.review-card__body {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.5;
}

.review-card__photo-btn {
  display: block;
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
  text-align: left;
}

.review-card__photo {
  margin: 0;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.reviews-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  align-items: center;
}

.reviews-pager__dots {
  color: var(--text-muted);
  padding: 0 0.2rem;
}

.gallery__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
}

.product-card__media {
  position: relative;
}

.product-card__zoom {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(18, 8, 26, 0.72);
  color: #fff;
  cursor: zoom-in;
  font-size: 0.95rem;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: block;
  background: rgba(8, 4, 14, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__viewport {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  touch-action: pan-y;
}

.lightbox__track {
  display: flex;
  height: 100%;
  transition: transform 0.28s ease;
  will-change: transform;
}

.lightbox__slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(3.75rem, 7vw, 5.5rem) clamp(0.75rem, 6vw, 5.5rem);
}

.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(199, 125, 255, 0.28);
  background: rgba(24, 13, 34, 0.85);
  color: var(--text);
  cursor: pointer;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.6rem;
}

.lightbox__nav--prev { left: 0.75rem; }
.lightbox__nav--next { right: 0.75rem; }

.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__counter { bottom: 1.75rem; }

  .hero {
    min-height: auto;
    padding: 0.5rem 0 0.75rem;
  }

  .catalog {
    padding: 1rem 0 1.5rem;
  }
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-timeline {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.status-timeline li {
  margin-bottom: 0.35rem;
}

.captcha-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.captcha-row input {
  max-width: 8rem;
}

.checkout-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.checkout-hero {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(199, 125, 255, 0.24);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 95% 0%, rgba(199, 125, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(199, 125, 255, 0.08), rgba(20, 14, 28, 0.92));
}

.checkout-hero h1 {
  margin: 0.3rem 0 0.6rem;
}

.checkout-hero .lead {
  margin: 0;
  max-width: 760px;
}

.checkout-hero__eyebrow {
  color: var(--orchid-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-trust {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.checkout-trust div {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkout-trust span {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  color: #d8a8ff;
  background: rgba(199, 125, 255, 0.13);
  border: 1px solid rgba(199, 125, 255, 0.28);
  border-radius: 50%;
}

.checkout-form,
.checkout-summary {
  border-color: rgba(199, 125, 255, 0.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.checkout-form__head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.checkout-form__head h2,
.checkout-form__head p {
  margin: 0;
}

.checkout-form__head h2 {
  font-size: 1.15rem;
}

.checkout-form__head p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.checkout-form__head--summary {
  margin-bottom: 1rem;
}

.checkout-step {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  color: #160c20;
  background: linear-gradient(135deg, var(--orchid-bright), #efd8ff);
  border-radius: 50%;
  font-weight: 800;
}

.checkout-submit-note {
  margin: -0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 900px) {
  .checkout-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .checkout-layout {
    grid-template-columns: 1.2fr 0.85fr;
    align-items: start;
  }
}

.checkout-summary {
  position: sticky;
  top: 5.5rem;
}

.checkout-items {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

.checkout-item__thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(199, 125, 255, 0.08);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--orchid-bright);
}

.checkout-item__thumb img,
.checkout-item__thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item__thumb svg {
  width: 44px;
  height: 44px;
}

.checkout-item__info strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.checkout-item__info .muted,
.checkout-item__price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.checkout-item__price {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.checkout-summary__total {
  font-size: 1.15rem;
  margin: 0.5rem 0 1rem;
}

.checkout-success__number {
  font-size: 1.25rem;
  margin: 0.75rem 0;
}

/* Pickup toggle */
.delivery-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: rgba(36, 21, 51, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}

.delivery-toggle:hover {
  border-color: var(--orchid);
  background: rgba(36, 21, 51, 0.75);
}

.delivery-toggle input {
  display: none;
}

.delivery-toggle__track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.delivery-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.delivery-toggle input:checked ~ .delivery-toggle__track {
  background: linear-gradient(135deg, var(--orchid-deep), var(--orchid));
  border-color: transparent;
}

.delivery-toggle input:checked ~ .delivery-toggle__track::after {
  transform: translateX(18px);
  background: #fff;
}

.delivery-toggle__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* Address field */
.address-field {
  position: relative;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  transition: opacity 0.25s ease, max-height 0.35s ease;
}

.address-field[hidden] {
  display: none !important;
}

.address-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.address-field label svg {
  color: var(--orchid-bright);
  flex-shrink: 0;
}

.address-suggest-wrap {
  position: relative;
}

.address-suggest {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.25rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.address-suggest[hidden] {
  display: none !important;
}

.address-suggest li {
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.35;
  border-bottom: 1px solid rgba(199, 125, 255, 0.06);
  transition: background 0.15s ease;
}

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

.address-suggest li:hover,
.address-suggest li:focus {
  background: rgba(199, 125, 255, 0.15);
  outline: none;
}

/* Delivery info badge */
.delivery-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  margin: 0.25rem 0 0.75rem;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
}

.delivery-info svg {
  color: var(--success);
  flex-shrink: 0;
}

.delivery-info strong {
  color: var(--success);
}

.site-gate-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  width: min(100%, 320px);
  margin-left: auto;
  margin-right: auto;
}

.site-gate-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,.15));
  background: rgba(0,0,0,.25);
  color: inherit;
  font: inherit;
}

.site-gate-msg {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.site-gate-forgot {
  margin-top: 1rem;
}

.maintenance-page {
  min-height: 100vh;
  overflow: hidden;
}

.maintenance-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(199, 125, 255, 0.14), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(155, 77, 202, 0.16), transparent 40%),
    var(--bg);
}

.maintenance-screen__glow {
  position: absolute;
  width: min(70vw, 700px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 125, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(199, 125, 255, 0.025),
    0 0 0 140px rgba(199, 125, 255, 0.015);
}

.maintenance-screen__card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: clamp(1.6rem, 5vw, 3.25rem);
  text-align: center;
  border: 1px solid rgba(199, 125, 255, 0.24);
  border-radius: 24px;
  background: rgba(24, 13, 34, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.maintenance-screen__logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.maintenance-screen__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  color: var(--orchid-bright);
  font-size: 2.5rem;
  border: 1px solid rgba(199, 125, 255, 0.3);
  border-radius: 50%;
  background: rgba(199, 125, 255, 0.1);
}

.maintenance-screen__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--orchid-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.maintenance-screen h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.15;
}

.maintenance-screen__copy {
  max-width: 470px;
  margin: 1rem auto 1.5rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .heart-icon {
    animation: none;
  }
}
