:root {
    --bg-card: rgba(30, 30, 35, 0.7);
    --text: #ffffff;
    --accent: #ff7700; /* Dodano brakującą zmienną */
}

/* Kontener Główny */
.store-container {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

.store-title {
    text-align: center;
    color: var(--text);
    margin-bottom: 50px;
    font-size: 2.5rem;
}

/* Grid - Rozkład od środka */
.store-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* Karta Produktu */
.store-card {
    background: var(--bg-card);
    width: 320px;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

.store-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.category-id {
    display: none;
    position: absolute; /* Pole "lewituje" nad kartą */
    top: 10px;          /* Odstęp od góry karty */
    left: 10px;         /* Odstęp od lewej karty */
    z-index: 10;        /* Aby zawsze było na wierzchu */
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.6); /* Półprzezroczyste tło */
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--accent); /* Kolor ID pasujący do designu */
    font-family: monospace;
    border: 1px solid var(--accent);
    cursor: text;       /* Wskazuje, że można tu pisać */
}

/* Równe, kwadratowe zdjęcia */
.store-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
}

/* Teksty */
.store-card h3 { color: var(--text); margin: 10px 0; font-size: 1.2rem; }
.store-card p { color: #aaa; font-size: 0.9rem; text-align: center; margin-bottom: 15px; height: 3em; overflow: hidden; }

/* Przyciski */
.store-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.delete-btn {
    background: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    margin-top: 10px;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Tryb edycji - Overlay zdjęcia */
.img-overlay {
    position: absolute;
    top: 20px; 
    left: 20px; 
    right: 20px;
    height: 280px; /* 320px szerokości - 40px paddingu */
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    z-index: 5;
    transition: 0.3s;
}

body.edit-mode .img-overlay { display: flex; opacity: 0; }
body.edit-mode .img-overlay:hover { opacity: 1; }
body.edit-mode .category-id {
    display: block;
}

/* MODAL WYBORU ZDJĘĆ */
.modal { display: none; position: fixed; z-index: 1000; left:0; top:0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); }
.modal-content { 
    background: #1a1a20; 
    margin: 5% auto; 
    padding: 25px; 
    width: 90%; 
    max-width: 600px; 
    border-radius: 20px; 
    color: white;
    text-align: center;
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 15px; 
    margin-top: 20px; 
    max-height: 400px; 
    overflow-y: auto; 
    padding: 10px;
}

.gallery-grid img { 
    width: 100%; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    cursor: pointer; 
    border-radius: 10px; 
    border: 2px solid transparent; 
    transition: 0.2s;
}

.gallery-grid img:hover { border-color: var(--accent); transform: scale(1.05); }

/* Responsywność */
@media (max-width: 768px) {
    .store-card { width: 100%; max-width: 320px; }
    .img-overlay { height: calc(100vw - 80px); } /* Dynamiczna wysokość na mobile */
}

.docs-header {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
    border-bottom: 2px solid #ff7700;
}

.docs-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.docs-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin: 0;
    font-weight: 300;
}

.docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: #ff7700;
    border: 1px solid #ff7700;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%; /* Dopasowuje się do szerokości karty */
}

.docs-btn:hover {
    background: #ff7700;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.3);
    transform: translateY(-2px);
}

.docs-btn i {
    font-size: 1.1rem;
}