/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  background-color: #1e2a38;
  color: #fff;
  padding: 1rem 0;
}

header h1 {
  float: left;
  margin-left: 10px;
}

nav ul {
  float: right;
  list-style: none;
}

nav ul li {
  display: inline;
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

header::after {
  content: '';
  display: block;
  clear: both;
}

/* Hero section */
.hero {
  background: url(images/img2.jpg) no-repeat center center/cover;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
}

.hero .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.hero .btn:hover {
  background-color: #e65c00;
}

/* Products */
.products {
  padding: 4rem 0;
  background-color: #fff;
}

.products h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.product-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.product-card {
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  width: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* About & Contact */
.about,
.contact {
  padding: 3rem 0;
  background-color: #f0f0f0;
  text-align: center;
}

/* Footer */
footer {
  background-color: #1e2a38;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Search bar and filters */
#searchBar {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.filters {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background-color: #eee;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #ddd;
}

/* Cart */
#cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff6600;
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cart-page {
  padding: 2rem 0;
  width: 80%;
}

.cart-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.cart-item h4 {
  margin-bottom: 0.5rem;
}

.cart-item button {
  margin: 0 5px;
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item button:hover {
  background-color: #e65c00;
}

#checkoutForm {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 30%;
}

#checkoutForm input {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#checkoutForm button {
  background-color: #28a745;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#checkoutForm button:hover {
  background-color: #218838;
}

.auth-container {
  max-width: 400px;
  margin: 5rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.auth-container input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.auth-container button {
  width: 100%;
  padding: 0.8rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.auth-container button:hover {
  background-color: #218838;
}

/* Dark Mode */
body.dark {
  background-color: #121212;
  color: #f0f0f0;
}
body.dark header,
body.dark footer {
  background-color: #1e1e1e;
}
body.dark .product-card,
body.dark .category-card,
body.dark .testimonial {
  background-color: #1c1c1c;
  color: #fff;
}

.toggle-theme {
  text-align: center;
  padding: 1rem;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: auto;
}
.carousel-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
  color: #fff;
}

/* Categories */
.categories .category-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.category-card {
  background-color: #eee;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}
.category-card:hover {
  background-color: #ddd;
}

/* Testimonials */
.testimonials {
  background-color: #f5f5f5;
  padding: 2rem 0;
}
.testimonial {
  background-color: #fff;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 600px;
  border-left: 4px solid #ff6600;
  border-radius: 5px;
}

/* Transitions */
body,
.product-card,
.category-card {
  transition: background-color 0.3s, color 0.3s;
}

.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 999;
}
.popup-content input {
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.popup-content button {
  background: #28a745;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  margin-left: 0.5rem;
  border-radius: 5px;
}
.popup .close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}
/* Reuse from previous setup */
.product-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.product-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  width: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.product-card button {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.product-card button:hover {
  background-color: #e65c00;
}

.product-detail {
  padding: 2rem 0;
}
.detail-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.detail-image {
  width: 400px;
  max-width: 100%;
  border-radius: 8px;
}
.detail-info {
  flex: 1;
}
.detail-info h2 {
  margin-bottom: 0.5rem;
}
.badge {
  background-color: #ff6600;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.description {
  margin: 1rem 0;
}
.price {
  font-size: 1.4rem;
  color: #28a745;
  margin-bottom: 1rem;
}
.detail-info button {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #555;
  text-decoration: none;
}

.product-detail {
  padding: 2rem 0;
}
.detail-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.detail-image {
  width: 400px;
  max-width: 100%;
  border-radius: 8px;
}
.detail-info {
  flex: 1;
}
.badge {
  background-color: #ff6600;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.price {
  font-size: 1.5rem;
  color: #28a745;
  margin: 1rem 0;
}
.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #333;
  text-decoration: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
}

header, footer {
  background: #1e2a38;;
  color: white;
  padding: 1rem 0;
}

header .container, footer .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header h1 {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 2rem 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.product-box {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-gallery {
  flex: 1;
  min-width: 300px;
}

.main-image {
  width: 50%;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.main-image:hover {
  transform: scale(1.05);
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
}

.thumbnails img {
  width: 80px;
  border-radius: 5px;
  border: 2px solid #ddd;
  cursor: pointer;
}

.product-info {
  flex: 1;
  min-width: 300px;
}

.product-info h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.badge {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.description {
  margin: 1rem 0;
  line-height: 1.5;
}

.price {
  font-size: 1.8rem;
  color: #e60000;
  margin-bottom: 1rem;
}

.btn {
  background: #ff6600;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #e65c00;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: #555;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .product-box {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* CONTACT US PAGE */
.contact-us {
  padding: 60px 20px;
  background: #f8f9fa;
}

.contact-us .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h1 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-info p {
  color: #555;
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.contact-info ul li {
  margin-bottom: 10px;
  color: #333;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff6600;
  outline: none;
}

.contact-form button {
  background: #ff6600;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e05500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-us .container {
    flex-direction: column;
  }
}
/* Success Popup */
.popup {
  display: none;
  background: #28a745;
  color: white;
  padding: 12px 20px;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup.show {
  display: block;
  opacity: 1;
}
/* Payment Method Section */
#checkoutForm select,
#checkoutForm input,
#checkoutForm button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.payment-fields {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
}

#checkoutForm button {
  background: #ff6600;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

#checkoutForm button:hover {
  background: #e05500;
}
.cart-item {
  margin-bottom: 15px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.qty-btn {
  padding: 4px 10px;
  font-size: 18px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f1f1f1;
  border-radius: 5px;
}

.qty {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}

.order-card {
  background: white;
  padding: 15px;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.order-card h3 {
  margin-bottom: 10px;
  color: #ff6600;
}

