:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141b34;
    --bg-card: #1a2238;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --border: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-price {
    font-size: 14px;
    color: var(--success);
}

/* Hero Section */
.hero {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

.hero-swiper {
    border-radius: 12px;
    overflow: hidden;
}

.featured-card {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95), transparent);
    z-index: 1;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.featured-card-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-card-edition {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.featured-card-price {
    display: flex;
    align-items: center;
    gap: 16px;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--success);
}

.price-old {
    font-size: 24px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Filters */
.filters {
    padding: 40px 0 20px;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 20px 24px;
    border-radius: 12px;
}

.filters-left {
    display: flex;
    gap: 16px;
}

.filter-select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.results-count {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Products Grid */
.products {
    padding: 40px 0 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card-image-wrapper {
    position: relative;
    padding-top: 133%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-card-image {
    transform: scale(1.1);
}

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.discount-badge-small {
    background: var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.region-badge {
    background: rgba(20, 27, 52, 0.8);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-content {
    padding: 16px;
}

.product-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-edition {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.product-price-old {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.platform-badge {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more {
    display: block;
    margin: 40px auto 0;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.load-more:hover {
    background: var(--accent-hover);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.disclaimer {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
    margin-top: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .featured-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .search-box {
        order: 2;
        max-width: none;
        flex: 1;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .filters-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .filters-left {
        flex-direction: column;
    }

    .featured-card {
        height: 300px;
    }

    .featured-card-title {
        font-size: 24px;
    }
}

/* Swiper Overrides */
.swiper-button-prev,
.swiper-button-next {
    color: var(--text-primary);
}

.swiper-pagination-bullet {
    background: var(--text-primary);
}

.swiper-pagination-bullet-active {
    background: var(--accent);
}