/*
 * Global stylesheet for the Layer Garage storefront.
 * The design uses a dark background with hot‑pink accents to
 * reflect the brand’s modern and energetic aesthetic.
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

:root {
  --dark-bg: #0d0d23;
  --dark-card: #191933;
  --text-light: #f5f5f5;
  --primary: #e91e63; /* hot pink */
  --secondary: #8e2de2; /* purple accent */
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* Header and navigation */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(13, 13, 35, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

/* Logo styling: if an image is used in the logo container, constrain its height */
.navbar .logo {
  display: flex;
  align-items: center;
}
.navbar .logo img {
  height: 40px;
  width: auto;
}
/* Fallback styling when text is used instead of an image */
.navbar .logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.25rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  background-color: var(--primary);
  color: var(--dark-bg);
}

/* Hero section */
.hero {
  height: 80vh;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 64px; /* height of fixed header */
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.55);
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background-color: var(--primary);
  color: var(--dark-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  display: inline-block;
}

.btn:hover {
  background-color: var(--secondary);
}

/* Features section */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem 2rem;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  background-color: var(--dark-card);
  padding: 2rem;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
  flex: 1 1 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.feature h2 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about, .contact {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about h2, .contact h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  background-color: rgba(25, 25, 51, 0.85);
  margin-top: 2rem;
}

/* Shop page */
.shop-container {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.shop-container h1 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.shop-description {
  margin-bottom: 2rem;
  color: #b8b8d1;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.product-card {
  background-color: var(--dark-card);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 300px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.product-card .product-image {
  width: 100%;
  height: 180px;
  background-color: #444;
  border-radius: 6px;
  margin-bottom: 1rem;
  background-image: url('placeholder_product.png');
  background-size: cover;
  background-position: center;
}

.product-card .product-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 6px;
}

.product-card h3 {
  margin: 0.5rem 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.product-card .price {
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-card a.btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .product-card {
    max-width: 100%;
  }
}

/*
 * Styling for the embedded Shopify Shop Pay button.
 * The native Shop Pay button has its own styles; here we simply
 * ensure it aligns nicely within our product cards by adding a
 * top margin and forcing it to behave like a block-level element.
 */
shop-pay-button {
  display: block;
  margin-top: 0.75rem;
}

/* Product detail page styles */
.product-detail-container {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.product-detail-image {
  flex: 1 1 300px;
}

.product-detail-image img {
  width: 100%;
  border-radius: 8px;
}

.product-detail-info {
  flex: 1 1 300px;
}

.product-detail-info h1 {
  color: var(--primary);
  margin-top: 0;
}

.product-detail-info .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-detail-info .availability {
  margin-bottom: 1rem;
  font-weight: 600;
}

.options {
  margin-bottom: 1rem;
}

.options label {
  display: block;
  margin-bottom: 0.5rem;
}

.options select {
  padding: 0.5rem;
  background-color: var(--dark-card);
  color: var(--text-light);
  border: 1px solid var(--primary);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }
}
