/* ========================================
   GameBuy Store - Main Stylesheet
   Dark & Minimal Gaming Aesthetic
   ======================================== */

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

:root {
    --bg-dark: #0a0a0a;
    --bg-charcoal: #1a1a1a;
    --bg-card: #222;
    --neon-green: #39ff14;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-charcoal) 100%);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--neon-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

/* === Container === */
.container {
    max-width: 92%;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
header {
    background: var(--bg-charcoal);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--text-white);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

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

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--neon-green);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    color: var(--text-white);
    font-size: 24px;
}

/* === Hero Section === */
.hero {
    padding: 80px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-white) 0%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--neon-green);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn:hover {
    background: #2ee00f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.btn-outline:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
}

/* === Products Grid === */
.products-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 18px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(57, 255, 20, 0.2);
}

.product-image {
    width: 100%;
    height: 280px;
    background: var(--bg-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--neon-green);
    color: var(--bg-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--text-gray);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    flex-grow: 1;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    padding: 12px;
    background: var(--neon-green);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
}

.btn-add-cart:hover {
    background: #2ee00f;
}

.btn-view {
    padding: 12px 20px;
    background: var(--bg-charcoal);
    color: var(--text-white);
    border-radius: 6px;
}

.btn-view:hover {
    background: var(--bg-dark);
}

/* === Filter Bar === */
.filter-bar {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar label {
    font-weight: 600;
    margin-right: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-charcoal);
    color: var(--text-white);
    border-radius: 6px;
    font-size: 14px;
}

.filter-btn.active {
    background: var(--neon-green);
    color: var(--bg-dark);
}

.filter-btn:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
}

/* === Single Product === */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-detail-image {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.product-detail-info h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.product-detail-category {
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 30px;
}

.product-detail-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    margin-bottom: 40px;
}

.product-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.product-features li::before {
    content: '✓';
    color: var(--neon-green);
    font-weight: 700;
    margin-right: 15px;
    font-size: 18px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 8px;
}

.quantity-controls button {
    background: var(--neon-green);
    color: var(--bg-dark);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
}

/* === Cart === */
.cart-section {
    padding: 60px 0;
}

.cart-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    margin-bottom: 40px;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-charcoal);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-weight: 600;
    font-size: 16px;
}

.cart-item-category {
    color: var(--text-gray);
    font-size: 13px;
}

.cart-item-quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
    background: var(--bg-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-white);
}

.cart-item-price {
    font-weight: 700;
    color: var(--neon-green);
}

.cart-remove {
    background: #ff3333;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.cart-summary {
    background: var(--bg-charcoal);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-summary-row.total {
    border-bottom: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-green);
    padding-top: 20px;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* === Checkout === */
.checkout-section {
    padding: 60px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.checkout-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
}

.checkout-form h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.email-notice {
    background: rgba(57, 255, 20, 0.1);
    border-left: 3px solid var(--neon-green);
    padding: 20px;
    margin: 30px 0;
    border-radius: 6px;
}

.email-notice p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.order-summary {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    height: fit-content;
}

.order-summary h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-charcoal);
    border-radius: 6px;
    overflow: hidden;
}

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

.order-item-name {
    font-weight: 600;
    font-size: 14px;
}

.order-item-quantity {
    color: var(--text-gray);
    font-size: 13px;
}

.order-item-price {
    font-weight: 700;
    color: var(--neon-green);
}

/* === Track Order === */
.track-order-section {
    padding: 60px 0;
}

.track-order-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 12px;
    text-align: center;
}

.track-order-form h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.track-order-form p {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.track-result {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-charcoal);
    border-radius: 8px;
    text-align: left;
}

.tracking-timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 40px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--neon-green);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 14px;
}

/* === Footer === */
footer {
    background: var(--bg-charcoal);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--neon-green);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-gray);
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--neon-green);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-white);
}

.newsletter-form button {
    padding: 14px;
    background: var(--neon-green);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 6px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-charcoal);
    padding: 25px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 92%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--neon-green);
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.cookie-actions button {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.btn-accept {
    background: var(--neon-green);
    color: var(--bg-dark);
}

.btn-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

/* === Content Pages === */
.content-page {
    padding: 60px 0;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

.content-page h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--neon-green);
}

.content-page h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.content-page p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-page ul,
.content-page ol {
    margin-left: 30px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.content-page li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-charcoal);
        padding: 20px;
        box-shadow: var(--shadow-soft);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-table {
        display: block;
        overflow-x: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cookie-actions {
        flex-direction: column;
    }
}
