/* =========================
   ========== FONTS ==========
   ========================= */
@font-face {
  font-family: 'Akira Expanded';
  src: url('./fonts/akira_expanded_demo-webfont.woff2') format('woff2'),
       url('./fonts/akira_expanded_demo-webfont.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica LT Std';
  src: url('./fonts/helveticaltstd-light-webfont.woff2') format('woff2'),
       url('./fonts/helveticaltstd-light-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* =========================
   ========== RESET ==========
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   ========== BODY ==========
   ========================= */
body {
  background: #f8f8f8;
  color: #111;
  font-family: 'Helvetica LT Std', sans-serif;
  font-size: 22pt;
  -webkit-text-stroke: .75pt;
  height: 100vh;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body.lock-scroll {
  overflow: hidden;
  height: 100vh;
}

/* =========================
   ========== LOGO TOP ==========
   ========================= */
#logo-top-center {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 200px;
  width: 100%;
  height: auto;
  z-index: 1002;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#logo-top-center.visible {
  opacity: 0.85;
  visibility: visible;
}


/* =========================
   ========== LANDING SCREEN ==========
   ========================= */
#landing {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: black;
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease;
  opacity: 1;
  pointer-events: auto;
}

#landing.fade-out {
  opacity: 0;
  pointer-events: none;
}

#landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

#landing video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.landing-logo {
  width: clamp(120px, 20vw, 240px);
  margin-bottom: 2rem;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.enter-button {
  cursor: pointer;
  border: 1px solid #fff;
  padding: 1rem 2rem;
  transition: all 0.2s ease;
  z-index: 1;
}

.enter-button:hover {
  background: #fff;
  color: #000;
}

/* =========================
   ========== PRODUCT MODULE ==========
   ========================= */
#product-stack {
  display: flex;
  flex-direction: column;
}

.product-module {
  scroll-snap-align: start;
  min-height:90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eaeaea;
  position: relative;
}

.oversized-logo {
  position: absolute;
  bottom: 19rem;
  left: 5rem;
  width: 300px;
  height: auto;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}



/* =========================
   ========== UI ==========
   ========================= */
.product-ui {
  border: 1px solid #000;
  width: 230px;
  padding: 0.75rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.2;
  margin-top: 12rem;
  position: relative;
  z-index: 2;
  transform: translateX(-45px);
}

.product-title {
  font-family: 'Akira Expanded', sans-serif;
  font-weight: 800;
}

.product-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.size-option {
  cursor: pointer;
  color: #000;
  transition: color 0.2s ease;
}

.size-option.active {
  color: #0000ff;
}

.cart-circle {
  width: 150px;
  height: 150px;
  border: 1px solid #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #999;
  transition: all 0.2s ease;
  cursor: not-allowed;
  font-size: 0.8rem;
  text-align: center;
}

.cart-circle.active {
  color: #0000ff;
  border-color: #0000ff;
  cursor: pointer;
}

.product-footer {
  display: flex;
  justify-content: flex-start;
}

.price {
  color: #0000ff;
  font-weight: normal;
}

.comfort-description {
  margin-top: 1rem;
  font-size: 0.75rem;
  max-width: 320px;
  line-height: 1.4;
  opacity: 0.75;
  position: relative;
  z-index: 2;
}

/* =========================
   ========== CART UI ==========
   ========================= */
#cart-button,
#home-button {
  position: fixed;
  right: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  padding: 0.75rem 1.25rem;
  border: none;
  cursor: pointer;
  z-index: 1001;
  font-family: 'Helvetica LT Std', sans-serif;
}

#catalog-button {
  position: fixed;
  right: 1.5rem;
  top: 5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  padding: 0.75rem 1.25rem;
  border: none;
  cursor: pointer;
  z-index: 1001;
  font-family: 'Helvetica LT Std', sans-serif;
}

#sound-button {
  position: fixed;
  right: 1.5rem;
  top: 7rem; /* adjust spacing as needed */
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  padding: 0.75rem 1.25rem;
  border: none;
  cursor: pointer;
  z-index: 1001;
  font-family: 'Helvetica LT Std', sans-serif;
  background: none;
}



#cart-button { top: 3rem; }
#home-button { top: 1rem; }

.cart-page {
  padding: 2rem;
  background: #eaeaea;
  color: #000;
  font-family: 'Helvetica LT Std', sans-serif;
  font-size: 1rem;
}

.cart-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ccc;
  padding: 1rem 0;
}

.item-name { font-weight: bold; }
.item-price { color: #0000ff; }

.remove-button {
  background: none;
  border: 1px solid #999;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: #000;
}

.cart-summary {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#checkout-button {
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: #eee;
  border: 1px solid #aaa;
  padding: 0.25rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}

.qty-btn:hover { background: #ddd; }
.quantity { min-width: 1.5rem; text-align: center; }
.item-total { font-weight: bold; color: #0000ff; }

/* =========================
   ========== COMFORT GALLERY ==========
   ========================= */
.comfort-gallery {
  position: absolute;
  bottom: 0;
  left: 40%;
  transform: translateX(-50%);
  height: 60vh;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.comfort-gallery img {
  position: absolute;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  max-height: 60vh;
  transform: translateX(40px);
}

.comfort-gallery img.active {
  opacity: 0.85;
  pointer-events: auto;
}

.comfort-gallery img:nth-child(1) {
  transform: scale(1.2) translateX(-40px) translateY(40px);
}

.comfort-gallery img:nth-child(2) {
  transform: scale(1) translateX(35px);
}

.gallery-dots {
  position: absolute;
  bottom: -2.5rem;
  left: 110%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
  pointer-events: auto;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #999;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active { background: #000; }

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

#cart-button {
  transition: transform 0.2s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

#cart-button.bump {
  animation: bump 0.3s ease;
}

#module-nav,
#cart-button,
#home-button,
#catalog-button,
#overstock-button,
#sound-button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.show-ui #module-nav,
body.show-ui #cart-button,
body.show-ui #home-button,
body.show-ui #catalog-button,
body.show-ui #overstock-button,
body.show-ui #sound-button {
  opacity: 1;
  pointer-events: auto;
}


/* =========================
   ========== OVERSTOCK GRID ==========
   ========================= */
.overstock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 2rem;
  max-width: 100%;
}
.overstock-item {
  background-color: transparent !important; /* Force override any white */
  border: 1px solid #000;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
}

.overstock-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.overstock-item:hover {
  border-color: #0000ff;
}
.overstock-info {
  margin-top: 0.5rem;
  text-align: center;
}

.add-button {
  margin-top: 0.5rem;
  border: 1px solid #000;
  background: none;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-size: 0.65rem;
  font-family: inherit;
}
#overstock-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 1px solid #000;
  cursor: pointer;
  z-index: 1001;
  font-family: 'Helvetica LT Std', sans-serif;
}


