/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========== HEADER STYLES ========== */
.top-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 40px;
    height: 40px;
    background: #e53935;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    padding: 5px;
}

.logo-text h1 {
    font-size: 28px;
    color: #e53935;
    font-weight: 700;
}

/* Location Selector */
.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.location-icon {
    color: #e53935;
    font-size: 18px;
}

.location-text {
    font-size: 12px;
}

.location-text p {
    color: #666;
    margin: 0;
}

.location-text a {
    color: #2196F3;
    font-weight: 500;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
}

.search-bar {
    display: flex;
    border: 2px solid #e53935;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: #e53935;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.header-link:hover {
    color: #e53935;
}

.header-link svg,
.header-link .icon {
    font-size: 20px;
}

.cart-badge {
    background: #e53935;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    position: relative;
    top: -10px;
    left: -5px;
}

/* Secondary Navigation */
.secondary-nav {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
}

.secondary-nav::-webkit-scrollbar {
    height: 4px;
}

.secondary-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.nav-links {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.nav-links a {
    padding: 12px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #e53935;
    border-bottom-color: #e53935;
}

/* ========== CATEGORY ICONS BAR ========== */
.category-bar {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
}

.category-item {
    text-align: center;
    min-width: 100px;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.category-item p {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

/* ========== BANNER SLIDER ========== */
.banner-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.banner-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    height: 100%;
}

.banner-content {
    color: white;
    max-width: 50%;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffd700;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.shop-now-btn {
    background: #e53935;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.shop-now-btn:hover {
    background: #c62828;
}

.banner-image {
    max-width: 45%;
}

.banner-image img {
    width: 100%;
    height: auto;
}

/* ========== BRAND OFFERS SECTION ========== */
.brand-offers {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.offer-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.offer-card p {
    color: #e53935;
    font-size: 16px;
    font-weight: 600;
}

/* ========== PRODUCTS SECTIONS ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.view-all-btn {
    background: #ffe0e0;
    color: #e53935;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.products-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Top Brands Section */
.brands-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.brands-header {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.brand-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.brand-item:hover {
    border-color: #e53935;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand-logo {
    width: 80px;
    height: 60px;
    margin: 0 auto 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item p {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Product Categories with Images */
.category-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-product-card {
    background: #faf9f4;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.category-product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.category-product-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.category-product-card p {
    font-size: 13px;
    color: #666;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.product-rating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #388e3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    min-height: 40px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    font-size: 13px;
    color: #388e3c;
    font-weight: 600;
}

/* ========== BESTSELLERS SECTION ========== */
.bestsellers-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.bestsellers-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.bestsellers-scroll::-webkit-scrollbar {
    height: 6px;
}

.bestsellers-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.bestseller-card {
    min-width: 250px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========== PROMOTIONAL BANNERS ========== */
.promo-banners {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-banner {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 200px;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== FOOTER ========== */
.footer {
    background: white;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

/* Footer Features */
.footer-features {
    background: #f8f8f8;
    padding: 30px 0;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 36px;
    color: #e53935;
}

.feature-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 13px;
    color: #666;
}

/* Footer Links */
.footer-links {
    padding: 40px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #e53935;
}

/* Footer Bottom */
.footer-bottom {
    background: #f8f8f8;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.app-links {
    display: flex;
    gap: 15px;
}

.app-link img {
    height: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #e53935;
    color: white;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* ========== LOGIN PAGE STYLES ========== */
.login-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #e53935;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #e53935;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #c62828;
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: #2196F3;
    font-size: 13px;
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: #e53935;
    font-weight: 600;
}

/* ========== TRACK ORDER PAGE ========== */
.track-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.track-header {
    text-align: center;
    margin-bottom: 30px;
}

.track-header h2 {
    color: #e53935;
    font-size: 28px;
    margin-bottom: 10px;
}

.track-header p {
    color: #666;
    font-size: 14px;
}

.track-btn {
    width: 100%;
    padding: 14px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.track-btn:hover {
    background: #c62828;
}

/* ========== CART PAGE ========== */
.cart-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-header {
    margin-bottom: 30px;
}

.cart-header h2 {
    font-size: 28px;
    color: #333;
}

.cart-empty {
    background: white;
    padding: 80px 40px;
    text-align: center;
    border-radius: 8px;
}

.cart-empty-icon {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.cart-empty h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.cart-empty p {
    color: #666;
    margin-bottom: 25px;
}

.continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: #e53935;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-section {
        justify-content: space-between;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
    }
    
    .header-actions {
        justify-content: space-around;
        width: 100%;
    }
    
    .banner-slide {
        flex-direction: column;
        padding: 30px;
    }
    
    .banner-content,
    .banner-image {
        max-width: 100%;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .offers-grid,
    .category-products,
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .features-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 22px;
    }
    
    .category-container {
        justify-content: flex-start;
    }
    
    .banner-content h2 {
        font-size: 22px;
    }
    
    .banner-content h3 {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
