/* --- OGÓLNE USTAWIENIA I CZCIONKI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Burbank';
    src: url('czcionki/Burbank Big Condensed Bold.woff') format('woff');
}
@font-face {
    font-family: 'Sans';
    src: url('czcionki/JosefinSans-VariableFont_wght.ttf') format('truetype');
}

body {
    color: white;
    background-color: #1f1e1e;
    font-family: 'Sans', Arial, sans-serif;
    overflow-x: hidden;
}

/* --- TŁO I CZĄSTECZKI (SPÓJNOŚĆ Z GŁÓWNĄ) --- */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #1a1a1a, #34495e);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite; z-index: -2;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* --- NAWIGACJA (ZACHOWANA, LEKKO POPRAWIONA) --- */
.nav-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background-color: rgba(20, 20, 20, 0.7); display: flex;
    justify-content: center; align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; backdrop-filter: blur(10px);
}
.nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-links li { margin: 0 15px; }
.nav-link {
    text-decoration: none; color: white; font-size: 18px; font-weight: bold;
    position: relative; padding: 5px 0; transition: color 0.3s ease;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    background-color: #00bfff; transition: width 0.3s ease;
}
.nav-link:hover { color: #00bfff; }
.nav-link:hover::after { width: 100%; }
.menu-toggle { display: none; } /* Reszta stylów menu mobilnego na dole */

/* --- GŁÓWNY KONTENER I NAGŁÓWEK SKLEPU --- */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-header {
    text-align: center;
    padding: 120px 20px 40px 20px;
    font-family: 'Burbank', sans-serif;
}
.shop-header h1 {
    font-size: 4rem;
    color: #00bfff;
    text-transform: uppercase;
}
.shop-header p {
    font-size: 1.5rem;
    color: #ccc;
    margin-top: 10px;
}
#countdown-timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-top: 10px;
}

/* --- KATEGORIE I PRZEDMIOTY --- */
#shop-container {
    width: 100%;
}

.category {
    margin-bottom: 40px;
}

.category-title {
    font-family: 'Burbank', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
    text-align: center;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    margin-bottom: 30px;
    
    /* Efekt "przyklejenia" do góry ekranu */
    position: sticky;
    top: 70px; /* 60px nav + 10px marginesu */
    z-index: 100;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.shop-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Zapewnia kwadratowy kształt */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Animacja pojawiania się */
    opacity: 0;
    transform: translateY(20px);
    animation: itemFadeIn 0.5s ease-out forwards;
}

@keyframes itemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.3);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}
.item-info h3 {
    font-family: 'Burbank', sans-serif;
    font-size: 1.6rem;
    margin: 0 0 5px 0;
}
.item-info p {
    font-family: 'Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.item-info p::after {
    content: ''; display: inline-block; width: 22px; height: 22px;
    background-image: url('media/v-dolce-logo.png');
    background-size: contain; margin-left: 8px;
}

.show-more-button {
    grid-column: 1 / -1; /* Rozciąga przycisk na całą szerokość siatki */
    justify-self: center;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.show-more-button:hover {
    background-color: #d35400;
    transform: scale(1.05);
}


/* --- STOPKA --- */
footer {
    background: #111;
    color: #aaa;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

/* --- RESPONSYWNOŚĆ I MENU MOBILNE --- */
@media screen and (max-width: 768px) {
    .nav-bar ul {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(20, 20, 20, 0.95); display: none;
        flex-direction: column; justify-content: center; align-items: center;
    }
    .nav-bar ul.show { display: flex; }
    .menu-toggle {
        display: flex; flex-direction: column; cursor: pointer;
        position: absolute; right: 20px; z-index: 1001;
        width: 30px; height: 21px; justify-content: space-between;
    }
    .menu-toggle .bar { width: 30px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.3s ease-in-out; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    
    .shop-header h1 { font-size: 2.5rem; }
    .category-title { font-size: 1.8rem; top: 65px; }
}
