/* Zmienne globalne - motyw Street/Dark */
:root {
    --bg-color: #0f0f11; /* Głęboki, asfaltowy mrok */
    --surface-color: #1a1a1d; /* Lekko jaśniejsze tło dla kart produktów */
    --accent-color: #ff3c00; /* Agresywny, sportowy pomarańcz/czerwień */
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Nawigacja */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5vw;
    background-color: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #27272a;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.cart-icon {
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #27272a 0%, var(--bg-color) 70%);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 70px); /* Płynne skalowanie na telefonach i PC */
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Sekcja Produktów */
.products {
    padding: 80px 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

/* Grid Produktów - 100% responsywny bez Media Queries */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Karta Produktu */
.product-card {
    background-color: var(--surface-color);
    border: 1px solid #27272a;
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    height: 250px; /* Sztywna wysokość utrzymuje równy grid kart */
    background-color: #0f0f11; /* Ciemniejsze tło pod samą naklejką, dopasowane do motywu */
    object-fit: contain; /* Skaluje obrazek tak, aby zmieścił się w całości bez ucinania */
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 10px; /* Daje lekki margines wokół naklejki */
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Przycisk dodawania do koszyka */
.add-to-cart-btn {
    margin-top: auto;
    padding: 15px;
    background-color: var(--text-main);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* STAN: WYPRZEDANE - to rozwiąże Twój problem braków magazynowych */
.product-card.out-of-stock {
    opacity: 0.6;
    pointer-events: none; /* Całkowicie blokuje kliknięcia */
    filter: grayscale(80%);
}

.product-card.out-of-stock .add-to-cart-btn {
    background-color: #3f3f46;
    color: #a1a1aa;
}
/* --- WYSUWANY KOSZYK (OFF-CANVAS) --- */

.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0; 
    right: -100%; /* Domyślnie schowany całkowicie poza ekranem */
    width: 100%; 
    max-width: 450px; 
    height: 100vh;
    background-color: var(--surface-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Płynna, nowoczesna animacja */
    box-shadow: -5px 0 25px rgba(0,0,0,0.8);
    border-left: 1px solid #27272a;
}

.cart-sidebar.active {
    right: 0; /* Po dodaniu tej klasy, koszyk wjeżdża na ekran */
}

.cart-header {
    padding: 20px 25px;
    border-bottom: 1px solid #27272a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none; border: none;
    color: var(--text-muted);
    font-size: 32px; 
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover { color: var(--accent-color); }

.cart-items {
    flex-grow: 1;
    overflow-y: auto; /* Scroll, jeśli klient doda dużo naklejek */
    padding: 25px;
}

/* Wygląd pojedynczego produktu w koszyku */
.cart-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 20px; 
    padding-bottom: 20px;
    border-bottom: 1px dashed #27272a;
}

.cart-item-info h4 { font-size: 15px; margin-bottom: 5px; font-weight: 700; }
.cart-item-price { color: var(--accent-color); font-weight: 900; }

.remove-item {
    background: none; border: none;
    color: #a1a1aa; cursor: pointer;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    transition: color 0.3s;
}
.remove-item:hover { color: #ff3333; }

.cart-footer {
    padding: 25px;
    border-top: 1px solid #27272a;
    background-color: #0f0f11;
}

.cart-total {
    font-size: 20px; font-weight: 900; margin-bottom: 20px;
    display: flex; justify-content: space-between;
}

.checkout-btn {
    width: 100%; padding: 18px;
    background-color: var(--text-main); color: var(--bg-color);
    border: none; border-radius: 4px;
    font-weight: 900; font-size: 16px; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s;
}
.checkout-btn:hover { 
    background-color: var(--accent-color); 
    color: #fff; 
}