* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    background: #fff;
}



.header {

    text-align: center;
    padding: 90px 20px;
    background: linear-gradient(to right, #e2dada, #eac5c5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 50px;
   
}

.header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0f0101;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.header p {
    font-size: 1.4rem;
    color: #060000;
    margin-bottom: 30px;
}

.header button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: #1268ae;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.header button:hover {
    background-color: #1e88e5;
    transform: scale(1.1);
}
.banner-slider {
    position: relative;
    width: 100%;
    height: 550px;
    z-index: 1;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide:first-child .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 80%;
    width: 100%;
}

.banner-slide:nth-child(2) .banner-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    text-align: left;
    max-width: 60%;
}

.banner-content {
    color: white;
}

.banner-content h1 {
    color: #9e9e9e;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.banner-content p {
    color: #dddcdc;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.banner-content button {
    padding: 12px 30px;
    font-size: 1.2rem;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.banner-content button:hover {
    background-color: #1c8b8b;
    transform: scale(1.05);
    
}


 /* Banner Styles */
 .premium-banner {
    background: linear-gradient(359deg, #fffafa, #010202);
    color: white;
    padding: 20px 20px;
    text-align: center;
    height: 200px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
 }
.premium-banner h3 {
    font-size: 30px;
    margin: 35px 0 17px 0;
    font-weight: 600;
}

.premium-banner p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Categories Section Styles */
.categories {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.category-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Keep original text color */
    display: block; /* Ensure full div is clickable */
}


.categories-header {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

.categories-header::after {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.category {
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category:hover {
    transform: translateY(-5px);
}

.category img {
    width: 100%;
    height: 249px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.category span {
    display: block;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    height: 47px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-header {
        font-size: 28px;
    }

    .premium-banner h3 {
        font-size: 20px;
    }

    .premium-banner p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category img {
        height: 180px;
    }

    .categories-header {
        font-size: 24px;
    }
}

.top-products-banner {
    background: linear-gradient(135deg, #1c8b8b, #000000);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin: 50px 0;
}

.top-products-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.top-products-banner p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}


/* Products Grid */
.products-section {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;
   
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
    
  }
  
  
  /* Product Card */
  .product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    min-height: 450px; /* Set a minimum height to ensure uniformity */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
  }
  
  .product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
  }
  
  .offer-badge {
    position: absolute;
    top: 1px;
    left: 2px;
    background-color: #972626;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.05);
  }
  
  .product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    height: 35px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(6, 3, 3, 0.1);
  }

  .wishlist-icon {
    color: #ccc;
    font-size: 18px;
  }

.wishlist-icon.active {
    color: #e74c3c;
  }
  
  .product-details {
    padding: 15px;
    flex-grow: 1; /* Allow the details section to grow and fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure consistent spacing */
  }
  
  .product-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    height: 50px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Vendor-prefixed for WebKit browsers */
    -webkit-box-orient: vertical;
    line-clamp: 2; /* Standard property for modern browsers */
  }
  
  .price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .mrp {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9rem;
  }
  
  .selling-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1c8b8b;
  }
  
  .product-rating {
    color: #ffd700;
    margin-bottom: 12px;
  }
  
  .add-to-cart {
    width: 100%;
    padding: 10px;
    background: #1c8b8b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .add-to-cart:hover {
    background: #156666;
  }