/* Reset i czcionki */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: #fdfdfd; color: #333; scroll-behavior: smooth; }

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1516156008625-3a9d60677695?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: 3.5rem; letter-spacing: 4px; margin-bottom: 10px; }

.btn-main {
    display: inline-block;
    padding: 12px 30px;
    background: #dc5100;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-main:hover { background: #dc5100; transform: scale(1.1); }

/* Nawigacja */
nav { background: #222; padding: 1rem; position: sticky; top: 0; z-index: 1000; text-align: center; }
nav a { color: #eee; text-decoration: none; margin: 0 20px; font-weight: 500; transition: 0.3s; }
nav a:hover { color: #dc5100; }

/* Grid produktów */
.section-title { text-align: center; margin: 50px 0; font-size: 2rem; position: relative; }
.section-title::after { content: ''; width: 50px; height: 3px; background: #8b4513; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* Karta Produktu - INTERAKCJA */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Płynne "odbicie" */
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02); /* Powiększenie i uniesienie */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute; width: 100%; height: 100%; background: rgba(139, 69, 19, 0.7);
    display: flex; align-items: center; justify-content: center; color: white;
    opacity: 0; transition: 0.3s;
}

.product-card:hover .overlay { opacity: 1; }

.product-info { padding: 25px; }
.product-info h3 { margin-bottom: 10px; color: #8b4513; }
.product-info p { font-size: 0.9rem; color: #666; margin-bottom: 15px; }

.price-tag {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Footer */
footer { background: #222; color: white; padding: 40px 0; text-align: center; margin-top: 50px; }
.footer-content h3 { margin-bottom: 15px; color: #dc5100; }

/* PANEL ADMINA */
.login-box {
    background: white; padding: 40px; border-radius: 15px;
    max-width: 400px; margin: 100px auto; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; }
button { 
    width: 100%; padding: 12px; background: #8b4513; color: white; border: none; 
    border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: bold;
}
button:hover { background: #a0522d; transform: scale(1.05); }

/* Wymuszenie środkowania sekcji admina */
.admin-section {
    margin-left: auto;
    margin-right: auto;
    display: none; /* To zostanie zmienione przez JS na 'block' */
    width: 95%;
    max-width: 1100px;
}

/* Naprawa tabeli */
table {
    margin: 20px auto; /* auto wyśrodkuje tabelę w poziomie */
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Dodatkowa poprawka dla komórek tabeli */
th, td {
    text-align: center; /* Wyśrodkowanie tekstu wewnątrz tabeli */
    padding: 15px;
}


#panel-admina {
    flex-direction: column;
    align-items: center;
}


.price-details {
    background: #fdf5e6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 5px;
    border-bottom: 1px dashed #dcb090;
}

.price-row strong { color: #8b4513; }

.granulacja {
    color: #8b4513;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    background: #dc5100;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.info-box {
    background: #333;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.info-box h3 { color: #dc5100; margin-bottom: 15px; }
.info-box ul { list-style: none; }
.info-box li { margin-bottom: 8px; border-left: 3px solid #dc5100; padding-left: 10px; }

/*Galeria Zdjęć*/
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; 
    margin: 40px auto;
    max-width: 1100px;
}

.gallery-item {
    width: 180px;
    height: 180px;
    overflow: visible; 
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    
   
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
    cursor: pointer;
}

/* EFEKT PO NAJECHANIU */
.gallery-item:hover img {
    transform: scale(2.4); /* Powiększenie do 170% */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 999; /* Zdjęcie wyjdzie na wierzch nad wszystko inne */
    position: relative; /* Wymagane, żeby z-index zadziałał */
}