/* style.css - Modern luxury design for MSH */

/* 1. Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    background-color: #fcfcfc; /* Very light cream background */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 2. Header & Navigation */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: #555;
    padding: 5px 0;
}

.main-nav a:hover, .main-nav a.active {
    color: #007bff; /* Deep Teal accent */
    border-bottom: 2px solid #007bff;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 18px;
    color: #555;
}

.header-icons i:hover {
    color: #007bff;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #007bff;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* 3. Hero Slider */
.hero-slider {
    height: 70vh; /* Shorter than full viewport */
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Transparent dark overlay */
}

.slide-content {
    position: relative;
    z-index: 10;
    color: #fff;
}

.slide-content h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}

.slider-nav span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.3);
    color: #fff;
    padding: 15px;
    cursor: pointer;
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

/* 4. Category Grid */
.popular-categories {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-item {
    display: block;
    text-align: center;
}

.category-item img {
    width: 100%;
    border-radius: 8px;
    transition: 0.3s;
}

.category-item:hover img {
    transform: translateY(-5px);
}

.category-item h4 {
    margin-top: 15px;
    font-weight: 600;
    color: #555;
}

/* 5. Product Grid */
.new-arrivals {
    padding-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    display: block;
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffc107; /* Gold/Yellow tag */
    color: #fff;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 11px;
}

.product-action {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.8);
    transition: 0.3s;
    text-align: center;
}

.product-card:hover .product-action {
    bottom: 0;
}

.add-to-cart-btn {
    font-size: 13px;
    font-weight: 600;
    color: #007bff;
}

.product-details {
    padding: 15px;
}

.product-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.current-price {
    color: #333;
    font-weight: 700;
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

/* 6. Footer */
.main-footer {
    background-color: #333;
    color: #eee;
    padding: 50px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.main-footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-links ul li { margin-bottom: 8px; }

/* 7. WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    z-index: 100;
}