/* --- Sekcja Wyróżników (Features) --- */

.features-section {
    padding: 60px 20px;
    background-color: var(--color-secondary); /* Używamy jasnego beżu jako tła */
    text-align: center;
}

.features-section h2 {
    font-size: 2.2em;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.features-desc {
    max-width: 900px;
    margin: 0 auto 26px auto;
    font-size: 1.05em;
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.6;
}

.feature-container {
    display: flex;
    flex-wrap: wrap; /* Zezwalamy na zawijanie elementów na mniejszych ekranach */
    justify-content: center;
    gap: 30px; /* Przestrzeń między elementami */
}

.feature-item {
    flex: 1 1 250px; /* Elastyczność: zajmuje co najmniej 250px, ale rozciąga się równo */
    max-width: 300px;
    padding: 25px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Lekki cień dla elegancji */
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px); /* Delikatny efekt uniesienia przy najechaniu */
}

.feature-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--color-primary);
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
    color: var(--color-text);
}

/* --- Responsywność dla Wyróżników --- */

@media (max-width: 768px) {
    .features-section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 500px) {
    .feature-item {
        flex-basis: 100%; /* Na bardzo małych ekranach zajmują całą szerokość */
    }
}
/* --- Panel kategorii (tekstowe kafelki) --- */
.categories-panel {
    padding: 44px 20px;
    background: linear-gradient(180deg, rgba(249,249,249,0.6), var(--color-white));
    text-align: center;
}
.categories-panel h2 {
    font-size: 1.9em;
    color: var(--color-primary);
    margin-bottom: 18px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px 18px; /* row-gap column-gap */
    row-gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    grid-auto-rows: minmax(64px, auto);
    justify-items: stretch;
}
.category-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-primary);
    background: rgba(245,245,245,0.9);
    border: 1px solid rgba(0,0,0,0.06);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(12,12,12,0.04);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.category-item:hover,
.category-item:focus {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(198,164,120,0.12);
    outline: none;
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-item {
        padding: 12px 10px;
        font-size: 0.95em;
    }
}

/* Desktop: mniej kolumn, więcej rzędów (co najmniej 3 rzędy przy 8 elementach) */
@media (min-width: 1000px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 36px;
        row-gap: 44px;
        grid-auto-rows: minmax(80px, auto);
    }

    /* Make some items larger (span 2 columns) for visual variety */
    .category-item:nth-child(4) { grid-column: span 2; }
    .category-item:nth-child(9) { grid-column: span 2; }

    /* Background tints and slight rotation to create a 'scattered' look */
    .category-item:nth-child(1) { background: rgba(198,164,120,0.06); transform: rotate(0deg)  }
    .category-item:nth-child(2) { background: rgba(166,206,167,0.05); transform: rotate(0deg)  }
    .category-item:nth-child(3) { background: rgba(198,164,120,0.04); transform: rotate(0deg)  }
    .category-item:nth-child(4) { background: rgba(198,164,120,0.09); transform: rotate(0deg)  }
    .category-item:nth-child(5) { background: rgba(220,220,220,0.05); transform: rotate(0deg)  }
    .category-item:nth-child(6) { background: rgba(198,164,120,0.05); transform: rotate(0deg) }
    .category-item:nth-child(7) { background: rgba(200,220,240,0.04); transform: rotate(0deg)  }
    .category-item:nth-child(8) { background: rgba(198,164,120,0.03); transform: rotate(0deg)  }
    .category-item:nth-child(9) { background: rgba(198,164,120,0.08); transform: rotate(0deg)  }
    .category-item:nth-child(10){ background: rgba(198,164,120,0.04); transform: rotate(0deg)  }
    .category-item { transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.18s ease; }
    .category-item:hover, .category-item:focus { transform: translateY(-8px) rotate(0deg) scale(1.03); box-shadow: 0 14px 36px rgba(12,12,12,0.12); color: var(--color-white); background: var(--color-accent); }
}

/* --- Sekcja Prezentacji Produktów --- */

.products-preview-section {
    padding: 60px 20px;
    background-color: var(--color-white);
    text-align: center;
}

.products-preview-section h2 {
    font-size: 2.2em;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.product-grid {
    display: block; /* Jeden produkt = 100% szerokości (stosujemy kolumnowy układ) */
    max-width: 1400px;
    margin: 0 auto 50px auto;
    padding: 0;
}

/* Przyciski/karty produktu z gridów nie są potrzebne tutaj - używamy struktury .product-row w HTML */

/* Główne reguły dla układu pojedynczego produktu: obraz po jednej połowie, opis po drugiej */
.products-preview-section .product-row {
    display: flex;
    flex-direction: column; /* mobile first: obraz nad opisem */
    align-items: center;
    text-align: center;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-secondary);
}

.products-preview-section .product-row:last-child {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.products-preview-section .product-image,
.products-preview-section .product-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.products-preview-section .product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.products-preview-section .product-info {
    padding: 0 12px;
}

@media (min-width: 900px) {
    .products-preview-section .product-row {
        flex-direction: row; /* na większych ekranach: obraz i opis obok siebie */
        align-items: center;
        text-align: left;
        gap: 40px;
        margin-bottom: 80px;
        padding-bottom: 80px;
    }

    .products-preview-section .product-image,
    .products-preview-section .product-info {
        width: 50%;
        max-width: 50%;
    }

    /* Wersja naprzemienna: parzysty wiersz - opis lewo, obraz prawo */
    .products-preview-section .product-row:nth-child(even) .product-image {
        order: 2;
    }
    .products-preview-section .product-row:nth-child(even) .product-info {
        order: 1;
        text-align: right;
    }
}

@media (max-width: 900px) {
    .products-preview-section .product-info {
        text-align: center;
    }
}

/* Duży, końcowy przycisk CTA */
.main-cta-bottom {
    display: inline-block;
    background-color: var(--color-primary); /* Główny kolor marki */
    color: var(--color-white);
    text-decoration: none;
    padding: 16px 35px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-cta-bottom:hover {
    background-color: #16381f; 
}

/* --- Responsywność dla Asortymentu --- */

@media (max-width: 1024px) {
    .product-grid {
        /* Przechodzimy na 3 kolumny na średnich ekranach */
        grid-template-columns: repeat(3, 1fr); 
    }
    .hide-mobile {
        /* Ukrywamy czwarty produkt, żeby siatka była estetyczna 3x1 */
        display: none;
    }
}

@media (max-width: 768px) {
    .product-grid {
        /* Na tabletach/telefonach przechodzimy na 2 kolumny */
        grid-template-columns: repeat(2, 1fr);
    }
    .main-cta-bottom {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 500px) {
    .product-grid {
        /* Na małych telefonach 1 kolumna */
        grid-template-columns: 1fr;
    }
}
/* --- Sekcja Kontaktowa --- */

.contact-section {
    padding: 80px 20px;
    background-color: var(--color-secondary); /* Jasny beż */
    text-align: center;
}

.contact-section h2 {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-section p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    flex: 1 1 250px;
    max-width: 300px;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-item h3 {
    color: var(--color-primary);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 5px;
}

.detail-icon {
    font-size: 1.8em;
    display: block;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1em;
    margin: 0;
}

.contact-item a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--color-accent);
}

.store-info {
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Wtórny przycisk CTA */
.secondary-cta {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.secondary-cta:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Contact extra CTAs */
.contact-visit {
    margin-top: 18px;
    font-size: 1em;
    color: var(--color-primary);
    font-weight: 600;
}
.contact-ctas {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-ctas .secondary-cta {
    padding: 10px 22px;
}
.contact-ctas .main-cta-bottom {
    padding: 12px 26px;
}

/* --- Responsywność dla Kontaktu --- */
@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
    }
    .contact-item {
        max-width: 100%;
    }
}
/* --- Stopka (Footer) --- */

.main-footer {
    background-color: var(--color-primary); /* Głęboka Zieleń */
    color: var(--color-white);
    padding: 40px 20px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    padding: 20px;
    flex: 1 1 300px; /* Każda kolumna zajmuje co najmniej 300px */
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.footer-column h3 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-accent); /* Lekki akcent koloru */
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Linki Social Media */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-white);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links a:hover .social-icon {
    opacity: 1;
}

/* CTA w stopce */
.footer-store-cta {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    opacity: 1 !important;
}

/* --- Responsywność dla Stopki --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0;
    }
    .footer-column {
        flex-basis: 100%;
        padding: 15px 0;
        text-align: center;
    }
    .footer-logo-col {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .social-links {
        justify-content: center;
    }
    .footer-column ul {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* --- Floating language selector (FAB) --- */
.lang-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none; /* children control pointer-events */
}

.lang-fab-button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.678);
    color: var(--color-white);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.103);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.lang-fab-button:focus {
    outline: 3px solid rgba(198,164,120,0.24);
    transform: translateY(-2px);
}

.lang-list {
    pointer-events: auto;
    display: none;
    width: 220px;
    max-height: 220px;
    overflow: auto;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    transform-origin: bottom right;
}

.lang-list.open {
    display: flex;
}

.lang-list a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--color-primary);
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.12s, color 0.12s;
}

.lang-list a:hover,
.lang-list a:focus {
    background: rgba(198,164,120,0.08);
    color: var(--color-accent);
    outline: none;
}

@media (max-width: 480px) {
    .lang-fab { right: 12px; bottom: 12px; }
    .lang-list { width: 180px; max-height: 200px; }
}