/* Google Font Import - Mulish */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700;800;900&display=swap');

/* Global font family for entire website - EXCEPT Font Awesome icons */
* {
  font-family: 'Mulish', sans-serif !important;
}

/* Preserve Font Awesome icon fonts */
.fa,
.fas,
.far,
.fal,
.fab,
.fad,
.fass,
.fasr,
.fatl,
.fatr,
[class^="fa-"],
[class*=" fa-"],
.fa:before,
.fas:before,
.far:before,
.fal:before,
.fab:before,
.fad:before,
.fass:before,
.fasr:before,
.fatl:before,
.fatr:before,
[class^="fa-"]:before,
[class*=" fa-"]:before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
}

body {
  margin: 0;
  font-family: 'Mulish', sans-serif;
}

.logo-wrapper {
  max-height: 75px;
}

.logo {
  height: 60px;
  max-height: 75px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


/*------------ Top Header csss ---------------------------------------------------------------------------------------------------*/




.header2 {
  background-color: #16BAE4;
  height: 35px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 0 3px #000;
  position: relative;
  overflow: visible;
  z-index: 1400;
}

.header2 a:hover {
  text-decoration: none;
  color: #000;
}

/* Icon styling */
.header2 .mobile-support-cart i {
  font-size: 18px;
  color: #fff;
  margin-right: -10px;
  margin-top: 3px;
  margin-left: 5px;
}

/* Text (e.g., "Support") spacing */
.header2 .mobile-support-cart span {

  padding-right: 20px;
  font-weight: 500;
  color: #fff;
}


.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  padding: 0 4px;
  /* Adjust spacing around text */
}

.nav-links span {
  color: white;
  font-size: 13px;
  padding: 0 2px;
  /* Tight space around '|' */
}








/*----------------------------prodct section-------------------------------*/

/* Grid layout: 4-4-2 structure */

/* Responsive for tablets and phones */
@media (max-width: 992px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr;
  }
}








/*---------------------------------------------------------------------------------------------------------------*/

/*-------------------------------------footer seaction --------------------------------------*/
.footer-column ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: #ccc;
  /* Optional: subtle hover color change */
  text-decoration: none;
}

.desktop-footer {
  position: relative;
  color: white;
  padding: 40px 30px 20px;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('asset/images/footer_image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(34, 52, 89, 0.5);
  z-index: 2;
}

.footer-container {
  position: relative;
  z-index: 3;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 40px;

}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.footer-column h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 2px;
  font-size: 14px;
  color: #ccc;
  cursor: pointer;
}

.footer-column ul li:hover {
  text-decoration: none;
  color: white;
}

.footer-column.social .icons i {
  font-size: 16px;
  margin-right: 12px;
  color: #ccc;
  cursor: pointer;
}

.footer-column.social .icons i:hover {
  color: white;
}

.footer-bottom {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #ccc;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .desktop-footer {
    padding: 20px 30px;

  }

  .footer-container {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
  }

  .footer-column {
    min-width: 100%;
    flex: none;
  }

  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-column ul li {
    font-size: 16px;
  }

  .footer-column.social .icons i {
    font-size: 20px;
    margin-right: 15px;
  }

  .footer-bottom {
    font-size: 16px;
    margin-top: 20px;
  }
}



/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FF7700;
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 18px;
  z-index: 1000;
  transition: opacity 0.3s;
}

.scroll-to-top:hover {
  opacity: 0.85;
}




/*---------------------------------------------------------------------------------------------------------------*/


/* Nav Bar 1st Css */

.logo {
  height: 60px;
  width: auto;
  cursor: pointer;
}

.navbar:first-of-type {
  position: relative;
  z-index: 1050;
  /* Ensure first navbar is above second */
}

.navbar .dropdown-menu {
  position: absolute;
  z-index: 1060;
  /* Dropdown above both navbars */
}

.navbar form .btn-primary {
  background-color: #0288d1;
  border: none;
}

.navbar form .form-control {
  border-left: none;
}

.badge {
  font-size: 0.6rem;
}


/* Mobile All button styling */
.dropdown-mobile .btn {
  background-color: #FF7700;
  color: #fff;
  /* White text */
  border: none;
}

#categoryDropdownMobile {
  padding-right: 5px !important;
}

.dropdown-mobile {
  padding-right: 5px !important;
}

.dropdown-mobile .btn:hover {
  background-color: #88be45;
}

/* Custom border-radius on 3 sides */
.dropdown-desktop .btn,
.dropdown-mobile .btn,
.input-group .btn,
.input-group .form-control {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6;
  /* no rounding */
}


/* navbar.css */

.navbar {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 0 0.5px !important;
  overflow: visible !important;
  z-index: 1200 !important;
}

.navbar .container-fluid,
.navbar .collapse,
.navbar-nav {
  overflow: visible !important;
  position: relative;
  /*z-index: 1200;*/
}

.navbar .logo {
  max-height: 75px;
}

.input-group .dropdown-toggle {
  background-color: #FF7700;
  border: 1px solid #ced4da;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #FF7700;
  color: white;
}

@media (max-width: 991.98px) {
  .navbar .logo-wrapper {
    width: 100%;
    /* take full width */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navbar .logo {
    max-height: 60px;
  }
}

/*--------------------------------------2nd navbar-----------------------------------------------------*/


/* Mobile wishlist count badge positioning */
.mobile-nav-link[href*="wishlist.php"] {
  position: relative;
}

/* Mobile only styles for wishlist count badge */
@media (max-width: 991.98px) {

  .mobile-nav-link[href*="wishlist.php"] .wishlist-count-badge,
  .mobile-nav-link[href*="wishlist.php"] .badge {
    position: absolute !important;
    top: 0px !important;
    right: 8px !important;
    transform: translate(50%, -50%) !important;
    z-index: 10;
    background-color: #FF7700 !important;
    font-size: 8px !important;
    min-width: 12px !important;
    height: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Override any conflicting styles */
  .mobile-nav-link[href*="wishlist.php"] .wishlist-count-badge {
    top: 0px !important;
    right: 8px !important;
    min-width: 12px !important;
    height: 12px !important;
    font-size: 8px !important;
  }
}

/* Persistent active state for wishlist icon across page loads */
.wishlist-icon.active-wishlist {
  color: #FF7700 !important;
}

/* Hide scroll on desktop */
@media (min-width: 992px) {
  .category-scroll-container {
    display: none !important;
  }

  /* Hide mobile-only icon group on desktop */
  .mobile-header-icons-wrapper {
    display: none !important;
  }
}

/* Hide desktop-only icon group on mobile */
@media (max-width: 991.98px) {
  .navbar .d-none.d-lg-flex {
    display: none !important;
  }
}

/* Tab view styles with same gap */
.tab-view {
  display: flex;
  gap: 10px;
  /* same gap as category */
}

.tab-item {
  /* Example tab item style */
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;

  /* To keep consistent no decoration */
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

.scroll-wrapper {
  display: flex;
  gap: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.category-item {
  flex: 0 0 auto;
  min-width: 70px;
  /* Adjust as needed */
}

/* ========= Search Bar Fix =========
   Ensure the search input fills remaining space in the input-group row.
   The .input-group in header uses Bootstrap flex — we lock it to nowrap
   and give the text input flex:1 so it stretches between dropdown and button.
   ================================= */
.search-bar-desktop .input-group {
  flex-wrap: nowrap !important;
  align-items: center;
}

.search-bar-desktop .mobile-search-input,
.search-bar-desktop input[type="search"],
.search-bar-desktop .form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}



.second-navbar {
  position: relative;
  z-index: 1000;
}

.navbar-nav {
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  background: #fff;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0px;


}

.navbar-nav a:hover {
  text-decoration: none;
  color: rgb(230, 22, 22);
  transform: scale(1.05);

}


/* Hide second navbar by default */
.second-navbar {
  display: none;
}

/* Show only on large screens (desktop and up) */
@media (min-width: 992px) {
  .second-navbar {
    display: block;
  }

  .category-navbar {
    position: sticky;
    /* top: 0; */
    z-index: 1048;
    /* Keeps it below primary nav (z-index ~1050) */
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 0;
    /* Remove default padding */
  }

  .category-navbar .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    /* Better spacing between items */
    position: relative;
    z-index: 1049;
  }

  .category-navbar .nav-link {
    padding: 3px 1rem;
    font-weight: bold;
    font-size: 13px;
    color: #222;
    transition: color 0.2s ease-in-out, text-decoration 0.2s;
    white-space: nowrap;
    position: relative;
  }

  .category-navbar .nav-link:hover {

    text-decoration: none;
    color: red;
  }

}

.nav-btn.prev,
.nav-btn.next {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Hide scrollbar for WebKit browsers */
.category-scroll-container::-webkit-scrollbar,
.scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox */
.category-scroll-container,
.scroll-wrapper {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}


/*----------------------------z--------------------------------------------------------------------------------*/













.section-header {
  background-color: #00b4e0;
  color: white;
  padding: 20px 30px;
  font-size: 26px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
  width: 100%;
  /* Fixed width to match screenshot */
  border: 1px solid #ccc;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;

  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto 8px auto;
  padding-bottom: 6px !important;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(29, 29, 30, 0.5);
}

.discount-banner {
  background-color: #FF7700;
  color: white;
  text-align: center;
  width: 100%;
  padding: 10px 14px;
  font-weight: bold;
  font-size: 14px;
}

.discount-banner1 {
  background-color: #FF7700;
  color: white;
  text-align: center;
  width: 100%;
  padding: 7px 10px;
  font-weight: bold;
  font-size: 14px;

}

@media (min-width: 546px) {
  .discount-banner1 {
    background-color: #FF7700;
    color: white;
    text-align: center;
    width: 100%;
    padding: 7px 10px;
    font-weight: bold;
    font-size: 14px;

  }
}

@media (min-width: 996px) {
  .discount-banner1 {
    background-color: #FF7700;
    color: white;
    text-align: center;
    width: 100%;
    padding: 7px 10px;
    font-weight: bold;
    font-size: 14px;


  }
}


.product-image {
  text-align: center;
  padding: 10px 20px;
  background: white;
}

.product-image img {
  max-width: 100%;
  max-height: 155px;
  height: auto;
}

.product-details {
  text-align: center;
  padding: 10px;
  width: 100%;
}

.product-details h3 {
  margin: 2px 2px !important;
  font-size: 15px;
  font-weight: bold;
  text-transform: capitalize;
}

/* Align price buttons + wishlist in a row */
.price-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

/* MRP and Pay buttons */
.price-buttons .mrp,
.price-buttons .pay {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: default;
  font-size: 13px;
}

.mrp {
  border: 1px solid #FF7700 !important;
  color: #FF7700 !important;
  background: #038dc38e !important;
  text-decoration: line-through;
}

.pay {
  border: 1px solid #FF7700 !important;
  color: #000 !important;
  background: none !important;
}

/* Wishlist inside price-buttons */
.wishlist {
  background: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.wishlist input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.heart-icon {
  font-size: 18px;
  pointer-events: none;
  color: #fff;
  /* default color */
  transition: color 0.3s ease;
}

input[type="checkbox"]:checked+.heart-icon {
  color: red;
}




.pagination {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin-top: 1rem;
  margin-bottom: 10px;

}

.pagination a {
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: #f0f0f0;
}

.pagination .active {
  background-color: #e6e3f1;
  color: #6c5ce7;
  border-color: #aaa;
}

.wishlist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.wishlist-modal-content {
  background: #fff;
  padding: 30px 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

#wishlist-icon {
  font-size: 40px;
  color: #e91e63;
  margin-bottom: 10px;
}

#wishlist-message {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
}

.wishlist-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wishlist-btn {
  padding: 10px 20px;
  background: #FF7700;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.wishlist-btn:hover {
  background-color: #093b15;
}

.wishlist-btn.close {
  background: #ccc;
  color: #000;
}

.wishlist-btn.close:hover {
  background: #aaa;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/*-------------------------------------------------------------*/


/* Sticky Header Implementation */
.header2 {
  background-color: #16BAE4;
  height: 35px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 0 3px #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 0 0.5px !important;
  position: sticky;
  top: 35px;
  z-index: 999;
  width: 100%;
}

.category-scroll-container {
  display: block;
  background-color: #fff;
  border-top: none;
  border-bottom: none;
  position: sticky;
  top: 91px;
  z-index: 998;
  width: 100%;
  overflow: hidden;
  max-width: 100vw;
}

.category-scroll-container .scroll-wrapper {
  display: flex;
  gap: 1px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  padding: 1px 1px;
  max-width: 100%;
  transition: scroll-left 0.02s ease-out;
  will-change: scroll-left;
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.category-scroll-container .scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.category-scroll-container .scroll-wrapper {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-navbar {
  position: sticky;
  top: 91px;
  z-index: 997;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 100%;
}

/* Mobile responsive sticky positioning */
@media (max-width: 991.98px) {
  .navbar {
    top: 0;
  }

  .category-scroll-container {
    top: 130px;
  }

  .category-navbar {
    top: 83px;
  }
}

/* Ensure body has proper padding to account for sticky header */
body {
  padding-top: 0 !important;
}

/* Floating cart positioning */
#floatingCartBtn {
  z-index: 1001;
  background: white !important;
  border: 3px solid #FF7700 !important;
  position: fixed !important;
  bottom: 90px !important;
  right: 17px !important;
  left: auto !important;
  top: auto !important;
  cursor: pointer !important;
  touch-action: none !important;
  user-select: none !important;
  transform: none !important;
}

/* Tablet View */
@media (max-width: 1024px) {
  #floatingCartBtn {
    bottom: 40px !important;
    right: 25px !important;
  }
}

/* Mobile View */
@media (max-width: 767px) {
  #floatingCartBtn {
    bottom: 20px !important;
    right: 15px !important;
  }
}

#floatingCartBtn .floating-cart-icon {
  width: 56px !important;
  /* Reduced by ~4px from assumed ~30px */
  height: auto !important;
}

/* Mobile View */
@media (max-width: 480px) {
  #floatingCartBtn .floating-cart-icon {
    width: 32px !important;
    height: auto !important;
  }
}

/* Floating cart count color */
#floatingCartCount {
  color: #FF7700 !important;
}

/* Pincode icon hover: black → green */
.pincode-check-link:hover .pincode-icon-black {
  opacity: 0 !important;
}

.pincode-check-link:hover .pincode-icon-green {
  opacity: 1 !important;
}

#floatingCartPanel.fixed-panel {
  z-index: 1002;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .header2 {
    height: auto;
    min-height: 35px;
    padding: 5px 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
  }

  .nav-links a {
    font-size: 11px;
    padding: 2px 3px;
  }

  .nav-links span {
    font-size: 11px;
    padding: 0 1px;
  }

  .navbar {
    padding: 0;
    flex-wrap: wrap;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
  }

  /* Logo and cart row */
  .navbar .logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 2px; */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 6px;
  }

  .navbar .logo {
    max-height: 60px;
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
  }

  /* Hide customer support on mobile, show only cart icon */
  .customer-support-section {
    display: none !important;
  }

  /* Mobile navigation icons */
  .mobile-nav-icons {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .mobile-nav-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-nav-link i {
    font-size: 24px !important;
  }

  /* Account text styling */
  .mobile-nav-link .user-welcome-text,
  .mobile-nav-link .user-signin-text {
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: #333 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  /* Ensure sign-in text is fully visible */
  .mobile-nav-link .user-signin-text {
    min-width: 40px !important;
    text-align: left !important;
  }

  /* Cart icon consistency */
  .cart-link {
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .cart-icon {
    width: 35px !important;
    height: 25px !important;
  }

  /* Ensure account text is visible on medium mobile */
  .mobile-nav-link .user-welcome-text,
  .mobile-nav-link .user-signin-text {
    display: block !important;
  }

  /* Show cart icon on mobile */
  .cart-section {
    display: flex !important;
    position: static;
    flex: 0 0 auto;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);*/
    min-width: 45px;
    justify-content: center;
    align-items: center;
    /*border: 1px solid #eee;*/
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
  }

  .cart-section a {
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
  }

  .cart-section i {
    font-size: 1.2rem;
    margin-right: 5px;
  }

  /* Search bar row */
  .navbar form {
    width: 100%;
    margin: 0;
    order: 2;
    min-width: 0;
    max-width: 100%;
    padding: 0 0px 8px 0px;
    box-sizing: border-box;
  }

  .navbar form .input-group {
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    display: flex;
    margin: 0;
    border-collapse: collapse;
    font-size: 0;
    letter-spacing: -1px;
  }

  .navbar form .input-group>* {
    font-size: 14px;
  }

  .navbar form .input-group>* {
    margin: 0;
    border-radius: 0;
  }

  .navbar form .input-group .dropdown-mobile {
    margin-right: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .navbar form .input-group .form-control {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .navbar form .input-group .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  .navbar form .input-group>* {
    flex: 1;
    min-width: 0;
  }

  .navbar form .form-control {
    font-size: 14px;
    padding: 8px 12px;
    flex: 1;
    min-width: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
  }

  .navbar form .btn {
    padding: 8px 12px;
    font-size: 14px;
    flex-shrink: 0;
    border-radius: 0;
    height: 45px;
    /* width: 42px;
    min-width: 42px;
    max-width: 42px; */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Connect dropdown button with search input */
  .navbar form .dropdown-toggle {
    border-radius: 0;
    border-right: none;
    flex-shrink: 0;
  }

  /* Ensure seamless connection between search elements */
  .navbar form .input-group .dropdown-mobile .btn {
    border-right: none !important;
    margin-right: 0 !important;
  }

  .navbar form .input-group .form-control {
    border-left: none !important;
    border-right: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .navbar form .input-group .btn {
    border-left: none !important;
    margin-left: 0 !important;
  }

  /* Force connection by removing any gaps */
  .navbar form .input-group>* {
    margin: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Target Bootstrap input-group elements specifically */
  .navbar form .input-group .dropdown-mobile,
  .navbar form .input-group .form-control,
  .navbar form .input-group .btn {
    margin: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Direct targeting of mobile dropdown and search input */
  .dropdown-mobile {
    margin-right: 0 !important;
    border-right: none !important;
  }

  .mobile-search-input {
    margin-left: 0 !important;
    border-left: none !important;
    /* width: calc(100% + 10px) !important; */
  }

  /* Force connection using specific class targeting */
  .navbar form .input-group .dropdown-mobile .btn {
    border-right: none !important;
    margin-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .navbar form .input-group .mobile-search-input {
    border-left: none !important;
    margin-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    width: calc(100% + 8px) !important;
    margin-left: -4px !important;
  }

  /* Force connection by targeting the specific gap */
  .navbar form .input-group .dropdown-mobile {
    margin-right: 0 !important;
  }

  .navbar form .input-group .form-control {
    margin-left: -1px !important;
    width: 100% !important;
  }

  /* Ultra-aggressive gap elimination */
  .navbar form .input-group .dropdown-mobile .btn {
    margin-right: 0 !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  .navbar form .input-group .form-control {
    margin-left: -1px !important;
    border-left: none !important;
    box-shadow: none !important;
  }

  /* Override any potential Bootstrap spacing */
  .input-group>.dropdown-mobile {
    margin-right: 0px !important;
  }

  .input-group>.form-control {
    /* margin-left: -2px !important; */
  }

  /* Force remove border radius from mobile dropdown button */
  .navbar form .input-group .dropdown-mobile .btn {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
    margin-right: 0 !important;
    box-shadow: none !important;
  }

  /* Force remove border radius from search input */
  .navbar form .input-group .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none !important;
    margin-left: -3px !important;
    box-shadow: none !important;
  }

  /* Additional aggressive fix for the gap */
  .navbar form .input-group .dropdown-mobile {
    position: relative;
    z-index: 3;
  }

  .navbar form .input-group .form-control {
    position: relative;
    z-index: 2;
    /* margin-left: -4px !important; */
  }

  /* Force the search input to overlap the dropdown button */
  .navbar form .input-group .form-control:focus {
    margin-left: -4px !important;
    border-left: none !important;
  }

  .navbar form .input-group .dropdown-mobile {
    margin-right: 0px !important;
    border-right: none !important;
  }

  .navbar form .input-group .form-control {
    margin-left: -1px !important;
    margin-right: -1px !important;
    border-left: none !important;
    border-right: none !important;
  }

  .navbar form .input-group .btn {
    margin-left: -1px !important;
    border-left: none !important;
  }

  /* Override any Bootstrap default spacing */
  .navbar form .input-group .dropdown-mobile .btn {
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    box-shadow: none !important;
  }

  .navbar form .input-group .form-control {
    border-left: none !important;
    margin-left: 0 !important;
    padding-left: 12px !important;
    box-shadow: none !important;
  }

  /* Force absolute connection by overlapping elements */
  .navbar form .input-group .dropdown-mobile {
    position: relative;
    z-index: 2;
    margin-right: 0px !important;
    border-right: none !important;
  }

  .navbar form .input-group .form-control {
    position: relative;
    z-index: 1;
    margin-left: -4px !important;
    border-left: none !important;
  }

  /* Additional fix for the gap */
  .navbar form .input-group .dropdown-mobile .btn {
    border-right: none !important;
    margin-right: 0 !important;
    position: relative;
    z-index: 2;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  /* Target the specific dropdown-mobile div */
  .dropdown-mobile {
    margin-right: 0px !important;
    border-right: none !important;
  }

  .mx-4 {
    margin-right: 0px !important;
    margin-left: 0px !important;
  }

  .dropdown-mobile .btn {
    border-right: none !important;
    margin-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Force the search input to connect with the dropdown */
  .navbar form .input-group .form-control {
    margin-left: 0 !important;
    border-left: none !important;
    box-shadow: none !important;
    width: calc(100% + 2px) !important;
  }

  /* Direct targeting of mobile search input for connection */
  .mobile-search-input {
    width: calc(100% + 12px) !important;
    margin-left: -6px !important;
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    position: relative;
    z-index: 2;
  }

  /* Force the input to extend into the dropdown area */
  .navbar form .input-group .mobile-search-input {
    position: relative;
    z-index: 2;
    width: calc(100% + 15px) !important;
    margin-left: -8px !important;
  }

  /* Controlled connection approach */
  .navbar form .input-group {
    position: relative;
  }

  .navbar form .input-group .dropdown-mobile {
    position: relative;
    z-index: 1;
  }

  .navbar form .input-group .mobile-search-input {
    position: relative;
    left: -4px;
    width: calc(100% + 6px) !important;
    z-index: 2;
  }

  /* Target by ID for controlled specificity */
  #headerSearchInput {
    /* width: calc(100% + 10px) !important; */
    /* margin-left: -5px !important; */
    width: 100% !important;
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    position: relative;
    z-index: 2;
  }

  /* Controlled connection using specific selector */
  .navbar form .input-group #headerSearchInput.mobile-search-input {
    position: relative;
    width: 100% !important;
    z-index: 2;
  }

  /* Nuclear option: Use transform to force connection */
  .navbar form .input-group .dropdown-mobile {
    transform: translateX(0) !important;
    margin-right: 0 !important;
    border-right: none !important;
  }

  .navbar form .input-group .form-control {
    transform: translateX(0) !important;
    margin-left: 0 !important;
    border-left: none !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  /* Force absolute positioning to eliminate gaps */
  .navbar form .input-group {
    position: relative;
  }

  .navbar form .input-group .dropdown-mobile {
    position: relative;
    z-index: 10;
  }

  .navbar form .input-group .form-control {
    position: relative;
    z-index: 9;
    left: 0;
  }

  /* Ultra-aggressive gap elimination using CSS Grid */
  .navbar form .input-group {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 0 !important;
  }

  .navbar form .input-group .dropdown-mobile {
    grid-column: 1;
    margin: 0 !important;
  }

  .navbar form .input-group .mobile-search-input {
    grid-column: 2;
    margin: 0 !important;
    width: 100% !important;
    margin-left: -3px !important;
  }

  .navbar form .input-group .mobile-search-btn {
    grid-column: 3;
    margin: 0 !important;
  }

  /* Ensure dropdown button and search input are connected */
  .navbar form .dropdown-desktop,
  .navbar form .dropdown-mobile {
    flex-shrink: 0;
  }

  /* Remove any gaps in the input group */
  .navbar form .input-group>*:not(:last-child) {
    margin-right: 0;
  }

  .navbar form .input-group>*:not(:first-child) {
    margin-left: 0;
  }

  /* Ensure search input takes full width */
  .navbar form .form-control {
    flex: 1;
    min-width: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
  }

  /* Ensure dropdown button is properly sized */
  .navbar form .dropdown-desktop,
  .navbar form .dropdown-mobile {
    flex-shrink: 0;
    /* min-width: 80px !important; */
  }

  /* Old rule removed - using new cart-section class instead */

  /* Mobile search results popup */
  #headerSearchResultsPopup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 400px !important;
    z-index: 9999 !important;
  }

  .category-item {
    width: 50px;
    min-width: 50px;
    flex-shrink: 0;
  }

  .category-img {
    width: 70px !important;
    height: 70px !important;
  }

  .category-label {
    font-size: 8px;
    line-height: 1.2;
    /* word-wrap: break-word; */
    text-align: center;
    max-width: 40ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* Floating cart mobile adjustments */
  #floatingCartBtn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  #floatingCartBtn i {
    font-size: 1.5rem;
  }

  #floatingCartPanel.fixed-panel {
    width: 95vw;
    max-width: 95vw;
    height: 80vh;
    max-height: 80vh;
    bottom: 10px;
    right: 2.5vw;
  }

  /* Ensure header elements don't overflow */
  .navbar,
  .header2,
  .category-scroll-container {
    overflow: hidden;
    max-width: 100vw;
  }

  /* Fix any potential horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .header2 {
    padding: 3px 5px;
    margin-bottom: 0;
  }

  .nav-links {
    font-size: 10px;
    gap: 3px;
  }

  .nav-links a {
    font-size: 10px;
    padding: 1px 2px;
  }

  .navbar {
    padding: 0;
  }

  .navbar .logo-wrapper {
    /* margin-bottom: 6px; */
    gap: 10px;
  }

  .navbar .logo {
    max-height: 45px;
    min-width: 0;
  }

  .navbar form {
    padding: 0 0px 6px 0px;
  }

  .navbar form .form-control {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 0;
    border-left: none;
  }

  .navbar form .btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 0;
  }

  /* Mobile navigation icons on small screens */
  .mobile-nav-icons {
    gap: 10px;
  }

  .mobile-nav-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-nav-link i {
    font-size: 22px !important;
  }

  .cart-link {
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .cart-icon {
    width: 35px !important;
    height: 25px !important;
  }

  /* Ensure account text is visible on small mobile */
  .mobile-nav-link .user-welcome-text,
  .mobile-nav-link .user-signin-text {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  /* Show cart icon on small mobile */
  .cart-section {
    padding: 6px 10px;
    min-width: 40px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .cart-section a {
    font-size: 12px;
  }

  .cart-section i {
    font-size: 1rem;
    margin-right: 3px;
  }

  .category-item {
    width: 50px;
    min-width: 50px;
  }

  .category-img {
    width: 70px !important;
    height: 70px !important;
  }

  .category-label {
    font-size: 8px;
  }

  #floatingCartBtn {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  #floatingCartBtn i {
    font-size: 1.3rem;
  }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .mobile-nav-icons {
    gap: 8px;
  }

  .mobile-nav-link {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .mobile-nav-link i {
    font-size: 18px !important;
  }

  .mobile-nav-link .user-welcome-text,
  .mobile-nav-link .user-signin-text {
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .cart-link {
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .cart-icon {
    width: 35px !important;
    height: 25px !important;
  }
}

/* Very small devices (phones, 360px and down) */
@media (max-width: 360px) {
  .mobile-nav-icons {
    gap: 6px;
  }

  .mobile-nav-link {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .mobile-nav-link i {
    font-size: 16px !important;
  }

  .mobile-nav-link .user-welcome-text,
  .mobile-nav-link .user-signin-text {
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .cart-link {
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .cart-icon {
    width: 35px !important;
    height: 25px !important;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 991.98px) and (orientation: landscape) {
  .navbar .logo-wrapper {
    /* margin-bottom: 5px; */
  }

  .navbar .logo {
    max-height: 40px;
  }

  .category-scroll-container {
    padding: 5px 3px;
  }

  .category-item {
    width: 50px;
    min-width: 50px;
  }

  .category-img {
    width: 70px !important;
    height: 70px !important;
  }
}

/* Ensure proper viewport meta tag is respected */
@media (max-width: 991.98px) {
  .container {
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* Responsive Header Styles */
.navbar.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background-color: #fff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
}

/* Ensure header stays on top */
body {
  padding-top: 0;
}

/* Override all navbar styles to ensure sticky behavior */
.navbar,
.navbar:first-of-type,
.navbar.navbar-expand-lg {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background-color: #fff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
}

/* Ensure parent elements don't interfere */
html,
body {
  overflow-x: hidden;
  height: 100%;
}

/* Force sticky behavior with higher specificity */
.navbar.sticky-top.bg-white {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background-color: #fff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
}

/* Mobile navigation icons */
.mobile-nav-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  /* Let it shrink */
  height: 36px;
  transition: all 0.3s ease;
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 4px;
  white-space: nowrap;
  flex-shrink: 0;
  /* Prevent icons from shrinking */
}

.mobile-nav-link:hover {
  transform: scale(1.1);
  background: none;
  box-shadow: none;
}

.mobile-nav-link i {
  transition: transform 0.3s ease;
}

.mobile-nav-link:hover i {
  transform: scale(1.1);
  color: #495057;
  /* All icons turn dark gray on hover */
}

/* Specific colors for mobile nav icons */
.mobile-nav-link[href*="wishlist.php"] i {
  color: #FF7700 !important;
}

.mobile-nav-link[href*="myaccount.php"] i {
  color: #007bff !important;
}

.mobile-nav-link[href*="login.php"] i {
  color: #99d052 !important;
}

.mobile-nav-link[href*="cart.php"] {
  background: none;
  border: none;
}

/* Mobile navigation text styling - ensure visibility */
.mobile-nav-link .user-welcome-text,
.mobile-nav-link .user-signin-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
  display: block !important;
  margin-left: 6px;
  /* Space between icon and text */
  font-size: 12px;
}

.mobile-nav-link .welcome-line-1,
.mobile-nav-link .welcome-line-2 {
  margin: 0;
  padding: 0;
  display: block !important;
  line-height: 1.2;
}

/* Mobile welcome text styling */
.mobile-nav-link .welcome-line-2 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 60px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

/* Extra small screens - adjust welcome text */
@media (max-width: 480px) {
  .mobile-nav-link .welcome-line-2 {
    max-width: 50px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 360px) {
  .mobile-nav-link .welcome-line-2 {
    max-width: 40px !important;
    font-size: 8px !important;
  }
}

.mobile-nav-link .user-signin-text {
  margin: 0;
  padding: 0;
  display: block !important;
}

/* Tight mobile header layout so icons sit on one line */
@media (max-width: 768px) {
  .navbar .container-fluid {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .navbar .container-fluid>.d-flex.align-items-center {
    /*flex: 1 0 auto !important;*/
    min-width: 0 !important;
  }

  .logo-wrapper {
    margin-right: 6px !important;
  }

  .mobile-nav-icons {
    gap: 10px !important;
  }

  .mobile-nav-link {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
  }

  /* Hide text on very small screens to prevent wrapping */
  .mobile-nav-link .user-signin-text,
  .mobile-nav-link .user-welcome-text,
  .mobile-nav-link .welcome-line-1,
  .mobile-nav-link .welcome-line-2 {
    display: none !important;
  }
}

/* Mobile cart section - now part of mobile-nav-icons */
.cart-section-mobile {
  display: none;
  /* Hide old cart section since we're using mobile-nav-icons */
}

/* Ensure cart count badge is visible */
#cart-count-mobile,
#cart-count {
  font-size: 12px;
  min-width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1031;
  color: #fff !important;
}

/* Mobile cart count positioning - right side */
#cart-count-mobile {
  position: absolute !important;
  top: -5px !important;
  right: 5px !important;
  transform: translate(50%, -50%) !important;
  z-index: 1032 !important;
}

/* Wishlist count badge styling */
.mobile-nav-link[href*="wishlist.php"] .badge {
  background-color: #FF7700 !important;
  color: white !important;
  font-size: 8px !important;
  min-width: 12px !important;
  height: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1031 !important;
  position: absolute !important;
  top: 0px !important;
  right: 8px !important;
  transform: translate(50%, -50%) !important;
}

/* Desktop cart section - remove background */
.cart-section {
  background: none !important;
  padding: 0;
}

.cart-section .cart-link {
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.cart-section .cart-link:hover {
  background-color: #f8f9fa;
}

/* Category navbar visibility fix */
.second-navbar {
  display: none;
}

@media (min-width: 992px) {
  .second-navbar {
    display: block !important;
  }

  .category-navbar {
    position: sticky;
    /* top: 0; */
    z-index: 1048;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
  }

  .category-navbar .navbar-nav {
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1049;
  }

  .category-navbar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
    text-transform: none !important;
  }

  .category-navbar .nav-link:hover {
    color: #007bff;
  }

}

/* Mobile connected search bar styles */
@media (max-width: 991.98px) {
  .mobile-category-btn {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
  }

  .mobile-search-input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none !important;
  }

  .mobile-search-btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  /* Ensure proper spacing */
  .input-group .dropdown-mobile {
    margin-right: 0px;
  }

  .input-group .mobile-search-input {
    margin-left: -1px;
  }

  /* Add border radius to entire mobile search container */
  .navbar form .input-group {
    border-radius: 6px !important;
    overflow: hidden;
  }

  /* Add border radius to mobile search input */
  .mobile-search-input {
    border-radius: 0 !important;
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
  }

  .navbar form .input-group .mobile-search-input {
    border-radius: 0 !important;
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
  }

  /* Add border radius to mobile search button */
  .navbar form .input-group .btn {
    border-radius: 0 !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
  }

  .navbar form .input-group .mobile-search-btn {
    border-radius: 0 !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
  }

  /* Add border radius to mobile dropdown button */
  .navbar form .input-group .dropdown-mobile .btn {
    border-radius: 0 !important;
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
  }

  /* Override any existing border-radius: 0 rules for mobile search */
  .navbar form .input-group .form-control.mobile-search-input {
    border-radius: 0 !important;
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
  }
}

/* Icon-specific styles for header2 navigation */
.header2 .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 24px;
  height: 24px;
}

.header2 .nav-links a i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Individual icon colors matching website theme */
.header2 .nav-links a[href*="index.php"] i {
  color: #17a2b8;
  /* Home - teal/cyan */
}

.header2 .nav-links a[href*="shop.php"] i {
  color: #FF7700;
  /* Shop - green */
}

.header2 .nav-links a[href*="wishlist.php"] i {
  color: #dc3545;
  /* Wishlist - red */
}

.header2 .nav-links a[href*="myaccount.php"] i {
  color: #007bff;
  /* My Account - blue */
}

.header2 .nav-links a[href*="login.php"] i {
  color: #ffc107;
  /* Login - yellow/warning */
}

.header2 .nav-links a[href*="logout.php"] i {
  color: #6c757d;
  /* Logout - gray */
}

.header2 .nav-links a:hover {
  color: #495057;
  transform: scale(1.1);
}

.header2 .nav-links a:hover i {
  transform: scale(1.1);
  color: #495057;
  /* All icons turn dark gray on hover */
}

/* Mobile responsive icon styles */
@media (max-width: 991.98px) {
  .header2 .nav-links a i {
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  .header2 .nav-links a i {
    font-size: 12px;
  }
}

/* Search bar width and height adjustments */
.navbar form {
  max-width: 60%;
  /* Decrease total width */
  margin: 0 auto;
  /* Center the search bar */
}

.navbar form .input-group {
  height: 35px;
  /* Increase height slightly */
}

.navbar form .form-control {
  height: 35px;
  /* Match the input group height */
  font-size: 14px;
  padding: 8px 12px;
}

.navbar form .btn {
  height: 45px;
  /* Match the input group height */
  padding: 8px 16px;
  font-size: 14px;
}

.navbar form .dropdown-toggle {
  height: 45px;
  /* Match the input group height */
  padding: 8px 16px;
  font-size: 14px;
}

/* Desktop specific adjustments */
@media (min-width: 992px) {
  .navbar form {
    max-width: none;
    /* Allow it to grow and take available space */
  }

  .navbar form .input-group {
    height: 35px;
    /* Slightly taller on desktop */
  }

  .navbar form .form-control,
  .navbar form .btn,
  .navbar form .dropdown-toggle {
    height: 35px;
    /* Match desktop height */
  }
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .navbar form {
    max-width: 100%;
    /* Wider on mobile for better usability */
  }

  .navbar form .input-group {
    height: 45px;
    /* Increased height for mobile devices */
  }

  .navbar form .form-control,
  .navbar form .btn,
  .navbar form .dropdown-toggle {
    height: 45px;
    /* Match increased mobile height */
  }
}

/* Dropdown hover color override */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #FF7700 !important;
  color: white !important;
}

/* Topbar navigation items in main navbar */
.topbar-nav-items a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 40px;
  height: 40px;
  font-size: 20px;
}

.topbar-nav-items a i {
  font-size: 24px;
  transition: transform 0.3s ease;
}

/* Individual icon colors matching website theme */
.topbar-nav-items a[href*="index.php"] i {
  color: #17a2b8;
  /* Home - teal/cyan */
}

.topbar-nav-items a[href*="wishlist.php"] i {
  color: #FF7700;
  /* Wishlist - pink/magenta */
}

.topbar-nav-items a[href*="myaccount.php"] i {
  color: #007bff;
  /* My Account - blue */
}

.topbar-nav-items a[href*="login.php"] i {
  color: #99d052;
  /* Login - green */
}

.topbar-nav-items a[href*="logout.php"] i {
  color: #dc3545;
  /* Logout - red */
}

.topbar-nav-items a:hover {
  color: #495057;
  transform: scale(1.1);
}

.topbar-nav-items a:hover i {
  transform: scale(1.1);
  color: #495057;
  /* All icons turn dark gray on hover */
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .topbar-nav-items {
    display: none !important;
    /* Hide on mobile since we have mobile cart icon */
  }
}

/* Wishlist color override - use #FF7700 throughout site */
input[type="checkbox"]:checked+.heart-icon,
.heart-icon.checked,
.wishlist-label.wishlist-active i,
.wishlist-label.wishlist-active,
.heart-checkbox:checked+.wishlist-label i,
.heart-checkbox:checked+.wishlist-label {
  color: #FF7700 !important;
}

.wishlist-btn {
  background-color: #FF7700 !important;
  color: white !important;
}

.wishlist-btn:hover {
  background-color: #b8006e !important;
  /* Darker shade for hover */
}

#wishlist-icon {
  color: #FF7700 !important;
}

/* Wishlist count styling - positioned in the middle of the heart icon */
.wishlist-icon-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wishlist-count {
  position: absolute;
  top: 45%;
  left: 52%;
  transform: translate(-50%, -50%);
  color: white !important;
  font-size: 0.7rem !important;
  font-weight: bold !important;
  z-index: 10 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  pointer-events: none;
  line-height: 1;
}

/* Mobile responsive wishlist count */
@media (max-width: 991.98px) {
  .wishlist-count {
    font-size: 0.6rem !important;
  }
}

/* Comprehensive wishlist icon filled state - ensure all wishlist icons show filled color */
input[type="checkbox"]:checked+.wishlist-label i,
input[type="checkbox"]:checked+.heart-icon,
.heart-checkbox:checked+.wishlist-label i,
.heart-checkbox:checked+.wishlist-label,
.wishlist-label.wishlist-active,
.wishlist-label.wishlist-active i {
  color: #FF7700 !important;
}

/* Ensure wishlist icons are visible and properly styled */
.wishlist-label i,
.heart-icon {
  transition: color 0.3s ease;
}

/* Default state for wishlist icons */
.wishlist-label i {
  color: #fff;
}

/* Hover state for wishlist icons */
.wishlist-label:hover i {
  color: #FF7700;
}

/* Shop page wishlist styling */
.shop-page-heart-checkbox:checked+.shop-page-wishlist-label i,
.shop-page-heart-checkbox:checked+.shop-page-wishlist-label {
  color: #FF7700 !important;
}

.shop-page-wishlist-label.wishlist-active,
.shop-page-wishlist-label.wishlist-active i {
  color: #FF7700 !important;
}

/* Category Dropdown Styling */
.category-navbar .dropdown-menu {
  min-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  padding: 4px 0;
}

.category-navbar .dropdown-menu .dropdown-item {
  padding: 6px 12px !important;
  font-size: 12px !important;
  color: #495057;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0 !important;
}

.category-navbar .dropdown-menu .dropdown-item:hover,
.category-navbar .dropdown-menu .dropdown-item:focus {
  background-color: #FF7700 !important;
  color: white !important;
  text-decoration: none !important;
}

.category-navbar .dropdown-menu .dropdown-divider {
  margin: 4px 0;
  border-color: #e9ecef;
}

.category-navbar .nav-link.dropdown-toggle::after {
  margin-left: 4px;
  font-size: 10px;
}

/* Parent category styling in dropdown */
.category-navbar .dropdown-menu .dropdown-item.parent-category {
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  text-transform: capitalize !important;
}

.category-navbar .dropdown-menu .dropdown-item.parent-category:hover {
  background-color: #FF7700 !important;
  color: white !important;
}

/* Subcategory styling with indentation */
.category-navbar .dropdown-menu .dropdown-item.subcategory {
  padding-left: 32px !important;
  color: #6c757d;
  font-size: 12px !important;
  position: relative;
  text-transform: capitalize !important;
}

.category-navbar .dropdown-menu .dropdown-item.subcategory::before {
  content: "└─";
  position: absolute;
  left: 20px;
  color: #adb5bd;
  font-size: 0.7rem;
}

/* Multiple levels of subcategories */
.category-navbar .dropdown-menu .dropdown-item.subcategory-level-1 {
  padding-left: 32px !important;
  font-size: 12px !important;
  text-transform: capitalize !important;
}

.category-navbar .dropdown-menu .dropdown-item.subcategory-level-1::before {
  content: "└─";
  position: absolute;
  left: 20px;
  color: #adb5bd;
  font-size: 0.7rem;
}

.category-navbar .dropdown-menu .dropdown-item.subcategory-level-2 {
  padding-left: 48px !important;
  font-size: 12px !important;
  text-transform: capitalize !important;
}

.category-navbar .dropdown-menu .dropdown-item.subcategory-level-2::before {
  content: "└─";
  position: absolute;
  left: 40px;
  color: #adb5bd;
  font-size: 0.7rem;
}

.category-navbar .dropdown-menu .dropdown-item.subcategory-level-3 {
  padding-left: 64px !important;
  font-size: 12px !important;
  text-transform: capitalize !important;
}

.category-navbar .dropdown-menu .dropdown-item.subcategory-level-3::before {
  content: "└─";
  position: absolute;
  left: 60px;
  color: #adb5bd;
  font-size: 0.7rem;
}

/* Subcategories with children styling */
.category-navbar .dropdown-menu .dropdown-item.subcategory-with-children {
  font-weight: 500;
  text-transform: capitalize !important;
  color: #495057;
}

.category-navbar .dropdown-menu .dropdown-item.subcategory-with-children:hover {
  background-color: #FF7700 !important;
  color: white !important;
}

/* Remove bottom margin from cart-actions to eliminate unnecessary bottom space */
.cart-actions {
  margin-bottom: 0 !important;
}

/* Reduce dropdown item padding and font size */
.dropdown-menu .dropdown-item {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* Breadcrumb Navigation Styling */
.breadcrumb-nav {
  background: #f8f9fa;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
}

.breadcrumb {
  background: transparent !important;
  padding: 0 15px !important;
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: #6c757d !important;
}

.breadcrumb-item {
  display: inline-block !important;
  margin-right: 4px !important;
}

/* Completely remove all breadcrumb separators first */
.breadcrumb-item::before,
.breadcrumb-item::after,
.breadcrumb-nav .breadcrumb .breadcrumb-item::before,
.breadcrumb-nav .breadcrumb .breadcrumb-item::after,
.breadcrumb .breadcrumb-item::before,
.breadcrumb .breadcrumb-item::after {
  content: none !important;
  display: none !important;
}

/* Then add only the ">" separator */
.breadcrumb-item:not(:last-child)::after,
.breadcrumb-nav .breadcrumb .breadcrumb-item:not(:last-child)::after,
.breadcrumb .breadcrumb-item:not(:last-child)::after {
  content: ">" !important;
  display: inline !important;
  margin-left: 4px !important;
  color: #adb5bd !important;
  font-weight: bold !important;
}

.breadcrumb-item a {
  color: #fff !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.breadcrumb-item a:hover {
  color: #0056b3 !important;
  text-decoration: underline !important;
}

.breadcrumb-item.active {
  color: #495057 !important;
  font-weight: 500 !important;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 6px 0;
  }

  .breadcrumb {
    font-size: 0.75rem !important;
    padding: 0 10px !important;
  }

  .breadcrumb-item {
    margin-right: 3px !important;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin-left: 3px !important;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    font-size: 0.7rem !important;
    padding: 0 8px !important;
  }

  .breadcrumb-item {
    margin-right: 2px !important;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin-left: 2px !important;
  }
}

/* Ensure consistent product title heights for uniform card appearance */
.product-details h3 {
  /* min-height: 32px !important;
  max-height: 32px !important;
  height: 32px !important; */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

/* Override any Bootstrap or other breadcrumb separators */
.breadcrumb-nav .breadcrumb .breadcrumb-item:not(:last-child)::after,
.breadcrumb .breadcrumb-item:not(:last-child)::after,
.breadcrumb-item:not(:last-child)::after {
  content: ">" !important;
  margin-left: 4px !important;
  color: #adb5bd !important;
  font-weight: bold !important;
}

/* Ensure no other separators are shown */
.breadcrumb-item::before,
.breadcrumb-item::after {
  content: none !important;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">" !important;
  margin-left: 4px !important;
  color: #adb5bd !important;
  font-weight: bold !important;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--dark-green);
  border-radius: 6px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a8c1a;
  /* Slightly darker shade of dark-green */
}

/* Firefox scrollbar styles */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--dark-green) #f1f1f1;
}

/* Custom Category Item Styles - Replacing category-item */
.custom-category-item {
  flex: 0 0 auto;
  width: 70px;
  text-align: center;

  /* Remove text decoration */
  text-decoration: none !important;

  /* Keep other overrides */
  outline: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

.custom-category-item:active {
  border: 1px solid #fff !important;
}

/* Mobile Category Slider Active State */
.category-scroll-container .custom-category-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 4px 2px;
  text-decoration: none;
  color: #333;
}

.category-scroll-container .custom-category-item:hover {
  background-color: rgba(153, 208, 82, 0.1);
  transform: translateY(-2px);
}

.category-scroll-container .custom-category-item.active .category-img {
  border: 3px solid #99d052;
  border-radius: 0 !important;
  box-shadow: 0 4px 12px rgba(153, 208, 82, 0.3);
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

/* ===== CONSISTENT 8PX MARGIN SYSTEM ===== */
/* Based on header logo start and header elements end - maintain 8px margins throughout */

/* Global container margins - consistent 8px from header alignment */
.container,
.container-fluid {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* ===== CUSTOM FILTER ICON SYSTEM ===== */
/* Custom filter icon matching the design: two horizontal lines with vertical lines through them */

.custom-filter-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 16px;
}

.custom-filter-icon::before,
.custom-filter-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #99d052;
  border-radius: 1px;
}

.custom-filter-icon::before {
  top: 4px;
}

.custom-filter-icon::after {
  top: 10px;
}

.custom-filter-icon::before,
.custom-filter-icon::after {
  box-shadow:
    0 0 0 1px #99d052,
    0 0 0 2px transparent,
    0 0 0 3px #99d052;
}

/* Alternative approach using pseudo-elements for vertical lines */
.custom-filter-icon-v2 {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 16px;
}

.custom-filter-icon-v2::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #99d052;
  border-radius: 1px;
  box-shadow:
    0 6px 0 #99d052,
    0 3px 0 0 #99d052,
    0 9px 0 0 #99d052;
}

/* SVG-based filter icon for better control */
.filter-icon-svg {
  width: 20px;
  height: 16px;
  fill: #99d052;
}

/* Inline SVG filter icon - matches the design exactly */
.filter-icon-inline {
  display: inline-block;
  width: 20px;
  height: 16px;
  vertical-align: middle;
}

/* SVG-based filter icon that matches the design exactly */
.filter-icon-css {
  display: inline-block;
  width: 20px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cg fill='%2399d052'%3E%3Crect x='2' y='4' width='16' height='2' rx='1'/%3E%3Crect x='2' y='10' width='16' height='2' rx='1'/%3E%3Crect x='9' y='1' width='2' height='6' rx='1'/%3E%3Crect x='9' y='7' width='2' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Filter button styling with custom icon */
.filter-btn-with-custom-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #99d052;
  border-radius: 20px;
  color: #99d052;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn-with-custom-icon:hover {
  background: #99d052;
  color: white;
}

.filter-btn-with-custom-icon:hover .filter-icon-css {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cg fill='white'%3E%3Crect x='2' y='4' width='16' height='2' rx='1'/%3E%3Crect x='2' y='10' width='16' height='2' rx='1'/%3E%3Crect x='9' y='1' width='2' height='6' rx='1'/%3E%3Crect x='9' y='7' width='2' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== STANDARDIZED HOMEPAGE SECTION SPACING ===== */
/* Consistent top and bottom spacing for all home page sections */
.hero-slider-section,
.popular-categories-section,
.discounted-products-section,
.featured-products-section,
.service-section,
.process-container {
  padding: 20px 0 !important;
  margin: 0 !important;
}

/* Section containers - consistent spacing */
.categories-card,
.discounted-products-card,
.featured-products-card {
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== MOBILE COMPACT STYLES ===== */
/* Mobile devices - Make website compact with consistent margins */
@media (max-width: 768px) {

  /* Global container margins for consistency - maintain 8px system */
  .container,
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Standardized section padding for mobile */
  .hero-slider-section,
  .popular-categories-section,
  .discounted-products-section,
  .featured-products-section,
  .service-section,
  .process-container {
    padding: 10px 0 !important;
    margin: 0 !important;
  }

  /* Section containers - mobile spacing */
  .categories-card,
  .discounted-products-card,
  .featured-products-card {
    padding: 10px 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  /* Reduce section padding */
  section {
    padding: 10px 0 !important;
  }


  /* Section headers - consistent spacing */
  .category-products-header,
  .discounted-products-header,
  .featured-products-header {
    padding: 0 0 10px 0 !important;
    margin-bottom: 2px !important;
  }

  .category-products-title,
  .discounted-products-title,
  .featured-products-title {
    font-size: 16px !important;
    margin-bottom: 2px !important;
  }

  /* Product card sizing handled in asset/style/product-card.css */

  /* Compact navigation */
  .category-nav-btn,
  .discounted-nav-btn,
  .featured-nav-btn {
    width: 25px !important;
    height: 25px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
  }

  .category-nav-btn.prev-btn,
  .discounted-nav-btn.prev-btn,
  .featured-nav-btn.prev-btn {
    left: 5px !important;
  }

  .category-nav-btn.next-btn,
  .discounted-nav-btn.next-btn,
  .featured-nav-btn.next-btn {
    right: 5px !important;
  }

  /* Adjust navigation button images */
  .category-nav-btn img,
  .discounted-nav-btn img,
  .featured-nav-btn img {
    width: 10px !important;
    height: 10px !important;
  }

  /* Reduce gaps in containers */
  .categories-container,
  .discounted-products-container,
  .featured-products-container {
    gap: 8px !important;
    padding: 5px 0 !important;
  }

  /* Compact headings */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 8px !important;
  }

  h1 {
    font-size: 18px !important;
  }

  h2 {
    font-size: 16px !important;
  }

  h3 {
    font-size: 14px !important;
  }

  h4 {
    font-size: 13px !important;
  }

  h5 {
    font-size: 12px !important;
  }

  h6 {
    font-size: 11px !important;
  }

  /* Compact paragraphs */
  p {
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
  }

  /* Compact buttons */
  .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* Compact forms */
  .form-control {
    padding: 6px 10px !important;
    font-size: 14px !important;
  }

  /* Compact lists */
  ul,
  ol {
    padding-left: 20px !important;
  }

  li {
    margin-bottom: 5px !important;
  }

  /* Compact tables */
  .table {
    font-size: 12px !important;
  }

  .table td,
  .table th {
    padding: 6px 8px !important;
  }

  /* Compact cards */
  .card {
    margin-bottom: 10px !important;
  }

  .card-body {
    padding: 12px !important;
  }

  .card-title {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  /* Compact modals */
  .modal-body {
    padding: 15px !important;
  }

  .modal-header {
    padding: 10px 15px !important;
  }

  .modal-footer {
    padding: 10px 15px !important;
  }

  /* Compact alerts */
  .alert {
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
  }

  /* Compact breadcrumbs */
  .breadcrumb {
    padding: 8px 0 !important;
    margin-bottom: 10px !important;
  }

  .breadcrumb-item {
    font-size: 12px !important;
  }

  /* Compact pagination */
  .pagination {
    gap: 2px !important;
  }

  .page-link {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  /* Compact badges */
  .badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }

  /* Compact tooltips */
  .tooltip {
    font-size: 11px !important;
  }

  /* Compact dropdowns */
  .dropdown-menu {
    padding: 5px 0 !important;
  }

  .dropdown-item {
    padding: 6px 15px !important;
    font-size: 13px !important;
  }

  /* Compact navbar */
  .navbar {
    padding: 2px 0 !important;
  }

  .navbar-nav .nav-link {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }

  /* Compact footer */
  footer {
    padding: 20px 0 !important;
  }

  footer .container {
    padding: 0 12px !important;
  }

  /* Compact grid spacing */
  .row {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* Extra small mobile devices - Even more compact */
@media (max-width: 480px) {

  /* Maintain consistent 8px margins */
  .container,
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Standardized section padding for small mobile */
  .hero-slider-section,
  .popular-categories-section,
  .discounted-products-section,
  .featured-products-section,
  .service-section,
  .process-container {
    padding: 8px 0 !important;
    margin: 0 !important;
  }

  /* Section containers - small mobile spacing */
  .categories-card,
  .discounted-products-card,
  .featured-products-card {
    padding: 8px 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  /* Even more compact sections */
  section {
    padding: 10px 0 !important;
  }

  /* Smaller headings */
  h1 {
    font-size: 16px !important;
  }

  h2 {
    font-size: 14px !important;
  }

  h3 {
    font-size: 12px !important;
  }

  h4 {
    font-size: 11px !important;
  }

  h5 {
    font-size: 10px !important;
  }

  h6 {
    font-size: 9px !important;
  }

  /* Smaller text */
  p {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  /* Smaller buttons */
  .btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }

  /* Smaller form elements */
  .form-control {
    padding: 5px 8px !important;
    font-size: 13px !important;
  }

  /* Smaller cards */
  .card-body {
    padding: 8px !important;
  }

  .card-title {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  /* Product card sizing handled in asset/style/product-card.css */

  /* Smaller navigation */
  .category-nav-btn,
  .discounted-nav-btn,
  .featured-nav-btn {
    width: 18px !important;
    height: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
  }

  .category-nav-btn.prev-btn,
  .discounted-nav-btn.prev-btn,
  .featured-nav-btn.prev-btn {
    left: 3px !important;
  }

  .category-nav-btn.next-btn,
  .discounted-nav-btn.next-btn,
  .featured-nav-btn.next-btn {
    right: 3px !important;
  }

  /* Adjust navigation button images */
  .category-nav-btn img,
  .discounted-nav-btn img,
  .featured-nav-btn img {
    width: 10px !important;
    height: 10px !important;
  }

  /* Smaller gaps */
  .categories-container,
  .discounted-products-container,
  .featured-products-container {
    gap: 6px !important;
    padding: 4px 0 !important;
  }

  /* Smaller grid spacing */
  .row {
    margin-left: -4px !important;
    margin-right: -4px !important;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

/* Ultra small devices */
@media (max-width: 360px) {

  /* Maintain consistent 8px margins even on ultra small devices */
  .container,
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Standardized section padding for ultra-small mobile */
  .hero-slider-section,
  .popular-categories-section,
  .discounted-products-section,
  .featured-products-section,
  .service-section,
  .process-container {
    padding: 10px 0 !important;
    margin: 0 !important;
  }

  /* Section containers - ultra-small mobile spacing */
  .categories-card,
  .discounted-products-card,
  .featured-products-card {
    padding: 6px 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  /* Minimal padding */
  section {
    padding: 8px 0 !important;
  }

  /* Minimal text sizes */
  h1 {
    font-size: 15px !important;
  }

  h2 {
    font-size: 13px !important;
  }

  h3 {
    font-size: 11px !important;
  }

  h4 {
    font-size: 10px !important;
  }

  h5 {
    font-size: 9px !important;
  }

  h6 {
    font-size: 8px !important;
  }

  p {
    font-size: 11px !important;
    margin-bottom: 5px !important;
  }

  /* Minimal buttons */
  .btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  /* Minimal form elements */
  .form-control {
    padding: 4px 6px !important;
    font-size: 12px !important;
  }

  /* Minimal cards */
  .card-body {
    padding: 6px !important;
  }

  .card-title {
    font-size: 11px !important;
    margin-bottom: 5px !important;
  }

  /* Product card sizing handled in asset/style/product-card.css */

  /* Minimal navigation */
  .category-nav-btn,
  .discounted-nav-btn,
  .featured-nav-btn {
    width: 16px !important;
    height: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
  }

  .category-nav-btn.prev-btn,
  .discounted-nav-btn.prev-btn,
  .featured-nav-btn.prev-btn {
    left: 2px !important;
  }

  .category-nav-btn.next-btn,
  .discounted-nav-btn.next-btn,
  .featured-nav-btn.next-btn {
    right: 2px !important;
  }

  /* Adjust navigation button images */
  .category-nav-btn img,
  .discounted-nav-btn img,
  .featured-nav-btn img {
    width: 8px !important;
    height: 8px !important;
  }

  /* Minimal gaps */
  .categories-container,
  .discounted-products-container,
  .featured-products-container {
    gap: 4px !important;
    padding: 3px 0 !important;
  }

  /* Minimal grid spacing */
  .row {
    margin-left: -3px !important;
    margin-right: -3px !important;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}

.featured-products-section {
  background: none !important;
}

.service-section {
  /* Left and right margins preserved as requested */
}

@media (max-width: 768px) {
  .category-nav-btn {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Fix for Navigation Dropdowns on Hover */
.dropdown:not(.user-auth-dropdown):hover>.dropdown-menu,
.dropdown-desktop:hover>.dropdown-menu,
.dropdown-mobile:hover>.dropdown-menu {
  display: block !important;
  margin-top: 0 !important;
}

/* Slider Navigation Arrow Visibility Fix (Desktop & Global) */
.categories-slider-wrapper,
.discounted-products-slider-wrapper,
.featured-products-slider-wrapper {
  position: relative !important;
}

.category-nav-btn,
.discounted-nav-btn,
.featured-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 25px !important;
  height: 25px !important;
  background-color: #fff !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.category-nav-btn:hover,
.discounted-nav-btn:hover,
.featured-nav-btn:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.prev-btn {
  left: 10px !important;
}

.next-btn {
  right: 10px !important;
}

/* Ensure images inside buttons are visible */
.category-nav-btn img,
.discounted-nav-btn img,
.featured-nav-btn img {
  width: 10px !important;
  height: 20px !important;
  display: block !important;
  object-fit: contain !important;
}

/* Fix for All Categories Dropdown in Search Bar */
.dropdown-desktop:hover .dropdown-menu {
  display: block !important;
  margin-top: 0;
  z-index: 99999 !important;
}

/* Fix for Category Navbar Dropdowns (Second Navbar) - Ensure High Z-Index */
.category-navbar,
.second-navbar,
.navbar {
  z-index: 1040 !important;
  /* Higher than page content */
  overflow: visible !important;
  position: relative !important;
}

/* Specific fix for dropdowns inside category navbar */
.category-navbar .dropdown:not(.user-auth-dropdown):hover .dropdown-menu,
.category-navbar .nav-item:hover .dropdown-menu,
.category-navbar .dropdown-toggle:hover+.dropdown-menu {
  display: block !important;
  margin-top: 0;
  z-index: 99999 !important;
  top: 100%;
  left: 0;
}

/* Ensure parent containers don't clip the dropdown */
.navbar-collapse,
.container-fluid,
.row,
header,
nav {
  overflow: visible !important;
}

/* Fix Vertical Alignment for "All Categories" Dropdown in Header */
.input-group {
  align-items: center !important;
}

.dropdown-desktop {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.dropdown-desktop .btn {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  /* Match input height */
  margin: 0 !important;
  border-radius: 6px 0 0 6px !important;
  /* Ensure proper corner rounding */
}

/* Smooth Home Banner Animation */
#heroCarousel .carousel-item {
  transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out !important;
}

#heroCarousel .carousel-inner .carousel-item {
  transition-property: transform, opacity;
}

/* --- Consolidated Mobile & Sticky Header Fixes --- */

/* 1. Mobile Header Alignment (Ensures 1 line, no wrapping) */
.mobile-header-icons-wrapper {
  margin-left: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
}

.mobile-nav-icons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 15px !important;
  flex-wrap: nowrap !important;
}

.mobile-nav-link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  padding: 5px !important;
  flex-shrink: 0 !important;
}

.mobile-nav-link i {
  font-size: 20px !important;
}

/* Individual mobile icon colors matching desktop */
.mobile-nav-link[href*="wishlist.php"] i {
  color: #FF7700 !important;
}

.mobile-nav-link[href*="myaccount.php"] i {
  color: #007bff !important;
}

.mobile-nav-link[href*="login.php"] i {
  color: #99d052 !important;
}

.mobile-nav-link #cart-count-mobile {
  background-color: transparent !important;
  color: #FF7700 !important;
  font-weight: bold !important;
  font-size: 14px !important;
}

.mobile-nav-link .badge {
  position: absolute !important;
  top: 0 !important;
  right: -2px !important;
  padding: 2px 5px !important;
  font-size: 10px !important;
  border-radius: 50% !important;
}

/* 2. Sticky Category Menu Fix */
.navbar.sticky-top {
  z-index: 1060 !important;
}

/* Ensure mobile stickiness */
.category-scroll-container.d-block.d-lg-none {
  position: sticky !important;
  top: 56px !important;
  /* Height of main mobile navbar */
  z-index: 1050 !important;
  background-color: #fff !important;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure desktop stickiness */
.second-navbar.d-none.d-lg-block {
  position: sticky !important;
  top: 70px !important;
  /* Height of main desktop navbar */
  z-index: 10 !important;
  background-color: #fff !important;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

/* ── Search bar: fill available flex space between logo and icons ── */
.search-bar-desktop {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 700px !important;
}

.search-bar-desktop form {
  width: 100% !important;
}

/* ── Search dropdown must appear ABOVE the sticky second-navbar ── */
/* second-navbar z-index is 1050, so we need to be above it      */
.search-bar-desktop .dropdown-menu,
.search-bar-desktop .dropdown.show .dropdown-menu,
#categoryDropdownDesktop+.dropdown-menu {
  z-index: 1100 !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  top: 100% !important;
  bottom: auto !important;
}

/* ==========================================================
   Mobile Header Polish - Enforce Blue & Offcanvas UI
   ========================================================== */

/* Mobile Search Button & Toggle - Enforce Global Blue */
#headerSearchBtnMobile,
[data-bs-target="#mobileCategoryOffcanvas"] {
  background-color: var(--site-blue) !important;
  color: #fff !important;
  border-color: var(--site-blue) !important;
}

/* Ensure the toggle button we explicitly set to green doesn't get overridden to blue on hover */
.mobile-search-toggle-btn,
.mobile-search-toggle-btn:hover,
.mobile-search-toggle-btn:active,
.mobile-search-toggle-btn:focus,
.mobile-search-toggle-btn:focus-visible {
  background-color: #FF7700 !important;
  border-color: #FF7700 !important;
  color: #fff !important;
}

#headerSearchBtnMobile:hover,
#headerSearchBtnMobile:active,
#headerSearchBtnMobile:focus,
#headerSearchBtnMobile:focus-visible {
  background-color: var(--site-blue) !important;
  color: #fff !important;
  border-color: var(--site-blue) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Offcanvas Styling Polish - Compact & Green theme */
#mobileCategoryOffcanvas {
  background-color: #f8f9fa;
}

#mobileCategoryOffcanvas .offcanvas-header {
  background-color: #fff;
  padding: 0.75rem 1rem;
}

#mobileCategoryOffcanvas .offcanvas-title {
  font-size: 1rem;
}

#mobileCategoryOffcanvas .accordion-item {
  border: none !important;
  border-bottom: 1px solid #e9ecef !important;
}

#mobileCategoryOffcanvas .accordion-button {
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background-color: #fff;
  box-shadow: none !important;
}

/* Active Category Header */
#mobileCategoryOffcanvas .accordion-button:not(.collapsed) {
  color: var(--dark-green) !important;
  background-color: #E3F2AA !important;
  /* Soft light green */
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .05) !important;
}

#mobileCategoryOffcanvas .accordion-button:focus {
  box-shadow: none !important;
  border-color: rgba(0, 0, 0, .125) !important;
}

#mobileCategoryOffcanvas .accordion-body {
  background-color: #fff !important;
  padding: 0 !important;
}

/* Subcategory Links */
#mobileCategoryOffcanvas .accordion-body a {
  display: block;
  padding: 0.5rem 1rem 0.5rem 2rem !important;
  font-size: 0.85rem !important;
  color: #555 !important;
  border-bottom: 1px solid #f8f9fa !important;
  transition: all 0.2s ease;
}

/* Hover over subcategories */
#mobileCategoryOffcanvas .accordion-body a:hover,
#mobileCategoryOffcanvas .accordion-body a:focus {
  background-color: #E3F2AA !important;
  /* Soft light green */
  color: var(--dark-green) !important;
  text-decoration: none;
}

/* ========================================================
   MOBILE HEADER — Logo size & icon spacing fix
   Applies only on screens ≤768px, does NOT touch desktop
   ======================================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 2px 0 !important;
  }

  /* Navbar row: allow items to compress, no overflow */
  .navbar>.container-fluid {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  /* Logo: allow full size, constrained by max-height */
  .navbar-brand {
    flex-shrink: 1 !important;
    max-width: 200px !important;
  }

  .navbar-brand img.img-fluid {
    max-width: 190px !important;
    max-height: 48px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
  }

  /* Icons wrapper: consistent 12px gap between ALL icons */
  .header-nav-icons {
    gap: 12px !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  /* Zero Bootstrap me- margins so only gap controls spacing */
  .header-nav-icons>*,
  .header-nav-icons .me-1,
  .header-nav-icons .me-lg-3 {
    margin-right: 0 !important;
  }

  /* Scale down cart icon slightly */
  .cart-section .cart-icon {
    width: 34px !important;
    height: 26px !important;
  }

  /* Scale down pincode icon slightly */
  .pincode-check-icon {
    height: 22px !important;
  }

  /* Cart count badge — centered over cart icon, number fully visible */
  #cart-count {
    position: absolute !important;
    top: 2px !important;
    left: 60% !important;
    /* center horizontally over icon */
    right: auto !important;
    transform: translateX(-50%) !important;
    font-size: 9px !important;
    min-width: 8px !important;
    height: 8px !important;
    line-height: 12px !important;
    padding: 0 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
  }
}

@media (min-width: 769px) {
  #cart-count.header_cart-badge {
    top: -14px !important;
  }
}
