
    /* =========================
       CSS VARIABLES (preserved)
       ========================= */
     * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

       :root {
    --primary: #00553c;      /* Dark green - main brand color */
    --primary-dark: #003d2b; /* Darker green */
    --primary-light: #006b5a; /* Lighter green */
    --secondary: #f58220;    /* Orange - accent color */
    --secondary-dark: #d26900; /* Darker orange */
    --accent: #0076f4;       /* Blue - for promotions */
    --accent-dark: #005cb8;  /* Darker blue */
    --light: #F5F5F5;
    --dark: #333;
    --gray: #757575;
    --danger: #F44336;
    --success: #4CAF50;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
}



.breadcrumb {
  font-size: 16px;
  color: #ffffff;
  background-color: #00553c;

  display: flex;
  align-items: center;
  gap: 5px;

  padding: 10px 15px;  /* default for phone */
}

.breadcrumb a {
  color: #1a8a8a;
  text-decoration: none;
  white-space: nowrap;
}

.breadcrumb span {
  color: #ccc;
}

/* DESKTOP VERSION — Add 270px left space */
@media (min-width: 1024px) {
  .breadcrumb {
    padding-left: 280px;
    padding-top: 0%;
  }
}



.mobile-cart-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-cart-section:hover {
    background: var(--primary-dark);
}

.mobile-cart-section i {
    font-size: 1.2rem;
}

.mobile-cart-section > div {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Hide mobile cart on desktop, show on mobile */
@media (min-width: 769px) {
    .mobile-cart-section {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-cart-section {
        display: flex;
    }
    
    .cart-btn {
        display: none; /* Hide desktop cart on mobile */
    }
}




.delivery-bar-container {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 6px;
}

.delivery-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.4s ease, background 0.3s ease;
}

.delivery-bar-text {
  font-size: 0.9em;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
}

/* Hero Section 
.hero {
}
*/

.location-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 240px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.location-box:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.location-box i {
  font-size: 15px;
  color: #055a4f; /* a dark green tone for professionalism */
  margin-top: 2px;
}

.location-box .location-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.location-box .small-text {
  font-size: 11px;
  color: #777;
}

.location-box strong {
  font-size: 15px;
  color: #222;
  font-weight: 600;
}


/* === CART SYSTEM CSS === */

/* Cart Wrapper (for dropdown positioning) */
.cart-wrapper {
  position: relative;
  /*display: inline-block;*/
}

/* === CART BUTTON === */
.cart-btn {
  cursor: pointer;
  font-size: 16px;
  position: relative;
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 100;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cart-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* === CART MODAL (Dropdown Style) === */
.cart-modal {
  display: none;
  position: absolute;
  top: 60px; /* space below the cart button */
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
 /* width: 350px; */
  max-height: 70vh;
  overflow-y: auto;
  z-index: 1000;
  padding: 20px;
  animation: dropdownFade 0.25s ease;
}


.cart-modal.active {
  display: block;
} 

/* Dropdown animation */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CART ITEMS === */
.cart-items-container {
 /* max-height: 300px;
  max-width: 500px;*/
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.cart-item:hover {
  background: #f9f9f9;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cart-item-image {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-details h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.cart-item-price {
  color: #2c5aa0;
  font-weight: bold;
  font-size: 14px;
}

/* === QUANTITY CONTROLS === */
.cart-item-quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.cart-item-quantity-controls button {
  width: 25px;
  height: 25px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.cart-item-quantity-controls button:hover {
  background: #007bff;
  color: white;
}

.quantity-display {
  font-size: 13px;
  min-width: 35px;
  text-align: center;
}

.min-bar-container {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 5px;
    margin: 8px 0 4px;
    overflow: hidden;
}

.min-bar-fill {
    height: 100%;
    width: 0%;
    background: #ff4d4d; /* red when below threshold */
    transition: width 0.3s ease;
}

.min-bar-text {
    font-size: 13px;
    text-align: center;
    color: #444;
}




/* === REMOVE ITEM === */
.remove-item {
  background: #ff4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease;
}

.remove-item:hover {
  background: #d32f2f;
}

/* === CART TOTAL === */
.cart-total {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
}


/* === CHECKOUT BUTTON === */
.checkout-btn {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: #1e7e34;
}

/* === EMPTY CART === */
.empty-cart {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-cart i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ccc;
}

/* === CART FEEDBACK ANIMATION === */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cart-feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

/* === UTILITY === */
.hidden {
  display: none !important;
}

#checkoutForm,
#paymentSection {
  display: none;
}


.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}
.checkout-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245,130,32,0.3);
}


/* Checkout Form Styling */
#checkoutForm {
  display: none;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 20px auto;
  font-family: 'Poppins', sans-serif;
}

#checkoutForm input ,#checkoutForm select  {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

#checkoutForm input:focus, #checkoutForm select:focus {
  border-color: #4CAF50;
}  

#checkoutForm select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #007bff 50%), 
                    linear-gradient(135deg, #007bff 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 4px), calc(100% - 15px) calc(1em + 4px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* Detect & Change Location Buttons */
.location-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#detectLocation, #changeLocation {
  flex: 1;
  padding: 10px;
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

#detectLocation:hover, #changeLocation:hover {
  background-color: #e2e6ea;
}

/* Proceed Button */
#proceedToPayment {
  width: 100%;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

#proceedToPayment:hover {
  background-color: #218838;
}

/* Back button */
#back-to-cart {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
}

#back-to-cart:hover {
  background: #545b62;
}


        .payment-section {
            display: none;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #eee;
        }

        .payment-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin: 15px 0;
        }

        .payment-option {
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
        }

        .payment-option.selected {
            border-color: #007bff;
            background-color: #f8f9fa;
        }

        .payment-option img {
            height: 30px;
            margin-bottom: 8px;
        }

        .amount-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin: 15px 0;
        }

        .amount-option {
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
        }

        .amount-option.selected {
            border-color: #28a745;
            background-color: #f8f9fa;
        }

        .payment-form {
            margin-top: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #333;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
        }

        .form-group input:focus, .form-group select:focus {
            border-color: #007bff;
            outline: none;
        }

        .pay-btn {
            background: #007bff;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
            margin-top: 10px;
            font-weight: bold;
        }

        .pay-btn:hover {
            background: #0056b3;
        }

        .payment-amount {
            font-size: 18px;
            font-weight: bold;
            color: #28a745;
            text-align: center;
            margin: 15px 0;
        }

        .back-to-cart {
            background: #6c757d;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 6px;
            cursor: pointer;
            margin-bottom: 15px;
        }

        .back-to-cart:hover {
            background: #545b62;
        }

        .hidden {
            display: none;
        }

        

@media only screen and (max-width: 318px) {
  .cart-btn {
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
  
  .cart-modal {
    width: 350px;
    right: -20px;
    padding: 12px;
    max-height: 80vh;
  }
  
  .cart-items-container {
    max-height: 200px;
    margin-bottom: 15px;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
  }
  
  .cart-item-info {
    width: 100%;
    gap: 8px;
  }
  
  .cart-item-image {
    width: 40px;
    height: 40px;
  }
  
  .cart-item-details h4 {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  .cart-item-price {
    font-size: 11px;
  }
  
  .cart-item-quantity-controls {
    align-self: flex-end;
    gap: 5px;
  }
  
  .cart-item-quantity-controls button {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  
  .quantity-display {
    font-size: 11px;
    min-width: 25px;
  }
  
  .remove-item {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .cart-total {
    font-size: 14px;
    padding: 8px;
    margin: 10px 0;
  }
  
  .checkout-btn {
    padding: 10px;
    font-size: 13px;
  }
  
  .empty-cart {
    padding: 20px;
    font-size: 14px;
  }
  
  .empty-cart i {
    font-size: 2rem;
  }
  
  .min-bar-container {
    height: 6px;
    margin: 5px 0 3px;
  }
  
  .min-bar-text {
    font-size: 11px;
  }
  
  /* Checkout form fixes */
  #checkoutForm {
    padding: 8px;
    max-width: 260px;
    margin: 10px auto;
  }
  
  #checkoutForm input,
  #checkoutForm select {
    padding: 6px 8px;
    font-size: 12px;
    margin: 5px 0;
  }
  
  .location-buttons {
    flex-direction: column;
    gap: 5px;
  }
  
  #detectLocation,
  #changeLocation {
    padding: 6px;
    font-size: 11px;
  }
  
  #proceedToPayment {
    padding: 10px;
    font-size: 13px;
  }
  
  /* Payment section fixes */
  .payment-options,
  .amount-options {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .payment-option,
  .amount-option {
    padding: 8px;
    font-size: 12px;
  }
  
  .payment-option img {
    height: 18px;
    margin-bottom: 4px;
  }
  
  .payment-amount {
    font-size: 14px;
    margin: 10px 0;
  }
  
  .form-group {
    margin-bottom: 10px;
  }
  
  .form-group label {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  .form-group input,
  .form-group select {
    padding: 6px;
    font-size: 12px;
  }
  
  .pay-btn {
    padding: 10px;
    font-size: 13px;
    margin-top: 5px;
  }
  
  .back-to-cart {
    padding: 6px 10px;
    font-size: 11px;
    margin-bottom: 10px;
  }
  
  /* Text sizing for important info */
  .cart-modal > div {
    font-size: 12px;
  }
}


     /* Top Info Bar */
    .top-bar {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    }

    /* =========================
       ORIGINAL NAVBAR (kept IDs, classes)
       ========================= */
    /* Navbar Container */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--white);
      padding: 12px 40px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      position: sticky;
      top: 0;
      z-index: 1000;
      gap: 16px;
    }

    /* LEFT SIDE */
    .navbar-left {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .logo img {
      height: 50px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .logo img:hover {
      transform: scale(1.05);
    }


    .location {
      font-size: 13px;
      color: var(--text-dark);
      display:flex;
      flex-direction:column;
      gap:3px;
    }
    .location .small-text { font-size:11px; color: #666; }
    .location button {
      margin-left: 6px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 12px;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    .location button:hover {
      background: var(--primary-dark);
    }



    /* SEARCH BAR */
    .search-container {
      flex: 1;
      max-width: 550px;
      display: flex;
      align-items: center;
      background: var(--light);
      border-radius: 6px;
      overflow: hidden;
    }
    .search-container input {
      flex: 1;
      border: none;
      outline: none;
      padding: 10px 14px;
      font-size: 14px;
      background: none;
    }
    .search-container button {
      background: var(--secondary);
      border: none;
      padding: 10px 16px;
      cursor: pointer;
      color: white;
      transition: background 0.3s ease;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .search-container button:hover {
      background: var(--secondary-dark);
    }
    .search-container svg {
      width: 18px;
      height: 18px;
    }

    /* RIGHT SIDE */
    .navbar-right {
      display: flex;
      align-items: center;
      gap: 25px;
      position: relative; /* keep dropdowns positioned correctly */
    }




    /* ACCOUNT BUTTON */
    .account-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--border);
      padding: 8px 14px;
      border-radius: 6px;
      background: var(--white);
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .account-btn:hover {
      background: var(--light);
      border-color: var(--primary);
    }

    /* DROPDOWN BASE */
    .dropdown {
      z-index: 1000;
      position: absolute;
      top: 110%;
      right: 0;
      background: var(--white);
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      width: 240px;
      display: none;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--border);
    }
    .dropdown.active {
      display: flex;
      animation: dropdownFade 0.25s ease;
    }
    @keyframes dropdownFade {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ACCOUNT DROPDOWN */
    .account-dropdown button {
      background: var(--secondary);
      color: white;
      border: none;
      margin: 12px;
      padding: 10px;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
    }
    .account-dropdown button:hover {
      background: var(--secondary-dark);
    }
    .dropdown-item {
      padding: 12px 16px;
      font-size: 14px;
      color: var(--text-dark);
      cursor: pointer;
      border-bottom: 1px solid var(--border);
    }
    .dropdown-item:hover {
      background: var(--light);
    }

    /* ==============
       CATEGORY NAV WITH DROPDOWNS
       ============== */
    nav.categories-nav {
      background-color: var(--primary);
      padding: 0 20px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.04);
      position: relative;
    }
    .nav-container {
      max-width: 1200px;
      margin:0 auto;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:10px;
      height: 70px;
    }
    .nav-categories {
     
      display:flex;
      gap:6px;
      align-items:center;
      flex-wrap:wrap;
      position: relative;
    }
    .nav-categories a {
      color: white;
      text-decoration: none;
      padding: 12px 14px;
      display:inline-block;
      font-weight: 500;
      border-radius: 6px;
      position: relative;
      transition: all 0.3s ease;
    }
    .nav-categories a:hover{
      background: rgba(255,255,255,0.08);
    }
    .nav-categories a.has-dropdown::after {
      content: "▾";
      margin-left: 6px;
      font-size: 12px;
    }
    .nav-right-extra { margin-left:auto; color:white; font-size:13px }

   
/* Base */
.nav-categories {
  position: relative;
  display: flex;
  gap:40px;
  align-items: center;
  padding-left: 25px;
  margin-bottom: 0%;
}

.nav-categories a.has-dropdown {
  position: relative;
  cursor: pointer;
  padding: 8px 0;
  display: inline-block;
  
}

/* Dropdown */
.category-dropdown {
  background: #e8f5e9; 

  position: absolute;
  border-radius: 6px;
  top: 100%;
  left: 0px;
 /* background: #fff;  */
  border: 1px solid #ddd;
  width: 100%;
  padding: 10px 0;
 /* display: none;*/
 

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);

  transition: opacity .1s ease, transform .1s ease, visibility 0s linear .1s; 
  /* hide after 150ms delay */

  z-index: 1000;
}

.category-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
}

.category-dropdown a:hover {
  background: #f4f4f4;
}

/* ✅ Desktop Hover Mode */
@media (hover: hover) and (pointer: fine) {
  .nav-categories a.has-dropdown:hover + .category-dropdown,
  .category-dropdown:hover {
   /* display: block; */

     opacity: 1;
     visibility: visible;
     transform: translateY(0);
     transition: 0s;
    /*
    transition: opacity .15s ease, transform .15s ease, visibility 0s;*/
  

  }
}

/* ✅ Mobile Toggle Mode *//*
.category-dropdown.active {
  display: block;
}
*/



    /* ==============
       MOBILE NAV + SIDEBAR
       ============== */
    .mobile-nav {
      display: none;
      background-color: var(--white);
      color: var(--text-dark);
      padding: 10px 15px;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 1002;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    .mobile-nav .menu-icon { font-size: 20px; cursor:pointer; color: var(--primary); }
    .mobile-nav .mobile-logo { display:flex; align-items:center; gap:8px; font-weight:bold; font-size:18px; }
    .mobile-nav .mobile-actions { 
      display:flex; 
      align-items:center; 
      gap:14px; 
      position: relative; /* Added for dropdown positioning */
    }
    
    /* Mobile Search Bar - NOW IN MIDDLE */
    .mobile-search-container {
     /*  position: sticky;
        top: 50px;
        z-index: 1002;*/

      display: none;
      padding: 10px 15px;
      background: var(--white);
      border-bottom: 1px solid var(--border);
    }
    .mobile-search-container .search-container {
      max-width: 100%;
      display: flex;
    }
    .mobile-search-container input {
      flex: 1;
      border: none;
      outline: none;
      padding: 10px 14px;
      font-size: 14px;
      background: var(--light);
      border-radius: 6px 0 0 6px;
    }
    .mobile-search-container button {
      background: var(--secondary);
      border: none;
      padding: 10px 16px;
      cursor: pointer;
      color: white;
      border-radius: 0 6px 6px 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Mobile Wallet Section - NOW BELOW SEARCH */
    .mobile-wallet-section {
      /*
      top: 100px;
      z-index: 1002;*/

      position: sticky;
      display: none;
      background-color: var(--light);
      padding: 10px 15px;
      border-bottom: 1px solid var(--border);
      justify-content: space-between;
      align-items: center;
    }

    .wallet-balance {
      display: flex;
      flex-direction: column;
    }
    .wallet-label {
      font-size: 12px;
      color: #666;
    }
    .wallet-amount {
      font-weight: bold;
      font-size: 16px;
    }
    .mobile-cart-section {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }
    .mobile-cart-section .cart-count {
      position: static;
      width: 18px;
      height: 18px;
      font-size: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Mobile Account Button */
    .mobile-account-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: 1px solid var(--border);
      padding: 6px 10px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      position: relative; /* Added for dropdown positioning */
    }

    /* Mobile Dropdowns - FIXED POSITIONING */
    .mobile-dropdown {
      position: absolute;
      top: 100%; /* Position immediately below the account button */
      right: 0;
      background: var(--white);
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      width: 200px;
      display: none;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--border);
      z-index: 1001;
      margin-top: 5px; /* Small gap from the button */
    }
    .mobile-dropdown.active {
      display: flex;
      animation: dropdownFade 0.25s ease;
    }



    /* Sidebar */
    .sidebar-menu,.submenu  {
      position: fixed;
      top: 0;
      left: 0;
      width: 80%;
      max-width: 320px;
      height: 100%;
      background: white;
      z-index: 1003;
      transform: translateX(-100%);
      transition: transform 0.28s ease;
      overflow-y: auto;
      padding: 20px;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.12);
    }
    
.submenu {
  transform: translateX(-260px); /* hidden by default */
}

.submenu.show {
  transform: translateX(0);
}

#backBtn {
  border: none;
  background: none;
  font-size: 18px;
  margin-bottom: 10px;
  cursor: pointer;
}
.submenu ul li {
  border-bottom: 1px solid #e5e5e5;
}

.submenu ul li a {
  display: block;
  color: var(--dark, #333);
  text-decoration: none;
  padding: 12px 0;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.submenu ul li a:hover {
  color: #0a7cff; /* Highlight color */
  background: #f5f8ff;
}



    .sidebar-menu.active { transform: translateX(0); }
    .sidebar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
    .close-sidebar { background:none; border:none; font-size:20px; cursor:pointer; }
    .sidebar-nav { display:flex; flex-direction:column; gap:12px; }
    .sidebar-nav a { text-decoration:none; color:var(--dark); padding:10px 0; border-bottom:1px solid #f0f0f0; }
    .sidebar-overlay {
      position: fixed;
      top:0; left:0; width:100%; height:100%;
      background: rgba(0,0,0,0.4);
      z-index: 1002;
      display:none;
    }
    .sidebar-overlay.active { display:block; }

    /* ==============
       UTILITY / RESPONSIVE
       ============== */
    .top-bar, nav.categories-nav { width:100%; }
    .top-bar .top-bar-content, .nav-container { width:100%; max-width:1200px; }

    @media (max-width: 980px) {
      .navbar { padding:12px 20px; gap:12px; }
      .search-container { max-width: 360px; }
      .nav-categories a { padding: 10px 12px; font-size:14px; }
    }
    @media (max-width: 780px) {
      /* hide desktop nav, show mobile */
      .navbar-left .logo img { height:42px; }
      .search-container { display:none; }
      .navbar-right { gap:12px; }
      .top-bar .top-bar-links { display:none; }
      nav.categories-nav { display:none; }

      .mobile-nav { display:flex; }
      .mobile-search-container { display:block; } /* Search first */
      .mobile-wallet-section { display:flex; } /* Wallet/cart second */
      .navbar { display:none; } /* keep original navbar hidden on small screens; mobile-nav + sidebar used instead */

    }
    @media (min-width: 781px) {
      .sidebar-menu, .sidebar-overlay, .mobile-nav, .mobile-wallet-section, .mobile-search-container { display:none !important; }
    }

    /* small niceties */
    a { color: inherit; }
    button:focus { outline: 2px solid rgba(0,123,255,0.14); }
  


      /* Main Content */
        .container {
            max-width: 1380px;
            margin: 20px auto;
            padding: 0 20px;
            display: flex;
            gap: 20px;
            margin-top: 0%;
            margin-bottom: 0%;
        }

        /* Sidebar Filter */
        .sidebar {
            width: 250px;
           /* background: white;*/
            background: #e8f5e9; 
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            height: fit-content;
        }

        .filter-section {
            margin-bottom: 25px;
        }

        .filter-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            color: var(--primary);
        }

        .filter-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .filter-options label {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .filter-options input {
            margin-right: 10px;
        }

        .price-range {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }

        .price-inputs {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .price-inputs input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .apply-filters {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            font-weight: 500;
            margin-top: 10px;
        }

        /* Products Section */
        .products-section {
            flex-grow: 1;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-header h2 {
           /* color: var(--primary);*/
            color: whitesmoke;
        }

        .sort-options select {
            padding: 8px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
       
         @media only screen and (max-width: 318px) {
             .section-header h2 {
              font-weight: 200; /* or 400 for normal weight */
                font-size: 0.5rem; /* adjust as needed */
                }
               }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
        }

        .product-card {
            background: white; 
           
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .product-image {
            height: 100px;
            background-color: #f9f9f9;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px;
        }

        .product-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .product-info {
            padding: 10px;
        }

        .product-category {
            color: var(--gray);
            font-size: 10px;
            text-transform: uppercase;
            margin-bottom: 5px;
        }

        .product-title {
            font-weight: 500;
            margin-bottom: 6px;
            height: 24px;
            overflow: hidden;
        }

        .product-price {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .current-price {
            font-weight: 600;
            font-size: 14px;
            color: var(--primary);
        }

        .original-price {
            text-decoration: line-through;
            color: var(--gray);
            font-size: 10px;
        }

        .discount {
            background: var(--success);
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 10px;
        }

        .add-to-cart {
            background: var(--primary);
            color: white;
            border: none;
            width: 100%;
            padding: 8px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;
        }

        .add-to-cart:hover {
            background: #c46c14;
        }

     @media (max-width: 318px) {
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px; /* smaller gap fits better */
    }

    .product-card {
        border-radius: 6px;
    }

    .product-image {
        height: 90px;
    }

    .product-title {
        font-size: 12px;
        height: 20px;
    }

    .current-price {
        font-size: 13px;
    }

    .add-to-cart {
        font-size: 12px;
        padding: 6px;
    }
}





        /* Filter and Sort Bar for Mobile */
        .filter-sort-bar {
            display: none;
            background: #e8f5e9; 
           /* background: white; */
            padding: 12px 15px;
            border-bottom: 1px solid var(--border);
            justify-content: space-between;
            align-items: center;
        }

        .filter-btn, .sort-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            background: none;
            border: none;
            color: var(--dark);
        }

        .product-count {
            font-size: 14px;
            color: var(--gray);
        }


         /* Filter Modal for Mobile */
        .filter-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: flex-end;
            z-index: 1000;
        }

        .filter-content {
            width: 80%;
            background: white;
            height: 100%;
            padding: 20px;
            overflow-y: auto;
        }

        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }

        .filter-title {
            font-size: 18px;
            font-weight: 600;
        }

        .close-filter {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--gray);
        }

        /* Sort Modal for Mobile */
        .sort-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .sort-content {
            width: 80%;
            max-width: 300px;
            background: white;
            border-radius: 8px;
            padding: 20px;
        }

        .sort-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }

        .sort-title {
            font-size: 18px;
            font-weight: 600;
        }

        .close-sort {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--gray);
        }

        .sort-options-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        
       
        .sort-option {
            background: #e8f5e9; 
            display: flex;
            align-items: center;
            padding: 10px 0;
            cursor: pointer;
        }

        .sort-option input {
            margin-right: 10px;
        }

        .apply-sort {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            width: 100%;
            font-weight: 500;
            margin-top: 20px;
        }

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

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                display: none;
            }
            
            .main-header {
                display: none;
            }
            
            .mobile-nav {
                display: flex;
            }
            
            .location {
                display: flex;
            }
            
            .filter-sort-bar {
                display: flex;
            }
            
            .bottom-nav {
                display: flex;
            }
            
            .nav-container {
                display: none;
            }
            
            .top-bar {
                display: none;
            }
            
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 500px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
            
            .header-actions div span {
                display: none;
            }
        }

        @media (max-width: 350px) {
            .products-grid {
                grid-template-columns: 1fr;
            }
        }
    
    /* Prime Banner */
.prime-banner {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}
.prime-banner h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.prime-banner p {
    font-size: 14px;
    margin: 12px 0 0 0;
    opacity: 0.9;
}
.prime-banner button {
    background-color: #ffd814;
    color: #111;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.prime-banner button:hover {
    background-color: #f7ca00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Newsletter Section */
.newsletter-section {
    background: #e8f5e9; 
   /* background: linear-gradient(135deg, var(--light), #e8f5e8); */
    padding: 50px 20px;
    border-top: 1px solid var(--border);
}
.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.newsletter-brand {
    flex: 1;
    min-width: 250px;
}
.newsletter-brand h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.newsletter-brand p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.newsletter-form {
    flex: 2;
   /* min-width: 350px;*/
}
.newsletter-form h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}
.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.email-input {
    flex: 1;
    min-width: 280px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.email-input:focus {
    border-color: var(--primary);
    outline: none;
}
.subscribe-btn {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.subscribe-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}
.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}
.legal-checkbox input {
    margin-top: 4px;
}
.legal-checkbox label {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}
.legal-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}
.legal-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.legal-text a:hover {
    text-decoration: underline;
}



/* Ultra-small phones (318px–350px) */
@media (max-width: 318px) {

    /* Make the whole newsletter section responsive */
    .newsletter,
    .newsletter-container {
        padding: 10px !important;
    }

     .newsletter-form {
        width: 318px;
        }
    /* Make email input shrink correctly */
    .newsletter input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* Subscribe button responds to small width */
    .newsletter button {
        width: 100% !important;
        padding: 10px !important;
        margin-top: 10px;
        font-size: 15px;
        box-sizing: border-box;
    }

    /* Title text becomes smaller to fit screen */
    .newsletter h2,
    .newsletter-title {
        font-size: 14px !important;
        line-height: 1.3;
    }

    /* Subtitle fits without stretching */
    .newsletter p {
        font-size: 10px !important;
        line-height: 1.4;
    }

    /* Checkbox + label wrap properly */
    .newsletter .terms,
    .newsletter label {
        font-size: 12px;
        line-height: 1.3;
        display: flex;
        align-items: flex-start;
        gap: 6px;
        flex-wrap: wrap;
    }
}


/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 50px 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.footer-left, .footer-middle, .footer-right {
    flex: 1;
    min-width: 280px;
}
.footer h3, .footer h4 {
    color: #f7a430;
    margin-bottom: 15px;
    font-weight: 600;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    margin: 8px 0;
}
.footer ul a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}
.footer ul a:hover {
    color: var(--white);
    text-decoration: underline;
    padding-left: 5px;
}
.download p {
    margin-top: 20px;
    font-weight: 600;
    color: #f7a430;
}
.store-buttons img {
    height: 45px;
    margin: 8px 8px 0 0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.store-buttons img:hover {
    transform: scale(1.05);
}
.rewards img {
    height: 70px;
    background: var(--white);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 12px;
}
.rewards p {
    font-weight: 600;
    color: #f7a430;
}
.contact p {
    margin: 8px 0;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}
.social .icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.social .icons a {
    color: var(--white);
    font-size: 22px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.social .icons a:hover {
    color: var(--secondary);
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}
.payments .methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.payments .methods img {
    height: 35px;
    background: var(--white);
    border-radius: 6px;
    padding: 4px;
    transition: transform 0.3s ease;
}
.payments .methods img:hover {
    transform: scale(1.1);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}



/* 318px ULTRA-SMALL PHONES FIX */
@media (max-width: 350px) {

    /* REMOVE HORIZONTAL SCROLL */
    body, html {
        overflow-x: hidden !important;
    }

    /* FIX FOOTER WIDTH */
    .footer {
        padding: 20px !important;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px !important;
    }

    .footer-left,
    .footer-middle,
    .footer-right {
        min-width: 100% !important;
    }

    .store-buttons img,
    .payments .methods img {
        width: 100% !important;
        height: auto !important;
    }

    /* SOCIAL ICONS */
    .social .icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .social .icons a {
        font-size: 18px !important;
        padding: 6px !important;
    }

    /* PAYMENT ICONS */
    .payments .methods {
        justify-content: center;
    }

    .payments .methods img {
        width: 70px !important;
        height: auto !important;
    }

    /* PRODUCTS — FORCE 2 PER ROW */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .product-card {
        border-radius: 6px;
    }

    .product-image {
        height: 90px !important;
    }

    .product-title {
        font-size: 12px !important;
        height: 20px !important;
    }

    .add-to-cart {
        padding: 6px !important;
        font-size: 12px !important;
    }
}


/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245,130,32,0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(245,130,32,0.6);
}
.chat-btn.rotate {
    transform: rotate(180deg) scale(1.1);
}
/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 340px;
    max-height: 450px;
    background: #e8f5e9;
    /*background: var(--white);*/
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 999;
    border: 1px solid var(--border);
}
.chat-panel.active {
    display: flex;
    animation: chatSlideUp 0.3s ease;
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
}
.chat-header span {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 500;
}
.chat-content {
    padding: 15px 20px;
   /* background: var(--white);*/
    background: #e8f5e9;
    flex: 1;
    overflow-y: auto;
}
.section {
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 12px 0;
    padding: 15px 18px;
    transition: transform 0.3s ease;
}
.section:hover {
    transform: translateY(-2px);
}
.section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}
.section p {
    margin: 8px 0;
    color: var(--text-dark);
    font-size: 14px;
}
.faq-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    padding: 12px 15px;
    margin: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}
.faq-item:hover {
    background: var(--light);
    transform: translateX(5px);
    border-color: var(--primary);
}
.faq-item .icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    margin-right: 12px;
    font-weight: 600;
}
.faq-item .text {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}
.icon.e { background: var(--success); }
.icon.p { background: var(--secondary); }
.icon.o { background: var(--accent); }
.chat-msg {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
}
.chat-msg.user {
  background: var(--light);
  align-self: flex-end;
  margin-left: auto;
  color: var(--text-dark);
}
.chat-msg.bot {
  background: var(--primary);
  color: white;
  align-self: flex-start;
}



@media (max-width: 320px) {

    /* Chat Button */
    .chat-btn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 24px;
        box-shadow: 0 4px 15px rgba(245,130,32,0.35);
    }

    /* Chat Panel */
    .chat-panel {
        bottom: 80px;
        right: 10px;
        width: 95%;            /* fits the 318px screen */
        max-height: 380px;     /* prevents overflow */
        border-radius: 12px;
    }

    .chat-header {
        padding: 15px;
        font-size: 16px;
    }

    .chat-header span {
        font-size: 12px;
    }

    .chat-content {
        padding: 12px 14px;
    }

    /* Sections inside chat */
    .section {
        padding: 12px 15px;
        margin: 10px 0;
    }

    .section h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .section p {
        font-size: 13px;
    }

    /* FAQ Items */
    .faq-item {
        padding: 10px 12px;
        margin: 6px 0;
    }

    .faq-item .icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 10px;
        line-height: 24px;
    }

    .faq-item .text {
        font-size: 13px;
    }

    /* Messages */
    .chat-msg {
        font-size: 13px;
        padding: 8px 10px;
        max-width: 85%;
    }
}
