/* ==========================================================================
   General Body & Typography
   ========================================================================== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #080808;
  padding: 15px 5%;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  max-height: 80px;
  width: auto;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f7941d;
  text-decoration: underline;
}

/* ==========================================================================
   Hero & Info Strips
   ========================================================================== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('Images/banner.jpg') no-repeat center center/cover;
  text-align: center;
  padding: 100px 20px;
  color: white;
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: #f7941d;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.hero-button:hover {
  background-color: #d97612;
}

.info-strip {
  display: flex;
  justify-content: space-around;
  background-color: #080808;
  color: white;
  padding: 20px;
  font-weight: bold;
}

/* ==========================================================================
   Search & Filter
   ========================================================================== */
.search-bar {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
  background-color: white;
  border-bottom: 1px solid #ddd;
}

.search-bar input {
  width: 40%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.search-bar button {
  padding: 12px 25px;
  background-color: #080808;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: background 0.3s;
}

.search-bar button:hover {
  background-color: #f7941d;
}

/* ==========================================================================
   Product Grid (The Alignment Fix)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px 5%;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* Ensures images are uniform without stretching */
  border-radius: 5px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.2em;
  margin: 10px 0;
  height: 3.5em; /* Allows for 2 lines of text, keeps cards aligned */
  overflow: hidden;
}

.product-card .price {
  font-size: 1.3em;
  color: #f7941d;
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: auto; /* Pushes price and button to the bottom */
}

.product-card button {
  width: 100%;
  padding: 12px;
  background-color: #080808;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.product-card button:hover {
  background-color: #f7941d;
}

/* ==========================================================================
   Cart, Wishlist & Cookie Banner
   ========================================================================== */
#cart, #wishlist {
  background-color: white;
  padding: 20px;
  margin: 20px 5%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

#cookie-banner button {
  background-color: #f7941d;
  border: none;
  padding: 8px 20px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: #080808;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 50px;
}

footer a {
  color: #f7941d;
  margin: 0 10px;
  text-decoration: none;
}

/* Main text */
.footer-main {
  margin: 0;
}

/* Credit line */
.footer-credit {
  margin: 8px 0 4px;
}

/* Small legal line */
.footer-sub {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

/* Link styling (fix purple + underline) */
.site-footer a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Visited link */
.site-footer a:visited {
  color: #00bcd4;
}

/* Hover effect */
.site-footer a:hover {
  color: #ffffff;
}
/* WebGen Badge */
.webgen-badge {
  margin-top: 10px;
  text-align: center;
}

.webgen-badge a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: #bbb;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
}

/* Highlight WebGen text */
.webgen-badge strong {
  color: #00bcd4;
  font-weight: 600;
  margin-left: 4px;
}

/* Hover effect */
.webgen-badge a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.webgen-badge small {
  display: block;
  font-size: 10px;
  color: #777;
  margin-top: 4px;
}
/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px;
  }

  nav {
    margin-top: 15px;
  }

  nav a {
    margin: 0 10px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .search-bar input {
    width: 70%;
  }

  .info-strip {
    flex-direction: column;
    gap: 15px;
  }

  .product-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .card-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.wishlist-btn {
  background-color: transparent !important;
  color: #080808 !important;
  border: 1px solid #080808 !important;
}

.wishlist-btn:hover {
  background-color: #eee !important;
}
}