:root {
  --bg: #0a0f18;
  --surface: #121a2a;
  --surface-2: #182238;
  --border: #2a3d5c;
  --text: #e8eef8;
  --muted: #8fa3c8;
  --accent: #4f9dff;
  --accent-dim: #2d7ae8;
  --gold: #7cc8ff;
  --danger: #f09080;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../images/bg-river-fisher.jpg") center center / cover no-repeat;
  filter: blur(16px) brightness(0.42) saturate(1.08);
  transform: scale(1.08);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(79, 157, 255, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(10, 15, 24, 0.72) 0%, rgba(10, 15, 24, 0.88) 55%, rgba(10, 15, 24, 0.94) 100%);
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.cart-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.cart-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #061428;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.hero p {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s, border-color 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #f4f8ff;
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224, 122, 107, 0.45);
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
}

.btn-danger:hover {
  background: rgba(224, 122, 107, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.card-visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--surface-2), #0d1524);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-intro {
  margin-bottom: 2rem;
}

.page-intro h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.shop-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.shop-jump__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.shop-jump__link:hover {
  text-decoration: none;
  background: rgba(79, 157, 255, 0.12);
  border-color: var(--border);
}

.shop-jump__sep {
  color: var(--border);
  font-weight: 500;
  user-select: none;
}

.shop-jump__link--sub {
  font-weight: 500;
  color: var(--muted);
}

.shop-jump__link--sub:hover {
  color: var(--accent);
}

.shop-catalog {
  scroll-margin-top: 5rem;
}

.shop-block {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5rem;
}

.shop-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.shop-block__title {
  margin: 0;
}

.shop-block__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.shop-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48rem;
  line-height: 1.55;
}

.subsection-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: 5rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.prose--about p {
  max-width: 46rem;
}

.about-credit {
  margin-top: 2rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  font-style: italic;
  max-width: 40rem !important;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    filter: brightness(0.42) saturate(1.05);
    transform: none;
  }
}

.basket-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.basket-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.basket-table th,
.basket-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.basket-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-2);
}

.basket-table tr:last-child td {
  border-bottom: none;
}

.basket-table th:first-child,
.basket-table td:first-child {
  width: 4.5rem;
  vertical-align: middle;
}

.basket-thumb {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.basket-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.35rem;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control button {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.qty-control button:hover {
  border-color: var(--accent);
}

.basket-summary {
  max-width: 320px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.basket-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.basket-summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  padding: 0.65rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.layout-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-footer main {
  flex: 1;
}

@media (max-width: 720px) {
  .basket-table thead {
    display: none;
  }

  .basket-table tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .basket-table td {
    display: block;
    border: none;
    padding: 0.35rem 0;
  }

  .basket-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.2rem;
  }

  .basket-summary {
    margin-left: 0;
    max-width: none;
  }
}
