body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 100px;
  background-color: #f7f7f7;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 20px;
}

/* LOGO LEFT */
.header-left img {
  height: 60px;
  display: block;
}

/* BUTTONS CENTER */
.header-center {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* BUTTON STYLE */
.category-btn {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  display: block;
}

.category-btn:hover {
  background-color: #000;
  color: #fff;
}

/*PRODUCT SECTION*/
.product-section {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 40px;
}

.product-card {
  position:relative;
  background-color: rgb(236, 206, 166);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-card img {
  max-width: 100%;
  border-radius: 5px;
}

.pname{
  font-size: 14px;
  margin-top: 20px;
}

.discount{
  align-items: center;
}

.price {
  text-decoration: line-through;
  color: #888;
}

.discount-price {
  color: #e53935;
  font-weight: bold;
}

.discount-rate {     
  background-color: #ff0000; 
  color: white;
  padding: 5px 8px;
  border-radius: 0 10px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
}

.location{
  margin-top: 5px;
  font-size: 12px;
  color: #888;
}

.category {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

#no-products {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-top: 50px;
  display: none;
}

/*ADD TO CART*/
.cart-controls {
  margin-top: 10px;
  gap: 6px;
}

.qty-btn {
  background-color: #007bff;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.qty-btn:hover {
  background-color: #218838;
}

.qty-input {
  width: 50px;
  text-align: center;
  font-size: 14px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.add-to-cart-btn {
  background-color: #007bff;
  color: rgb(240, 241, 247);
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: #218838;
}

/* Cart button in header */
.cart-btn {
  background-color: rgb(236, 206, 166);
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 4px;
  margin-right: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.cart-btn:hover {
  background-color: #e65c00;
}
#cart-count {
  background: white;
  color: #ff6600;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
}

/* Checkout modal */
.checkout-modal {
  display: none;
  position:fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  width: 80%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}
.checkout-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.checkout-table th, .checkout-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.checkout-table th {
  background-color: #f2f2f2;
}
.remove-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.remove-btn:hover {
  background-color: #c82333;
}

/* --- Responsive header & cart --- */
@media (max-width: 768px) {
  .fixed-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 10px;
    text-align: center;
  }

  .header-left img {
    height: 50px;
    margin-bottom: 10px;
  }

  /* Replace buttons with dropdown on mobile */
  .header-center {
    display: none; /* hide buttons */
  }
  .header-center select {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }

  .header-right {
    margin: 0 auto;
  }

  .cart-btn {
    margin-right: 0;
    width: 100%;
    max-width: 200px;
  }

  .checkout-modal {
    top: 5%;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 15px;
  }

  .checkout-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
  }

  .checkout-table th,
  .checkout-table td {
    padding: 6px;
  }
}

.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px; /* sits below fixed header */
}

.banner-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out; /* slower fade */
}

.banner-slider .slide img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-slider .active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Navigation arrows */
.banner-slider .prev,
.banner-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10; /* keep arrows above slides */
}

.banner-slider .prev { left: 10px; }
.banner-slider .next { right: 10px; }

.banner-slider .prev:hover,
.banner-slider .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* FOOTER */
.fixed-footer{
  width:100%;
  height: auto;
  background-color:#fff;
  border-top:1px solid #ddd;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  padding:10px 20px;
  margin-top:40px;
}

.footer-left img{
  height:60px;
  display: block;
}

.footer-center{
  text-align:center;
  font-weight:500;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 9999;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

/* Continuous Marquee */
.marquee {
  width: 100%;
  overflow: hidden;
  background-color: rgb(235, 35, 35);
  color: rgb(255, 255, 255);
  padding: 10px 0;
  box-sizing: border-box;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
}

.marquee-content span {
  display: inline-block;
  padding-right: 50px; /* spacing between repeats */
  font-size: 16px;
  font-weight: bold;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive text size */
@media (max-width: 768px) {
  .marquee-content span {
    font-size: 14px;
  }
}

/* Promotion banner */
.promo-banner {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
  margin-top: 20px;
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .promo-banner {
    height: auto;
  }
}
