:root {
    --primary-color: #d71920;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --border-color: #eee;
    --top-bar-bg: #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--top-bar-bg);
    color: #fff;
    padding: 8px 50px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.logo span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    letter-spacing: 2px;
    margin-top: 2px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.search-container .search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    margin-left: -4px;
}

.header-tools {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 0 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-dropdown {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 13px;
    padding: 15px;
    display: block;
    text-transform: uppercase;
}

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

/* Main Container */
.container {
    max-width: 1250px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Banner */
.hero-section {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: none;
}

.banner-slider img.active {
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    width: 25px;
    border-radius: 5px;
}

/* Quick Categories */
.quick-categories {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow-x: auto;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

.cat-icon {
    width: 50px;
    height: 50px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features */
.features-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 800;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 25px;
    background: var(--primary-color);
    display: block;
}

.view-all {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 3px;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 1;
}

.badge.hot { background: #d71920; }
.badge.new { background: #28a745; }

.product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    display: block;
}

.product-name {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

/* Side Promos */
.side-promos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-banner {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.promo-banner img {
    width: 100%;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    header, .main-nav, .top-bar {
        padding: 10px 20px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .side-promos {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .promo-banner {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 5px 10px;
    }
    
    header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .logo span {
        font-size: 12px;
    }
    
    .search-container {
        order: 3;
        max-width: 100%;
    }
    
    .header-tools {
        gap: 10px;
    }
    
    .tool-item span {
        display: none;
    }
    
    .main-nav {
        padding: 0 10px;
    }
    
    .nav-links {
        display: none; /* Hide nav links on mobile for simplicity */
    }
    
    .category-dropdown {
        width: 100%;
        justify-content: center;
    }
    
    .hero-section {
        height: 200px;
    }
    
    .banner-slider img {
        height: 200px;
    }
    
    .features-bar {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-img {
        height: 120px;
    }
    
    .product-name {
        font-size: 12px;
        height: 34px;
    }
    
    .product-price {
        font-size: 14px;
    }
}
