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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #dc2626;
    cursor: pointer;
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.logo-text {
    text-align: center;
}

.logo-text h1 {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    line-height: 1;
}

.logo-ll {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 2px;
}

.logo-magazine {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 2px 0 0 0;
}

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

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 24px;
    color: #dc2626;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.collection-label {
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.collection-title {
    color: #dc2626;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.cta-btn {
    background: transparent;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(220, 38, 38, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #dc2626;
    transform: scale(1.2);
}

/* Categories */
.categories {
    padding: 40px 0;
    background-color: #fff;
}

.categories-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.category-item:hover {
    background-color: #fef2f2;
    transform: translateY(-2px);
}

.category-item.active {
    background-color: #dc2626;
    color: white;
}

.category-item i {
    font-size: 24px;
    color: #dc2626;
}

.category-item.active i {
    color: white;
}

.category-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Products */
.products {
    padding: 40px 0 80px;
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #dc2626;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.product-favorite i {
    color: #dc2626;
    font-size: 18px;
}

.product-favorite.favorited i {
    color: #dc2626;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

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

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

.current-price {
    color: #dc2626;
    font-size: 20px;
    font-weight: 700;
}

.buy-btn {
    width: 100%;
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-btn:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #dc2626;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 40px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    transition: left 0.3s ease;
}

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

.mobile-menu-content {
    width: 280px;
    height: 100%;
    background-color: white;
    padding: 20px;
    overflow-y: auto;
}

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

.mobile-menu-header .logo-text {
    text-align: left;
}

.mobile-menu-header h3 {
    color: #dc2626;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    line-height: 1;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: #dc2626;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.mobile-nav-item.active {
    background-color: #dc2626;
    color: #fff;
}

.mobile-nav-item i {
    font-size: 20px;
    width: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-actions {
        gap: 15px;
    }

    .logo-ll {
        font-size: 28px;
    }

    .logo-magazine {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .collection-title {
        font-size: 36px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-ll {
        font-size: 24px;
    }

    .logo-magazine {
        font-size: 18px;
    }

    .logo-subtitle {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero {
        padding: 80px 0 30px;
    }

    .collection-title {
        font-size: 28px;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .categories-scroll {
        gap: 20px;
    }
    
    .category-item {
        min-width: 80px;
        padding: 15px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

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

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
.category-item:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .hero,
    .categories,
    .modal,
    .mobile-menu {
        display: none;
    }
    
    .products {
        padding-top: 0;
    }
}
