/* RESET I USTAWIENIA PODSTAWOWE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-main: #ffffff;
    --bg-light: #f9fafb;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --accent-color: #222222; 
    --accent-hover: #4b5563;
    --border-color: #e5e7eb;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    padding: 40px 0 20px 0;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* NAGŁÓWEK I MENU */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-muted);
}

/* SEKCOJA BANNERA (HERO) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('tlo.jfif') no-repeat center center;
    background-size: contain; 
    background-color: #ba769d; 
    height: 600px; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: #ffffff; 
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); 
}

.hero-content p {
    font-size: 1.3rem;
    color: #f3f4f6;
    font-weight: 500;
    margin-bottom: 25px;
    max-width: 600px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.btn {
    display: inline-block;
    background-color: #ffffff; 
    color: var(--text-dark);
    text-decoration: none;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

/* SIATKA SZYBKICH KATEGORII */
.categories-section {
    padding: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.category-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 30px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.category-box:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.category-box h3 {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* WIZYTÓWKI PRODUKTÓW (PRODUCT CARDS) */
.products-section {
    padding-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image {
    background-color: #f3f4f6;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.placeholder-img {
    font-size: 4rem;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}

.product-info {
    padding: 20px;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sizes {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.sizes span {
    color: var(--text-dark);
    font-weight: bold;
}

.product-price-box {
    display: flex;
    justify-content: center; 
    align-items: center;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
}

/* STOPKA */
footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: var(--text-dark);
    font-size: 1.4rem;
    transition: color 0.2s;
}

.socials a:hover {
    color: #1877f2; 
}

/* Dyskretny wyzwalacz panelu */
.admin-trigger {
    font-size: 0.75rem;
    color: #d1d5db; /* Bardzo jasny szary, zlewa się ze stopką */
    cursor: pointer;
    margin-left: 10px;
    user-select: none;
}
.admin-trigger:hover {
    color: #9ca3af;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1f2937;
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.cookie-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-container p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #e5e7eb;
}

.btn-cookie {
    background-color: #ffffff;
    color: #1f2937;
    border: none;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-cookie:hover {
    background-color: #d1d5db;
}

/* 🌟 STYLE DLA OKNA PANELU ADMINISTRATORA (MODAL) 🌟 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none; /* Ukryty domyślnie */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-box {
    background-color: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

.modal-header {
    background-color: #1f2937;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-color);
}

.btn-add-product {
    width: 100%;
    background-color: #22c55e; /* Zielony przycisk akceptacji */
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-add-product:hover {
    background-color: #16a34a;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { height: 450px; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links li { margin: 0 10px; }
    .hero { height: 350px; }
    .hero-content h2 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .cookie-container { flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .hero { height: 250px; }
    .footer-content { flex-direction: column; gap: 10px; text-align: center; }
}
/* ========================================================
   POPRAWKA DOPASOWANIA ZDJĘĆ NA STRONIE GŁÓWNEJ (INDEX.HTML)
   ======================================================== */

/* Ustalenie stałych wymiarów dla całej karty produktu */
.product-card {
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Sprawi, że wszystkie karty będą równe */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Sztywny kontener na zdjęcie - klucz do sukcesu */
.product-image {
    width: 100%;
    height: 320px; /* Dokładna, stała wysokość zdjęcia na sklepie */
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

/* Automatyczne skalowanie i kadrowanie wgranego obrazu */
.product-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Magiczna linijka: dotnie duże zdjęcie do ramki 320px bez rozciągania */
    object-position: center;
}

/* Kontener z opisem, rozmiarami i ceną pod zdjęciem */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Wepchnie cenę na sam dół karty */
}

.product-cat {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
    display: block;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.sizes {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.product-price-box {
    margin-top: auto; /* Zawsze trzyma cenę idealnie na dole */
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e293b;
}