@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;500;600&display=swap");

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

html,
body {
  height: 100%;
}

.page-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#app-main {
  flex: 1;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 0.6rem 0.9rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link.nav-active {
  color: #0b0b0b;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

.nav-link:hover {
  color: #0b0b0b;
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
}

.nav-actions {
  gap: 1rem;
}

.hero {
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at top left, #14110b 0%, #0b0b0b 55%);
}

.hero-media {
  position: relative;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #121212;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  height: clamp(360px, 50vh, 560px);
}

.hero-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  transform: scale(1);
}

.hero-media-img.is-active {
  opacity: 1;
  animation: heroKenBurns 5s ease-in-out forwards;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.03);
  }
}



.cart-link {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #e0bf5a, #a47e18);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4h-2l-1 2h2l2.4 9h9.2l2.1-6h-11.2l-.4-2zm1 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/></svg>") center / contain no-repeat;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0b0b;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-page .product-page-container {
  max-width: 90rem;
}

.product-page #product-detail .product-content {
  max-width: none;
  width: 100%;
}

@media (min-width: 1024px) {
  .product-page #product-detail > .grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 2.5rem;
    align-items: start;
  }

  .product-page #product-detail .product-media {
    max-width: none;
  }
}


@media (max-width: 991px) {
  .hero {
    padding: 3.5rem 0;
  }

  .hero-media {
    height: clamp(280px, 45vh, 420px);
  }
}

@media (max-width: 575px) {
  .nav-link {
    padding: 0.6rem 0.9rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-media {
    height: clamp(220px, 38vh, 320px);
    aspect-ratio: 16 / 11;
    max-width: 340px;
    margin: 1.25rem auto 0;
  }
}
