/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
}

/* Top Banner */
.top-banner {
    background: #f5f5f5;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.top-banner i {
    margin-right: 5px;
    color: #333;
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #333;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-icon {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.header-icon:hover {
    color: #666;
}

/* Navigation Menu */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.nav-menu li {
    white-space: nowrap;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6b35;
}

/* Hero Section */
.hero-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.sidebar-banners, .right-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-banner, .right-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 30px 20px;
    color: white;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-content p {
    font-size: 14px;
    opacity: 0.9;
}

.main-hero-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 15px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-sale-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-discount {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.percent {
    font-size: 60px;
    vertical-align: top;
}

.hero-text {
    font-size: 48px;
    font-weight: bold;
    margin: -10px 0 10px 0;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #555;
}

/* Category Section */
.category-section {
    padding: 40px 0;
    background: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-item {
    text-align: center;
}

.category-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 2px solid #eee;
    transition: transform 0.3s;
}

.category-circle:hover {
    transform: scale(1.1);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Products Section */
.products-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

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

.current-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff6b35;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

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

.stars {
    color: #ffc107;
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
    color: #666;
}

.add-to-cart-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #555;
}

/* Brand Section */
.brand-section {
    padding: 40px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-item {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    color: #333;
    transition: background 0.3s;
    cursor: pointer;
}

.brand-item:hover {
    background: #e9ecef;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.filters-sidebar h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.price-display {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: #666;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.size-btn:hover, .size-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.3s;
}

.color-option:hover, .color-option.active {
    transform: scale(1.2);
    border-color: #333;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.view-btn.active, .view-btn:hover {
    background: #333;
    color: white;
    border-color: #333;
}

/* Products Container */
.products-container {
    padding: 0 20px;
}

.products-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.products-container.list-view .product-card {
    display: flex;
    margin-bottom: 20px;
}

.products-container.list-view .product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.products-container.list-view .product-info {
    flex: 1;
    padding: 20px;
}

/* Side Promotion Banner */
.side-promo-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 10px;
    border-radius: 10px 0 0 10px;
    z-index: 1000;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.side-promo-banner:hover {
    transform: translateY(-50%) translateX(-5px);
}

.promo-content {
    position: relative;
}

.promo-text {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.promo-close {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.promo-close:hover {
    opacity: 1;
}

/* Registration Modal */
.registration-modal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.registration-form {
    padding: 30px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.registration-form h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.discount-offer {
    margin-bottom: 20px;
}

.discount-percent {
    font-size: 48px;
    font-weight: bold;
    color: #ff6b35;
}

.discount-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    margin-left: 10px;
}

.benefits {
    margin-bottom: 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    color: #333;
}

.conditions {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.register-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    width: 100%;
    margin-bottom: 15px;
}

.register-btn:hover {
    background: #555;
    color: white;
}

.terms-text {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.promo-visual {
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-app h5 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.phone-mockup {
    width: 200px;
    height: 300px;
    background: #333;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content {
    background: white;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.app-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Shopping Cart */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #ff6b35;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.cart-total {
    text-align: right;
    padding: 20px 0;
    border-top: 2px solid #eee;
    margin-top: 20px;
}

/* Content Sections */
.content-section {
    min-height: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .row {
        flex-direction: column;
    }
    
    .col-3, .col-6 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nav-menu {
        padding: 0 10px;
    }
    
    .nav-menu a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .hero-discount {
        font-size: 80px;
    }
    
    .hero-text {
        font-size: 32px;
    }
    
    .side-promo-banner {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .header-actions {
        gap: 15px;
    }
}


/* Enhanced Product Cards */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.quick-view-btn, .wishlist-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-view-btn:hover, .wishlist-btn:hover {
    background: #333;
    color: white;
    transform: scale(1.1);
}

.product-sizes {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.size-tag {
    background: #f8f9fa;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

/* Quick View Modal Enhancements */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.size-options .size-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.size-options .size-btn:hover,
.size-options .size-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-options .color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.color-options .color-option:hover,
.color-options .color-option.active {
    transform: scale(1.2);
    border-color: #333;
}

/* No Products State */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products i {
    color: #ddd;
    margin-bottom: 20px;
}

/* List View Styles */
.products-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-container.list-view .product-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.products-container.list-view .product-card:hover {
    transform: translateY(-2px);
}

.products-container.list-view .product-image-container {
    width: 200px;
    flex-shrink: 0;
}

.products-container.list-view .product-image {
    width: 100%;
    height: 200px;
}

.products-container.list-view .product-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-container.list-view .product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.products-container.list-view .current-price {
    font-size: 20px;
}

.products-container.list-view .add-to-cart-btn {
    align-self: flex-start;
    margin-top: 15px;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(even) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .products-container.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-container.list-view .product-card {
        flex-direction: column;
    }
    
    .products-container.list-view .product-image-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .products-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-actions {
        position: static;
        opacity: 1;
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }
}

