:root {
  --bg: #070d14;
  --bg-soft: #0f1721;
  --card: #121f2b;
  --card-2: #182a3a;
  --text: #ebf2f8;
  --muted: #91a7bc;
  --line: #263749;
  --accent: #ff9f1a;
  --accent-2: #15d4c3;
  --danger: #ff5d5d;
  --success: #4ed48f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 35px rgba(3, 9, 16, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Avenir Next', 'Segoe UI Variable', 'Trebuchet MS', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -5%, rgba(21, 212, 195, 0.18), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 159, 26, 0.16), transparent 40%),
    linear-gradient(180deg, #05090f, #0b121c 40%, #09111a);
  min-height: 100%;
}

a {
  color: inherit;
}

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

audio {
  width: 100%;
  margin: 0.5rem 0;
}

.container {
  width: min(1150px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(5, 9, 16, 0.75);
  border-bottom: 1px solid rgba(145, 167, 188, 0.2);
}

.site-header.compact {
  position: static;
}

.header-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.text-link {
  text-decoration: none;
  color: var(--accent-2);
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.cart-button,
.primary-button,
.secondary-button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cart-button,
.primary-button {
  background: linear-gradient(120deg, var(--accent), #ffc260);
  color: #141414;
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 159, 26, 0.3);
}

.secondary-button {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  padding: 0.45rem 0.9rem;
}

.icon-button {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  font-size: 1.2rem;
  line-height: 1;
}

.cart-button:hover,
.primary-button:hover,
.secondary-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.cart-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.78rem;
}

.hero {
  padding: 3.4rem 0 2rem;
}

.hero-content {
  background: linear-gradient(140deg, rgba(21, 212, 195, 0.18), rgba(255, 159, 26, 0.14));
  border: 1px solid rgba(145, 167, 188, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.3rem 1.2rem;
}

.hero h1 {
  margin: 0.3rem 0 0.6rem;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.1;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-size: 0.82rem;
}

.filters-section {
  margin-bottom: 1.4rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: rgba(11, 19, 29, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.field input,
.field select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  min-height: 42px;
  padding: 0.55rem 0.7rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.6rem 0 0.8rem;
  gap: 1rem;
}

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

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.featured-grid .product-card {
  border-color: rgba(255, 159, 26, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 159, 26, 0.1) inset;
}

.product-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.product-body {
  padding: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.product-body h3 {
  margin: 0;
  font-size: 1.04rem;
}

.product-meta,
.product-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.badge-row {
  display: flex;
  gap: 0.35rem;
  margin: 0;
}

.tag {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 159, 26, 0.17);
  border: 1px solid rgba(255, 159, 26, 0.33);
}

.tag.in-cart {
  background: rgba(21, 212, 195, 0.17);
  border-color: rgba(21, 212, 195, 0.4);
}

.empty {
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.hidden {
  display: none !important;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(430px, 100%);
  height: 100%;
  background: #09111a;
  border-left: 1px solid var(--line);
  z-index: 50;
  transition: right 0.24s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-panel.open {
  right: 0;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 12, 0.6);
  z-index: 45;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
}

.cart-items {
  overflow: auto;
  padding: 1rem;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(145, 167, 188, 0.18);
}

.cart-line p {
  margin: 0;
  font-size: 0.95rem;
}

.cart-line small {
  color: var(--muted);
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.mobile-cart-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: 1.4rem;
  background: rgba(7, 13, 20, 0.95);
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
}

.mobile-cart-bar.visible {
  display: flex;
}

.legal {
  margin: 2.4rem auto 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(12, 21, 33, 0.8);
}

.checkout-body,
.success-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(21, 212, 195, 0.16), transparent 38%),
    linear-gradient(180deg, #060a11, #0c1420 58%, #0a121c);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.2rem 0 2rem;
}

.checkout-card,
.checkout-summary,
.success-card {
  background: rgba(10, 18, 28, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.checkout-card h1,
.checkout-summary h2,
.success-card h1,
.success-card h2 {
  margin-top: 0;
}

.checkbox-row {
  display: flex;
  gap: 0.6rem;
  margin: 0.7rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.paypal-container {
  margin-top: 0.8rem;
}

.alert {
  border-radius: 10px;
  margin-top: 0.8rem;
  padding: 0.75rem;
  font-size: 0.88rem;
}

.alert.error {
  background: rgba(255, 93, 93, 0.14);
  border: 1px solid rgba(255, 93, 93, 0.4);
  color: #ffc8c8;
}

.alert.success {
  background: rgba(78, 212, 143, 0.14);
  border: 1px solid rgba(78, 212, 143, 0.4);
  color: #c8fadd;
}

.summary-total {
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.downloads-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.downloads-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.downloads-list small {
  color: var(--muted);
}

@media (min-width: 680px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .checkout-layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .mobile-cart-bar {
    display: none !important;
  }
}

@media (min-width: 1180px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
