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

:root {
    --primary: #e68bbe;
    --primary-dark: #d66ba9;
    --primary-light: #fde4f2;
    --text-dark: #222;
    --text-muted: #666;
    --border: #e0e0e0;
    --bg-light: #f9f9f9;
    --white: #fff;
}

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

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

/* Top Bar */
.top-bar {
    background: #222;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 25px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a:hover {
    color: var(--primary);
}

/* Main Header */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo a {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* Search Wrapper */
.search-wrapper {
    flex: 1;
    display: flex;
    max-width: 600px;
}

.category-select {
    padding: 0 15px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-right: none;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    padding: 0 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Cart Button */
.header-actions {
    display: flex;
    gap: 20px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    transition: background 0.3s;
}

.cart-btn:hover {
    background: var(--primary-dark);
}

.cart-btn i {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--text-dark);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.cart-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cart-text small {
    font-size: 11px;
    opacity: 0.9;
}

.cart-text strong {
    font-size: 14px;
}

/* Main Nav */
.main-nav {
    background: var(--text-dark);
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.categories-menu {
    position: relative;
}

.categories-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
}

.categories-menu:hover .categories-dropdown {
    display: block;
}

.categories-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.categories-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding-left: 25px;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 18px 0;
    display: block;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: var(--primary-dark);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
}

/* Features Section */
.features-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 32px;
    color: var(--primary);
}

.feature-text h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 28px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Offers & Popular Sections */
.offers-section,
.popular-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.popular-section {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.new-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--primary);
}

/* Footer */
.main-footer {
    background: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-wrapper {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-content {
        flex-direction: column;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid,
    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
}
