/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
  padding-top: 70px; /* Reserve space for sticky header */
}

/* Sticky Header */
header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sticky-header h1 {
  font-size: 32px;
  font-weight: bold;
}

/* Main Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
  text-align: center;
}

/*  Product Grid  */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

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

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.product p {
  font-size: 18px;
  margin-bottom: 12px;
}

/*  General Button Styling  */
button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 15px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #333;
}

/*  Cart Section  */
#cart {
  margin-bottom: 30px;
  text-align: left;
}

.checkout-btn {
  background-color: #000;
  color: #fff;
  padding: 14px 35px;
  font-size: 16px;
  margin-top: 20px;
  border-radius: 8px;
}

/*  Checkout Section  */
.checkout-container {
  display: none;
  text-align: left;
  margin-top: 60px;
  margin-bottom: 60px;
  border-top: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  background-color: #000;
  color: #fff;
}

#checkout-summary {
  margin-top: 30px;
  padding: 15px;
}

/*  Checkout Item Styling  */
.checkout-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.checkout-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-item .details {
  text-align: left;
}

.checkout-item .details h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.checkout-item .details p {
  font-size: 16px;
  margin: 0;
}

/*  Coupon Section  */
#coupon-section {
  margin-top: 10px;
  padding: 20px;
  text-align: left;
}

#coupon-section input {
  padding: 10px;
  width: 220px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

#coupon-section button {
  padding: 10px 20px;
  border-radius: 5px;
  color: #000;
  background-color: yellow;
}

#discount-message {
  margin-top: 12px;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
}

/*  Payment Options  */
#payment-options {
  margin-top: 20px;
  padding: 20px;
  text-align: left;
}

#payment-options h3 {
  margin-bottom: 15px;
}

.payment-methods label {
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.payment-methods input {
  margin-right: 10px;
}

/*  Pay Button  */
.pay-btn {
  background-color: yellow;
  color: black;
  margin: 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pay-btn:hover {
  background-color: #fff;
}

/*  Responsive Design  */
@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .checkout-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .checkout-item img {
    margin-bottom: 10px;
  }
}

/*  Basket Count Display (Top Right)  */
#basket {
  position: absolute;
  right: 20px;
  top: 22px;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
