/* DemonShop - textured marketplace, not a generic template */
:root {
  --bg: #f3f1ec;
  --bg-soft: #e9e6df;
  --surface: #fffcf7;
  --ink: #12131a;
  --ink-soft: #3d3f4a;
  --muted: #6f7280;
  --line: #d9d4ca;
  --accent: #6b64c4;
  --accent-2: #5a54ad;
  --dark: #0d0e14;
  --r-btn: 999px;
  --r-card: 6px;
  --r-bundle: 22px;
  --r-block: 14px;
  --shadow: 0 12px 32px rgba(13, 14, 20, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Tektur", "Manrope", sans-serif;
  --max: 1140px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

button,
input {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
  border-radius: 8px;
}

.field-input,
.cart-field input,
.account-card input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.field-input:focus,
.cart-field input:focus,
.account-card input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]):focus {
  outline: none;
  border-color: var(--accent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(10, 11, 16, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  width: min(100% - 1.5rem, 1200px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-text span {
  color: #a78bfa;
}

.nav-main {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 1.2rem;
}

.nav-main a {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.nav-main a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-btn);
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cart-badge[hidden] {
  display: none !important;
}

.burger {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  gap: 0;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 1rem 1.1rem;
  background: #0a0b10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  padding: 0.85rem 0.35rem;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

@media (min-width: 960px) {
  .nav-main {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
  .burger,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons - heavily rounded */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.82rem 1.45rem;
  border-radius: var(--r-btn);
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-lg {
  padding: 1rem 1.8rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(91, 76, 245, 0.35);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.text-link {
  font-weight: 700;
  color: var(--accent);
}

.text-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.text-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Item art + themed glow */
.item-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  --glow: #7dd3fc;
}

.item-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 55%, transparent), transparent 70%);
  filter: blur(8px);
  animation: glowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.item-svg {
  position: relative;
  z-index: 1;
  width: min(72%, 180px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s;
}

.product-card:hover .item-svg,
.category-card:hover .item-svg {
  transform: scale(1.05) rotate(-4deg);
}

.glow-ice {
  --glow: #38bdf8;
}
.glow-heart {
  --glow: #fb7185;
}
.glow-chroma {
  --glow: #c084fc;
}
.glow-gun,
.glow-neon {
  --glow: #4ade80;
}
.glow-fire,
.glow-gold {
  --glow: #fb923c;
}
.glow-pet {
  --glow: #f472b6;
}
.glow-set {
  --glow: #a78bfa;
}
.glow-shadow {
  --glow: #e879f9;
}
.glow-knife {
  --glow: #93c5fd;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Hero with texture */
.hero {
  position: relative;
  min-height: clamp(460px, 70vh, 620px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0c0d14;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-scratches {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -22deg,
      transparent 0 38px,
      rgba(255, 255, 255, 0.025) 38px 39px
    ),
    repeating-linear-gradient(
      68deg,
      transparent 0 52px,
      rgba(167, 139, 250, 0.04) 52px 53px
    ),
    linear-gradient(145deg, #1a1238 0%, #0c0d14 48%, #1a0f28 100%);
}

.hero-shards {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(91, 76, 245, 0.12) 41%, transparent 42%),
    linear-gradient(155deg, transparent 62%, rgba(251, 113, 133, 0.08) 63%, transparent 64%),
    linear-gradient(25deg, transparent 70%, rgba(56, 189, 248, 0.07) 71%, transparent 72%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 640px);
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  padding: 4rem 0;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  color: #c4b5fd;
}

.hero-sub {
  margin: 1.1rem 0 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.hero-cta {
  margin-top: 1.7rem;
}

@media (max-width: 720px) {
  .hero-content {
    margin-inline: auto;
    text-align: left;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-title {
  margin: 0 0 1.6rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
}

.section-title.align-left {
  text-align: left;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-lead {
  margin: -0.8rem auto 1.6rem;
  text-align: center;
  color: var(--muted);
}

.section-action {
  margin-top: 1.75rem;
  text-align: center;
}

.empty-note {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  color: var(--muted);
}

/* Categories - всегда по центру, фиксированная ширина карточки */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.85rem;
}

.category-card {
  display: block;
  flex: 0 1 180px;
  width: 180px;
  max-width: calc(50% - 0.45rem);
  box-sizing: border-box;
}

@media (min-width: 700px) {
  .category-card {
    flex-basis: 200px;
    width: 200px;
    max-width: 200px;
  }
}

.category-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #151722;
  border: 1px solid #2a2d3a;
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-count {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
}

.category-name {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

/* Filters */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
  width: 100%;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  appearance: none;
  cursor: pointer;
}

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

.catalog-band {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 1rem 1.25rem;
  align-items: start;
  width: min(100% - 1.25rem, 1400px);
  margin-inline: auto;
}

.container .catalog-band {
  width: 100%;
}

.catalog-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.catalog-filters {
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
  width: 100%;
  max-width: 320px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.catalog-filters-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--ink);
}

.catalog-filters-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.filter-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0 0.85rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.filter-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-switch-ui {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #d4d0c8;
  transition: background 0.18s;
}

.filter-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s;
}

.filter-switch input:checked + .filter-switch-ui {
  background: #22c55e;
}

.filter-switch input:checked + .filter-switch-ui::after {
  transform: translateX(18px);
}

.filter-price {
  margin-top: 0.75rem;
}

.filter-price summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}

.filter-price summary::-webkit-details-marker {
  display: none;
}

.filter-price summary::after {
  content: "";
  float: right;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.35rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(225deg);
}

.filter-price:not([open]) summary::after {
  margin-top: 0.15rem;
  transform: rotate(45deg);
}

.filter-price-body {
  padding-top: 0.85rem;
}

.filter-range {
  position: relative;
  height: 28px;
  margin: 0 0.2rem 0.75rem;
}

.filter-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  border-radius: 999px;
  background: #e4e0d8;
}

.filter-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--accent);
}

.filter-range input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  top: 4px;
  appearance: none;
  background: none;
  pointer-events: none;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  cursor: pointer;
}

.filter-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  pointer-events: auto;
  cursor: pointer;
}

.filter-price-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
}

.filter-price-inputs label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-price-inputs input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  appearance: textfield;
  -moz-appearance: textfield;
}

.filter-price-inputs input::-webkit-outer-spin-button,
.filter-price-inputs input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.filter-price-sep {
  color: var(--muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.filter-apply {
  width: 100%;
  margin-top: 1rem;
}

/* Products - одинаковые карточки, всегда по центру (1 / 2 / 3) */
.bento-grid,
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  margin-inline: auto;
}

/* Главная: ровно 3 в ряд (2×3) */
.bento-grid {
  max-width: calc(220px * 3 + 0.85rem * 2);
}

.product-grid-centered {
  margin-top: 1.5rem;
}

.bento-grid .product-card,
.product-grid .product-card {
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  margin-inline: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.product-card:hover {
  border-color: #b8b2a6;
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 60%, rgba(91, 76, 245, 0.12), transparent 55%),
    linear-gradient(165deg, #1a1c28, #0f1118);
}

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

.badge-pct {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  background: #ef4444;
  color: #fff;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 0 0 6px 0;
}

.badge-sold {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 0.25rem 0.45rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
}

.product-card.is-sold .item-stage {
  opacity: 0.4;
  filter: grayscale(0.7);
}

.product-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--line);
}

.product-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
  flex-wrap: nowrap;
}

.stock-out-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  border: 0;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
  text-decoration: none;
  pointer-events: none;
  user-select: none;
}

.product-card .stock-out-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  min-height: 34px;
  padding: 0.2rem 0.15rem;
  background: #dc2626 !important;
  color: #fff !important;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: normal;
  text-align: center;
}

.stock-out-btn--detail {
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  white-space: normal;
  width: auto;
  min-height: 0;
  flex-direction: row;
  text-transform: none;
}

.prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}

.price-lg {
  font-size: 1.45rem;
}

.price-old {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.add-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.add-btn:hover {
  background: var(--accent-2);
}

/* Photo placeholders - no stickers */
.photo-box {
  display: grid;
  place-items: center;
  background: #1a1c28;
  position: relative;
  overflow: hidden;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-label {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.category-visual.photo-box,
.product-media.photo-box,
.bundle-media.photo-box,
.detail-media.photo-box,
.giveaway-panel.photo-box {
  background: linear-gradient(160deg, #1e2030, #12141c);
}

.giveaway-panel {
  min-height: 220px;
  border-radius: var(--r-bundle);
}

.giveaway-panel img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.giveaway-page-media {
  margin: 1rem 0 0;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 320px;
}

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

/* Fly to cart */
.cart-flyer {
  position: fixed;
  z-index: 9999;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 10px;
  background: #1a1c28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1), opacity 0.6s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cart-bump {
  animation: cartBump 0.35s ease;
}

.cart-badge-pop {
  animation: badgePop 0.4s ease;
}

@keyframes cartBump {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
}

@keyframes badgePop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

/* Cart remove */
.cart-item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-card);
  flex-shrink: 0;
}

.cart-thumb .photo-label {
  font-size: 0.55rem;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.cart-remove:hover {
  text-decoration: underline;
}

/* Account */
.account-wrap {
  padding: 2rem 0 3.5rem;
}

.account-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .account-layout {
    grid-template-columns: 220px 1fr;
    gap: 1.75rem;
  }
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  padding: 0.6rem;
  height: fit-content;
}

.account-nav a {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: block;
  width: 100%;
  text-align: left;
}

.account-nav a:hover,
.account-nav a.is-active {
  background: var(--dark);
  color: #fff;
}

.account-nav-logout-form {
  margin: 0.35rem 0 0;
  width: 100%;
}

.account-nav .account-nav-logout {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.28);
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.account-nav .account-nav-logout:hover,
.account-nav .account-nav-logout:focus-visible {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  outline: none;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  padding: 1.35rem 1.4rem;
}

.account-card h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.2rem;
}

.account-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.account-card label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.account-card input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.account-card input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
}

.form-hint {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.account-card .form-hint + .btn,
.account-card .form-hint + a.btn {
  margin-top: 1.15rem;
}

.form-ok {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

.field-error {
  display: block;
  margin-top: 0.25rem;
  color: #b91c1c;
  font-size: 0.78rem;
}

.account-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.account-card .pay-done-join {
  margin: 0 0 1rem;
}

.orders-list {
  display: grid;
  gap: 0.75rem;
}

.order-row {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 0.9rem 1rem;
}

.order-status {
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.order-status--ok {
  background: #dcfce7;
  color: #166534;
}

.order-status--wait {
  background: #e0e7ff;
  color: #3730a3;
}

.order-status--bad {
  background: #fee2e2;
  color: #991b1b;
}

.order-status--neutral {
  background: var(--bg-soft);
  color: var(--ink-soft);
}

.order-review-cta {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-card);
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.order-review-cta p {
  margin: 0 0 0.75rem;
  color: #166534;
}

.order-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.order-items {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.account-card .order-items + .pay-done-join {
  margin-top: 1rem;
}

.chat-fab {
  background: transparent !important;
  box-shadow: none !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  overflow: visible;
}

.tg-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

/* Auth */
.auth-shell {
  max-width: 440px;
  margin: 0 auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 0.3rem;
}

.auth-tabs a {
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: var(--r-btn);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-tabs a.is-active {
  background: var(--dark);
  color: #fff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #c9ceda;
}

.google-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.google-btn-slot {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.google-btn-slot > div {
  width: 100% !important;
}

.google-hint {
  text-align: center;
  color: #b91c1c;
  margin: 0;
}

.google-email-label {
  margin-bottom: 0.65rem !important;
}

.turnstile-wrap {
  margin: 0.75rem 0 1rem;
}

.turnstile-wrap .field-error {
  display: block;
  margin-top: 0.35rem;
}

.password-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.password-code-field {
  flex: 1 1 180px;
  margin: 0;
}

.password-code-field .field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.password-code-field input {
  width: 100%;
}

.password-send-code-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-bottom: 0.1rem;
}

@media (max-width: 520px) {
  .password-send-code-btn {
    width: 100%;
  }
}

.auth-links {
  text-align: center;
  margin: 0.75rem 0 0;
}

/* Bundles - own radius */
.bundles-list {
  display: grid;
  gap: 1.35rem;
}

.bundle-row {
  display: grid;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-bundle);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .bundle-row {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    padding: 1.35rem;
  }

  .bundle-row.is-flip .bundle-media {
    order: 2;
  }
}

.bundle-media {
  position: relative;
  min-height: 240px;
  border-radius: calc(var(--r-bundle) - 8px);
  overflow: hidden;
  background: #141622;
}

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

.bundle-art-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.85rem;
  height: 100%;
  min-height: 240px;
}

.bundle-art-stack .item-stage {
  background: #1a1c28;
  border-radius: 8px;
  min-height: 100px;
}

.bundle-art-stack .item-svg {
  width: 62%;
}

.bundle-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-btn);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bundle-info h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.bundle-info p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.bundle-items {
  font-size: 0.86rem !important;
  color: var(--muted) !important;
}

.bundle-buy {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

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

/* Asymmetric split layouts */
.split-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .split-layout {
    grid-template-columns: 0.9fr 1.35fr;
    align-items: start;
    gap: 3rem;
  }

  .split-layout.split-flip {
    grid-template-columns: 1.35fr 0.9fr;
  }
}

.split-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 28rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  font-size: 0.94rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 1.1rem 1.05rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Reviews */
.reviews-stack {
  display: grid;
  gap: 0.85rem;
  align-content: center;
  min-height: 12rem;
}

.reviews-empty-note {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 12rem;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.55);
  color: var(--muted);
}

@media (min-width: 700px) {
  .reviews-stack {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-empty-note {
    min-height: 16rem;
  }
}

.rating-line {
  margin: 0 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.stars {
  color: #eab308;
  letter-spacing: 1px;
}

.stars .dim {
  color: #d0cbc0;
}

/* Reviews page */
.reviews-page {
  padding-bottom: 0;
}

.reviews-page-top {
  display: grid;
  gap: 2rem;
  padding: 2.25rem 0 2.5rem;
}

@media (min-width: 900px) {
  .reviews-page-top {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
    gap: 3rem;
    padding: 2.75rem 0 3rem;
  }
}

.reviews-page-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.reviews-page-intro p {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.reviews-page-intro strong {
  color: var(--ink);
}

.review-write {
  border-top: 3px solid var(--dark);
  padding-top: 1.25rem;
}

.review-write-form {
  display: grid;
  gap: 0.85rem;
}

.review-write-row {
  display: grid;
  gap: 0.4rem;
}

.review-write-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.star-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.05rem;
  width: fit-content;
}

.star-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-picker label {
  cursor: pointer;
  font-size: 1.85rem;
  line-height: 1;
  color: #c5c0b6;
  padding: 0 0.05rem;
  transition: color 0.1s ease;
  user-select: none;
}

.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label {
  color: #111;
}

.review-write-form textarea {
  width: 100%;
  margin: 0;
  padding: 0.85rem 0;
  min-height: 130px;
  resize: vertical;
  border: 0;
  border-bottom: 2px solid var(--dark);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.review-write-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.review-write-form textarea::placeholder {
  color: #9a9eaa;
}

.review-write-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-top: 0.25rem;
}

.review-write-foot p,
.review-write-guest p {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.review-write-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review-write-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 4px;
  background: var(--dark);
  color: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.review-write-btn:hover {
  background: #23252f;
  transform: none;
  color: #fff;
}

.reviews-list-wrap {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 3.5rem;
}

.reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reviews-list-item {
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-list-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.reviews-list-meta strong {
  color: #fff;
  font-size: 0.95rem;
}

.reviews-list-meta .stars {
  color: #f0c84a;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.reviews-list-meta .stars .dim {
  color: rgba(255, 255, 255, 0.22);
}

.reviews-list-item p {
  margin: 0;
  max-width: 46rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.reviews-list-item-product {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.reviews-list-empty {
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
}

/* Keep homepage review cards usable */
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.05rem;
}

.review-text {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.92rem;
}

.review-meta {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-av {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-meta strong {
  display: block;
  font-size: 0.88rem;
}

.review-meta span {
  font-size: 0.75rem;
  color: var(--muted);
}

.reviews-stack .reviews-grid,
.reviews-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .reviews-stack {
    display: grid;
    gap: 0.85rem;
  }
}

/* Inner pages */
.page-head {
  padding: 2.25rem 0 1.25rem;
  background: var(--dark);
  color: #fff;
}

.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
}

.page-head p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.55);
}

.page-head a {
  color: #c4b5fd;
}

.detail-layout {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

@media (min-width: 860px) {
  .detail-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.detail-media {
  aspect-ratio: 1;
  background: #141622;
  border-radius: var(--r-card);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.detail-media .item-svg {
  width: 58%;
}

.detail-info h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.85rem;
  text-transform: uppercase;
}

.qty-row {
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.qty-row label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.qty-control {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--surface);
}

.qty-control button,
.qty-step {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1;
  flex: 0 0 auto;
}

.qty-control button:hover,
.qty-step:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05);
}

.qty-step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-control .qty-value {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  user-select: none;
}

.stock-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-qty-controls {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.cart-qty-form {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cart-qty-controls .qty-step {
  width: 36px;
  height: 36px;
}

.cart-qty-num {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  user-select: none;
}

.product-card.is-sold .product-name {
  opacity: 0.75;
}

.bundle-row.is-sold {
  opacity: 0.85;
}

.bundle-row.is-sold .bundle-btns .stock-out-btn {
  align-self: center;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.detail-actions .btn {
  width: 100%;
}

@media (max-width: 1100px) {
  .catalog-band {
    grid-template-columns: 300px minmax(0, 1fr);
    width: min(100% - 1.25rem, 1140px);
  }
}

.cart-page {
  padding: 1.75rem 0 3.5rem;
}

.cart-alert {
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid #f0c4c4;
  border-radius: var(--r-card);
  background: #fff5f5;
  color: #9f1239;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.confirm-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirm-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.confirm-nick {
  margin: 0.45rem 0 0.55rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #f4f2ec;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  word-break: break-word;
  user-select: none;
  pointer-events: none;
}

.confirm-items {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.confirm-items li + li {
  margin-top: 0.3rem;
}

.confirm-rule {
  margin: 1.15rem 0 1.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid #ead8a8;
  border-radius: 10px;
  background: #fff8e8;
  text-align: left;
}

.confirm-rule strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #8a5a00;
  font-size: 0.88rem;
}

.confirm-rule p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.confirm-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.confirm-form .legal-consent {
  max-width: none;
  margin-bottom: 0.35rem;
}

.confirm-form .btn {
  width: 100%;
  margin-top: 0.55rem;
}

.confirm-form .btn-dark {
  margin-top: 0.4rem;
}

.confirm-card .cart-field {
  max-width: none;
  text-align: left;
}

.pay-done {
  margin: 1.15rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.pay-done-row {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.pay-done-row span,
.pay-done-block span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pay-done-row strong {
  font-size: 1.05rem;
}

.pay-done-block ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  font-weight: 600;
}

.pay-done-join {
  margin: 0.35rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #f4f2ec;
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.45;
}

.pay-done-join p {
  margin: 0;
}

.pay-done-join p + p {
  margin-top: 0.65rem;
}

.pay-done-join-warn {
  color: #9a3412;
}

.pay-done-join-help a {
  color: #4c1d95;
  font-weight: 800;
  text-decoration: underline;
}

.pay-done-join strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.pay-done-join-link {
  display: inline-block;
  margin-top: 0.55rem;
  word-break: break-all;
  color: #4c1d95;
  font-weight: 700;
}

.cart-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  margin: 0 0 1.25rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-item-cat {
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-total {
  text-align: center;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cart-checkout {
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-align: center;
  box-sizing: border-box;
}

.cart-checkout .btn {
  width: 100%;
  max-width: 22rem;
}

.cart-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 22rem;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cart-field input {
  margin: 0;
}

.nick-at-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.nick-at-wrap:focus-within {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.nick-at {
  display: flex;
  align-items: center;
  padding: 0 0.15rem 0 0.85rem;
  font-weight: 800;
  color: var(--ink);
  user-select: none;
  pointer-events: none;
}

.nick-at-wrap .roblox-nick-input,
.nick-at-wrap input[data-roblox-nick] {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding-left: 0.2rem !important;
  flex: 1;
  min-width: 0;
}

.account-card .nick-at-wrap {
  margin-top: 0.35rem;
}

.cart-checkout .form-hint {
  margin: 0;
  max-width: 22rem;
}

.cart-nick {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

.cart-nick a {
  margin-left: 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.cart-empty {
  max-width: 28rem;
  margin: 0.5rem auto 0;
  padding: 2.5rem 1.4rem;
  text-align: center;
  border-top: 3px solid var(--dark);
}

.cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink-soft);
}

.cart-empty h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cart-empty p {
  margin: 0.65rem 0 1.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.cart-empty .btn {
  min-width: 10rem;
}

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, #1a1238 0%, #0c0d14 48%, #1a0f28 100%);
  color: #fff;
  padding: 3.5rem 1rem;
  text-align: center;
}

.error-page .container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.error-page-inner {
  width: min(100%, 34rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-code {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 14vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #c4b5fd;
}

.error-page h1 {
  margin: 0.85rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-transform: uppercase;
}

.error-text {
  margin: 0.85rem auto 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  max-width: 28rem;
  line-height: 1.5;
}

.error-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.error-btn-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.error-btn-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.giveaway-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-bundle);
  padding: 2rem;
  text-align: center;
  max-width: 520px;
  margin: 2rem auto 3rem;
}

.giveaway-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.68);
  padding: 3rem 0 0;
  margin-top: auto;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1.8fr;
  }
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-socials {
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
  color: #c4b5fd;
  white-space: normal;
}

.footer-socials a {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: inherit;
  color: inherit;
  vertical-align: baseline;
}

.footer-socials a + a::before {
  content: "";
  display: inline-block;
  width: 1.15rem;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.footer-cols h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: var(--display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-cols a,
.pay-row {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-cols a:hover {
  color: #fff;
}

.footer-cols a.link-accent,
.footer-legal a {
  color: rgba(196, 181, 253, 0.92);
  font-weight: 700;
}

.footer-cols a.link-accent:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1rem;
}

.footer-bottom a {
  color: rgba(196, 181, 253, 0.85);
}

.footer-bottom a:hover {
  color: #fff;
}

.legal-doc {
  max-width: 46rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.legal-updated {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-doc h2 {
  margin: 1.75rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.legal-doc h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1rem;
  color: var(--ink);
}

.legal-doc p {
  margin: 0 0 0.7rem;
}

.legal-doc ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin: 0 0 0.4rem;
}

.legal-updated a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.legal-updated a:hover {
  text-decoration: underline;
}

.legal-doc a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.legal-doc a:hover {
  text-decoration: underline;
}

.legal-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
}

.account-card label.legal-consent {
  margin-bottom: 1rem;
  max-width: none;
  width: 100%;
}

.cart-checkout .legal-consent {
  align-self: center;
}

.legal-consent-check,
.legal-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block !important;
  width: 1.125rem !important;
  height: 1.125rem !important;
  min-width: 1.125rem;
  margin: 0.12rem 0 0 !important;
  padding: 0 !important;
  flex: 0 0 1.125rem;
  border: 1.5px solid #c8c3d8;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.legal-consent-check:checked,
.legal-consent input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2 6.4 11 12.5 5'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
  box-shadow: 0 0 0 3px rgba(107, 100, 196, 0.15);
}

.legal-consent-check:focus-visible,
.legal-consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 100, 196, 0.25);
}

.legal-consent__text {
  flex: 1;
  min-width: 0;
}

.legal-consent a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.legal-consent a:hover {
  text-decoration: underline;
}

.form-hint a,
main .text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.form-hint a:hover,
main .text-link:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 1.35rem 1.25rem calc(1.35rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 32px rgba(13, 14, 20, 0.1);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-banner.is-hiding {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  min-height: 3.25rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-banner-accept {
  flex: 0 0 auto;
  min-width: 8.5rem;
  padding: 0.85rem 1.5rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-accept {
    width: 100%;
  }

  .legal-consent {
    max-width: none;
  }
}

.chat-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
}

.chat-fab:hover {
  transform: none;
}

.chat-fab .tg-logo {
  display: block;
  filter: drop-shadow(0 8px 20px rgba(36, 161, 222, 0.5));
  transition: transform 0.15s ease;
}

.chat-fab:hover .tg-logo {
  transform: scale(1.08);
}

.tg-logo {
  display: block;
  flex-shrink: 0;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 14, 20, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: start center;
  padding: 12vh 1rem 2rem;
}

.search-overlay[hidden] {
  display: none;
}

.search-panel {
  position: relative;
  width: min(100%, 640px);
  background: #fff;
  border: 1px solid #e8e4f5;
  border-radius: 18px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 24px 60px rgba(91, 76, 245, 0.18);
}

.search-panel-top {
  display: flex;
  justify-content: flex-end;
  margin: -0.25rem -0.35rem 0.65rem 0;
}

.search-form {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0 0.95rem;
  border: 1.5px solid #ddd6fe;
  border-radius: 999px;
  background: #faf8ff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 76, 245, 0.15);
}

.search-field-icon {
  flex-shrink: 0;
  color: #8b5cf6;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.9rem 0;
  outline: none;
  color: var(--ink);
  font: inherit;
}

.search-field input::placeholder {
  color: #9ca3af;
}

.search-submit {
  flex-shrink: 0;
  padding-inline: 1.35rem;
  box-shadow: 0 8px 20px rgba(91, 76, 245, 0.28);
}

.search-close {
  position: static;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5f3ff;
  color: #6f7280;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-close:hover {
  background: #ede9fe;
  color: var(--accent);
}

.search-results-section {
  padding-top: 1.5rem;
}

.search-form-page {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.search-form-inline {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.1rem;
}

/* Mobile layout */
@media (max-width: 720px) {
  :root {
    --header-h: 58px;
  }

  .header-inner {
    width: min(100% - 1rem, 1200px);
    gap: 0.35rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .logo-img {
    width: 34px;
    height: 34px;
  }

  .icon-btn,
  .burger {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 1.5rem, 640px);
    margin-inline: auto;
    padding: 2.4rem 0 2.8rem;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-top: 0.9rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding: 2.4rem 0;
  }

  .section-title {
    margin-bottom: 1.15rem;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .category-grid {
    gap: 0.65rem;
  }

  .category-name {
    font-size: 0.82rem;
  }

  .catalog-band {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: static;
    max-width: none;
  }

  .bento-grid {
    width: 100%;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    margin: 0 -0.25rem 1.1rem;
    padding: 0 0.25rem 0.35rem;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
  }

  .bento-grid,
  .product-grid {
    gap: 0.65rem;
  }

  .bento-grid .product-card,
  .product-grid .product-card {
    flex: 0 0 min(170px, calc(50% - 0.35rem));
    width: min(170px, calc(50% - 0.35rem));
    max-width: 170px;
  }

  .product-media {
    aspect-ratio: 1;
    min-height: 0;
  }

  .product-body {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .product-name {
    font-size: 0.82rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .price {
    font-size: 0.95rem;
  }

  .price-old {
    font-size: 0.72rem;
  }

  .add-btn {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }

  .bundle-row {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .bundle-media,
  .bundle-art-stack {
    min-height: 180px;
  }

  .bundle-info h3 {
    font-size: 1.15rem;
  }

  .bundle-buy {
    flex-direction: column;
    align-items: stretch;
  }

  .bundle-btns {
    width: 100%;
  }

  .bundle-btns .btn {
    flex: 1;
    min-width: 0;
  }

  .split-copy .btn {
    display: inline-flex;
    width: auto;
    margin: 0 0.35rem 0.45rem 0 !important;
  }

  .faq-item summary {
    padding: 0.85rem 0.95rem;
    font-size: 0.9rem;
    align-items: flex-start;
  }

  .page-head {
    padding: 1.6rem 0 1rem;
  }

  .page-head h1 {
    font-size: 1.45rem;
  }

  .detail-layout {
    padding: 1.25rem 0 2.25rem;
    gap: 1.1rem;
  }

  .detail-info h1 {
    font-size: 1.4rem;
  }

  .account-wrap {
    padding: 1.25rem 0 2.5rem;
  }

  .account-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding: 0.45rem;
    scrollbar-width: none;
  }

  .account-nav::-webkit-scrollbar {
    display: none;
  }

  .account-nav a,
  .account-nav .account-nav-logout {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
  }

  .account-nav-logout-form {
    margin: 0;
    width: auto;
    flex: 0 0 auto;
  }

  .account-card {
    padding: 1.1rem 1rem;
  }

  .auth-shell {
    max-width: none;
  }

  .cart-table {
    margin: 1rem 0;
  }

  .cart-page {
    padding: 1.25rem 0 2.5rem;
  }

  .cart-row {
    grid-template-columns: 1fr auto;
    gap: 0.55rem 0.75rem;
    padding: 0.9rem;
    align-items: center;
  }

  .cart-item-main {
    grid-column: 1 / -1;
  }

  .cart-qty-controls {
    grid-column: 1;
    justify-self: start;
  }

  .cart-line {
    font-weight: 700;
    justify-self: end;
  }

  .cart-row > form {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .cart-total {
    text-align: left;
    font-size: 1.15rem;
  }

  .cart-total + .btn,
  .cart-checkout,
  .cart-empty .btn {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .cart-empty {
    padding: 2rem 0.5rem;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }

  .reviews-page-top {
    gap: 1.5rem;
    padding: 1.6rem 0 1.8rem;
  }

  .reviews-page-intro h1 {
    font-size: 2rem;
  }

  .review-write-foot,
  .review-write-guest {
    flex-direction: column;
    align-items: stretch;
  }

  .review-write-btn {
    width: 100%;
  }

  .reviews-list-wrap {
    padding: 1.6rem 0 2.5rem;
  }

  .reviews-list-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    line-height: 1.4;
  }

  .footer-socials a + a::before {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }

  .footer-cols > :last-child {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-top: 2.2rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .btn,
  .add-btn,
  .icon-btn,
  .filter-chip {
    touch-action: manipulation;
  }

  .search-overlay {
    padding-top: 8vh;
    align-items: start;
  }

  .search-panel {
    padding: 1rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }

  .google-btn-slot,
  .google-btn-slot > div,
  .btn-google,
  .btn-review-submit {
    width: 100% !important;
    max-width: 100%;
  }

  .giveaway-card {
    padding: 1.35rem 1.1rem;
  }

  .orders-list,
  .order-row {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .bento-grid,
  .product-grid {
    gap: 0.5rem;
  }

  .bento-grid .product-card,
  .product-grid .product-card {
    flex: 0 0 min(160px, calc(50% - 0.25rem));
    width: min(160px, calc(50% - 0.25rem));
    max-width: 160px;
  }

  .category-grid {
    gap: 0.5rem;
  }

  .category-card {
    flex-basis: 140px;
    width: 140px;
    max-width: calc(50% - 0.3rem);
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-cols > :last-child {
    grid-column: auto;
  }
}
