/* Base styles for Dogfish Dive Gear website */

/* Import a Google Font for a modern look */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.5;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #000000;
  color: #ffffff;
}

header .logo img {
  height: 60px;
}

nav a {
  margin-left: 20px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #b3b3b3;
}

/* Hero section */
/* Hero section
   The hero uses a dark overlay on top of the home page photo so the white text remains legible. */
.hero {
  text-align: center;
  padding: 80px 20px;
  color: #ffffff;
  /* combine a semi‑transparent overlay with the uploaded home page photo */
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/home/home-hero.jpeg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 2.5rem;
  color: #000000;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #333333;
}

/* Layout for product pages */
.product-container {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.product-image {
  flex: 1 1 400px;
  text-align: center;
  margin-bottom: 20px;
}

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

.product-details {
  flex: 1 1 500px;
  padding-left: 40px;
}

.product-details h1 {
  margin-top: 0;
  font-size: 2rem;
}

.price {
  font-size: 1.5rem;
  margin: 10px 0;
}

.description {
  margin-top: 20px;
}

.buy-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.buy-button:hover {
  background-color: #333333;
}

/* Footer */
footer {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    padding: 20px;
  }

  .product-details {
    padding-left: 0;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
  }

  nav a {
    margin: 10px 10px 0 0;
  }
}

/* Gallery styles
   Galleries are used on product pages to showcase multiple photos. Images wrap gracefully on small screens. */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.gallery img {
  flex: 1 1 calc(33.333% - 10px);
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .gallery img {
    flex: 1 1 100%;
  }
}

/* Primary light image gallery styles */
#main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 80px;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
}

.thumbnails img.active {
  border-color: #000000;
}