/* Shop Page Specific Styles */

/* Page-level root variables (overlay only for this page) */
:root {
  --overlay-top: 0.25;
  --overlay-bot: 0.65;
}

/* Page structure - html/body for shop page */
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Bangers', cursive;
  color: var(--dojo-cream);
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  background-color: #000; /* Fallback color */
  background-image: url('../assets/images/InsideBackground.png');
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Desktop: width-based sizing for optimal display */
@media (min-width: 769px) {
  body {
    background-size: 100% auto;
    background-position: center center;
  }
}

/* Mobile: adjust to show key elements */
@media (max-width: 768px) {
  body {
    background-image: url('../assets/images/MobileInsideBackground.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
}

/* Overlay for shop page */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--overlay-top)),
    rgba(0, 0, 0, var(--overlay-bot))
  );
  z-index: 1;
  pointer-events: none;
}

/* Container for shop page */
.container {
  position: relative;
  min-height: calc(100vh - 80px);
  z-index: 2;
  padding: 1rem 2rem;
  padding-top: calc(1rem + 80px); /* Nav height */
  padding-bottom: 2rem;
  box-sizing: border-box;
  margin-top: 0;
}

/* Mobile: adjust padding */
@media (max-width: 768px) {
  .container {
    min-height: calc(100vh - 70px);
    padding: 0.75rem 1.5rem;
    padding-top: calc(0.75rem + 70px); /* Nav height */
    padding-bottom: 1.5rem;
  }
}

/* Main content area */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Page headline */
.headline {
  font-family: 'Bangers', cursive;
  font-size: 2.8rem;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
  color: var(--dojo-gold);
  flex-shrink: 0;
}

/* Intro text under headline (matches About Us body text) */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.shop-intro-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.shop-intro {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.2rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  color: var(--dojo-cream);
  font-weight: 400;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem 0;
  padding: 0 1rem;
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
  border-color: rgba(212, 175, 55, 0.7);
}

/* Product image */
.product-image {
  width: 100%;
  height: 300px;
  background: rgba(93, 64, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product info */
.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
}

/* Product name */
.product-name {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--dojo-gold);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  text-align: center;
  line-height: 1.3;
}

/* Product price */
.product-price {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.3rem;
  color: var(--dojo-cream);
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Buy button */
.buy-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--dojo-gold);
  background: rgba(93, 64, 55, 0.4);
  color: var(--dojo-cream);
  text-decoration: none;
  border-radius: 0.4rem;
  transition: all 0.25s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  cursor: pointer;
  display: block;
}

.buy-btn:hover {
  background: var(--dojo-gold);
  color: var(--dojo-wood);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Mobile: single column layout */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
    margin: 1.5rem 0;
  }

  .product-image {
    height: 250px;
  }

  .product-info {
    padding: 1.25rem;
  }

  .product-name {
    font-size: 1.3rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .buy-btn {
    font-size: 1.1rem;
    padding: 0.7rem 1.3rem;
  }
}

/* Button styles */
.btn {
  border: 2px solid var(--dojo-gold);
  padding: .7rem 1.6rem;
  text-decoration: none;
  color: var(--dojo-cream);
  font-size: 1.1rem;
  transition: all .25s ease;
  border-radius: .4rem;
  background: rgba(93, 64, 55, 0.4);
  backdrop-filter: blur(2px);
  margin-top: 1rem;
}

.btn:hover {
  background: var(--dojo-gold);
  color: var(--dojo-wood);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Mobile: increase font sizes for readability */
@media (max-width: 768px) {
  .headline {
    font-size: 2.2rem;
    margin-top: 1.5rem; /* Add spacing between nav and title on mobile */
  }

  .shop-intro {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .coming-soon {
    font-size: 1.2rem;
  }
  
  .btn {
    font-size: 1.2rem;
    padding: 0.9rem 2rem;
  }
}
