:root {
    --primary-color: #ff3f6c;
    --secondary-color: #1a1a1a;
    --accent-color: #ff3f6c;
    --light-bg: #f5f5f6;
    --text-dark: #282c3f;
    --text-light: #535766;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
    transition: transform 0.3s ease;
}

body.menu-open {
    transform: translateX(280px);
    overflow: hidden;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--secondary-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    background-color: var(--light-bg);
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.action-icons .icon {
    margin-left: 20px;
    font-size: 18px;
    color: var(--text-dark);
    position: relative;
}

.action-icons .icon:hover {
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ IMPROVED MOBILE MENU STYLES - PROPERLY DESIGNED ✅ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    margin-right: 15px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px; /* Start off-screen to the left */
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    left: 0; /* Slide in from left */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-menu-logo {
    font-weight: 800;
    font-size: 20px;
    color: var(--secondary-color);
}

.mobile-menu-logo span {
    color: var(--primary-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    padding: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav-section {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-section-title {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary-color);
    background-color: #f9f9f9;
    margin: 0;
    display: flex;
    align-items: center;
}

.mobile-nav-section-title i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-nav-item {
    margin-bottom: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background-color: #f9f9f9;
    padding-left: 25px;
}

.mobile-nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: #fff5f7;
    border-left: 3px solid var(--primary-color);
}

.mobile-nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ✅ HERO SLIDER */
.carousel-item img {
    height: 450px;
    object-fit: cover;
}

.carousel-caption h2 {
    font-size: 42px;
    font-weight: 700;
}

.carousel-caption p {
    font-size: 18px;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #e63957;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,63,108,0.3);
}

/* Category Section */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.category-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: white;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.category-img {
    height: 200px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-content {
    padding: 15px;
}

.category-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
}

/* Product Grid */
.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: white;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-content {
    padding: 15px;
}

.product-brand {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.current-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.discount {
    font-size: 12px;
    color: #ff905a;
    font-weight: 600;
    margin-left: 8px;
}

.rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #ffc107;
    margin-right: 5px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    color: #b8b8b8;
    font-size: 14px;
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

.slide-in-left { opacity: 0; transform: translateX(-50px); transition: all 0.6s ease; }
.slide-in-left.appear { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(50px); transition: all 0.6s ease; }
.slide-in-right.appear { opacity: 1; transform: translateX(0); }

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .carousel-item img { height: 300px; }
    .carousel-caption h2 { font-size: 28px; }
    .carousel-caption p { font-size: 14px; }
    .category-img { height: 150px; }
    .product-img { height: 200px; }
    
    .search-bar {
        margin: 10px 0;
    }
    
    .header .container .d-flex {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
        flex-grow: 1;
    }
    
    .mobile-menu-btn {
        order: 0;
    }
    
    .action-icons {
        order: 2;
    }
    
    .search-bar-container {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
}