/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

header {
  background: #0066cc;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffcc00;
}

.cart-icon {
  position: relative;
}

.cart-icon span {
  background: #ff3333;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  position: absolute;
  top: -10px;
  right: -10px;
}

.hero {
  background: url('image/bg-image.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero h2, .hero p, .hero .btn {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: #ffcc00;
  color: #0066cc;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #ffdd33;
}

.products {
  padding: 3rem 2rem;
  text-align: center;
}

.products h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0066cc;
  position: relative;
  display: inline-block;
}

.products h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #ffcc00;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.price {
  font-weight: bold;
  color: #e74c3c;
  font-size: 1.3rem;
  margin: 1rem 0;
}

.add-to-cart {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  width: 100%;
}

.add-to-cart:hover {
  background: #0077dd;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
  float: right;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

#cart-items {
  margin: 1.5rem 0;
  max-height: 300px;
  overflow-y: auto;
}

.cart-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

#checkout-btn {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  width: 100%;
  margin-top: 1rem;
}

#checkout-btn:hover {
  background: #0077dd;
}

footer {
  background: #0066cc;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

footer p {
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* Contact Form Styles */
.contact-section {
  background: #f9f9f9;
  padding: 3rem 2rem;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  text-align: center;
  color: #0066cc;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0066cc;
  outline: none;
}

.submit-btn {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
  display: block;
  width: 100%;
}

.submit-btn:hover {
  background: #0077dd;
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  color: #28a745;
  margin-top: 1rem;
  font-weight: bold;
}
/* Customer Info Form Styles */
#customer-info {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
}

#customer-info h3 {
  color: #0066cc;
  margin-bottom: 15px;
  text-align: center;
}

#customer-info h4 {
  margin: 15px 0 10px;
  color: #444;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.form-row input {
  flex: 1;
}

#customer-info input,
#customer-info textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#customer-info textarea {
  height: 80px;
  margin-top: 5px;
}

#confirm-order {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s;
}

#confirm-order:hover {
  background: #218838;
}

/* Required field indicator */
input:required::placeholder {
  color: #666;
}
input:required::after {
  content: " *";
  color: red;
}