/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  width: auto;
  scrollbar-width: none;
}


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8fff8;
  color: #333;
  padding-bottom: 60px;
}

/* Header */
.top-bar {
  background:white;
  color: #000;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 4px white;
  width: auto;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
  max-width: 1000px;
  flex-wrap: wrap;
}

.logo {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 10px 15px;
  background-color: orangered;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.btn.hidden {
  display: none;
}

/* Products */
.products-section {
  padding: 5px;
  text-align: center;
}

.products-demarcation {
  width: 100%;
  margin: 14px 0 22px;
  border-radius: 14px;
  padding: 12px 10px 8px;
}

.products-section-title {
  margin: 6px auto 8px;
  font-size: 1.6rem;
  color: #2d2d2d;
  font-weight: 700;
  letter-spacing: 0.3px;
}

#bestSellersSection {
  background: linear-gradient(180deg, #fff7db 0%, #fffdf5 100%);
  border: 2px solid #ffd36a;
}

#allProductsSection {
  background: linear-gradient(180deg, #f6fff6 0%, #ffffff 100%);
  border: 2px solid #d7ead7;
}

.products-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 14px;
}

.products-divider::before,
.products-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ffa45c 50%, transparent 100%);
}

.products-divider span {
  margin: 0 12px;
  font-weight: 700;
  color: #a95614;
  background: #fff4e8;
  border: 1px solid #ffd4ad;
  border-radius: 999px;
  padding: 6px 14px;
}


/* Product Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Create responsive grid columns */
  gap: 20px;  /* Add consistent gap between cards */
  padding: 20px;
  width: 100%;
  padding-bottom: 20px;
  max-width: 1400px; /* Limit max width on large screens */
  margin: 0 auto; /* Center the grid */
}


/* Product card layout */
.product-card {
  width: 100%; /* Take full width of grid cell */
  height: fit-content;
  border-radius: 5%;
  padding: 16.5px;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 300px;
  box-shadow: none; /* 0 2px 5px rgba(0,0,0,0.1) */
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* custom scrollbar styling */
.product-grid::-webkit-scrollbar {
    height: 8px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}


.product-grid::-webkit-scrollbar-thumb {
    background: green;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
    background: darkgreen;
}


/* Product image */
.product-card img {
  width: 110%;
  height: 290px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  position: relative;
  cursor: pointer;
}


/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: default;
  padding: 20px;
}

.image-modal.active {
  display: flex;
}

.modal-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



.image-modal .modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  display: flex;
  gap: 20px;
  position: relative;
}

.image-modal .modal-image {
  max-width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.modal-product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-product-details h2 {
  color: #333;
  margin: 0;
}

.modal-product-details .price {
  font-size: 1.5rem;
  color: #4caf50;
  font-weight: bold;
}

.modal-product-details .description {
  color: #666;
  line-height: 1.6;
}

.modal-cart-controls {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.modal-cart-controls .quantity-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .image-modal .modal-content {
    flex-direction: column;
    height: 90vh; /* Set fixed height for modal */
    overflow-y: auto; /* Make content scrollable */
    padding: 15px;
    margin: 20px;
    overflow: visible; 
  }
  
  .image-modal .modal-image {
    max-width: 100%;
    height: auto;
    max-height: 50vh;    
  }

  .modal-product-details {
    padding: 8px 0;
  }

  .modal-cart-controls {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid #eee;
  }

}


.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1001;
}

.close-modal-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.product-card:hover img {
  transform: scale(1.05);
}


.product-card h3 {
  margin: 10px 0 5px;
}

.product-card p {
  font-weight: bold;
  color: #4caf50;
}

.product-card button {
  padding: 6px 12px;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
}

.add-to-cart-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: none;
  transition: transform 0.3s ease;
  transform: translateY(100%);
  z-index: 2;
}

/* Show controls on hover */
.product-card:hover .add-to-cart-container {
  transform: translateY(0);
}

.evidence {
  margin-top: 20px;
  font-size: 12px;
  color: #555;
  text-align: center
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  margin: 40px auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  max-height: 100vh;  
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

.bank-info {
  margin-top: 15px;
  font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow-x: hidden;
    padding: 12px;
    max-width: 100%;
  } 
  
  
  .product-card {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 8px;
    height: auto;
  }

  .product-card img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 8px;
  }

    /* Product name */
  .product-card h3 {
    font-size: 14px;
    margin: 0;
    padding: 0;
  }

    /* Price */
  .product-card p {
    margin: 4px 0;
    font-size: 16px;
  }

  .product-description {
    width: 100%;
    font-size: 13px;
    margin: 4px 0;
    height: auto;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 4px;
    justify-content: flex-start;
    text-align:left;
    overflow-wrap: anywhere;
  }  

  .add-to-cart-container {
    position: static; /* Change from absolute to static */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to bottom of card */
    background: #f8f8f8;
    padding: 8px;
    border-radius: 4px;
    transform: none;
  }

  .quantity-input {
    width: 60px;
    height: 30px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    text-align: center;
  }

  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .modal-content {
    padding: 20px;
  }

  .product-card button {
    padding: 6px 12px;
    font-size: 0.9rem;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
  }
}


/** Class Selectors */
.title {
  /* text-align: center; */
  text-decoration: none;
  font-size: 30px;
  font-weight: 800;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  color: black;
}

nav a {
  text-decoration: none;
  color: blueviolet;
  padding: 0px 20px;
}

nav a:hover {
  background-color: darkorange;
  color: white;
}

/* Elements Selectors */
p {
  color: brown;
  font-size: 20px;
}

.main {
  font-size: 25px;
  font-weight: 800;
  padding: 2px 40px;
  text-decoration: underline;
}


/* Animated Selectors */
.animate {
  display: inline-block;
  white-space: nowrap;
  animation: slideInLoop 60s linear infinite;
  font-size: 12px;
  font-weight: bold;
  background-color: black;
}

.animate-2 {
  display: inline-block;
  white-space: nowrap;
  animation: slideInLoop 40s linear infinite;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* Keyframes for animation */
@keyframes slideInLoop {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.animate:hover {
  transform: scale(1.05);
  background-color: #f0f0f0;
}

/* For styling for mobile devices (Media Queries) */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Media Queries */
/* @media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .welcome-text {
    font-size: 1.2rem;
    margin-top: 10px;
    color: white;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .modal-content {
    width: 90%;
    margin: 20px auto;
  }
} */


@media (max-width: 768px) {
  /* Set the header to flex and stack items vertically */
  .top-bar {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the circle and content */
    gap: 15px;
  }

  /* Move the welcome text to the very top */
  .welcome-text {
    order: -1; /* This moves it above the .top-bar-content */
    margin-top: 35px;
    font-size: 1.1rem; /* Adjusted slightly to fit better */
    text-align: center;
  }

  .top-bar-content {
    flex-direction: column;
    align-items: center; /* Centers logo and nav on mobile */
    width: 100%;
  }

  .nav-links {
    flex-direction: row; /* Keeps links side-by-side or use column if too many */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
}



@media (max-width: 480px) {
  .logo {
    height: 40px;
  }

  .btn {
    width: 100%;
    font-size: 1rem;
  }

  .checkout-font,
  .bank-info p {
    font-size: 0.9rem;
  }

  .totalAmount {
    font-size: 1.1rem;
  }
}


.checkout-font {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.checkout-font-2 {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 18px;
  color: red;
  text-wrap: wrap;
  text-align: center;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  background: #f7f7f7;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  color: #222;
  font-size: 0.95rem;
}

.cart-item-price {
  color: #555;
  font-size: 0.85rem;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  color: #333;
}

.cart-remove-btn,
.cart-clear-btn {
  border: none;
  background: #e53935;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-clear-btn {
  width: 100%;
  margin-top: 10px;
}

.cart-add-btn {
  width: auto;
  margin-top: 10px;
  margin-bottom: 16px;
  border: none;
  background: #6d28d9;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
}


/* Responsive Inputs */
.delivery-input,
.delivery-area {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.delivery-area {
  font-size: 15px;
  font-weight: 45;
  color: red;
  padding: 10px;
}

.totalAmount {
  font-size: 20px;
  font-weight: 600;
  color: red;
  padding: 10px;
}

.delivery-card {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  background: #f9f9f9;
}
.delivery-card button {
  margin-right: 10px;
}


.close-btn {
  float: right;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}


.bank-info {
  margin: 1rem 0;
  font-weight: bold;
}

.bank-info p {
  margin: 0.5rem 0;
  font-size: 14px;
  text-wrap: wrap;
}

.order-table {
  width: 95%;
  margin: 2rem auto;
  border-collapse: collapse;
  background: #fff;
}

.order-table th, .order-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

.order-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}


.delivery-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  margin: auto;
}

.modal h2 {
  color: #27ae60;
  margin-bottom: 15px;
}


.btn:hover {
  background-color: darkorange;
}

#checkoutContainer {
  position: fixed;
  /* bottom: 24px; */
  right: 24px;
  z-index: 1000;
  margin-top: 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#checkoutTotalLabel {
  background: #ffffff;
  color: #b71c1c;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
  font-weight: 600;
}

#checkoutBtn {
  position: static;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  padding: 16px 32px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#checkoutBtn:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.4);
  transform: translateY(-2px);
}

#checkoutBtn:active {
  background: linear-gradient(135deg, #c62828, #b71c1c);
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

/* Full width and visibility on mobile */
@media (max-width: 480px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  #checkoutForm {
    max-height: 80vh;  
    overflow-y: auto;         /* Enable vertical scroll of checkout form on mobile*/
    padding: 1rem;
  }

  #checkoutContainer {
    width: 40%;
    position: fixed;
    margin-top: 0%;
    right: 10px;
    top: 80px;
    align-items: stretch;
  }

  #checkoutTotalLabel {
    width: 100%;
    text-align: center;
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  }

  #checkoutBtn {
    width: 100%;
    position: static;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 5px;
  }

  #checkoutBtn:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.4);
    transform: translateY(-2px);
  }

  #checkoutBtn:active {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
    z-index: 1100;
    left: 225px;
    height: 5%;
  }
}


.bank-info {
  margin: 15px 0;
  background: #f6f6f6;
  padding: 10px;
  border-left: 4px solid #27ae60;
}


/* Footer */
.footer {
  background: #f8f8f8;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loader {
  display: none;
}

/* Spinner animation */
.spinner {
  margin: 0 auto;
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid orangered;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Keyframes for spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loader modal styles */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  font-size: 1.2em;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.hidden {
  display: none !important;
}


/* Description box */
.product-description {
  font-weight: 300;
  color:slategrey;
  font-family: 'Poppins', sans-serif;
  background: rgb(248, 250, 248);
  padding: 2px;
  border-radius: 4px;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 13px;
  text-align:justify;
  width: auto;
  max-height: 300px;
}


.tab-btn {
  padding: 8px 15px;
  margin-right: 8px;
  border: none;
  background-color: rgb(238, 232, 245);
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.tab-btn.active {
  background-color: orangered;
  color: white;
}


/* Category tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 15px;
  background-color: #eee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.tab-btn.active {
  background-color: green;
  color: #fff;
}

/* Product list grid */
#productList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0px;
}

.quantity-input {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 60px;
}

.btn {
  background-color: #28a745;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn:hover {
  background-color: #218838;
}


#footer-p {
  background-color: rgb(13, 168, 13);
  padding: 20px;
  text-align: center;
  color: whitesmoke;
  margin-top: 30px;
}

.backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

.backdrop.active {
  display: block;
}

#sidebarBackdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}

.sidebar.mobile-open + #sidebarBackdrop {
  display: block;
}


#sidebar ul ul {
  display: none;
  flex-direction: column;
  padding-left: 20px;
}

#sidebar ul ul.open {
  display: flex;
}


#categoryButtonsContainer {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-left: 30px; /* <-- Indentation here */
}

/* For cateogory buttons */
#categoryButtonsContainer button {
  width: 80px; /* calc(100% - 50px); */
  text-align: center;
  /* padding-left: 20px; Optional: extra indentation inside the button */
  font-size: 12px;
  background-color: rgb(138, 218, 138);
  border: 1px solid var(--primary-green);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#categoryButtonsContainer button:hover {
  background-color: var(--hover-green);
  color: white;
}

.promo-banner {
  position: fixed;
  top: 90px; /* Just below the top-bar (adjust based on actual height) */
  left: 0;
  right: 0;
  background-color: white;
  z-index: 1200;
  padding: 10px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.promo-banner h2 {
  color: orangered;
  margin: 0;
  font-size: 1.2rem;
}

.promo-banner header {
  font-size: 1.5rem;
  color: #333;
  font-family: 'Playfair Display', serif;
}


.products-loader {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.products-loader.active {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid green;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: green;
    font-size: 1.2rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.return-top {
  display: flex;
  background: #575c58;
  font-weight: bold;
  color: #ddd;
  width: auto;
}



/* Add styles for events */
.event-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.media-container {
        width: 100%;
        height: 30%;
        position: relative;
        min-height: 300px; /* Set minimum height */
        background: #f5f5f5;
}

.video-container,
.drive-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.drive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    border: none;
}

.media-content {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.delete-btn:hover {
    background-color: #c82333;
}


.event-item, .review-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}








/* Image section styling */
.image-section {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.image-section img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  max-width: 100%;
  display: block;
  border-radius: 8px; /* Optional: adds rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: adds subtle shadow */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .image-section {
    padding: 10px;
  }
  
  .image-section img {
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  .image-section {
    padding: 5px;
  }
}





/* Loading spinner styles */
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: not-allowed;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}



/* Global loader overlay */
.global-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.global-loader.active {
  display: flex;
}

/* Spinner animation */
.loader-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Dim the table while loading */
.loading-dim {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

.loader-text {
  position: absolute;
  color: white;
  margin-top: 80px;
  font-size: 14px;
  font-weight: 600;
}

/* Sidebar styles */
:root {
  --primary-green: #2e7d32;
  --light-green: #e8f5e9;
  --hover-green: #388e3c;
}

.layout {
  display: flex;
  flex-direction: row;
}

.sidebar {
  width: 250px;
  background-color: var(--light-green);
  padding: 15px;
  border-right: 2px solid var(--primary-green);
  position: sticky;
  top: 0;
  height: auto;
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar.collapsed {
  width: 75px;
  padding: 10px 5px;
}

.sidebar h3 {
  color: var(--primary-green);
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar.collapsed h3,
.sidebar.collapsed #categoryButtonsContainer,
.sidebar.collapsed #tabsContainer button span {
  display: none;
  margin-top: 10px;
}

.sidebar .toggle-btn {
  background-color: var(--primary-green);
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  border-radius: 5px;
}

.sidebar .toggle-btn:hover {
  background-color: var(--hover-green);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: var(--primary-green);
  border: 1px solid var(--primary-green);
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background-color 0.3s ease;
}

.tab-btn.active {
  background-color: rgb(28, 158, 28);
  color: white;
}

.tab-btn:hover {
  background-color: var(--hover-green);
  color: white;
}

.content-area {
  flex: 1;
  padding: 20px;
}

/* Responsive Sidebar Styles */
@media screen and (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: var(--light-green);
    transition: left 0.3s ease;
    padding-top: 60px;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .sidebar .toggle-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    padding: 8px 12px;
    z-index: 1100;
  }

  .sidebar.collapsed .toggle-btn {
    left: 10px;
  }

  .content-area {
    margin-top: 60px;
  }
}

.sidebar.collapsed {
  overflow: hidden;
}

.sidebar.collapsed #categoryButtonsContainer {
  display: none !important;
}

.sidebar.collapsed .tab-btn {
  justify-content: center;
  padding: 10px 5px;
}

/* Holiday banner */
.holiday-banner {
  width: 100%;
  background: #fff3cd;
  color: #856404;
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #ffeeba;
}

.holiday-banner.hidden {
  display: none;
}

/* ============================
   Products Page (Scoped Styles)
   ============================ */
.products-page {
  background: linear-gradient(to bottom, #e8f5e9 0%, #f1f8f2 50%, #ffffff 100%);
  color: #1a1a1a;
}

.products-page .top-bar {
  background: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid #81c784;
}

.products-page .top-bar-content {
  max-width: 1200px;
}

.products-page .logo {
  height: 64px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: #ffffff;
  padding: 6px;
  border: 2px solid #ffffff;
}

.products-page .nav-links a.title {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.products-page .nav-links a.title:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #c8e6c9;
}

.products-page .welcome-text {
  background: #ffffff;
  color: #008200;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.products-page .layout {
  gap: 18px;
}

.products-page .sidebar {
  background: #ffffff;
  border-right: 3px solid #c8e6c9;
  box-shadow: 0 6px 16px rgba(13, 13, 13, 0.1);
}

.products-page .sidebar .toggle-btn {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #c8e6c9;
}

.products-page .tab-btn {
  background: #f1f8f2;
  border: 2px solid #a5d6a7;
  color: #1b5e20;
  font-weight: 600;
  transition: all 0.3s ease;
}

.products-page .tab-btn.active {
  background: linear-gradient(135deg, #81c784, #a5d6a7);
  color: #0d0d0d;
  box-shadow: 0 6px 16px rgba(129, 199, 132, 0.3);
  border-color: #66bb6a;
}

.products-page .tab-btn:hover {
  background: linear-gradient(135deg, #66bb6a, #81c784);
  color: #ffffff;
  transform: translateX(4px);
}

.products-page .products-section {
  padding: 18px 12px 8px;
}

.products-page .products-section h2.animate {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1a1a1a;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0 auto 12px;
  max-width: 980px;
  box-shadow: none;
  border: none;
  min-height: auto;
  display: block;
  text-align: center;
  line-height: 1.8;
}

.products-page #footer-p {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  font-size: 1.05rem;
}

.products-page .product-grid {
  gap: 24px;
  padding: 24px 12px 32px;
}

.products-page .product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  border: 2px solid #c8e6c9;
  box-shadow: 0 8px 20px rgba(13, 13, 13, 0.12);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products-page .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(13, 13, 13, 0.25);
  border-color: #81c784;
  background: rgba(232, 245, 233, 0.3);
}

.products-page .product-card img {
  width: 108%;
  height: 240px;
  border-radius: 10px;
  margin: 0 -4% 14px;
  border: 2px solid #a5d6a7;
  transition: all 0.3s ease;
  object-fit: cover;
  filter: brightness(1.15) contrast(1.2) saturate(1.12) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.products-page .product-card:hover img {
  border-color: #81c784;
  filter: brightness(1.25) contrast(1.3) saturate(1.18) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.products-page .product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
}

.products-page .product-card p {
  color: #2d5016;
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.products-page .product-card .product-description {
  color: #4a5a4a;
  font-size: 0.9rem;
  line-height: 1.6;
}

.products-page .add-to-cart-container {
  width: 100%;
  gap: 10px;
}

.products-page .quantity-input {
  border-radius: 8px;
  border: 2px solid #a5d6a7;
  padding: 11px 14px;
  font-weight: 600;
  color: #1a1a1a;
  background: #e8f5e9;
  transition: all 0.25s ease;
}

.products-page .quantity-input:focus {
  border-color: #81c784;
  box-shadow: 0 0 12px rgba(129, 199, 132, 0.25);
  background: #ffffff;
}

.products-page .btn {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: #81c784;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(13, 13, 13, 0.3);
  transition: all 0.35s ease;
  border: 2px solid #81c784;
}

.products-page .btn:hover {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(245, 124, 0, 0.35);
  transform: translateY(-3px);
  border-color: #ffb74d;
}

.products-page .btn:active {
  background: linear-gradient(135deg, #f57c00, #ef6c00);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(245, 124, 0, 0.3);
  border-color: #ffa726;
}

.products-page .modal-content {
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(13, 13, 13, 0.3);
  background: #ffffff;
  border: 2px solid #81c784;
}

.products-page .modal-image {
  border-radius: 12px;
  border: 2px solid #a5d6a7;
}

.products-page .footer {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #2d2d2d 100%);
  color: #e8f5e9;
  border-top: 3px solid #81c784;
}

.products-page .footer a {
  color: #a5d6a7;
  font-weight: 600;
  transition: all 0.3s ease;
}

.products-page .footer a:hover {
  color: #c8e6c9;
  text-decoration: underline;
}

/* Products page refinements */
.products-page {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #e8f5e9 0%, #f1f8f2 40%, #ffffff 100%);
}

.products-page .content-area {
  padding: 24px 16px 32px;
}

.products-page .products-section h2.animate {
  font-size: clamp(1rem, 1.3vw + 0.9rem, 1.8rem);
  line-height: 1.6;
  letter-spacing: 0.3px;
}


.products-page #footer-p {
  font-size: 1.05rem;
}

.products-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
}

/* Products page: 5 images per row on large screens */
.products-page .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Best sellers: keep cards more visible with 4 columns on large screens */
.products-page #bestSellerList.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Our products: keep 5 cards per row on large screens */
.products-page #productList.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .products-page #bestSellerList.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-page #productList.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .products-page #bestSellerList.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-page #productList.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .products-page #bestSellerList.product-grid {
    grid-template-columns: 1fr;
  }

  .products-page #productList.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .products-page .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .products-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .products-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.products-page .product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
  height: 100%;
  border: 1px solid rgba(46, 125, 50, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f9fff9 100%);
}

.products-page .product-card img {
  height: 220px;
  object-fit: cover;
  filter: brightness(1.06) contrast(1.08) saturate(1.08);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.products-page .product-card:hover img {
  transform: scale(1.02);
  filter: brightness(1.1) contrast(1.1) saturate(1.12);
}

.products-page .product-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
}

.products-page .product-card p:first-of-type {
  font-weight: 700;
  color: #2e7d32;
  font-size: 1.05rem;
  margin-top: 2px;
}

.products-page .product-card .product-description {
  min-height: 44px;
}

.products-page .add-to-cart-container {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products-page .quantity-input {
  width: 90px;
}

.products-page .btn {
  padding: 12px 18px;
  letter-spacing: 0.2px;
}

.products-page .products-loader .loader-spinner {
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #ff8f00;
}

.products-page .modal-content {
  background: #ffffff;
}

.products-page .modal-product-details h2 {
  font-family: 'Playfair Display', serif;
  color: #15361a;
}

.products-page .modal-product-details .price {
  font-weight: 700;
  color: #2e7d32;
}

.products-page .modal-product-details .description {
  color: #4b5563;
  line-height: 1.5;
}

/* Additional polish for products page */
.products-page .top-bar-content {
  gap: 16px;
  padding: 6px 0;
}

.products-page .nav-links {
  gap: 14px;
}

.products-page .nav-links a.title {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.products-page .welcome-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem !important;
  line-height: 1.3;
  padding: 12px !important;
}

.products-page .products-section h2.animate {
  letter-spacing: 0.3px;
  text-shadow: 0 2px 6px rgba(15, 61, 26, 0.15);
}

.products-page .products-section {
  position: relative;
}

.products-page .products-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, rgba(255, 247, 230, 0.35), transparent 55%),
              radial-gradient(circle at 85% 0%, rgba(200, 255, 200, 0.35), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.products-page .products-section > * {
  position: relative;
  z-index: 1;
}

.products-page .sidebar {
  border-radius: 16px;
  margin: 16px 0 0 16px;
  padding: 18px 14px;
}

.products-page .sidebar .toggle-btn {
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(46, 125, 50, 0.2);
}

.products-page #tabsContainer {
  display: grid;
  gap: 10px;
}

.products-page .tab-btn {
  justify-content: space-between;
  padding: 10px 12px;
}

.products-page #categoryButtonsContainer {
  gap: 8px;
}

.products-page .product-grid {
  align-items: stretch;
}

.products-page .product-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fff7 100%);
}

.products-page .product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 48px rgba(16, 24, 16, 0.18);
}

.products-page .product-card img {
  border: 1px solid rgba(46, 125, 50, 0.08);
}

.products-page .add-to-cart-container {
  background: #ffffff;
  padding: 10px 0 0;
}

.products-page .btn {
  text-transform: uppercase;
  font-size: 0.85rem;
}

.products-page .modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #f7fff7 100%);
}

/* Admin layout improvements */
.admin-page {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #eef7ef 0%, #f7fbf7 45%, #ffffff 100%);
}

.admin-page .admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.admin-page .admin-section {
  background: #ffffff;
  border: 1px solid #e1e7e1;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 10px 24px rgba(20, 40, 20, 0.08);
}

.admin-page #productForm,
.admin-page #categoryForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.admin-page #productForm input,
.admin-page #productForm select,
.admin-page #productForm textarea,
.admin-page #categoryForm input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfd8cf;
  background: #f9fff9;
  font-size: 0.95rem;
}

.admin-page #productForm label {
  grid-column: 1 / -1;
  font-weight: 600;
  color: #1f3a1f;
}

.admin-page .admin-textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

.admin-page #productForm .btn,
.admin-page #categoryForm .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-page #adminProductList {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-page .admin-category-group {
  border: 1px solid #e1e7e1;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fff6 100%);
}

.admin-page .admin-category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #1f3a1f;
  margin-bottom: 12px;
  border-left: 4px solid #81c784;
  padding-left: 10px;
}

.admin-page .admin-empty-category {
  color: #4b5563;
  font-weight: 600;
  margin: 0;
}

.admin-page .admin-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
}

.admin-page .admin-product-card {
  border-radius: 14px;
  border: 1px solid rgba(46, 125, 50, 0.12);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(20, 40, 20, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-page .admin-product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}

.admin-page .admin-product-card .btn {
  width: 100%;
}

@media (max-width: 900px) {
  .admin-page #productForm,
  .admin-page #categoryForm {
    grid-template-columns: 1fr;
  }
}

/* Products page mobile refinements */
@media (max-width: 768px) {
  .products-page .top-bar {
    padding: 8px 14px;
  }

  .products-page .top-bar-content {
    flex-direction: column;
    align-items: center;
  }

  .products-page .logo {
    height: 56px;
  }

  .products-page .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .products-page .welcome-text {
    width: auto !important;
    height: auto !important;
    border-radius: 16px !important;
  }

  .products-page .layout {
    gap: 12px;
  }

  .products-page .sidebar {
    margin: 0;
    border-radius: 0;
  }

  .products-page .products-section h2.animate {
    padding: 12px 14px;
  }

  .products-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding: 16px 6px 24px;
    gap: 16px;
  }

  .products-page .product-card {
    padding: 14px;
  }

  .products-page .product-card img {
    width: 104%;
    margin: 0 -2% 12px;
    height: 200px;
  }

  .products-page .add-to-cart-container {
    flex-direction: column;
    align-items: stretch;
  }

  .products-page .quantity-input {
    width: 100%;
  }

  .products-page .btn {
    width: 100%;
  }

  .products-page .btn:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(245, 124, 0, 0.35);
    transform: translateY(-3px);
    border-color: #ffb74d;
  }

  .products-page .btn:active {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(245, 124, 0, 0.3);
    border-color: #ffa726;
  }
}

@media (max-width: 480px) {
  .products-page .products-section h2.animate {
    font-size: 0.95rem;
  }

  .products-page #footer-p {
    font-size: 0.95rem;
  }

  .products-page .product-card img {
    height: 180px;
  }

  .products-page .modal-content {
    padding: 16px;
  }
}

#bestSellerList .best-seller-card {
  background: linear-gradient(180deg, #fff9e8 0%, #fff6df 100%);
  border: 1px solid #ffd173;
  box-shadow: 0 8px 20px rgba(255, 173, 66, 0.18);
}

#productList .product-card {
  background: linear-gradient(180deg, #fbfffb 0%, #f6fff7 100%);
  border: 1px solid #d9efd9;
}

.best-seller-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: #ff9800;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* =====================
   Pagination Controls
   ===================== */
#productPagination {
  width: 100%;
  padding: 24px 16px 8px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn,
.pagination-num {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 2px solid #2e7d32;
  background: #fff;
  color: #2e7d32;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease;
  line-height: 1;
}

.pagination-btn:hover:not(:disabled),
.pagination-num:hover:not(.active) {
  background: #2e7d32;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(46, 125, 50, 0.35);
}

.pagination-num.active {
  background: #2e7d32;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #bbb;
  color: #bbb;
  transform: none;
  box-shadow: none;
}

.pagination-ellipsis {
  font-size: 1rem;
  color: #666;
  line-height: 42px;
  padding: 0 2px;
}

.pagination-info {
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

@media (max-width: 480px) {
  .pagination-btn,
  .pagination-num {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
}