/* Hero background */
.hero-section {
  background: linear-gradient(to right, #ffe0b2, #fff3e0);
}

/* Brand Dot */
.logo-dot {
  width: 12px;
  height: 12px;
  background: #f4a261;
  border-radius: 50%;
}

/* Glassy Navbar */
.glass-navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
}

/* Navbar Link Animation */
.nav-link.nav-anim {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-link.nav-anim::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #f4a261;
  transition: width 0.3s ease;
}

.nav-link.nav-anim:hover::after {
  width: 100%;
}

/* Button Styling */
.btn-warning {
  background-color: #f4a261;
  border: none;
}

.btn-warning:hover {
  background-color: #e76f51;
}

/* Cart and Wishlist Count */
.cart-count,
.wishlist-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #e63946;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* Carousel */
.carousel-item img {
  height: 90vh;
  object-fit: cover;
  filter: brightness(75%);
}

.carousel-caption {
  bottom: 20%;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.carousel-caption h2 {
  font-size: 3rem;
}

.carousel-caption p {
  font-size: 1.2rem;
}

/* Product Cards */
/* Responsive Product Card */
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.product-card img {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
}

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

/* Responsive Scaling */
@media (max-width: 768px) {
  .product-card {
    padding: 8px;
  }
  .product-card .btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .product-card p,
  .product-card h5 {
    font-size: 0.85rem;
  }
}

.hover-details h5,
.hover-details p,
.hover-details button {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* Wishlist */
.wishlist-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  padding: 6px 8px;
  font-size: 1.2rem;
  color: #e76f51;
  transition: all 0.2s ease;
  z-index: 10;
}

.wishlist-btn:hover {
  background: #ffe8e1;
  color: #d84315;
}

.wishlist-btn.active i {
  color: #e63946; /* red color for active */
}

#wishlist-count {
  font-size: 0.65rem;
  padding: 4px 6px;
  font-weight: bold;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  color: #fff;
}

/* Category Scroll Section */
.category-scroll {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.category-scroll-item {
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  min-width: 90px;
}

.category-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.category-scroll-item:hover .category-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-scroll-item:hover div {
  color: #d97706;
}

/* ----------------- Responsive Adjustments ----------------- */
@media (max-width: 992px) {
  .category-icon {
    width: 70px;
    height: 70px;
  }
  .category-scroll-item {
    min-width: 80px;
  }
}

@media (max-width: 768px) {
  .category-icon {
    width: 60px;
    height: 60px;
  }
  .category-scroll-item div {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .category-scroll {
    gap: 1rem; /* smaller spacing */
  }
  .category-icon {
    width: 55px;
    height: 55px;
  }
  .category-scroll-item {
    min-width: 70px;
  }
}

#wishlist-items .wishlist-entry {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.wishlist-entry img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wishlist-entry .wishlist-text h6 {
  margin-bottom: 4px;
  font-weight: 600;
}

.wishlist-entry .wishlist-text small {
  font-size: 0.85rem;
  color: #777;
}

.wishlist-entry .wishlist-text span {
  font-weight: 500;
  color: #e76f51;
}

/* Hide Top Navbar on Mobile */
@media (max-width: 991px) {
  .navbar {
    display: none !important;
  }
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.bottom-nav a {
  text-align: center;
  font-size: 0.75rem;
  color: #333;
  text-decoration: none;
}

.bottom-nav i {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.bottom-nav .cart-badge {
  position: absolute;
  top: 2px;
  right: 20px;
  background: red;
  color: white;
  font-size: 0.65rem;
  border-radius: 50%;
  padding: 2px 5px;
}

/* Mobile Navbar Styles */
/* Default: Hide mobile navbar for larger screens */
.mobile-navbar {
  display: none;
}

/* Show mobile navbar for screens 768px and below */
@media (max-width: 768px) {
  .mobile-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .mobile-navbar .nav-left,
  .mobile-navbar .nav-right {
    display: flex;
    align-items: center;
  }

  .mobile-navbar .nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
  }

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

  .mobile-navbar button {
    background: none;
    border: none;
    font-size: 22px;
    margin-left: 10px;
    cursor: pointer;
  }

  /* Hide your old desktop navbar */
  .desktop-navbar {
    display: none;
  }
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 20px;
}

.sidebar-header button {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.filter-section {
  margin-top: 20px;
}

.filter-section h3 {
  margin-bottom: 10px;
}

/* Overlay Styles */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.overlay.active {
  display: block;
}

/* Hidden by default */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: -60px;
  left: 0;
  width: 100%;
  z-index: 1050;
  transition: top 0.3s ease;
}

.search-bar.active {
  top: 60px; /* Below navbar */
}

.search-bar input {
  flex: 1;
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 10px;
}

.search-bar button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Cart Count Badge */
.cart-btn {
  position: relative;
}

.cart-btn .cart-count-mobile {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}
