:root {
  --bg: #060606;
  --bg-soft: #111111;
  --line: #5a0a0a;
  --yellow: #cc0000;
  --yellow-soft: #e05050;
  --text: #f0d5d5;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background-color: #060606;
  background:
    radial-gradient(1200px 800px at 85% -10%, #1a0505 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 120%, #0f0303 0%, transparent 60%),
    linear-gradient(180deg, #080808, var(--bg));
  background-repeat: no-repeat;
  background-size: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(8, 0, 3, 0.85);
  border-bottom: 1px solid #5a0a0a;
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.brand {
  text-decoration: none;
  color: #f5e8e8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.contact-link {
  color: #f0d0d0;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: rgba(180, 20, 20, 0.2);
}

.site-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 420px);
  position: relative;
}

.site-search input {
  width: 100%;
  min-width: 180px;
  border: 1px solid #7a2020;
  background: #100308;
  color: #f0d5d5;
  border-radius: 999px;
  padding: 9px 13px;
}

.site-search input::placeholder {
  color: #c08080;
}

.site-search button {
  border: 1px solid #802020;
  background: #1e0808;
  color: #f0d5d5;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #110305;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 40;
}

.suggest-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #3a0808;
}

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

.suggest-item:hover {
  background: #200808;
}

.suggest-item img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}

.suggest-title {
  font-weight: 600;
  color: #f0d5d5;
}

.suggest-price {
  font-weight: 700;
  color: var(--yellow);
}

.contact-link {
  color: #fff;
  background: #990000;
  border: 1px solid #990000;
  animation: contact-pulse 14s infinite;
  text-align: center;
}

.contact-link:hover {
  background: #7a0000;
  border-color: #7a0000;
  animation: none;
}

@keyframes contact-pulse {
  0%, 80%, 100% {
    box-shadow: none;
    transform: scale(1);
  }
  83% {
    box-shadow: 0 0 0 4px rgba(180, 0, 0, 0.3), 0 0 14px rgba(180, 0, 0, 0.5);
    transform: scale(1.05);
  }
  86% {
    box-shadow: none;
    transform: scale(1);
  }
  89% {
    box-shadow: 0 0 0 3px rgba(180, 0, 0, 0.2), 0 0 8px rgba(180, 0, 0, 0.35);
    transform: scale(1.03);
  }
  92%, 100% {
    box-shadow: none;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-link { animation: none; }
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-link {
  text-decoration: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--yellow);
  border: 1px solid #7a0000;
  border-radius: 999px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.65;
  background-image:
    radial-gradient(1px 1px at 5% 8%, #fff, transparent),
    radial-gradient(2px 2px at 12% 20%, #fff, transparent),
    radial-gradient(1px 1px at 18% 55%, #fff, transparent),
    radial-gradient(1px 1px at 24% 38%, #fff, transparent),
    radial-gradient(2px 2px at 33% 72%, #fff, transparent),
    radial-gradient(1px 1px at 42% 15%, #fff, transparent),
    radial-gradient(1px 1px at 48% 88%, #fff, transparent),
    radial-gradient(2px 2px at 54% 46%, #fff, transparent),
    radial-gradient(1px 1px at 61% 31%, #fff, transparent),
    radial-gradient(1px 1px at 67% 64%, #fff, transparent),
    radial-gradient(2px 2px at 70% 10%, #fff, transparent),
    radial-gradient(1px 1px at 75% 78%, #fff, transparent),
    radial-gradient(1px 1px at 20% 80%, #fff, transparent),
    radial-gradient(1px 1px at 84% 62%, #fff, transparent),
    radial-gradient(2px 2px at 88% 24%, #fff, transparent),
    radial-gradient(1px 1px at 91% 47%, #fff, transparent),
    radial-gradient(1px 1px at 95% 85%, #fff, transparent),
    radial-gradient(1px 1px at 8% 92%, #fff, transparent),
    radial-gradient(2px 2px at 36% 5%, #fff, transparent),
    radial-gradient(1px 1px at 56% 95%, #fff, transparent),
    radial-gradient(1px 1px at 78% 40%, #fff, transparent),
    radial-gradient(1px 1px at 3% 60%, #fff, transparent),
    radial-gradient(2px 2px at 46% 58%, #fff, transparent),
    radial-gradient(1px 1px at 82% 88%, #fff, transparent),
    radial-gradient(1px 1px at 15% 14%, #fff, transparent);
}

.hero {
  padding: 28px 20px 14px;
  text-align: center;
}

/* ── Banner slider ── */
.banner-section {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 20px;
}

.banner-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 1;
  min-height: 120px;
}

.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.banner-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

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

.banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.banner-arrow:hover { background: rgba(180,0,0,0.7); }
.banner-arrow--prev { left: 10px; }
.banner-arrow--next { right: 10px; }

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.banner-dot.active {
  background: #cc0000;
  transform: scale(1.3);
}

@media (max-width: 760px) {
  .banner-slider { aspect-ratio: 2 / 1; min-height: unset; }
  .banner-slide img { height: 100%; object-fit: cover; }
  .banner-arrow { width: 34px; height: 34px; font-size: 24px; }
}

/* ── Admin banner list ── */
.banner-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 10px;
  align-items: center;
}
.banner-item img {
  width: 100px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.banner-item__meta { font-size: 13px; }
.banner-item__link { color: #a05050; font-size: 12px; word-break: break-all; }

.crawl-scene {
  position: relative;
  max-width: 980px;
  height: 160px;
  margin: 14px auto 6px;
  overflow: hidden;
  perspective: 620px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 78%,
    transparent 100%
  );
}

.crawl-fade {
  display: none;
}

.crawl-track {
  width: min(86%, 820px);
  margin: 0 auto;
  color: var(--yellow);
  text-align: justify;
  text-align-last: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transform-origin: 50% 100%;
  transform: rotateX(20deg) translateY(320px);
  animation: star-crawl 52s linear infinite;
  text-shadow: 0 0 12px rgba(204, 0, 0, 0.38);
  font-family: "Arial Black", Impact, sans-serif;
}

.crawl-track p {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.55vw, 30px);
  line-height: 1.35;
  color: #ffe81f;
  text-shadow: 0 0 18px rgba(255, 232, 31, 0.35);
}

.crawl-track strong {
  color: #ffe81f;
  text-shadow: 0 0 24px rgba(255, 232, 31, 0.6);
}

.hero-cart {
  padding-bottom: 10px;
}

.intro {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c07070;
}

h1 {
  margin: 8px 0 6px;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1;
  color: var(--yellow);
  text-transform: uppercase;
  font-family: "Arial Black", Impact, sans-serif;
  text-shadow: 0 0 18px rgba(204, 0, 0, 0.6);
}

.sub {
  margin: 0 auto;
  max-width: 720px;
  font-size: 17px;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.count-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0a0004;
  background: var(--yellow);
}

.sections {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 8px 20px 20px;
}

.sections h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 16px;
  color: var(--yellow-soft);
  text-transform: uppercase;
  text-align: center;
  font-family: "Arial Black", Impact, sans-serif;
}

.accordion { display: grid; gap: 12px; }

.sector {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(25, 4, 8, 0.46), rgba(8, 1, 4, 0.8));
  overflow: hidden;
}

.sector summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  color: var(--yellow-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.sector summary::-webkit-details-marker { display: none; }
.sector summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}
.sector[open] summary::after { content: "-"; }

.products {
  padding: 0 14px 16px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 12px;
}

.sector-panel {
  overflow: hidden;
  transition: max-height 0.35s ease;
  will-change: max-height;
}

/* ── Catalog controls (sort + price filter) ── */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.sort-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #130508;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  min-width: 180px;
}
.sort-select:focus { outline: none; border-color: var(--yellow); }

.price-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.price-filter input {
  width: 100px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #130508;
  color: var(--text);
  font-size: 14px;
}
.price-filter input:focus { outline: none; border-color: var(--yellow); }
.price-filter span { color: #c08080; }
.price-clear {
  background: none;
  border: 1px solid var(--line);
  color: #c08080;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.price-clear:hover { color: var(--text); border-color: #cc3333; }

@media (max-width: 600px) {
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .sort-select { min-width: 0; width: 100%; }
  .price-filter { width: 100%; }
  .price-filter input { flex: 1; min-width: 0; }
}

/* ── Cart Drawer ── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
}
.cart-drawer[aria-hidden="false"] { visibility: visible; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-drawer[aria-hidden="false"] .cart-drawer__overlay { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: #110305;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer[aria-hidden="false"] .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-drawer__head h2 { margin: 0; font-size: 18px; }

.cart-drawer__close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.cart-drawer__close:hover { background: #2a0a0a; }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-drawer__empty {
  color: #c08080;
  font-size: 14px;
  text-align: center;
  margin-top: 40px;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #180608;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.cart-item__img {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-item__info { min-width: 0; }
.cart-item__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__price { font-size: 12px; color: var(--yellow); margin-top: 2px; }
.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #200808;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.qty-btn:hover { background: #2a0a0a; }
.qty-num { font-size: 14px; min-width: 20px; text-align: center; }
.cart-item__remove {
  background: none;
  border: none;
  color: #6a3030;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.cart-item__remove:hover { color: #e05c5c; }

.cart-drawer__footer {
  flex-shrink: 0;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
}
.cart-drawer__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  margin-bottom: 10px;
}
.cart-drawer__total-row strong { color: var(--yellow); font-size: 18px; }

/* legacy fallback */
.cart-drawer__total {
  font-size: 15px;
  margin-bottom: 12px;
}
.cart-drawer__total strong { color: var(--yellow); font-size: 18px; }

.cart-drawer__final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(204, 0, 0, 0.08);
  border: 1px solid rgba(204, 0, 0, 0.3);
}
.cart-drawer__final strong { color: var(--yellow); font-size: 20px; }
.cart-drawer__final.hidden { display: none; }

/* ── Promo code block ── */
.cart-promo {
  margin-bottom: 10px;
}

.cart-promo__input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.cart-promo__input-row input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e0305;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-promo__input-row input:focus { outline: none; border-color: var(--yellow); }
.cart-promo__input-row input::placeholder { text-transform: none; letter-spacing: normal; color: #7a2020; }

.cart-promo__input-row button {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #200808;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.cart-promo__input-row button:hover { background: #2a0a0a; }
.cart-promo__input-row button:disabled { opacity: 0.5; cursor: default; }

.cart-promo__result {
  font-size: 12px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
}
.cart-promo__result.hidden { display: none; }
.cart-promo__result--ok {
  background: rgba(26, 61, 26, 0.6);
  border: 1px solid #3a7a3a;
  color: #7ddd7d;
}
.cart-promo__result--err {
  background: rgba(61, 26, 26, 0.6);
  border: 1px solid #7a3030;
  color: #f5a0a0;
}

.cart-drawer__form {
  display: grid;
  gap: 8px;
}
.cart-drawer__form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e0305;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}
.cart-drawer__form input:focus { outline: none; border-color: var(--yellow); }
.cart-drawer__form-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a2020;
}

.cart-drawer__submit {
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: var(--yellow);
  color: #0a0004;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}
.cart-drawer__submit:hover { opacity: 0.88; }
.cart-drawer__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.cart-drawer__success {
  text-align: center;
  color: #6de88a;
  font-size: 14px;
  margin: 10px 0 0;
}
.cart-drawer__success.hidden { display: none; }

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 6px;
}

.tag-pill {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #5a1515;
  background: #130508;
  color: #c08080;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tag-pill:hover {
  border-color: #cc3333;
  color: var(--text);
  background: #200808;
}

.tag-pill.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0004;
  font-weight: 600;
}

/* ── Dropdown tag filter ── */
.tag-pill-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.has-dropdown {
  gap: 5px;
}

.tpw-arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s ease;
  opacity: 0.75;
  flex-shrink: 0;
}

.tag-pill-wrapper.open .tpw-arrow {
  transform: rotate(180deg);
}

.tag-pill-wrapper.open .has-dropdown:not(.active) {
  border-color: var(--yellow);
  color: var(--yellow);
}

.tag-pill-wrapper.open .has-dropdown.active {
  color: #0a0004;
}

/* Desktop: floating dropdown */
.tag-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  min-width: 160px;
  flex-direction: column;
  gap: 2px;
  background: #0e0305;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.tag-pill-wrapper.open .tag-dropdown-panel {
  display: flex;
}

.tag-dropdown-header {
  font-size: 11px;
  font-weight: 600;
  color: #7a2020;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px 6px;
  border-bottom: 1px solid rgba(90, 10, 10, 0.5);
  margin-bottom: 3px;
}

.tag-dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 7px 11px 7px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #c08080;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}

.tag-dropdown-item::before {
  content: '↳';
  font-size: 11px;
  color: #5a1515;
  flex-shrink: 0;
  margin-right: 2px;
}

.tag-dropdown-item:hover {
  background: #200808;
  color: var(--text);
}

.tag-dropdown-item:hover::before {
  color: #a03030;
}

.tag-dropdown-item.active {
  background: rgba(204, 0, 0, 0.12);
  color: var(--yellow);
  font-weight: 600;
}

.tag-dropdown-item.active::before {
  color: rgba(204, 0, 0, 0.5);
}

.tag-dropdown-item em {
  font-style: normal;
  color: #a03030;
  font-size: 12px;
}

.tdi-arrow {
  color: #7a2020;
  font-size: 12px;
  margin-left: auto;
}

/* L3 row inside dropdown */
.tag-pills--sub2 {
  padding-top: 5px;
  margin-top: 2px;
  border-top: 1px dashed rgba(90, 10, 10, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-pill--sub2 {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(12, 2, 6, 0.6);
  border-color: #3a0a0a;
  color: #a03030;
}

.tag-pill--sub2:hover {
  border-color: #7a2020;
  color: #c08080;
}

.tag-pill--sub2.active {
  background: rgba(204, 0, 0, 0.1);
  border-color: rgba(204, 0, 0, 0.5);
  color: var(--yellow);
  font-weight: 600;
}

/* Mobile: inline expand */
@media (max-width: 760px) {
  .tag-pill-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .tag-pill-wrapper.open {
    width: 100%;
  }

  .tag-dropdown-panel {
    position: static;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(90, 10, 10, 0.4);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 0;
    min-width: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
  }

  .tag-dropdown-header {
    font-size: 10px;
    padding: 3px 8px 5px;
    margin-bottom: 2px;
  }

  .tag-dropdown-panel {
    border-left: 2px solid rgba(90, 10, 10, 0.6);
    padding: 4px 0 2px 6px;
    border-top: none;
    border-radius: 0;
    margin-top: 4px;
  }

  .tag-dropdown-item {
    width: 100%;
    display: flex;
    padding: 5px 8px 5px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #c08080;
  }

  .tag-dropdown-item:hover,
  .tag-dropdown-item.active {
    border: none;
    background: rgba(204, 0, 0, 0.08);
    color: var(--yellow);
    font-weight: 600;
  }

  .tag-dropdown-item em {
    font-style: normal;
    font-size: 12px;
    color: inherit;
    opacity: 0.8;
  }
}

.pagination {
  padding: 0 14px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 13px;
  color: #f0c0c0;
}

.pagination-btn {
  border: 1px solid #802020;
  background: #1a0808;
  color: #f0d5d5;
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-card {
  border: 1px solid #5a0a0a;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 1, 4, 0.94), rgba(12, 2, 6, 0.96));
  width: 100%;
  display: flex;
  flex-direction: column;
}

.product-card--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  border-color: #cc2222;
}

.product-card--clickable:focus-visible {
  outline: 2px solid #ff5555;
  outline-offset: 2px;
}

.product-card__img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-body { padding: 10px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin: 0 0 6px; color: var(--yellow-soft); font-size: 16px; }
.product-body p { margin: 0 0 10px; min-height: 36px; font-size: 13px; line-height: 1.35; flex: 1; }

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}

.add-cart-btn {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #7a0000;
  background: #1a0808;
  color: #ffcccc;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.add-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-cart-btn--qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: #1a0808;
  border-color: #cc0000;
}

.cart-qty__dec,
.cart-qty__inc {
  background: #cc0000;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-qty__dec:hover,
.cart-qty__inc:hover {
  background: #aa0000;
}

.cart-qty__num {
  font-size: 16px;
  font-weight: 700;
  color: #ffcccc;
  min-width: 24px;
  text-align: center;
}

.stock.in { color: #86f3a2; }
.stock.out { color: #ff9e9e; }
.empty { margin: 0; padding: 6px; color: #c08080; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 0, 3, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal img {
  max-width: min(100%, 980px);
  max-height: 84vh;
  border-radius: 10px;
  border: 1px solid #5a0a0a;
}

.modal-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #802020;
  background: #180608;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.cart-sector {
  padding-bottom: 14px;
}

.cart-items {
  display: grid;
  gap: 10px;
  padding: 0 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  border: 1px solid #5a0a0a;
  border-radius: 10px;
  background: rgba(12, 2, 8, 0.9);
  padding: 10px;
}

.cart-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #5a1515;
}

.cart-item-body h3 {
  margin: 0 0 6px;
  color: var(--yellow-soft);
}

.cart-item-body p {
  margin: 0;
}

.cart-item-actions {
  display: grid;
  gap: 8px;
  align-content: center;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-box button,
.cart-item-actions .danger,
#clearCart {
  border: 1px solid #802020;
  background: #200808;
  color: #f0d5d5;
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
}

.cart-item-actions .danger {
  border-color: #cc3333;
  background: #2a0a0a;
}

.cart-summary {
  margin-top: 12px;
  padding: 0 14px;
  display: grid;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
}

#openCheckout,
#clearCart {
  border: 1px solid #802020;
  background: #200808;
  color: #f0d5d5;
  border-radius: 7px;
  padding: 10px 12px;
  cursor: pointer;
}

#openCheckout {
  border-color: #7a0000;
  background: #1a0808;
  color: #ffcccc;
}

.product-page {
  max-width: 980px;
  margin: 0 auto;
}

.product-detail-card {
  border: 1px solid #5a0a0a;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 1, 5, 0.95), rgba(12, 2, 6, 0.95));
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-detail-media img:first-child {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.product-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: rgba(0,0,0,0.3);
}

.product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
}

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--yellow);
  opacity: 1;
}

.product-detail-body {
  padding: 20px;
}

.back-link {
  text-decoration: none;
  color: #e08080;
}

.detail-category {
  margin: 14px 0 6px;
  color: #c07070;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.detail-title {
  margin: 0 0 10px;
  color: var(--yellow-soft);
  font-size: clamp(24px, 4vw, 36px);
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.detail-stock {
  margin: 0 0 8px;
  font-weight: 600;
}

.detail-price {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
}

.detail-text {
  line-height: 1.55;
  color: #f0d0d0;
  margin-bottom: 14px;
}

.detail-add {
  max-width: 260px;
}

.checkout-dialog {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid #5a0a0a;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 1, 5, 0.98), rgba(12, 2, 8, 0.98));
  padding: 22px;
}

.checkout-title {
  margin: 0 0 10px;
  color: var(--yellow-soft);
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.checkout-copy {
  margin: 0 0 14px;
  color: #f0d0d0;
}

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

.checkout-label {
  display: grid;
  gap: 6px;
}

.checkout-label span {
  color: #f0d0d0;
  font-weight: 600;
}

.checkout-label input,
.checkout-label textarea {
  width: 100%;
  border: 1px solid #7a2020;
  background: #130508;
  color: #f0d5d5;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.checkout-label textarea {
  resize: vertical;
  min-height: 180px;
}

.checkout-submit {
  justify-content: center;
  background: #1a0808;
}

.checkout-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ── Skeleton loader ── */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #110305 25%, #2a0a0a 50%, #110305 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  background: #110305;
  color: var(--yellow);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  line-height: 1;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: #200808; }

/* ── Results counter ── */
.results-count {
  font-size: 13px;
  color: #c08080;
  padding: 2px 0;
}

@keyframes star-crawl {
  0% {
    transform: rotateX(20deg) translateY(320px);
  }
  100% {
    transform: rotateX(20deg) translateY(-1850px);
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    column-gap: 10px;
  }
  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }
  .site-header__actions {
    grid-row: 1;
    grid-column: 2;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px 14px;
    gap: 10px;
  }

  .product-card__img {
    height: 130px;
  }

  .product-body h3 {
    font-size: 14px;
  }

  .product-body p {
    font-size: 12px;
    min-height: 0;
  }

  .crawl-scene {
    height: 185px;
    margin-top: 14px;
  }

  .crawl-track {
    width: 92%;
    animation-duration: 62s;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item img {
    width: 100%;
    height: 170px;
  }

  .product-detail-card {
    grid-template-columns: 1fr;
  }
}
