 /* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Header Wrapper */
.main-header {
  background-color: #1a1f2e;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo + Icons */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
}

.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

/* Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  color: white;
  font-size: 18px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.icon-btn:hover {
  color: #ffc107;
}

.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
}

/* Search Bar */
.search-bar-container {
  background-color: #0f3460;
  padding: 12px 0;
}

.search-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: auto;
  gap: 0;
}

.search-wrapper select {
  padding: 10px 15px;
  border: none;
  background: #fff;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  color: #333;
}

.search-wrapper input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-wrapper button {
  background: #315985;
  color: white;
  border: none;
  padding: 11px 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 16px;
}

/* Nav Bar */
.nav-bar {
  background-color: #0f3460;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
 
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffc107;
}




/* Hamburger Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  margin-right: 10px;
  margin-left: 0px;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  /* Search bar layout fix for mobile */
  .search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
  }

  .search-wrapper select {
    display: none; /* hide dropdown for compact view */
  }

  /* Hide desktop menu */
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0f3460;
    width: 100%;
    padding: 10px 0;
  }

  /* When active (JS toggles this) */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}





.hot-badge {
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hide big menu */
  .nav-links {
    display: none;
  }

  /* Compact header */
  .header-container {
    padding: 10px 15px;
  }

  .logo {
    font-size: 20px;
  }

  .header-icons {
    gap: 15px;
  }

  .icon-btn {
    font-size: 20px;
  }

  /* Search Bar full width */
  .search-wrapper {
    flex-direction: row;
    padding: 0 10px;
    max-width: 100%;
  }

  .search-wrapper select {
    display: none; /* hide category dropdown on small screens */
  }

  .search-wrapper input {
    border-radius: 5px 0 0 5px;
  }

  .search-wrapper button {
    border-radius: 0 5px 5px 0;
  }
}

        
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 100%; 
    transition: transform 1s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: 600px; 
    object-fit: cover;
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
 }
/* Responsive hero image height */
@media (max-width: 768px) {
  .slide img {
    height: 300px; /* reduce height for tablets and small screens */
  }
}

@media (max-width: 480px) {
  .slide img {
    height: 220px; /* even smaller height for mobile phones */
  }
}

        .hero-content {
            width: 100%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0;
            position: relative;
            z-index: 2;
        }

        .hero-text {
            flex: 1;
            text-align: right;
            padding-right: 50px;
        }

        .hero-text h1 {
            font-size: 48px;
            color: #333;
            margin-bottom: 10px;
            font-weight: bold;
        }

        .hero-text h2 {
            font-size: 36px;
            color: #555;
            margin-bottom: 10px;
            font-weight: 300;
        }

        .hero-text h3 {
            font-size: 24px;
            color: #777;
            margin-bottom: 20px;
            font-weight: 300;
        }

        .price {
            font-size: 28px;
            color: #007bff;
            margin-bottom: 30px;
            font-weight: bold;
        }

        .shop-now-btn {
            background-color: #007bff;
            color: white;
            padding: 15px 40px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .hero-image {
            flex: 1;
            text-align: center;
            position: relative;
        }

        .hero-image img {
            max-width: 100%;
            height: auto;
            border-radius: 20px;
        }

        
        .carousel-dots {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 3;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            cursor: pointer;
        }

        .dot.active {
            background-color: #007bff;
        }

        .dot.inactive {
            background-color: white;
            border: 2px solid #007bff;
        }

    

        .shop-category {
            padding: 50px 0;
            background-color: #fff;
            text-align: center;
        }
        
        .shop-category h2 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 25px;
            position: relative;
            display: inline-block;
        }
        
        .shop-category h2::after {
            content: "";
            display: block;
            width: 80px;
            height: 2px;
            background-color: #0056d2;
            margin: 8px auto 0;
        }
        
        .category-list {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 50px;
        }
        
        .category-item {
            width: 120px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .category-item:hover {
            transform: translateY(-5px);
        }
        
        .category-icon {
            width: 120px;
            height: 120px;
            border: 1px solid #ddd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            background-color: #fff;
            transition: box-shadow 0.3s ease, border-color 0.3s ease;
        }
        
        .category-item:hover .category-icon {
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            border-color: #0056d2;
        }
        
        .category-icon img {
            width: 70%;
            height: 70%;
            object-fit: contain;
        }
        
        .category-item p {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-top: 8px;
        }
        

     
        @media (max-width: 768px) {
            .header .container {
                flex-direction: column;
                gap: 15px;
            }

            .search-bar {
                width: 100%;
                margin: 0;
            }

            .nav-bar .container {
                flex-direction: column;
                gap: 15px;
            }

            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
            }

            .hero-content {
                flex-direction: column;
                text-align: center;
            }

            .hero-text {
                text-align: center;
                padding-right: 0;
                margin-bottom: 30px;
            }

            .hero-text h1 {
                font-size: 32px;
            }

            .hero-text h2 {
                font-size: 24px;
            }
        }

        @media (max-width: 480px) {
            .top-bar-right {
                flex-direction: column;
                gap: 5px;
            }

            .header-right {
                gap: 15px;
            }

            .nav-menu {
                gap: 15px;
            }

            .hero-text h1 {
                font-size: 24px;
            }

            .hero-text h2 {
                font-size: 20px;
            }
        }        	
		.container {
             max-width: 1200px; margin: 0 auto; padding: 0 20px;
             }
		.main { 
            display: flex; 
            gap: 30px; padding: 40px 0; 
        }
		.sidebar { 
            width: 260px; 
        }
		.sidebar h3 { 
            font-size: 16px; margin-bottom: 12px; color: #333; 
        }
		.sidebar .menu { 
            background: #fff; border: 1px solid #eee; padding: 20px; 
            border-radius: 6px; 
        }
		.sidebar ul {
             list-style: none;
             }
		.sidebar li {
             padding: 8px 0; 
             color: #555; }
		.content { 
            flex: 1; }
		.subcategories { 
            display:flex; gap:20px; margin-bottom:20px; flex-wrap:wrap;
         }
		.subcat { 
            width:140px; text-align:center; }
		.subcat img {
             width:100%; height:100px; 
             object-fit:cover; border:1px solid #eee; 
             border-radius:6px; }
		.toolbar { 
            display:flex; justify-content:space-between; 
            align-items:center; margin:18px 0; }
		.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row by default */
  gap: 20px;
}

.product {
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 5px;
  background: #fff;
  text-align: center;
  transition: box-shadow 0.3s;
}

.product:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Tablet View */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 📱 Mobile View: 2 per row */


		.product .title { 
            font-size:14px; 
            margin:10px 0; 
            color:#333; 
        }
		.product .price { 
            color:#414142; font-weight:bold; }
		.filter-box {
             margin:14px 0; background:#fff;
              padding:12px; border-radius:6px;
               border:1px solid #eee; }
		@media (max-width: 768px) {
		
			.sidebar { display:none; }
		}
		@media (max-width: 480px) {
			.product-grid { grid-template-columns:repeat(1,1fr); }
		}

  .flash {
     width:100%; padding:12px 0; }
.flash .container {
     display:flex; justify-content:space-between; 
     align-items:center; }
.flash.success { 
    background:#e6ffed; color:#0f5132; 
    border-top:1px solid #b7f5c9; 
    border-bottom:1px solid #b7f5c9; }
.flash.error {
     background:#ffe6e6; 
     color:#842029; 
     border-top:1px solid #f5b7b7;
      border-bottom:1px solid #f5b7b7; 
    }
.flash .flash-close { 
    background:transparent; border:none; font-size:18px; cursor:pointer; 
    color:inherit; }

.pd-rating { color:#f5a623; margin:6px 0 16px; 
}




.latest-products {
  padding: 40px 0;
  background: #fff;
}
.latest-products h2 {
  font-size: 22px;
  border-bottom: 2px solid #007bff;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  transition: 0.3s ease;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 1px;
}
.product-info .shop-name {
  font-size: 13px;
  color: #666;
}
.product-info h3 {
  font-size: 12px;
  margin: 6px 0;
  height: 40px;
  overflow: hidden;color: #595957;
  padding-bottom: 25px;
  text-align: left;
}
.rating {
  color: #f5a623;
  font-size: 14px;
  text-align: left;
}
.rating span {
  color: #666;
  font-size: 13px;
  margin-left: 3px;
}
.price {
  font-weight: 700;
  font-size: 16px;
  color: #0d6efd;
  margin-top: 6px;
  text-align: left;
}
.old-price {
  color: #999;
  text-decoration: line-through;
  margin-right: 6px;
}
.new-price {
  color: #0d6efd;
}
.discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4d4d;
  color: #fff;
  font-size: 13px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card img {
    height: 140px;
  }
  .product-info h3 {
    font-size: 11px;
    height: 34px;
  }
}





.service-features {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #2f7ef4;
  color: #fff;
  border-radius: 6px;
  padding: 25px 10px;
  flex-wrap: wrap;
  gap: 10px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.feature-item i {
  font-size: 28px;
  color: #fff;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.feature-item p {
  font-size: 13px;
  margin: 2px 0 0;
  opacity: 0.9;
}




       