* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-image: url('https://images.unsplash.com/photo-1469371670807-013ccf25f16a?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
  }
  
  header {
    background: rgba(29, 53, 87, 0.9);
    color: white;
    padding: 20px 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  nav#categoryButtons {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 2px;
    background: rgba(34, 34, 34, 0.9);
    color: #f4f4f4;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 15px;
  }
  
  nav#categoryButtons button {
    margin-right: 7px;
    padding: 7px 10px;
    cursor: pointer;
    background-color: #444;
    color: #f0f0f0;
    border: none;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  /* Hover state only — no size or color change like active */
  nav#categoryButtons button:hover {
    background-color: #666;
  }
  
  /* Active (clicked) state */
  nav#categoryButtons button.active {
    background-color: #ffffffb6;
    color: rgb(0, 0, 0);
  }
  
  
  #subCategoryButtons {
    position: sticky;
    top: 0;
    z-index: 1000; /* ensures it stays above other elements */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    margin: 2px auto;
    background-color: transparent; /* stays invisible if you don’t want a background */
    padding: 4px 0; /* optional padding */
  }
  
  #subCategoryButtons button {
    padding: 5px 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  #subCategoryButtons button:hover,
  #subCategoryButtons button.active {
    background-color: #000000;
    color: white;
  }
  
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .product-card {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 11px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
  }
  
  .product-card:hover {
    transform: scale(1.02);
  }
  
  .product-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
  }
  
  .card-content {
    padding: 5px;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1d3557;
  }
  
  .card-content p {
    font-size: 0.9rem;
    margin: 3px 0;
  }
  
  .card-content p strong {
    color: #555;
  }
  
  #cartButton {
    background-color: transparent;
    color: white;
    padding: 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
  }

  #cartButton {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    position: absolute;
    top: 4px;
    right: 1px;
    background-color: transparent;
    color: white;
    padding: 6px 10px;        /* slightly more spacing */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;          /* adjust this to resize 🛒 and 0 together */
  }
  
  
  
/* Cart Modal Styles */
#cartModal {
  display: none;
  position: fixed;
  top: 1px;
  right: 1px;
  background-color: #ffffff;
  padding: 2px 2px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 260px;
  z-index: 999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: slideIn 0.3s ease-out;
}

#cartModal h3 {
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  color: #333;
}

#cartList {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

#cartList li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

#closeCartBtn {
  background-color: rgba(0, 0, 0, 0.608);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: 600;
}

#closeCartBtn:hover {
  background-color: #e84118;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  #purchaseBtn {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 6px 18px;
    background-color: #00722abd; /* WhatsApp green */
    color: white;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 500px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  #purchaseBtn:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
  }
  
  #purchaseBtn:active {
    transform: translateY(0);
  }
  
  .whatsapp-icon {
    width: 60px;
    height: 60px;
    vertical-align: middle;
  }
  
.dropdown button {
  position: relative;
  bottom: 14px;
  left: 0px;
  padding: 4px 8px; /* Keep current size */
  font-size: 14px;
  background-color: #444444a6;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}


  .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgbs(255, 255, 255);
    min-width: 115px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    margin-top: 8px;
    padding: 8px 0;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content button {
    padding: 1px 1px;
    font-size: 14px;
    text-align: left;
    background-color: #fff;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .dropdown-content button:hover {
    background-color: #f4f4f4;
  }

  #clearPriceFilter {
    background-color: #fff;
    font-weight: bold;
    color: #f44336;
  }

  #clearPriceFilter:hover {
    background-color: #f8d7d7;
  }
  

  .order-section {
    background-color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 40px auto;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .order-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #1d3557;
    text-align: center;
  }
  
  .order-form {
    display: flex;
    flex-direction: column;
  }
  
  .order-form label {
    margin: 8px 0 4px;
    font-weight: 500;
    color: #333;
  }
  
  .order-form input,
  .order-form textarea {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
  }
  
  .order-form textarea {
    resize: vertical;
  }
  
  .form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .form-buttons button {
    padding: 10px 16px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  #whatsappOrder {
    background-color: #25D366;
    color: white;
  }
  
  #whatsappOrder:hover {
    background-color: #1ebe5d;
  }
  
  #cancelOrder {
    background-color: #ccc;
    color: #333;
  }
  
  #cancelOrder:hover {
    background-color: #b3b3b3;
  }
  #orderForm {
    position: fixed;          /* Fix the form in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Semi-transparent background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 99;           /* Ensure it's above other content */
  }
  
  #orderForm .form-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 100px;
    padding: 10px;
    overflow-y: auto;        /* Enable scrolling if the form content exceeds the screen height */
  }
  
  #orderForm h3 {
    text-align: center;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
  }
  
  #orderForm label {
    display: block;

  }
  
  #orderForm input,
  #orderForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
  }
  
  #orderForm textarea {
    height: 100px;
    resize: vertical;
  }
  
  .form-actions {
    display: flex;
    justify-content: space-between;
  }
  
  .form-actions button {
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .form-actions button[type="button"] {
    background-color: #f44336;
  }
  
  .form-actions button:hover {
    opacity: 0.9;
  }
  
.add-to-cart-btn {
  background-color: #6c757d; /* standard grey */
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: #5a6268; /* darker grey on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Modal background styling */
/* Main modal container */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal .modal-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal .modal-image {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.4s ease, max-width 0.4s ease, max-height 0.4s ease;
}

.image-modal .modal-image.rotated {
  transform: rotate(90deg);
  max-width: 100vh;
  max-height: 100vw;
}
.spacer-div {
width: 100%;
height: 100px; /* Adjust height as needed /
background-color: transparent;
pointer-events: none; / Makes sure it doesn't interfere with clicks /
user-select: none; / Prevents text selection if clicked */
}
