:root {
  --blue-100: #e7f4fd;
  --blue-200: #98bad2;
  --blue-300: #5d89a7;
  --blue-400: #315d7d;
  --blue-500: #123852;
  --blue-600: #031f33;
  --surface-card: linear-gradient(145deg, rgba(18, 56, 82, 0.94), rgba(3, 31, 51, 0.9));
  --line-soft: rgba(152, 186, 210, 0.28);
  --shadow-soft: 0 20px 55px rgba(1, 11, 21, 0.42);
  --radius-lg: 30px;
  --radius-md: 20px;
  --font-display: "Futura", "Futura PT", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Futura", "Futura PT", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--blue-100);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background: var(--blue-600);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 10% 10%, rgba(152, 186, 210, 0.25), transparent 42%),
    radial-gradient(circle at 87% 12%, rgba(93, 137, 167, 0.22), transparent 38%),
    radial-gradient(circle at 50% 95%, rgba(49, 93, 125, 0.2), transparent 45%),
    linear-gradient(150deg, #031f33 0%, #123852 48%, #031f33 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(231, 244, 253, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 244, 253, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

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

button {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.08;
}

p {
  margin: 0;
  color: rgba(231, 244, 253, 0.88);
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem;
}

.shop-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.shop-section {
  width: 100%;
  margin: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(3, 31, 51, 0.52);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.shop-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 800;
  color: rgba(231, 244, 253, 0.74);
}

.shop-heading h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-button {
  border: 1px solid rgba(152, 186, 210, 0.36);
  background: rgba(3, 31, 51, 0.45);
  color: var(--blue-100);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.filter-button.active {
  background: var(--blue-200);
  color: var(--blue-600);
}

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

.product-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(152, 186, 210, 0.28);
  background: var(--surface-card);
  box-shadow: 0 16px 35px rgba(1, 11, 21, 0.38);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product-card.is-hidden {
  display: none;
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.product-visual {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(152, 186, 210, 0.26);
  background:
    radial-gradient(circle at 70% 28%, rgba(152, 186, 210, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(18, 56, 82, 0.95), rgba(3, 31, 51, 0.92));
}

.product-photo,
.carousel-slide {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 244, 253, 0.28);
  background: rgba(3, 31, 51, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-photo,
.visual-video {
  background: linear-gradient(145deg, rgba(6, 38, 61, 0.92), rgba(3, 31, 51, 0.88));
}

.visual-video {
  background: linear-gradient(145deg, rgba(8, 34, 53, 0.96), rgba(3, 31, 51, 0.9));
}

.visual-hat,
.visual-sweatshirt {
  display: grid;
  place-items: center;
}

.product-carousel {
  padding: 0;
  align-content: stretch;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  inset: auto 0.85rem 0.85rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.carousel-button,
.carousel-dot {
  border: 1px solid rgba(231, 244, 253, 0.3);
  color: var(--blue-100);
}

.carousel-button {
  background: rgba(3, 31, 51, 0.7);
  min-width: 64px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: rgba(152, 186, 210, 0.28);
  transform: translateY(-1px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  background: var(--swatch, rgba(231, 244, 253, 0.42));
  cursor: pointer;
  opacity: 0.82;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.carousel-dot.is-active,
.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(231, 244, 253, 0.92);
}

.carousel-caption {
  position: absolute;
  left: 50%;
  bottom: 3.95rem;
  z-index: 3;
  transform: translateX(-50%);
  min-width: 112px;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 244, 253, 0.2);
  background: rgba(3, 31, 51, 0.62);
  color: rgba(231, 244, 253, 0.96);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.visual-sweatshirt {
  background:
    radial-gradient(circle at 18% 18%, rgba(152, 186, 210, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(24, 52, 77, 0.95), rgba(3, 31, 51, 0.92));
}

.visual-sweatshirt .carousel-slide {
  padding: 1rem 1rem 3.15rem;
  object-fit: contain;
}

.visual-sweatshirt .carousel-controls {
  inset: auto 0.75rem 0.75rem;
}

.visual-sweatshirt .visual-badge {
  backdrop-filter: blur(8px);
}

.sweatshirt-shape {
  position: relative;
  width: min(76%, 270px);
  aspect-ratio: 1 / 1;
}

.sleeve-left,
.sleeve-right,
.torso {
  position: absolute;
  background: linear-gradient(180deg, rgba(17, 23, 31, 0.94), rgba(4, 10, 16, 1));
  border: 1px solid rgba(231, 244, 253, 0.12);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.torso {
  inset: 18% 24% 10% 24%;
  border-radius: 24px 24px 30px 30px;
}

.sleeve-left {
  inset: 22% 58% 24% 6%;
  border-radius: 24px 30px 18px 24px;
  transform: rotate(18deg);
}

.sleeve-right {
  inset: 22% 6% 24% 58%;
  border-radius: 30px 24px 24px 18px;
  transform: rotate(-18deg);
}

.sweatshirt-mark {
  position: absolute;
  inset: 45% auto auto 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-align: center;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.product-tag {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: rgba(152, 186, 210, 0.2);
}

.product-price {
  font-size: 1.65rem;
  font-family: var(--font-display);
}

.product-card h2 {
  font-size: 1.24rem;
}

.product-action {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.68rem 1rem;
  cursor: pointer;
  border: 1px solid rgba(231, 244, 253, 0.34);
  border-radius: 999px;
  background: rgba(231, 244, 253, 0.14);
  color: var(--blue-100);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.product-action:hover:not(:disabled) {
  transform: translateY(-2px);
}

.product-action:disabled,
.product-action.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.product-action.is-live {
  background: var(--blue-200);
  color: var(--blue-600);
  border-color: transparent;
}

.stripe-status {
  margin-top: 1rem;
  border-radius: 12px;
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(152, 186, 210, 0.34);
  background: rgba(231, 244, 253, 0.08);
  color: rgba(231, 244, 253, 0.88);
  font-size: 0.9rem;
}

.stripe-status[data-state="success"] {
  border-color: rgba(152, 186, 210, 0.62);
  background: rgba(152, 186, 210, 0.22);
}

.stripe-status[data-state="warning"] {
  border-color: rgba(231, 244, 253, 0.32);
  background: rgba(3, 31, 51, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.cursor-glow {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  z-index: 50;
  opacity: 0.42;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(152, 186, 210, 0.34), rgba(152, 186, 210, 0));
  mix-blend-mode: screen;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #031f33, #123852);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-100);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.loader-mark span {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.82;
}

.loader-mark p {
  font-size: 0.74rem;
  color: rgba(231, 244, 253, 0.72);
}

@media (max-width: 840px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 0.75rem;
  }

  .shop-section {
    padding: 1rem;
  }

  .shop-heading {
    align-items: flex-start;
  }

  .carousel-controls {
    inset: auto 0.65rem 0.65rem;
    gap: 0.5rem;
  }

  .carousel-button {
    min-width: 56px;
    padding: 0.38rem 0.6rem;
    font-size: 0.68rem;
  }

  .carousel-caption {
    bottom: 3.55rem;
    min-width: 98px;
    padding: 0.28rem 0.6rem;
    font-size: 0.68rem;
  }
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}
