/* ==========================================================================
   Section: products-carousel (Figma 1:1622)
   ========================================================================== */

.sec-products-carousel {
    padding: 60px 0;
    background: var(--c-white);
    /* Safety clip for the 100vw scrollbar offset of the bleeding track */
    overflow: hidden;
}

.pc__inner {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

/* Track bleeds from the grid's left edge to the right viewport edge,
   so the fractional next slide is cut by the screen, as designed */
.pc__swiper {
    width: calc(100% + (100vw - min(var(--content-max), 100vw)) / 2 + var(--pad-x));
}

/* Head: title + text left, "Zobacz wszystkie" right */
.pc__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 60px;
}

.pc__intro {
    max-width: 768px;
}

.pc__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.2;
    color: var(--c-black);
}

.pc__text {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--c-text);
}

/* Product card */
.pcard {
    display: flex;
    flex-direction: column;
    height: auto;
}

.pcard__media {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.pcard__media a {
    display: block;
}

.pcard__img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pcard:hover .pcard__img {
    transform: scale(1.04);
}

/* Sale badge, e.g. "-20%" */
.pcard__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 4px 8px;
    background: var(--c-primary);
    border-radius: 5px;
    font-family: 'Roboto', var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    pointer-events: none;
}

.pcard__fav {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--c-black);
    transition: color 0.15s ease;
}

.pcard__fav:hover,
.pcard__fav:focus-visible {
    color: var(--c-primary);
}

.pcard__name {
    margin: 16px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--c-black);
}

.pcard__name a:hover,
.pcard__name a:focus-visible {
    text-decoration: underline;
    text-underline-position: from-font;
}

.pcard__price {
    margin: 16px 0 0;
    text-align: right;
    font-family: 'Roboto', var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--c-primary);
}

/* Sale price pair: struck-through regular price + highlighted sale price */
.pcard__price del {
    margin-right: 8px;
    font-size: 16px;
    color: #969696;
}

.pcard__price ins {
    text-decoration: none;
}

.pcard__btn {
    width: 100%;
    height: 40px;
    padding: 8px 20px;
    margin-top: 16px;
}

/* Card name/price grow so buttons align at the bottom */
.pcard__name {
    flex: 1;
}

/* Controls bar */
.pc__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
}

.pc__dots {
    display: flex;
    gap: 8px;
}

.pc__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pc__dots .swiper-pagination-bullet-active {
    opacity: 1;
}

.pc__nav {
    display: flex;
    gap: 16px;
}

.pc__arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--c-white);
    border: 1px solid var(--c-black);
    border-radius: 50%;
    color: var(--c-black);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.pc__arrow:hover,
.pc__arrow:focus-visible {
    background: var(--c-black);
    color: var(--c-white);
}

.pc__arrow.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .sec-products-carousel {
        padding: 40px 0;
    }

    .pc__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    .pc__text {
        font-size: 16px;
    }

    .pc__bar {
        margin-top: 32px;
    }
}
