/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #333;
  color: #fff;
  padding: 15px 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #f5c518;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-menu ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}

.nav-menu ul li a:hover {
  background-color: #555;
  border-radius: 4px;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #f5c518, #ffea85);
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 48px;
  color: #222;
}

.hero p {
  font-size: 18px;
  margin-top: 10px;
}

/* Product Section */
h2 {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 32px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 40px;
}

.product {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product:hover {
  transform: translateY(-5px);
}

.product img {
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.product h3 {
  margin: 15px 0 10px;
  font-size: 20px;
}

.product p {
  font-weight: bold;
  color: #e91e63;
}

.product a {
  display: inline-block;
  margin-top: 10px;
  background-color: #f5c518;
  color: #000;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s;
}

.product a:hover {
  background-color: #ffdc4f;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  margin-bottom: 10px;
  color: #f5c518;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 20px;
  color: #aaa;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  
}

.product-detail-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 50px auto;
  gap: 40px;
  padding: 0 20px;
}

.product-detail-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.product-detail-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
}

.product-detail-info h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.product-detail-info p {
  margin-bottom: 10px;
}

.product-detail-info .price {
  font-size: 22px;
  color: #e91e63;
  font-weight: bold;
  margin-top: 10px;
}

.product-detail-info form {
  margin-top: 20px;
}

.product-detail-info input[type="number"] {
  width: 60px;
  padding: 6px;
  margin-right: 10px;
}

.product-detail-info button {
  background-color: #f5c518;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.product-detail-info button:hover {
  background-color: #ffdc4f;
}

@media (max-width: 768px) {
  .product-detail-container {
    flex-direction: column;
    align-items: center;
  }
}

footer a:hover {
  color: #ffc107; /* Bootstrap warning yellow */
}


