:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(3, 5, 12, 0.24);
  --glass-bg-strong: rgba(8, 10, 18, 0.38);
  --text-primary: #f8fbff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 25px 45px rgba(5, 8, 22, 0.4);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: #02040a;
  background-image: linear-gradient(120deg,
      rgba(2, 4, 10, 0.45),
      rgba(2, 4, 10, 0.18)),
    url("taustakuva-test.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top,
      rgba(255, 255, 255, 0.15),
      transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: inherit;
  background-attachment: fixed;
  /* Simplified overlay to play nicer with backdrop-filter */
  opacity: 1;
  transition: opacity 900ms ease;
  z-index: 0;
  pointer-events: none;
}

body.page-ready::before {
  opacity: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sticky Header - Floating Pill Style */
.glass-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translate3d(-50%, -32px, 0);
  width: min(92vw, 960px);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid transparent;
  background-color: transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease,
    box-shadow 220ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 540ms ease;
  z-index: 100;
  opacity: 0;
}

body.page-ready .glass-nav {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  transition-delay: 120ms;
}

.glass-nav--scrolled {
  background-color: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.glass-nav--menu-open {
  background-color: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.icon-button--active {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.nav-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
}

.nav-brand__logo {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 1.5rem 160px;
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(900px, 90vw);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 36px;
  background: rgba(6, 8, 14, 0.35);
  border: 1px solid rgba(200, 200, 200, 0.07);
  text-align: left;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-ready .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  margin: 0 0 0.45rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.03em;
}

.hero-lede {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Timeline Integration */
.timeline-container {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}


.timeline-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3) 10%, rgba(255, 255, 255, 0.3) 90%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 6rem;
  padding-left: 5rem;
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-marker {
  position: absolute;
  /* Place the date label between the vertical line and the card */
  left: 2.1rem;
  top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  /* background: #02040a; Removed ugly black background */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  padding: 4px 0;
  z-index: 2;
}

/* Small horizontal branch connecting the main line to the date label */
.timeline-marker::before {
  content: "";
  position: absolute;
  /* Start exactly from the vertical line (at 2rem) and reach to the label */
  top: 1.2rem; /* a bit below the year so it doesn't touch the text */
  left: -1.0rem; /* marker at 2.4rem -> 2.4rem - 0.4rem = 2rem (line position) */
  width: 0.7rem;
  height: 2px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.25));
}

.timeline-year {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.timeline-month {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Card Styles */
.glass-card {
  /* Slightly stronger dark glass so content is more readable over the blur */
  background: rgba(30, 35, 40, 0.3);
  border: none; /* remove visible border */
  overflow: hidden;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 55px rgba(30, 30, 30, 0.4);
  border-radius: 20px;
  transition: box-shadow 0.3s ease; /* avoid transform to keep compositing stable */
}

.glass-card:hover {
  /* subtle shadow change, no lifting transform */
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.card-header {
  padding: 1.5rem 1.5rem 1rem;
}

.card-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.card-body {
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 1rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Media Wrappers */
.media-wrapper {
  width: 100%;
  background: black;
}

.media-wrapper--video {
  position: relative;
  padding-top: 75%;
  /* 4:3 for YouTube iframe */
}

.media-wrapper--video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Local video wrapper: natural aspect ratio, no fixed box */
.media-wrapper--video-local {
  /* no fixed aspect; video uses its intrinsic ratio */
}

.media-wrapper--video-local video {
  width: 100%;
  height: auto;
  display: block;
}

.media-wrapper--image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prevent inline baseline gap under iframes so the wrapper height matches exactly */
.media-wrapper--embed {
  line-height: 0;
}

.media-wrapper--embed iframe {
  width: 100%;
  height: 152px;
  display: block;
  /* Spotify compact */
}

.timeline-item--embed .media-wrapper--embed iframe {
  height: 400px;
  /* Larger for artist profile */
}

/* Footer Styles */
.site-footer {
  width: min(940px, 90vw);
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem 2rem;
  border-radius: 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(32px);
  box-shadow: 0 25px 45px rgba(5, 8, 22, 0.28);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 800ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-ready .site-footer {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.footer-heading {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 0.25rem;
  opacity: 0.85;
  transition: opacity 160ms ease;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Shop Layout */
.shop-main {
  max-width: 1100px;
  margin: 120px auto 60px;
  padding: 0 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

/* On single product pages, hide the big shop hero */
.shop-main--detail .shop-hero {
  display: none;
  margin: 0;
}

.shop-hero {
  margin-bottom: 2rem;
}

.shop-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.shop-lede {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.shop-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.shop-category-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(6, 8, 14, 0.4);
  opacity: 0.8;
}

.shop-category-link:hover {
  opacity: 1;
  background: rgba(6, 8, 14, 0.7);
}

.shop-category-link--active {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(6, 8, 14, 0.9);
  opacity: 1;
}

.shop-cart-summary {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-cart-summary--flash {
  color: #f5ff8e;
}

/* Product grid */
.shop-root {
  margin-top: 1rem;
}

.shop-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* 2 columns from 600px */
@media (min-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* 4 columns from 1200px */
@media (min-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shop-card {
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(30, 35, 40, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.shop-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.shop-card-body {
  padding: 0.9rem 1rem 1rem;
}

.shop-card-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.shop-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.shop-card-short {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shop-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-card-colors {
  display: flex;
  gap: 0.25rem;
}

.shop-card-sizes {
  display: flex;
  gap: 0.25rem;
}

.shop-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.shop-size-pill {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Single product view */
.shop-product-detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  align-items: flex-start;
}

.shop-product-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
}

.shop-product-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.shop-product-price {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.shop-product-availability {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Availability states */
.shop-product-availability--ok {
  color: #8ef5a4;
}

.shop-product-availability--not {
  color: #ff9a9a;
}

.shop-product-option {
  margin-bottom: 0.75rem;
}

.shop-product-option h2 {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255, 255, 255, 0.7);
}

.shop-product-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.shop-color-swatch--selectable {
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.4);
  background-clip: padding-box;
}

.shop-color-swatch--selectable.shop-color-swatch--active {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.shop-color-swatch--selectable {
  cursor: pointer;
}

/* Make color swatches larger on the product detail view */
.shop-product-detail .shop-color-swatch--selectable {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.shop-product-detail .shop-color-swatch--selectable.shop-color-swatch--active {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.shop-size-pill--selectable {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.shop-size-pill--active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Larger size buttons on product detail */
.shop-product-detail .shop-size-pill--selectable {
  min-width: 44px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  text-align: center;
}

.shop-product-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-product-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.shop-quantity-label {
  font-size: 0.85rem;
}

.shop-quantity-label input[type="number"] {
  margin-left: 0.4rem;
  width: 3.5rem;
  padding: 0.1rem 0.3rem;
}

/* Primary CTA for adding to cart */
#shopAddToCartBtn {
  flex: 1 1 180px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff9b3f, #ff3f81);
  color: #0a0613;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

#shopAddToCartBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  opacity: 0.96;
}

#shopAddToCartBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Cart overlay */
.shop-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Flyout cart that expands from the cart icon */
.shop-cart-flyout {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  /* Frosted glass to match site aesthetic */
  background: rgba(6, 8, 14, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  z-index: 300;
  will-change: left, top, width, height, opacity;
  transition:
    left 260ms cubic-bezier(0.22, 1, 0.36, 1),
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    top 220ms cubic-bezier(0.22, 1, 0.36, 1),
    height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}

.shop-cart-flyout--open {
  opacity: 1;
}

.shop-cart-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-cart-flyout-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.shop-cart-flyout-title .shop-cart-flyout-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.shop-cart-flyout-title .shop-cart-flyout-icon svg {
  width: 16px;
  height: 16px;
}

.shop-cart-flyout-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
}

.shop-cart-flyout-body {
  padding: 0.75rem 1rem;
  max-height: 65vh;
  overflow-y: auto;
}

.shop-cart-flyout-footer {
  padding: 0.6rem 1rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-cart-overlay-inner {
  width: min(480px, 90vw);
  max-height: 80vh;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(6, 8, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.shop-cart-overlay-header,
.shop-cart-overlay-footer {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-cart-overlay-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.shop-cart-overlay-body {
  padding: 0.75rem 1rem;
  overflow-y: auto;
}

.shop-cart-close-btn {
  float: right;
}

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

.shop-cart-item {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.shop-cart-item-main span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shop-cart-total {
  font-size: 0.95rem;
}

.shop-cart-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Line item controls inside flyout */
.shop-cart-item-ctrls {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shop-cart-item-ctrls button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
}

.shop-cart-item-ctrls .shop-cart-item-remove {
  border-radius: 999px;
}

.shop-cart-item-qty {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Cart overlay visible state + body lock */
.shop-cart-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}
.shop-cart-overlay--visible .shop-cart-overlay-inner {
  transform: translateY(0);
  opacity: 1;
}
body.shop-cart-open {
  overflow: hidden;
}

/* Cart icon badge */
.shop-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3f81, #ff9b3f);
  color: #0a0613;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  display: grid;
  place-items: center;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.shop-cart-badge--visible {
  transform: scale(1);
  opacity: 1;
}

/* Single product header + frosted info card */
.shop-product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.shop-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.shop-back-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}
.shop-back-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.shop-product-info {
  background: rgba(6, 8, 14, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .glass-nav {
    padding: 0.55rem 0.85rem;
  }

  /* Single product layout: stack image then info */
  .shop-product-detail {
    grid-template-columns: 1fr;
  }

  .shop-product-media {
    order: 0;
  }

  .shop-product-info {
    order: 1;
    margin-top: 1rem;
  }

  body {
    background-attachment: scroll;
    /* Show more of the background image (less zoomed-in) on mobile */
    background-size: contain;
    background-position: top center;
  }

  body::before {
    background-attachment: scroll;
    transform: scale(1.02);
  }

  .hero {
    padding: 130px 1.25rem 80px;
  }

  .site-footer {
    padding: 1.25rem 1.35rem 1.5rem;
    border-radius: 22px;
  }

  .timeline-container {
    padding: 0 1rem;
  }

  .timeline-line {
    left: 0.8rem;
  }

  .timeline-item {
    padding-left: 3.5rem;
    margin-bottom: 4rem;
  }

  .timeline-marker {
    /* On mobile, also keep the label between line and card */
    left: 0.5rem;
    align-items: flex-start;
    text-align: left;
  }
  .timeline-marker::before {
    width: 0.4rem;
    left: -0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
