:root {
    --primary-color: #f8f9fa;
    --secondary-color: #212529;
    --accent-color: #e63946;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 12px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icons a {
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    z-index: 10;
    border: none;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn i {
    color: #e63946;
}
.wishlist-btn.active i {
    color: #e63946;
    font-weight: 900;
}

.sub-category-filters .btn-outline {
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
}

.sub-category-filters .btn-outline.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.product-info .price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.available-sizes {
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #666;
}

.size-tag {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid #ddd;
    margin-right: 4px;
    border-radius: 3px;
    background: #f9f9f9;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-section p, .footer-section a {
    color: #ccc;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #444;
    font-size: 0.75rem;
    color: #ccc;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background: #444;
}

.btn-accent {
    background: var(--accent-color);
}

.btn-accent:hover {
    background: #c12e3a;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem !important; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: block !important;
    }
    
    .hero { height: 400px !important; }
    .hero h1 { font-size: 2.2rem !important; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .logo a { font-size: 1.2rem; }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick Size Selection Styles */
.quick-size-select input[type="radio"]:checked + .size-pill {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.product-image-scroll::-webkit-scrollbar {
    display: none;
}

.product-image-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.promotion-bar a:hover {
    text-decoration: underline;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--secondary-color);
}

.close-sidebar {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.sidebar-links {
    list-style: none;
    padding: 20px 0;
}

.sidebar-links li a {
    display: block;
    padding: 12px 25px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.sidebar-links li a:hover {
    background: #f8f9fa;
    color: var(--accent-color);
}

.sidebar-section {
    padding: 20px 25px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
