/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d2d2d;
    background: #f8f9fa;
}

/* ========== TOP BANNER ========== */
.top-banner {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    text-align: center;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ========== NAVIGATION ========== */
nav {
    background: #1a1a2e;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #a29bfe;
    border-bottom-color: #a29bfe;
}

.cart-icon {
    color: white;
    font-size: 1.3rem;
    background: #2d2d44;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-icon:hover {
    background: #3d3d5c;
}

.cart-count {
    background: #6c5ce7;
    color: white;
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    min-width: 22px;
    text-align: center;
}

/* ========== HERO SECTION ========== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(108, 92, 231, 0.85)),
                url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=1200');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

/* ========== CATEGORIES ========== */
.categories {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 2.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.category-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ========== FEATURED GAMES ========== */
.featured-games {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-games h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 2.5rem;
}

/* ========== NEWSLETTER ========== */
.newsletter {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    flex: 1;
    min-width: 200px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* ========== PAGE BANNER ========== */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.page-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ========== FILTER BAR ========== */
.filter-bar {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-options select {
    padding: 0.6rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    flex: 1;
    min-width: 150px;
}

.filter-options select:focus {
    outline: none;
    border-color: #6c5ce7;
}

.reset-btn {
    padding: 0.6rem 1.5rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #c0392b;
    transform: scale(1.02);
}

.filter-results {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: #f0f0f5;
    border-radius: 8px;
    font-weight: 500;
    color: #1a1a2e;
}

.filter-results #result-count {
    font-weight: 800;
    color: #6c5ce7;
    font-size: 1.1rem;
}

/* ========== GAME GRID ========== */
.games-catalog {
    padding: 0 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.game-image {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.game-info {
    padding: 1.2rem 1.5rem;
}

.game-info h3 {
    color: #1a1a2e;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.game-info > p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    font-weight: 400;
}

.rating {
    color: #f39c12;
    font-weight: 600;
}

.game-btn {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
}

.game-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ========== CART SIDEBAR ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 1.2rem 1.8rem;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #6c5ce7;
    flex-shrink: 0;
}

.cart-header h2 {
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header h2 span {
    background: #6c5ce7;
    font-size: 0.8rem;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.3rem;
}

.cart-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    background: #f8f9fc;
}

.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-body::-webkit-scrollbar-thumb {
    background: #6c5ce7;
    border-radius: 10px;
}

.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #888;
}

.cart-empty .empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.cart-empty p {
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

.cart-empty-sub {
    font-size: 0.95rem !important;
    color: #aaa;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cart-item {
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin: 0 0 0.2rem 0;
}

.cart-item-price {
    font-size: 0.8rem;
    color: #999;
}

.cart-item-total {
    font-weight: 700;
    color: #6c5ce7;
    font-size: 1rem;
    padding-left: 0.5rem;
    white-space: nowrap;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    border-top: 1px solid #f0f0f0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333;
}

.qty-btn:hover {
    background: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}

.qty-btn:active {
    transform: scale(0.92);
}

.qty-count {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}

.remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: #e74c3c;
    background: #fde8e8;
}

.cart-footer {
    padding: 1.2rem 1.8rem;
    border-top: 2px solid #eee;
    background: white;
    flex-shrink: 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a1a2e;
}

.cart-total span:last-child {
    color: #6c5ce7;
    font-size: 1.4rem;
}

.cart-footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.4);
}

.checkout-btn:active {
    transform: scale(0.98);
}

.clear-cart-btn {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: #e74c3c;
    color: white;
}

/* ========== ABOUT PAGE ========== */
.about-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    color: #1a1a2e;
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.about-text h2:first-of-type {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-content: start;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #6c5ce7;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

.values-section {
    margin-top: 3rem;
}

.values-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.value-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========== CONTACT PAGE ========== */
.contact-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    color: #1a1a2e;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.8rem;
    width: 50px;
}

.contact-item h4 {
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: #666;
}

.contact-item a {
    color: #6c5ce7;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form h2 {
    color: #1a1a2e;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #1a1a2e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6c5ce7;
}

.submit-btn {
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

/* ========== FOOTER ========== */
footer {
    background: #1a1a2e;
    color: #ddd;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #a29bfe;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #a29bfe;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #2d2d44;
    color: #888;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .filter-options {
        flex-direction: column;
    }

    .filter-options select {
        width: 100%;
        min-width: unset;
    }

    .reset-btn {
        width: 100%;
        text-align: center;
    }

    .game-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-item-top {
        flex-direction: column;
        gap: 0.3rem;
    }

    .cart-item-total {
        align-self: flex-end;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .contact-icon {
        width: auto;
    }
}