/* =========================================
   WooCommerce Scroll Sections
   Dopasowane do klas wcss-*
   ========================================= */

/* Główny kontener – bez rozciągania całej strony */
.wcss-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Nawigacja sekcji */
.wcss-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 60px 0 32px;
    padding: 0;
    border: none;
    background: none;
    text-align: center;
    width: 100%;
}

/* Czerwone przyciski */
.wcss-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e8373d;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.wcss-nav a:hover,
.wcss-nav a:focus {
    background-color: #cc2f33;
    color: #f0f0f0;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Sekcje */
.wcss-content {
    width: 100%;
    margin: 0 0 48px;
    padding: 0 10%;
    box-sizing: border-box;
}

.wcss-content:last-child {
    margin-bottom: 0;
}

.wcss-heading {
    margin: 0 0 22px;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.wcss-description {
    padding-bottom: 8px;
}

.wcss-description > .wcss-heading {
    margin-bottom: 20px;
}

/* Szerokość treści na dużych ekranach */
@media (min-width: 1024px) {
    .wcss-content {
        padding-left: 10%;
        padding-right: 10%;
    }
}

/* Układ tekst + zdjęcie */
.container-desc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    min-width: 0;
    margin: 70px 0;
    box-sizing: border-box;
}

.desc-text,
.desc-media {
    box-sizing: border-box;
    flex: 1 1 50%;
    min-width: 0;
}

.desc-text {
    align-self: center;
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
}

.desc-text > :first-child {
    margin-top: 0;
}

.desc-text > :last-child {
    margin-bottom: 0;
}

.desc-text h2 {
    margin: 0 0 22px;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.2;
}

.desc-text h3 {
    margin: 26px 0 12px;
    font-size: clamp(19px, 1.8vw, 25px);
    line-height: 1.3;
}

.desc-text p {
    margin: 0 0 18px;
}

.desc-text ul,
.desc-text ol {
    margin: 0 0 20px;
    padding-left: 1.35em;
}

.desc-text li {
    margin: 0 0 8px;
}

/* Lewa i prawa kolumna */
.left-desc,
.right-desc {
    flex: 1 1 50%;
    min-width: 0;
    align-content: center;
}

/* Zdjęcia */
.desc-media {
    min-height: 200px;
}

.desc-media img,
.container-desc img,
.intro img,
.wcss-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 30px;
    box-sizing: border-box;
}

.desc-media img {
    max-height: 600px;
    width: 100%;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.18));
    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.4s ease;
    transform: translateZ(0);
    will-change: transform;
}

.desc-media:hover img {
    transform: scale(1.03);
}

.desc-img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
}

.center {
    text-align: center;
}

/* Sekcje bez zdjęcia */
.wcss-section-no-media {
    flex: 1 1 100%;
    width: 100%;
    max-width: 900px;
    margin-right: auto;
}

.wcss-no-image {
    display: block;
}

/* Bloki kompozycji */
.composition-full {
    width: 100%;
    margin: 48px 0;
    padding: clamp(24px, 4vw, 54px);
    background: #f6f6f2;
    box-sizing: border-box;
}

.composition-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.composition-wrapper h2 {
    margin: 0 0 10px;
    font-size: clamp(25px, 2.5vw, 36px);
    line-height: 1.2;
}

.composition-subtitle {
    margin: 0 0 26px;
    opacity: 0.75;
}

.composition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.composition-item {
    padding: 14px 16px;
    background: #fff;
    line-height: 1.5;
}

/* Ukrycie krótkiego opisu WooCommerce */
.entry-summary .woocommerce-product-details__short-description {
    display: none;
}

/* Tablet i telefon */
@media (max-width: 900px) {
    .desc-media img {
        filter: none;
    }
}

@media (max-width: 767px) {
    .wcss-wrap {
        margin: 22px 0;
    }

    .wcss-nav {
        gap: 8px;
        margin: 36px 0 28px;
    }

    .wcss-nav a {
        padding: 9px 16px;
        font-size: 14px;
    }

    .wcss-content {
        margin-bottom: 38px;
        padding-left: 0;
        padding-right: 0;
        scroll-margin-top: 82px;
    }

    .container-desc {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        margin: 40px 0;
    }

    .desc-text,
    .desc-media,
    .left-desc,
    .right-desc {
        flex: 1 1 auto;
        width: 100%;
    }

    .desc-text {
        font-size: 15px;
        line-height: 1.65;
    }

    .wcss-heading,
    .desc-text h2 {
        margin-bottom: 14px;
        font-size: clamp(22px, 6vw, 29px);
    }

    .desc-media {
        order: 2;
    }

    .desc-text {
        order: 1;
    }

    .desc-media img,
    .desc-img {
        width: 100%;
        border-radius: 24px;
    }

    .composition-grid {
        grid-template-columns: 1fr;
    }

    .composition-full {
        margin: 32px 0;
    }
}

/* Ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
    .wcss-nav a,
    .desc-media img {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}