/* 🌸 Diwali Pastel Festive Theme 🌸 */
:root {
  /* Brand Colors */
  --primary-color: #f55f0a; /* Festive Saffron: Headings, Buttons, Key Info */
  --secondary-color: #00a99d; /* Regal Teal: Backgrounds, Sub-headings, Icons */
  --accent-color: #ffc107; /* Prosperity Gold: Highlights, Prices, Badges */

  /* Text Colors */
  --text-primary: #2c2c2c; /* Charcoal for readability */
  --text-secondary: #4f4f4f; /* Medium gray */
  --text-muted: #7d7d7d; /* Muted gray */
  --text-original-price: #a6a6a6; /* Neutral gray */
  --offer-price: var(--text-primary); /* Accent gold for offers */

  /* Backgrounds & Surfaces */
  --highlight-bg: #ffe7c6; /* Light saffron wash */
  --category-bg: #e6f9f6; /* Soft teal tint for category blocks */
  --modal-overlay: rgba(0, 0, 0, 0.55);
  --modal-close: var(--primary-color);
  --modal-close-hover: #c94705; /* Darker saffron */

  /* Buttons */
  --button-green: var(--secondary-color);
  --button-green-hover: #008f82; /* Dark teal hover */
  --button-red: var(--primary-color);
  --button-red-hover: #c94705;
  --button-gold: var(--accent-color);
  --button-gold-hover: #e0a800;

  /* Communication */
  --whatsapp-bg: #25d366; /* Keep WhatsApp green */
  --tel-bg: #64b5f6; /* Soft sky blue */

  /* Borders & Shadows */
  --border-light: #ffe0b2; /* Light saffron border */
  --border-medium: #ffcdd2; /* Warm accent border */
  --shadow-light: rgba(245, 95, 10, 0.25); /* Saffron glow */
  --shadow-medium: rgba(0, 0, 0, 0.25);

  /* Base */
  --white: #fffdf9;
  --light-gray: #f9f9f9;
  --button-hover-bg: #fff3e0; /* very light saffron */
  --gradient-bg: #f55f0a;

  /* Slider/Carousel Dots */
  --glc-surface: #fffdf9;
  --glc-shadow: rgba(245, 95, 10, 0.35);
  --glc-dot: #ffe0b2;
  --glc-dot-active: var(--accent-color);
  --glc-dot-ring: rgba(0, 169, 157, 0.4); /* teal accent */
  --glc-dots-panel: rgba(255, 253, 249, 0.85);
}

@font-face {
  font-family: "Numans";
  src: url("fonts/Numans-Regular.woff2") format("woff2"),
    url("fonts/Numans-Regular.woff") format("woff"),
    url("fonts/Numans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* --- preloaderOpen Animation Styles --- */
#preloaderOpen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #ffffff; /* A solid white background */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  opacity: 1;
  visibility: visible;
}

/* Class to be added by JavaScript to hide the preloaderOpen */
#preloaderOpen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  text-align: center;
  position: relative;
  width: 150px; /* Adjust size as needed */
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Your logo in the center */
.loader-logo {
  width: 80px; /* Adjust logo size */
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
  z-index: 2;
}

/* The spinning border animation */
.loader-spinnerOne {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 5px solid var(--secondary-color); /* A faint version of your primary green */
  border-top-color: var(--primary-color); /* Your main primary green */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

/* Keyframe Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Use Numans */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Numans", sans-serif;
  background-color: var(--light-gray);
  color: var(--text-primary);

  overflow-x: hidden;
}
main {
  padding: 20px;
}
/* Media Query for Global Styles (Tablets: 768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  main {
    padding: 15px;
  }
}

/* Media Query for Global Styles (Mobile: max-width 767px) */
@media (max-width: 767px) {
  main {
    padding: 10px;
  }
}

/* Header Styles */
header {
  background-color: #f8f8f8; /* Light gray background for a clean look */
  padding: 0;
  color: #333;
}

.warning-message {
  background-color: #ffcc00; /* Yellow background for warning */
  color: #333;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 567px) {
  .warning-message {
    display: grid;
    grid-template-columns: 20px 1fr;
  }
}

.main-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem; /* Allows wrapping on smaller screens */
  gap: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 100px; /* Adjust as needed */
  width: 100px;
  border-radius: 50%;
}

#title {
  margin: 0;
  text-align: left;
  color: #d32f2f;
}

/* ===== Layout ===== */
#glc-carousel-51b7 {
  position: relative;
  width: 100%;
  margin: 28px auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--glc-surface);
  box-shadow: 0 16px 36px var(--glc-shadow);
  touch-action: pan-y;
}

.glc-track {
  display: flex;
  /* width & per-slide width set via JS so translateX math is perfect for any slide count */
  transition: transform 0.6s ease;
  will-change: transform;
}

.glc-slide {
  position: relative;
  line-height: 0; /* removes gaps around images */
  user-select: none;
  background: #eef1f5;
}

.glc-slide img {
  width: 100%;
  height: auto; /* keeps natural aspect ratio */
  display: block;
  pointer-events: none;
}

/* ===== Dots (only navigation) ===== */
.glc-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glc-dots-panel);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px var(--glc-shadow);
  z-index: 5;
}

.glc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--glc-dot);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.glc-dot[aria-selected="true"] {
  background: var(--glc-dot-active);
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--glc-dot-ring);
}

.glc-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--glc-dot-ring);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
  #glc-carousel-51b7 {
    border-radius: 14px;
  }
  .glc-dots {
    gap: 8px;
    padding: 6px 10px;
    bottom: 10px;
  }
  .glc-dot {
    width: 10px;
    height: 10px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glc-track {
    transition: none;
  }
}

/* All screens - Initial styles for both icon and text */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end; /* Aligns items to the right on desktop */
}
.svg-icons {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 5px;
}
.contact-item a {
  text-decoration: none;
  color: var(--text-primary);
}

.contact-icon {
  width: 20px; /* Slightly larger icon size for better visibility */
  height: 20px;
  fill: #d32f2f;
}

.contact-item span {
  display: inline; /* Default: show the text */
}

/* Mobile Devices (max-width 767px) */
@media (max-width: 767px) {
  /* Hide the text next to the icons */
  .contact-item span {
    display: none;
  }

  /* Change .contact-info to display horizontally for better spacing */
  .contact-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem; /* Add more space between icons */
  }

  /* Adjust the icon size for mobile view if needed */
  .contact-icon {
    width: 24px;
    height: 24px;
  }
}

/* Desktop and Tablet devices (min-width 768px) */
@media (min-width: 768px) {
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .main-header-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
  }
}

/* Responsive Media Queries */

/* Tablet and Desktop adjustments */
@media (min-width: 768px) {
  .main-header-content {
    justify-content: space-between;
    align-items: center;
  }

  .contact-info {
    text-align: right;
  }
}

/* Mobile-specific styles */
@media (max-width: 992px) {
  #title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .main-header-content {
    align-items: center;
    text-align: center;
    padding: 10px;
  }

 

  #title {
    font-size: 1rem;
  }
  .logo {
    width: 60px;
    height: 60px;
  }
  .contact-info {
    text-align: center; /* Center-align contact info */
    gap: 0.75rem;
  }

  .contact-item {
    justify-content: center; /* Center-align items in mobile view */
    flex-direction: row;
  }
}
@media (max-width: 350px) {
  #title {
    font-size: 14px;
  }
  .titledescription {
    font-size: 12px;
  }
  
}
/* Controls Section */
/* Add to your CSS file or <style> in <head> */
.mobile-controls {
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.accordion-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #e5e7eb;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.accordion-icon.rotate {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 16px;
}

.accordion-content.active {
  display: block;
}
.control-item {
  margin-bottom: 16px;
}

.control-item:last-child {
  margin-bottom: 0;
}

#controls-accordion input,
#controls-accordion select,
#controls-desktop input,
#controls-desktop select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 16px;
}

#controls-accordion input:focus,
#controls-accordion select:focus,
#controls-desktop input:focus,
#controls-desktop select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.desktop-controls {
  margin: 16px;
}

#controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .mobile-controls {
    display: none;
  }
  .desktop-controls {
    display: block;
  }
  #controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .desktop-controls {
    display: none;
  }
}

/* Products Table */

/* Replace existing #products-table and related styles */
.products-container {
  width: 100%;
}

.desktop-table {
  display: block;
}

.mobile-accordion {
  display: none;
}

.category-accordion {
  margin-bottom: 10px;
}

.category-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #e5e7eb;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  color: #fff;
  background-color: var(--primary-color);
}

.category-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.category-toggle.active svg {
  transform: rotate(180deg);
}

.category-content {
  display: none;
  padding: 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0 0 4px 4px;
}

.category-content.active {
  display: block;
}

.desktop-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#products-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: 0 0 10px var(--shadow-light);
}

th,
td {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-medium);
}

th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.category-row td {
  background-color: var(--category-bg);
  font-weight: bold;
  text-align: center;
  padding: 5px;
}

/* Media Query for Products Table (Tablets: 768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  th,
  td {
    padding: 8px;
    font-size: 0.9em;
  }
}

/* Media Query for Products Table (Mobile: max-width 767px) */
@media (max-width: 767px) {
  #products-table {
    border: none;
    box-shadow: none;
  }

  .desktop-table {
    display: none;
  }

  .mobile-accordion {
    display: block;
  }

  .category-content tr {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    grid-template-areas:
      "image name original"
      "links quantity total";
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  thead {
    display: none;
  }

  tbody {
    display: block;
  }

  tr {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    grid-template-areas:
      "image name original"
      "links quantity total";
    margin-bottom: 15px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    background-color: var(--white);
    box-shadow: 0 2px 5px var(--shadow-light);
  }

  .category-row {
    display: block;
    border: none;
    background-color: var(--category-bg);
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
  }

  .category-row td {
    border: none;
    padding: 0;
  }

  td {
    display: block;
    text-align: center;
    border: none;
    padding: 3px;
  }

  td:before {
    display: none;
  }

  td[data-label="Image"] {
    grid-area: image;
  }

  td[data-label="Name"] {
    grid-area: name;
    /* font-weight: bold; */
    font-size: 12px;
    color: var(--text-primary);
    text-align: center;
    place-content: center;
  }

  td[data-label="Original Price"] {
    grid-area: original;
    font-size: 0.9em;
    color: var(--text-original-price);
    text-align: left;
    place-content: center;
  }

  td[data-label="Offer Price"] {
    grid-area: offer;
    font-size: 0.9em;
    color: var(--offer-price);
    font-weight: bold;
    text-align: right;
  }

  td[data-label="Quantity"] {
    grid-area: quantity;
    display: flex;
    justify-content: center;
  }

  td[data-label="Total"] {
    grid-area: total;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1em;
    text-align: left;
    place-content: center;
  }

  td[data-label="Links"] {
    grid-area: links;
    font-size: 12px;
  }
}

/* Add this to your style.css file */

.image-container {
  position: relative; /* This is the key change for positioning */
  display: inline-block; /* Or block, depending on your layout needs */
}

.offer-badge {
  position: absolute; /* Positions the badge on top of the container */
  top: 0px; /* 5px from the top */
  left: -20px; /* 5px from the right */
  background-color: #ef4444; /* A bright red background */
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  z-index: 1; /* Ensures the badge is on top of the image */
}

/* Ensure the image within the container behaves as expected */
.image-container .product-image {
  display: block;
}

/* Product Image */
.product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s;
}

.product-image:hover {
  transform: scale(1.1);
}

/* Media Query for Product Image (Tablets: 768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .product-image {
    width: 40px;
    height: 40px;
  }
}

/* Media Query for Product Image (Mobile: max-width 767px) */
@media (max-width: 767px) {
  .product-image {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }
}

/* Price Styles */
.original-price {
  color: var(--text-original-price);
}

.mobile-offer-price {
  display: none;
}

.offer-price {
  color: var(--offer-price);
  font-weight: bold;
}

/* Media Query for Price Styles (Mobile: max-width 767px) */
@media (max-width: 767px) {
  .desktop-offer-price {
    display: none;
  }

  .mobile-offer-price {
    display: block;
  }
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.quantity-controls button {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.quantity-controls button:hover {
  background-color: #e03e00;
}

.quantity-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 1em;
}

/* Media Query for Quantity Controls (Tablets: 768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .quantity-controls button {
    width: 25px;
    height: 25px;
    font-size: 1em;
  }

  .quantity-input {
    width: 35px;
    height: 25px;
    font-size: 0.9em;
  }
}

/* Media Query for Quantity Controls (Mobile: max-width 767px) */
@media (max-width: 767px) {
  .quantity-controls {
    gap: 3px;
  }

  .quantity-controls button {
    width: 25px;
    height: 25px;
    font-size: 1em;
  }

  .quantity-input {
    width: 30px;
    height: 25px;
    font-size: 0.9em;
  }
}

/* Icon Links */
.icon-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.2em;
  transition: color 0.2s;
}

.icon-link:hover {
  color: var(--primary-color);
}

/* Media Query for Icon Links (Mobile: max-width 767px) */
@media (max-width: 767px) {
  .icon-link {
    font-size: 1.1em;
  }
}

/* Highlight Row */
.highlight-row {
  background-color: var(--highlight-bg);
}

/* Add a new rule for the mobile accordion to highlight the mobile rows */
@media (max-width: 767px) {
  .mobile-accordion tr.highlight-row {
    background-color: var(--highlight-bg);
  }
}

/* Styles for the close SVG at the bottom of the mobile category accordion */
.close-accordion {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  margin-top: 10px;
  cursor: pointer;
  border-top: 1px solid #e0e0e0; /* Subtle separator for visual distinction */
}

.close-accordion svg.close-icon {
  width: 24px;
  height: 24px;
  stroke: #333; /* Match the toggle button's chevron color */
  stroke-width: 2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.close-accordion svg.close-icon:hover {
  transform: scale(1.2); /* Slightly enlarge on hover for feedback */
  stroke: #007bff; /* Blue hover effect to indicate clickability */
}

/* Ensure the close SVG is visible within the accordion content */
.category-content {
  position: relative;
  overflow-y: auto; /* Ensure content is scrollable if needed */
}

/* --- New Image Modal Styles --- */

#image-modal.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding-top: 50px;
  animation: fadeIn 0.3s ease-in-out;
}

#image-modal .modal-content {
  background-color: var(--white);
  margin: 5% auto;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  padding: 0; /* Remove padding from the content wrapper */
}

#image-modal .modal-header {
  background-color: var(--category-bg);
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary-color);
  text-align: center;
}

#image-modal .close {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}

#image-modal .close:hover {
  color: var(--modal-close-hover);
  transform: rotate(90deg);
}

#modal-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 12px 12px; /* Rounds bottom corners of image */
}

/* --- Responsive Styles for Image Modal --- */

@media (max-width: 768px) {
  #image-modal .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  #image-modal .modal-header {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
  }
  #image-modal .close {
    font-size: 2rem;
    top: 5px;
    right: 10px;
  }
}

/* --- New Form Modal Styles --- */

.form-modal-container {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding-top: 50px;
  animation: fadeIn 0.3s ease-in-out;
}

.form-modal-container .modal-content {
  background-color: var(--white);
  margin: 5% auto;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.form-modal-container .modal-header {
  background-color: var(--category-bg);
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary-color);
  text-align: center;
}

.form-modal-container .modal-text {
  padding: 1.5rem 2rem;
  background-color: var(--light-gray);
}

.form-modal-container .close {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}

.form-modal-container .close:hover {
  color: var(--modal-close-hover);
  transform: rotate(90deg);
}

/* Form inputs and buttons styling */
.form-modal-container .form-input {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-modal-container .form-input:focus {
  border-color: var(--button-green);
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  outline: none;
}

#phone-error {
  color: var(--modal-close);
  font-size: 0.9em;
  font-weight: 500;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  display: none;
}
#email-error {
  color: var(--modal-close);
  font-size: 0.9em;
  font-weight: 500;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  display: none;
}
#email-input{
  display: none;
}
.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background-color: var(--white);
  border-top: 1px solid var(--border-medium);
}

.modal-buttons button {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  flex: 1;
}

#submit-button {
  background-color: var(--whatsapp-bg);
  color: var(--white);
}

#submit-button:hover {
  background-color: var(--whatsapp-bg);
  transform: translateY(-2px);
}

#close-form {
  background-color: var(--button-red);
  color: var(--white);
}

#close-form:hover {
  background-color: var(--button-red-hover);
  transform: translateY(-2px);
}

/* Add to your existing CSS file */
.amount-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f8f9fa; /* Light gray background */
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.amount-summary p {
  margin: 0;
  color: #495057; /* Dark text for readability */
}

#modal-total-amount {
  color: var(--primary-color); /* Matches the main theme color */
  font-size: 1.1em;
}

#modal-saved-amount {
  color: var(--button-green); /* Green to highlight savings */
  font-size: 1.1em;
}

/* Responsive styles for form modal */
@media (max-width: 768px) {
  .form-modal-container .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  .amount-summary {
    flex-direction: column;
    gap: 10px;
  }
  .form-modal-container .modal-header {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
  }

  .form-modal-container .modal-text {
    padding: 1rem 1.5rem;
  }

  .form-modal-container .close {
    font-size: 2rem;
    top: 5px;
    right: 10px;
  }
}

/* New styles for the info-modals with responsive design */
.info-modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding-top: 50px;
  animation: fadeIn 0.3s ease-in-out;
}

.info-modal .modal-content {
  background-color: #f0f8ff;
  margin: 5% auto;
  padding: 3rem;
  border: 1px solid #ddd;
  width: 80%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-modal .close {
  color: #555;
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
  transition: color 0.2s;
}

.info-modal .close:hover,
.info-modal .close:focus {
  color: #333;
}

.info-modal .modal-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 15px;
}

.info-modal h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.info-modal ul {
  list-style-type: disc;
  padding-left: 30px;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Styles for Info Modal */
@media (max-width: 768px) {
  .info-modal .modal-content {
    width: 90%;
    margin: 10% auto;
    padding: 2rem;
  }

  .info-modal h2 {
    font-size: 1.5rem;
  }

  .info-modal .close {
    font-size: 2rem;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .info-modal .modal-content {
    padding: 1rem;
  }

  .info-modal h2 {
    font-size: 1.25rem;
  }

  .info-modal .modal-text {
    font-size: 0.9rem;
    padding-right: 10px;
  }
}
/* Floating Total Bar - NEW STYLES */
#floating-total {
  position: fixed;
  bottom: -100px; /* Initially hidden off-screen */
  left: 0;
  width: 100%;
  background-color: var(--text-primary);
  color: var(--white);
  padding: 12px 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 998; /* Below floating icons */
  transition: bottom 0.4s ease-in-out;
  flex-wrap: wrap; /* Allows wrapping on small screens */
  gap: 10px;
}

#floating-total.visible {
  bottom: 0; /* Slides into view */
}

.cart-summary {
  display: flex;
  width: 100%;
justify-content: space-between;
  gap: 2px;
}

.cart-summary-item {
  font-size: 1rem;
  font-weight: 500;
}
.cart-summary-item-div{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}
#total-amount-display {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color); /* Gold color for emphasis */
}

#saved-amount-display {
  color: #4caf50; /* Green for savings */
}

.floating-total-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

#clear-cart-button,
#ok-button {
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

#ok-button {
  background-color: var(--primary-color);
  color: var(--white);
}

#ok-button:hover {
  background-color: var(--button-red-hover);
  transform: translateY(-2px);
}

#clear-cart-button {
  background-color: #6c757d; /* Muted gray */
  color: var(--white);
}

#clear-cart-button:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

/* Responsive adjustments for the new bar */
@media (max-width: 480px) {
  #floating-total {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 15px;
  }

  .cart-summary {
    align-items: center;
    margin-bottom: 10px;
  }

  .floating-total-actions {
    justify-content: space-between;
  }
  
  #clear-cart-button,
  #ok-button {
    flex-grow: 1; /* Make buttons take equal space */
  }
}
/* Floating Icons */
#floating-icons {
  position: fixed;
  bottom: 100px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-button {
  background-color: var(--whatsapp-bg);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0 5px var(--shadow-medium);
  transition: transform 0.2s;
}

.floating-button[href^="tel"] {
  background-color: var(--tel-bg);
}

.floating-button i {
  font-size: 1.5em;
}

.floating-button:hover {
  transform: scale(1.1);
}

/* Floating Icons */
.floating-pricelist {
  position: fixed;
  bottom: 200px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.pricelist-button {
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0 5px var(--shadow-medium);
  transition: transform 0.2s;
}

.pricelist-img {
  
  animation: scale-up 0.5s infinite alternate ease-in-out;
}
@keyframes scale-up {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

/* Media Query for Floating Icons (Mobile: max-width 767px) */
@media (max-width: 767px) {
  #floating-icons {
    bottom: 126px;
    left: 20px;
    gap: 8px;
  }

  .floating-button {
    width: 35px;
    height: 35px;
  }

  .floating-button i {
    font-size: 1.2em;
  }

  .cart-summary-item-div{
 flex-direction: column;
 gap: 10px;
}
.floating-pricelist {
  right:10px;
}
}



footer {
  background: var(--gradient-bg);
  color: var(--text-secondary);
  padding: 20px 24px 24px;
  line-height: 1.6;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}
.copyright{
  text-decoration: none;
  color: var(--category-bg);
}
.footer-section h3 {
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.company-info .footer-logo img {
  max-width: 160px;
  transition: transform 0.3s ease;
}

.company-info .footer-logo img:hover {
  transform: scale(1.05);
}

.company-info .company-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--button-hover-bg);
}

.company-info .company-description {
  font-size: 0.875rem;
  color: var(--text-primary);
  max-width: 280px;
}

.contact-us ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-us li {
  margin: 12px 0;
}

.contact-us a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  color: var(--button-hover-bg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-us a:hover {
  color: black;
  transform: translateX(4px);
}

.contact-us svg {
  width: 20px;
  height: 20px;
  fill: rgb(255, 255, 255);
  transition: transform 0.3s ease;
}

.contact-us a:hover svg {
  transform: scale(1.1);
}

.follow-us .social-icons {
  display: flex;
  gap: 16px;
}

.follow-us a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.follow-us a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--text-primary);
}

.follow-us svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.location-map iframe {
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.location-map iframe:hover {
  transform: scale(1.02);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--button-hover-bg);
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--button-hover-bg);
  margin: 0 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: black;
  text-decoration: underline;
}

.footer-bottom .copyright {
  opacity: 0.9;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .contact-us a,
  .follow-us a,
  .company-info .footer-logo img,
  .location-map iframe {
    transition: none;
  }
}

/* Responsive Design */
@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-section {
    text-align: left;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  footer {
    background: #000;
    color: #fff;
  }
  .footer-section h3,
  .contact-us a:hover,
  .footer-links a:hover {
    color: #ffd700;
  }
}

@media (max-width: 600px) {
  .company-info .footer-logo img {
    width: 75px;
    height: 75px;
    border-radius: 50px;
    margin: auto 0px;
  }
  .logo-div {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 20px;
    align-items: center;
  }

  .company-info .company-name {
    font-size: 1.2rem;
  }
  .footer {
    padding: 20px 14px;
  }
  .footer-container {
    gap: 20px;
  }
  .follow-us .social-icons {
    justify-content: space-between;
    gap: 0px;
  }
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: #28a745; /* success green */
  color: white;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  animation: slideIn 0.4s forwards, fadeOut 0.5s 3s forwards;
  font-size: 14px;
}

.toast.error {
  background: #dc3545; /* error red */
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.brand-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .brand-filters {
    margin: 0 16px;
  }
}

/* --- Go to Top Button Styles --- */
#goTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Keep it in place while scrolling */
  bottom: 80px;
  right: 30px;
  z-index: 99; /* Make sure it's on top of other content */
  border: none;
  outline: none;
  background-color: var(--accent-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%; /* Makes it a circle */
  width: 50px;
  height: 50px;
}

#goTopBtn:hover {
  opacity: 1;
  transform: translateY(-3px);
}

#goTopBtn svg {
  width: 20px;
  height: 20px;
}

/* --- Responsive styles for the button --- */
@media (max-width: 768px) {
  #goTopBtn {
    bottom: 100px;
    right: 15px;
    width: 45px;
    height: 45px;
    padding: 12px;
  }
}


/* --- Add these styles to your style.css file --- */

#loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  z-index: 100; /* Make sure it's on top of the form */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.loader-spinner {
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid var(--primary-color); /* Your theme color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Styles for Cart within Form Modal --- */
#modal-cart-items {
  max-height: 25vh; /* Limit height and make it scrollable */
  overflow-y: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  background-color: #f9f9f9;
}

.modal-cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 5px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-cart-item:last-child {
  border-bottom: none;
}

.modal-cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.modal-cart-item-details {
  flex-grow: 1;
}

.modal-cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.modal-cart-item-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-quantity-input{
  width: 35px;
  height: 30px;
 text-align: center;
 border-radius: 5px;
 border: 1px solid var(--accent-color);
}
.modal-cart-item .quantity-controls {
  gap: 3px;
}

.modal-cart-item .quantity-controls button {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

.modal-cart-item .quantity-input {
  width: 35px;
  height: 28px;
  font-size: 0.95rem;
}

.delete-item-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444; /* Red color for delete icon */
  padding: 5px;
}
.delete-item-btn svg {
  width: 22px;
  height: 22px;
}

.delete-item-btn:hover {
  color: #dc2626; /* Darker red on hover */
}




@media (max-width: 768px) {
  .modal-cart-item-name{
    font-size: 12px;
  }
  .modal-cart-item .quantity-controls button{
    width: 20px;
    height: 20px;
  }
 .modal-quantity-input{
  width: 25px;
  height: 24px;
 }
}

/* Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}







/* START: DYNAMIC ANIMATED COUNTDOWN STYLES (v2) */
#sale-countdown-timer-block {
  padding: 15px 10px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  margin-top: 25px;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.countdown-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.time-segment {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 15px;
  min-width: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.time-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  /* text-shadow: 
    0 0 5px #fff, 
    0 0 10px #fff, 
    0 0 20px var(--accent-color), 
    0 0 30px var(--accent-color), 
    0 0 40px var(--accent-color); */
}

.time-label {
  font-size: 0.7rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 5px;
}

.time-separator {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: bold;
  padding-bottom: 20px;
  text-shadow: 0 0 8px var(--accent-color);
}

.animated-message {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  padding: 10px 0;
  min-height: 45px;
}

.animated-message span {
  display: inline-block;
  animation: wave-glow 2.5s infinite;
  animation-delay: var(--i); 
}

/* This is the style for the secondary message */
.days-left-message {
  color: #fff;
  margin-top: 15px;
  font-style: italic;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

@keyframes wave-glow {
  0%, 100% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 5px var(--primary-color);
  }
  50% {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 10px #fff, 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
  }
}

@media (max-width: 600px) {
  .time-value { font-size: 1.8rem; }
  .time-segment { min-width: 55px; padding: 8px 10px; }
  .time-separator { font-size: 1.8rem; }
  .animated-message { font-size: 1rem; min-height: 35px; }
}
/* END: DYNAMIC ANIMATED COUNTDOWN STYLES (v2) */