/* ========================================
   ACCULOE — Built Quiet.
   Design System + Complete Styles
   ======================================== */

/* --- FONTS --- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Satoshi', 'Inter', -apple-system, sans-serif;
  background: #0a0a0a;
  color: #f5f5f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.5s ease;
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav-logo {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #f5f5f0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7a7a;
  transition: color 0.5s ease;
}

.nav-links a:hover {
  color: #f5f5f0;
}

.nav-cart-count {
  color: #8ecae6;
}

/* --- HERO / ROOM --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/room.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-bg.loaded {
  opacity: 1;
}

/* fallback gradient when no room image */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212, 165, 116, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(142, 202, 230, 0.05) 0%, transparent 50%),
    #0a0a0a;
}

.hero-text {
  position: relative;
  z-index: 10;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.5s ease 0.5s forwards;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #7a7a7a;
}

.hero-enter {
  margin-top: 3rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a7a7a;
  opacity: 0;
  animation: heroPulse 3s ease 2s infinite;
}

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

@keyframes heroPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* --- ROOM HOTSPOTS --- */
.hotspot {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.6s ease;
}

.hotspot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 116, 0.3);
  animation: hotspotPulse 3s ease infinite;
}

.hotspot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.15);
  transition: background 0.5s ease;
}

.hotspot:hover::after {
  background: rgba(212, 165, 116, 0.35);
}

.hotspot-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f5f5f0;
  background: rgba(10, 10, 10, 0.8);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hotspot:hover .hotspot-label {
  opacity: 1;
}

@keyframes hotspotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* --- SCROLL CUE --- */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeIn 1s ease 3s forwards;
}

.scroll-cue span {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, #7a7a7a, transparent);
  animation: scrollDrift 2s ease infinite;
}

@keyframes scrollDrift {
  0% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 0.7; transform: scaleY(1); }
  100% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- COLLECTION SECTION --- */
.collection {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.collection-heading {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 3rem;
  text-align: center;
}

/* --- PRODUCT GRID --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 165, 116, 0.2);
  box-shadow: 0 20px 60px rgba(212, 165, 116, 0.08);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.product-card-image .placeholder-icon {
  font-size: 2rem;
  color: #7a7a7a;
  opacity: 0.3;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-name {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.product-card-tagline {
  font-size: 0.8125rem;
  color: #7a7a7a;
  margin-bottom: 1rem;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 500;
  color: #d4a574;
}

/* --- BRAND STATEMENT --- */
.brand-statement {
  padding: 8rem 2.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.brand-statement p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #7a7a7a;
  font-weight: 400;
}

/* --- FOOTER --- */
.footer {
  padding: 4rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: #7a7a7a;
  transition: color 0.5s ease;
}

.footer-social a:hover {
  color: #f5f5f0;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-email {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #7a7a7a;
  transition: color 0.5s ease;
}

.footer-links a:hover {
  color: #f5f5f0;
}

.footer-copy {
  font-size: 0.625rem;
  color: rgba(122, 122, 122, 0.5);
}

/* --- PRODUCT DETAIL PANEL --- */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.product-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  z-index: 2001;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.product-panel.active {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a7a;
  font-size: 1.25rem;
  z-index: 10;
  transition: color 0.3s ease;
}

.panel-close:hover {
  color: #f5f5f0;
}

.panel-image {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.panel-tagline {
  font-size: 0.875rem;
  color: #7a7a7a;
  margin-bottom: 1.25rem;
}

.panel-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #7a7a7a;
  margin-bottom: 2rem;
}

.panel-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4a574;
  margin-bottom: 2rem;
}

.btn-add {
  width: 100%;
  padding: 1rem;
  background: #8ecae6;
  color: #0a0a0a;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  transition: background 0.4s ease, transform 0.3s ease;
  margin-top: auto;
}

.btn-add:hover {
  background: #a8d8ea;
  transform: scale(1.01);
}

.btn-add.added {
  background: #10b981;
}

/* --- CART PANEL --- */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  z-index: 2001;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.cart-panel.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.cart-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.8125rem;
  color: #d4a574;
  margin-bottom: 0.5rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.cart-item-qty button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cart-item-qty span {
  font-size: 0.875rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  font-size: 0.6875rem;
  color: #7a7a7a;
  letter-spacing: 0.06em;
  margin-top: 0.375rem;
  display: inline-block;
  transition: color 0.3s ease;
}

.cart-item-remove:hover {
  color: #ef4444;
}

.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a7a;
  font-size: 0.875rem;
}

.cart-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cart-subtotal-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.cart-subtotal-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #d4a574;
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  background: #8ecae6;
  color: #0a0a0a;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  transition: background 0.4s ease;
  margin-bottom: 0.75rem;
}

.btn-checkout:hover {
  background: #a8d8ea;
}

.cart-continue {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #7a7a7a;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.cart-continue:hover {
  color: #f5f5f0;
}

/* --- MUTE TOGGLE --- */
.mute-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  opacity: 0;
  animation: heroFadeIn 1s ease 4s forwards;
}

.mute-bar {
  width: 2px;
  height: 12px;
  background: #7a7a7a;
  border-radius: 1px;
  transition: opacity 0.3s ease;
}

.mute-toggle.playing .mute-bar:nth-child(1) {
  animation: muteWave 1.2s ease infinite 0s;
}
.mute-toggle.playing .mute-bar:nth-child(2) {
  animation: muteWave 1.2s ease infinite 0.2s;
}
.mute-toggle.playing .mute-bar:nth-child(3) {
  animation: muteWave 1.2s ease infinite 0.4s;
}

.mute-toggle.muted .mute-bar {
  opacity: 0.3;
  height: 6px;
}

@keyframes muteWave {
  0%, 100% { height: 6px; opacity: 0.4; }
  50% { height: 16px; opacity: 0.8; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-panel,
  .cart-panel {
    width: 360px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-bg {
    background-image: url('../img/room-mobile.png');
  }

  .hotspot {
    display: none;
  }

  .collection {
    padding: 4rem 1.25rem;
  }

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

  .product-panel,
  .cart-panel {
    width: 100%;
  }

  .brand-statement {
    padding: 5rem 1.25rem;
  }

  .brand-statement p {
    font-size: 1rem;
  }

  .footer {
    padding: 3rem 1.25rem;
  }
}
