/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Header styling */
header {
  background-color: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

header h1 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.header-nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  color: #ff0000;
}

/* Scrolling advertisement bar */
.scrolling-ad {
  background: #ffcc00;
  color: #000;
  padding: 6px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.scrolling-ad::before {
  content: attr(data-text);
  position: absolute;
  white-space: nowrap;
  animation: scroll-left 15s linear infinite;
  will-change: transform;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Search bar */
.search-bar {
  padding: 10px 20px;
  background-color: #f2f2f2;
  text-align: center;
}

.search-bar input {
  width: 80%;
  max-width: 450px;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
}

/* Product card */
.product-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 8
}/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Header styling */
header {
  background-color: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

header h1 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.header-nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  color: #ff0000;
}

.scrolling-ad {
  background: #ffcc00;
  color: #000;
  padding: 6px 10px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.scrolling-ad span {
  display: inline-block;
  padding-left: 100%; /* start from right */
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Mobile friendly font */
@media (max-width: 768px) {
  .scrolling-ad {
    font-size: 0.9rem;
  }
}

/* Search bar */
.search-bar {
  padding: 10px 20px;
  background-color: #f2f2f2;
  text-align: center;
}

.search-bar input {
  width: 80%;
  max-width: 450px;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
}

/* Product card */
.product-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
  height: 140px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  word-break: break-word;
}

.product-card p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 10px;
  min-height: 38px;
}

.price {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Quantity select dropdown */
.product-card select {
  margin-right: 8px;
  padding: 4px 8px;
  font-size: 0.9rem;
}

/* Add to Cart button */
.add-to-cart-btn {
  background: #d90000;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.add-to-cart-btn:hover {
  background: #b30000;
}

/* No products message */
.no-products {
  padding: 50px;
  text-align: center;
  font-size: 1.2rem;
  color: #666;
}

/* How To Order button */
.how-to-order-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #ff007a;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Modal overlay */
.modal {
  display: none; /* hidden initially */
  position: fixed;
  z-index: 1200;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

/* Modal content box */
.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 320px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
}

/* Modal buttons */
.close-btn {
  background: #ff0000;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
}

/* Customer Care Footer */
footer {
  background: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.customer-care {
  max-width: 60%;
}

.customer-care h3 {
  margin-bottom: 10px;
}

.customer-care p {
  margin-bottom: 6px;
}

.customer-care a {
  color: #ff0000;
  text-decoration: none;
  font-weight: bold;
}

.footer-links {
  max-width: 35%;
  text-align: right;
}

.footer-links a.red-link {
  color: #ff0000;
  font-weight: bold;
  text-decoration: none;
}

.footer-links a.red-link:hover {
  text-decoration: underline;
}

/* Cart page styles */
main h2 {
  padding: 20px;
  text-align: center;
  font-size: 1.5rem;
}

.cart-items {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  align-items: center;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.cart-item-info p {
  font-size: 0.9rem;
  color: #555;
}

.cart-item-qty select {
  padding: 5px;
  font-size: 1rem;
  border-radius: 4px;
}

.cart-item-remove {
  margin-left: 15px;
}

.cart-item-remove button {
  background: #ff0000;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.cart-summary {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
  text-align: right;
  font-size: 1.2rem;
}

.buy-btn {
  background: #d90000;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.3s;
}

.buy-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.buy-btn:hover:not(:disabled) {
  background: #b30000;
}

.clear-cart-btn {
  background: #555;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
  margin-top: 10px;
}

.order-form {
  max-width: 500px;
  margin: 0 auto 20px auto;
  padding: 20px;
  border: 2px solid #d90000;
  border-radius: 10px;
  background: #fff;
}

.order-form h3 {
  margin-bottom: 15px;
  text-align: center;
}

.order-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.order-form textarea {
  resize: vertical;
}
#floatingCart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #d90000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s;
}

#floatingCart:hover {
  transform: scale(1.1);
}
/* Floating Cart */
#floatingCart {
  position: fixed;
  bottom: 30px; /* 30px from bottom */
  right: 30px;  /* right side */
  background: #d90000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 9999;
}

/* Floating How To Order */
#howToOrderBtn {
  position: fixed;
  bottom: 100px; /* upar se 100px, cart se thoda upar */
  right: 30px;   /* right align same as cart */
  background: #ff007a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 9999;
}