/* ===========================
   🔹 Main Menu
=========================== */
#mainMenu {
  transition: all 0.3s ease-in-out;
}

/* ===========================
   🔹 Category Circles (only)
=========================== */
.category-item {
  background: transparent;       /* no box */
  text-align: center;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ✅ Circle wrapper */
.category-item .rounded-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid #080101;        /* clear outline */
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ Image inside circle */
.category-item .rounded-circle img {
  width: 200%;
  height: 200%;
  object-fit: contain;           /* show full logo */
  transition: transform 0.3s ease;
}

/* ✅ Hover effect → circle grows + highlight */
.category-item:hover .rounded-circle {
  transform: scale(1.2);         /* bigger circle */
  border-color: #28a745;         /* green outline */
  box-shadow: 0 0 100px rgba(40, 167, 69, 0.5);
}

/* ✅ Optional: logo slight zoom too */
.category-item:hover .rounded-circle img {
  transform: scale(1.05);
}

/* ✅ Text under circle */
.category-item h6 {
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.category-item small {
  color: #777;
  font-size: 13px;
}

@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(40,167,69,0.6); }
  70%  { box-shadow: 0 0 0 15px rgba(40,167,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); }
}

/* Category link box */
.category-link {
  background: #fff;
  color: #333;
  padding: 1px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.category-link:hover {
  background: #f5faff;
  transform: translateX(5px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Horizontal scroll */
.category-scroll::-webkit-scrollbar {
  height: 8px;
}
.category-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.category-scroll::-webkit-scrollbar-track {
  background: #f8f9fa;
}
.category-scroll .rounded-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Remove focus/active highlight */
.category-item,
.category-item:focus,
.category-item:active,
.category-item a:focus,
.category-item a:active,
.category-item .rounded-circle:focus,
.category-item .rounded-circle:active {
  background: #ffffff00 !important;
  outline: none !important;
  box-shadow: none !important;
}
.category-item a,
.category-item {
  -webkit-tap-highlight-color: transparent;
}


/* Submenu (flyout to the right) */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; /* show at right side */
    margin-top: -1px;
    border-radius: 0;
    min-width: 220px;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}




@media (max-width: 767px) {
  .category-item {
    padding: 5px;   /* small padding on mobile */
  }
}
@media (min-width: 768px) {
  .category-item {
    padding: 5px 20px;  /* a little more breathing room on desktop */
  }
}

/* ===========================
   🔹 Banners
=========================== */
.carousel-caption h1 {
  color: #000;
  text-shadow: 0 2px 6px rgba(255,255,255,0.6);
}
.carousel-caption p {
  color: #444;
}
.carousel-caption .btn {
  border-radius: 50px;
  padding: 12px 30px;
}

/* Banner wrappers to ensure rounded corners */
.promo-wrap,
.promo-wrap .carousel-inner,
.promo-wrap .carousel-item,
.hero-wrap {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* Promo banner */
.promo-banner {
  height: 420px !important;
  width: 100%;
  object-fit: cover !important;
  display: block;
   border-radius: 15px;   /* 👈 rounded corners */
}

/* Hero banner */
.hero-banner {
  height: 420px !important;
  width: 100%;
  object-fit: cover !important;
  display: block;
}

@media (max-width: 992px){
  .promo-banner,
  .hero-banner { height: 340px !important; }
}
@media (max-width: 576px){
  .promo-banner,
  .hero-banner { height: 220px !important; }
}

/* ===========================
   🔹 Product Cards
=========================== */
.product-card {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  transition: transform 0.2s ease;
  background: #fff;
  border: 1px solid #eee;
}

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

.product-card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
/* Override only for product card top images */
.product-card .card-img-top {
  width: 100%;
  height: 250px;        /* fixed consistent height */
  object-fit: contain;  /* full image fits inside */
  padding: 8px;
  background: #fff;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* Overlay icons */
.product-overlay {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 5;
}

.product-card:hover .product-overlay {
  opacity: 1;
  visibility: visible;
  right: 12px;
}

/* Icon buttons */
.product-overlay a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.product-overlay a:hover {
  transform: scale(1.1);
  background: #28a745;
  color: #fff;
}

/* Special hover colors */
.product-overlay a.btn-danger:hover {
  background: #dc3545;
  color: #fff;
}
.product-overlay a.btn-light:hover {
  background: #f8f9fa;
  color: #333;
}
.product-overlay a.btn-success:hover {
  background: #28a745;
  color: #fff;
}

/* Text */
.product-card .card-body {
  padding: 12px;
}
.product-card h6 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-card p {
  margin: 0;
  font-size: 14px;
}


/* ✅ Bottom Navigation */
/* Hide desktop-only elements on phones */
.desktop-only {}

/* Bottom padding so content isn't hidden behind bottom nav */
@media (max-width: 768px) {
  body { padding-bottom: 64px; }      /* room for bottom nav */
  .desktop-only { display: none !important; }
}

/* Sticky bottom nav (mobile) */
/* ✅ Sticky bottom nav (mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #007bff !important;  /* Force blue background */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 1000;
  border-top: none;  /* remove gray line */
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #ffffff;             /* white text */
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bottom-nav a ion-icon {
  font-size: 22px;
  line-height: 1;
  color: #ffffff;             /* white icons */
}

.bottom-nav a.active {
  color: #ffffff;             /* yellow for active link */
}

.bottom-nav a span {
  color: #ffffff !important;   /* ✅ make text white */
}

.bottom-nav a.active span {
  font-weight: 600;
  color: #ffffff !important;   /* ✅ keep active text white */
}
/* Mobile search spacing inside navbar */
@media (max-width: 992px) {
  .desktop-only { display:none !important; }
  .mobile-only { display:block !important; }
}

/* Desktop-only and Mobile-only helpers */
.desktop-only { display:block !important; }
.mobile-only { display:none !important; }

/* 🔹 Horizontal scroll containers */
.scroll-x {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scroll-x::-webkit-scrollbar {
  height: 6px;
}
.scroll-x::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.scroll-x > * {
  flex: 0 0 auto; /* keep children same width in row */
}

/* Promo banner image */
.promo-banner {
  max-height: 450px;
  object-fit: cover;
}

/* Overlay text */
.promo-heading {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.promo-subheading {
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .promo-banner {
    max-height: 300px;
  }
  .promo-heading {
    font-size: 1.4rem;
  }
  .promo-subheading {
    font-size: 0.95rem;
  }
  .carousel-caption {
    bottom: 15px;
    left: 0;
    right: 0;
    padding: 0 15px;
  }
}
/* Hero Banner base */
.hero-banner {
  max-height: 350px;       /* prevent banner being too tall */
  object-fit: cover;
  border-radius: 12px;
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  width: 90%;
}



/* Desktop sizes */
.hero-heading {
  font-size: 2.5rem;  /* ~40px */
  font-weight: bold;
}
.hero-subheading {
  font-size: 1.2rem;  /* ~19px */
}

/* ✅ Mobile responsiveness */
@media (max-width: 576px) {
  .hero-heading {
    font-size: 1.4rem;   /* smaller heading */
    line-height: 1.3;
  }
  .hero-subheading {
    font-size: 0.9rem;   /* smaller subheading */
  }
  .hero-caption {
    top: 55%;
    transform: translate(-50%, -50%);
    text-align: center; /* center text on mobile */
  }
  .hero-caption .btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
}

.product-card img {
  height: 160px;           /* fix image height */
  object-fit: cover;       /* keep aspect ratio */
}
@media (max-width: 576px) {
  .product-card h6 {
    font-size: 0.85rem;    /* smaller text on mobile */
  }
  .product-card p {
    font-size: 0.8rem;
  }
}

.card-img-top {
  border-radius: 6px 6px 0 0;
}
.card-body h6 {
  font-size: 1rem;
}
@media (max-width: 576px) {
  .card-body h6 {
    font-size: 0.9rem;
  }
  .card-body p {
    font-size: 0.85rem;
  }
}
/* ✅ Hide scrollbar for cleaner look */
.d-flex.flex-row.flex-nowrap::-webkit-scrollbar {
  display: none;
}
.d-flex.flex-row.flex-nowrap {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

.badge-dot {
  width: 10px; height: 10px;
  padding: 0;
  border-radius: 50%;
}

.badge {
  font-size: 0.7rem;
  min-width: 18px;
  min-height: 18px;
  padding: 4px 6px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
