:root {
    --bg-main: #0a0a0d;
    --bg-secondary: #121216;
    --bg-card: rgba(20, 20, 25, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-red: #ff2a2a;
    --accent-purple: #9000ff;
    --accent-glow: rgba(144, 0, 255, 0.5);
    --nav-blur: rgba(10, 10, 13, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(144, 0, 255, 0.4);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & General */
a {
    text-decoration: none;
    color: var(--text-primary);
}

ul {
    list-style: none;
}

.neon-text {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-glow);
    font-weight: 900;
}

.highlight {
    color: var(--accent-purple);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-blur);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    color: var(--text-secondary);
}

.cart-icon:hover {
    color: var(--accent-purple);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px rgba(255, 42, 42, 0.6);
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #5c00a3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(144, 0, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    background: rgba(144, 0, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    text-align: center;
    background: url('assets/hero_bg.png') center/cover no-repeat;
    background-attachment: fixed;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 13, 0.6) 0%, rgba(10, 10, 13, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeUp 1s ease-out 0.4s both;
}

/* Store Section */
.store-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-purple);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: rgba(144, 0, 255, 0.1);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(144, 0, 255, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(144, 0, 255, 0.2);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    background: #1a1a24;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
}

.vip-silver { background: linear-gradient(135deg, #1f1f2e, #4a4a5a); }
.vip-gold { background: linear-gradient(135deg, #2b2310, #7a6320); color: #ffd700; }
.car-bg { background: linear-gradient(135deg, #09131a, #1a3245); color: #4fa0d8; }
.cash-bg { background: linear-gradient(135deg, #0d2116, #215c3a); color: #50c878; }

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.product-info .description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-purple);
}

.btn-buy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
}

.btn-buy:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Cart Sidebar (UI) */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-main);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
}

.cart-items {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-cart-msg {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2rem;
}

/* Pojedynczy przedmiot w koszyku */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cart-item-info .item-price {
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid rgba(255, 42, 42, 0.3);
    color: var(--accent-red);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: var(--accent-red);
    color: white;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(20, 20, 25, 0.8);
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.total-price #cart-total {
    color: var(--accent-purple);
}

.btn-checkout {
    width: 100%;
}

/* Discount Box */
.discount-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

#discount-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

#discount-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(144, 0, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

#discount-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#apply-discount:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.discount-msg {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: left;
    min-height: 20px;
    font-weight: 500;
}

.discount-msg.success {
    color: #50c878;
    text-shadow: 0 0 5px rgba(80, 200, 120, 0.3);
}

.discount-msg.error {
    color: var(--accent-red);
    text-shadow: 0 0 5px rgba(255, 42, 42, 0.3);
}

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

/* Responsive Variables */
@media (max-width: 768px) {
    .nav-links, .nav-buttons .btn-discord {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
