/* =====================================================
   AKCESORIA
===================================================== */

.accessories {
    width: 100%;
    padding: 110px 20px 120px;
    background: #ffffff;
    color: #2f2d2b;
}


/* =====================================================
   GŁÓWNY KONTENER
===================================================== */

.accessories-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =====================================================
   NAGŁÓWEK
===================================================== */

.accessories-header {
    max-width: 760px;
    margin: 0 auto 65px;
    text-align: center;
}


.accessories-label {
    margin: 0 0 14px;

    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #8a8178;
}


.accessories-header h2 {
    margin: 0 0 18px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;

    color: #2f2d2b;
}


.accessories-header p:last-child {
    margin: 0;

    font-size: 17px;
    line-height: 1.7;

    color: #756e68;
}


/* =====================================================
   KATEGORIA
===================================================== */

.accessories-category {
    width: 100%;
    max-width: 980px;
    min-height: 360px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;

    overflow: hidden;

    border: 1px solid #e5e0db;
    border-radius: 8px;

    background: #faf9f7;

    text-align: left;

    box-shadow:
        0 12px 35px rgba(40, 35, 30, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =====================================================
   RYSUNEK KUCHNI W KARCIE
===================================================== */

.accessories-kitchen-sketch {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px 20px;
}


.accessories-kitchen-sketch img {
    display: block;

    width: 100%;
    max-width: 500px;
    height: auto;

    margin: 0 auto;
}


/* =====================================================
   TREŚĆ KARTY
===================================================== */

.accessories-category-content {
    padding: 45px 55px 45px 35px;
}


.accessories-category h3 {
    margin: 0 0 20px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.15;

    color: #2f2d2b;
}


.accessories-category-content p {
    max-width: 390px;

    margin: 0 0 30px;

    font-size: 16px;
    line-height: 1.7;

    color: #756e68;
}


/* =====================================================
   PRZYCISK
===================================================== */

.accessories-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    min-height: 48px;

    padding: 12px 24px;

    border: 1px solid #b72b27;
    border-radius: 2px;

    background: #b72b27;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.accessories-category-button:hover {
    background: #982320;
    border-color: #982320;
}


.accessories-category-button:active {
    transform: translateY(1px);
}

.accessories-category-button span {
    margin-left: 10px;
    font-size: 16px;
}


/* =====================================================
   DELIKATNY EFEKT KARTY
===================================================== */

.accessories-category:hover {
    border-color: #d8d0c9;

    box-shadow:
        0 12px 35px rgba(40, 35, 30, 0.06);

    transform: translateY(-2px);
}


/* =====================================================
   FOCUS — KLAWIATURA
===================================================== */

.accessories-category-button:focus-visible {
    outline: 2px solid #b72b27;
    outline-offset: 4px;
}

/* =====================================================
   SZKIC KUCHNI
===================================================== */

.accessories-kitchen-sketch {
    width: min(760px, 100%);
    margin: -15px auto 35px;

    color: #b9a99b;

    opacity: 0.55;
}

.accessories-kitchen-sketch svg {
    display: block;
    width: 100%;
    height: auto;
}

/* =====================================================
   WSPÓLNY PRZYCISK WYBORU AKCESORIUM
===================================================== */

.accessory-select-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 38px;

    margin-top: 18px;

    padding: 0 18px;

    border: 1px solid #2f2d2b;

    border-radius: 4px;

    background: #ffffff;

    color: #2f2d2b;

    font-family: inherit;

    font-size: 13px;

    font-weight: 400;

    letter-spacing: 0.03em;

    cursor: pointer;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

/* =====================================================
   WYBRANA KARTA AKCESORIUM
===================================================== */

.accessory-card.is-selected {

    border-color: rgba(183, 43, 39, 0.32);

    border-width: 2px;

    box-shadow:
        0 0 3px rgba(183, 43, 39, 0.18),
        0 0 8px rgba(183, 43, 39, 0.30),
        0 0 14px rgba(183, 43, 39, 0.16),
        inset 0 0 3px rgba(183, 43, 39, 0.14),
        inset 0 0 8px rgba(183, 43, 39, 0.22),
        inset 0 0 14px rgba(183, 43, 39, 0.10),
        0 10px 30px rgba(40, 35, 30, 0.07);
}


/* WYBRANE */

.accessory-select-button.is-selected {

    border-color: #b72b27;

    background: #ffffff;

    color: #b72b27;
}


/* DELIKATNY HOVER */

.accessory-select-button:hover {

    border-color: #b72b27;

    color: #b72b27;
}


/* KLAWIATURA */

.accessory-select-button:focus-visible {

    outline: 2px solid #b72b27;

    outline-offset: 3px;
}

/* =====================================================
   WSPÓLNY UKŁAD PRODUKTÓW
===================================================== */

.accessory-products {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

}


/* =====================================================
   RESPONSYWNOŚĆ UKŁADU PRODUKTÓW
===================================================== */

@media (max-width: 1100px) {

    .accessory-products {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 768px) {

    .accessory-products {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;

    }

}


@media (max-width: 560px) {

    .accessory-products {

        grid-template-columns: 1fr;

        gap: 18px;

    }

}


/* =====================================================
   KARTA PRODUKTU — OBRÓT 3D
===================================================== */

.accessory-card {

    perspective: 1200px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e0db;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(40, 35, 30, 0.05);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.accessory-card-inner {

    position: relative;

    width: calc(100% - 8px);
    height: auto;

    margin: 4px;

    transform-style: preserve-3d;

    transition:
        transform 0.7s ease;

}


.accessory-card-front,
.accessory-card-back {

    width: 100%;
    height: 100%;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

}


.accessory-card-front {

    position: relative;

    z-index: 2;

}


.accessory-card-back {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    transform:
        rotateY(180deg);

    padding: 28px 30px 24px;

    box-sizing: border-box;

    background: #ffffff;

}

/* =====================================================
   OBRÓT KARTY — DESKTOP
===================================================== */

@media (hover: hover) and (pointer: fine) {

    .accessory-card:hover .accessory-card-inner {

        transform:
            rotateY(180deg);

    }


    .accessory-card.hover-lock
    .accessory-card-inner {

        transform:
            rotateY(0deg);

    }

}


/* =====================================================
   OBRÓT KARTY — TELEFON / DOTYK
===================================================== */

@media (hover: none) and (pointer: coarse) {

    .accessory-card.is-flipped
    .accessory-card-inner {

        transform:
            rotateY(180deg);

    }

}

/* =====================================================
   REWERS KARTY — MENU
===================================================== */


.accessory-card-back-content {

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    box-sizing: border-box;

    text-align: left;

    padding-left: 8px;

}


.accessory-card-back-content h3 {

    margin: 0 0 22px;

    font-size: 16px;

    font-weight: 500;

    line-height: 1.4;

    color: #2f2d2b;

}


.accessory-card-menu {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

}


.accessory-card-menu-item {

    padding: 0;

    border: 0;

    background: transparent;

    color: #756e68;

    font-family: inherit;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.5;

    letter-spacing: 0.02em;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;

}


.accessory-card-menu-item:hover {

    color: #b72b27;

    transform: translateX(3px);

}


/* =====================================================
   KRZYŻYK — POWRÓT Z PANELU FILMY
===================================================== */

.accessory-card-section-back {

    position: absolute;

    top: -30px;
    right: -30px;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #756e68;

    font-family: Arial, sans-serif;

    font-size: 28px;
    font-weight: 600;

    line-height: 30px;

    text-align: center;

    cursor: pointer;

    z-index: 10;

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}


.accessory-card-section-back:hover {

    color: #2f2d2b;

    transform: scale(1.08);

}


/* =====================================================
   MINIATURY FILMÓW — REWERS KARTY
===================================================== */

.accessory-video-thumbnails {

    width: min(100%, 360px);

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    align-items: start;

}


.accessory-video-thumbnail {

    width: 100%;

    min-width: 0;

    padding: 0;

    border: 1px solid #ddd7d1;

    border-radius: 5px;

    background: #ffffff;

    color: #756e68;

    font-family: inherit;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.accessory-video-thumbnail:hover {

    transform: translateY(-2px);

    border-color: #b9afa6;

    box-shadow:
        0 6px 18px rgba(40, 35, 30, 0.08);

}


.accessory-video-thumbnail-image {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 72px;

    background: #f3f1ee;

    color: #756e68;

    font-size: 24px;

    line-height: 1;

    overflow: hidden;

}


.accessory-video-thumbnail-image video {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    pointer-events: none;

}


.accessory-video-thumbnail-title {

    display: block;

    padding: 7px 8px 8px;

    font-size: 13px;

    line-height: 1.3;

    text-align: left;

    color: #756e68;

}

/* =====================================================
   OKNO ODTWARZANIA FILMU
===================================================== */

.accessory-video-overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    background: rgba(20, 18, 16, 0.82);

}


.accessory-video-modal {

    position: relative;

    width: min(900px, 92vw);

    max-height: 88vh;

    background: #000;

    border-radius: 6px;

    overflow: hidden;

    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.35);

}


.accessory-video-modal video {

    display: block;

    width: 100%;

    height: auto;

    max-height: 88vh;

}


.accessory-video-close {

    position: absolute;

    top: 10px;

    right: 12px;

    z-index: 2;

    width: 34px;

    height: 34px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);

    color: #403b37;

    font-size: 25px;

    line-height: 32px;

    cursor: pointer;

}

/* =====================================================
   OPIS PRODUKTU — OKNO
===================================================== */

.accessory-description-overlay {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.72);

}


/* =====================================================
   GŁÓWNE OKNO OPISU
===================================================== */

.accessory-description-modal {

    position: relative;

    width: min(900px, 82vw);

    max-height: 78vh;

    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid #e5e0db;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

}


/* =====================================================
   TREŚĆ OPISU
===================================================== */

.accessory-description-content {

    max-height: 78vh;

    overflow-y: auto;

    box-sizing: border-box;

    padding: 48px 58px 52px;

    color: #2f2d2b;

    font-family: inherit;

    font-size: 17px;

    line-height: 1.75;

}


/* =====================================================
   AKAPITY
===================================================== */

.accessory-description-content p {

    margin: 0 0 22px;

}


.accessory-description-content p:last-child {

    margin-bottom: 0;

}


/* =====================================================
   PRZYCISK ZAMKNIĘCIA
===================================================== */

.accessory-description-close {

    position: absolute;

    top: 12px;

    right: 12px;

    z-index: 2;

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid #ddd7d1;

    border-radius: 50%;

    background: #ffffff;

    color: #4b4743;

    font-family: Arial, sans-serif;

    font-size: 26px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;

}


.accessory-description-close:hover {

    color: #b72b27;

    border-color: #b72b27;

    background: #faf9f7;

}


/* =====================================================
   TELEFON
===================================================== */

@media (max-width: 700px) {

    .accessory-description-overlay {

        padding: 20px;

    }


    .accessory-description-modal {

        width: 100%;

        max-height: 82vh;

    }


    .accessory-description-content {

        max-height: 82vh;

        padding: 42px 28px 35px;

        font-size: 16px;

        line-height: 1.65;

    }

}

/* =====================================================
   WSPÓLNY PRZYCISK POWROTU
===================================================== */

.accessories-back-link {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    margin: 0 0 55px;

    padding: 7px 17px;

    border: 1px solid #b98d68;

    border-radius: 999px;

    background: #ffffff;

    color: #5b4637;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    font-weight: 400;

    line-height: 1.2;

    text-decoration: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}


.accessories-back-link:hover {

    border-color: #9a6b4a;

    background: #faf7f3;

    transform: translateY(-1px);
}

/* =====================================================
   WSPÓLNY UKŁAD KATEGORII
===================================================== */

.accessories-categories {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}

/* =====================================================
   WSPÓLNE KATEGORIE DZIAŁÓW AKCESORIÓW
===================================================== */

.accessory-category-link {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 82px;

    padding: 0 28px;

    box-sizing: border-box;

    border: 1px solid #e3ddd7;

    border-radius: 8px;

    background: #ffffff;

    color: #403a35;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    text-decoration: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.accessory-category-link:hover {

    border-color: #cdb9a7;

    background: #faf7f3;

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(40, 35, 30, 0.05);
}


/* =====================================================
   NAZWA
===================================================== */

.accessory-category-link-title {

    font-size: 21px;

    line-height: 1.2;
}


/* =====================================================
   STRZAŁKA
===================================================== */

.accessory-category-link-arrow {

    font-size: 22px;

    color: #a17c5c;

    transition:
        transform 0.25s ease;
}


.accessory-category-link:hover
.accessory-category-link-arrow {

    transform: translateX(3px);
}


/* =====================================================
   POZYCJE NIEAKTYWNE
===================================================== */

.accessory-category-link-disabled {

    cursor: default;

    background: #faf9f7;

    color: #8b837c;
}


.accessory-category-link-disabled:hover {

    transform: none;

    border-color: #e3ddd7;

    background: #faf9f7;

    box-shadow: none;
}


.accessory-category-link-note {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    color: #b0a69e;
}

/* =====================================================
   RESPONSYWNOŚĆ KATEGORII AKCESORIÓW
===================================================== */

@media (max-width: 600px) {

    .accessories-categories {

        grid-template-columns: 1fr;

        gap: 14px;
    }


    .accessory-category-link {

        min-height: 70px;

        padding: 0 22px;
    }


    .accessory-category-link-title {

        font-size: 20px;
    }
}


@media (max-width: 480px) {

    .accessory-category-link {

        min-height: 64px;

        padding: 0 19px;
    }


    .accessory-category-link-title {

        font-size: 18px;
    }


    .accessory-category-link-arrow {

        font-size: 20px;
    }
}

.accessory-image {

    height: 240px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: #ffffff;

}


.accessory-image img {

    display: block;

    width: 100%;

    max-width: 440px;

    max-height: 210px;

    height: auto;

    object-fit: contain;

}

/* =====================================================
   RESPONSYWNOŚĆ ZDJĘĆ AKCESORIÓW
===================================================== */

@media (max-width: 768px) {

    .accessory-image {

        height: 190px;

        padding: 16px;

    }


    .accessory-image img {

        max-height: 165px;

    }

}


@media (max-width: 560px) {

    .accessory-image {

        height: 210px;

        padding: 18px;

    }


    .accessory-image img {

        max-height: 185px;

    }

}





.accessory-product-code,

.accessory-product-price {

    white-space: nowrap;

}


.accessory-product-separator {

    color: #b9a99b;

}


/* =====================================================
   ODSTĘP TREŚCI PRODUKTU OD KRAWĘDZI KARTY
===================================================== */

.accessory-card-static {

    padding: 0 20px 20px;

    box-sizing: border-box;

}

/* =====================================================
   KRZYŻYK — REWERS KARTY
===================================================== */

.accessory-card-back-content {

    position: relative;

}


.accessory-card-back-close {

    position: absolute;

    top: -20px;
    right: -15px;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #756e68;

    font-family: Arial, sans-serif;

    font-size: 28px;
    font-weight: 600;

    line-height: 30px;

    text-align: center;

    cursor: pointer;

    z-index: 10;

}


/* =====================================================
   GÓRNY PASEK — CEZEL / KOSZYK AKCESORIÓW
===================================================== */


.accessory-cart-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: 64px;
    padding: 8px 24px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    background: rgba(35, 35, 35, 0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.accessory-cart-bar:hover {
    background: rgba(35, 35, 35, 0.40);
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
}

@media (hover: none) {
    .accessory-cart-bar:hover,
    .accessory-cart-bar:active {
        background: rgba(35, 35, 35, 0.40);
        box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
    }
}


.accessory-cart-home {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #756e68;
    text-decoration: none;
}

.accessory-cart-home svg {
    display: block;
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: color 0.2s ease;
}

.accessory-cart-home:hover {
    color: #b72b27;
}

.accessory-cart-container {
    position: relative;
    margin-left: auto;
}

@media (max-width: 560px) {
    .accessory-cart-bar {
        min-height: 56px;
        padding: 8px 16px;
    }
}


/* =====================================================
   STRZAŁKA WSTECZ — GÓRNY PASEK
===================================================== */

.accessory-cart-back {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #756e68;
    text-decoration: none;
}

.accessory-cart-back svg {
    display: block;
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: color 0.2s ease;
}

.accessory-cart-back:hover {
    color: #b72b27;
}


/* =====================================================
   PRZYCISK KOSZYKA — GÓRNY PASEK
===================================================== */

.accessory-cart-toggle {
    min-height: 40px;
    padding: 7px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid #e5e0db;
    border-radius: 5px;

    background: #ffffff;
    color: #756e68;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.accessory-cart-toggle svg {
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accessory-cart-toggle:hover {
    border-color: #b9a99b;
    color: #b72b27;
    background: #faf9f7;
}

.accessory-cart-label {
    white-space: nowrap;
}

.accessory-cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #f3f1ee;
    color: #5b4637;

    font-size: 12px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}


/* =====================================================
   PANEL KOSZYKA — GÓRNY PASEK
===================================================== */

.accessory-cart-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1000;

    width: min(380px, calc(100vw - 32px));
    max-height: 70vh;
    overflow-y: auto;
    box-sizing: border-box;

    padding: 22px;

    border: 1px solid #e5e0db;
    border-radius: 8px;

    background: #d6d4d1;
    color: #403a35;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-color: rgba(255, 255, 255, 0.45);

    box-shadow: 0 12px 35px rgba(40, 35, 30, 0.12);
}

.accessory-cart-panel[hidden] {
    display: none !important;
}

.accessory-cart-panel-heading {
    margin: 0 0 18px;
    padding-bottom: 12px;

    border-bottom: 1px solid #eee9e4;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.accessory-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accessory-cart-empty {
    margin: 0;
    padding: 12px 0;

    color: #756e68;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 560px) {
    .accessory-cart-panel {
        padding: 18px;
        max-height: 75vh;
    }
}


/* =====================================================
   POZYCJE KOSZYKA — ZWARTY UKŁAD
===================================================== */


.accessory-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 0;
    border-bottom: 1px solid #eee9e4;
}

.accessory-cart-item > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}


.accessory-cart-item-name {
    color: #403a35;
    font-size: 14px;
    line-height: 1.4;
}

.accessory-cart-item-details {
    margin-top: 3px;
    color: #8a8178;
    font-size: 12px;
    line-height: 1.4;
}

.accessory-cart-remove {
    flex: 0 0 auto;

    padding: 4px 8px;
    border: 1px solid #e5e0db;
    border-radius: 4px;

    background: #ffffff;
    color: #756e68;

    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.accessory-cart-remove:hover {
    border-color: #b72b27;
    color: #b72b27;
}


/* =====================================================
   LINK DO FORMULARZA — PANEL KOSZYKA
===================================================== */

.accessory-cart-contact {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 42px;

    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 0;
    padding: 8px 12px;
    box-sizing: border-box;

    border: 1px solid #b98d68;
    border-radius: 4px;

    background: #ffffff;
    color: #5b4637;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.3;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.accessory-cart-contact span {
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 19px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.accessory-cart-contact:hover {
    border-color: #9a6b4a;
    background: #faf7f3;
    color: #b72b27;
}


/* =====================================================
   PRZYCISKI NA DOLE KOSZYKA
===================================================== */

.accessory-cart-clear {
    min-height: 42px;
    padding: 8px 12px;
    box-sizing: border-box;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.3;

    cursor: pointer;
}


.accessory-cart-clear:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.accessory-cart-panel:has(.accessory-cart-clear:not([hidden])) {
    /* Przyciski pozostają w jednym, zwartym wierszu. */
}

.accessory-cart-clear:not([hidden]) + .accessory-cart-contact {
    margin-top: 0;
}


/* =====================================================
   WSPÓLNY WIERSZ PRZYCISKÓW KOSZYKA
===================================================== */

.accessory-cart-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}


.accessory-cart-actions .accessory-cart-clear {
    min-height: 36px;
    padding: 6px 12px;
    margin: 0;
    white-space: nowrap;

    box-sizing: border-box;
    border: 1px solid #b9a99b;
    border-radius: 5px;

    background: #f2f0ed;
    color: #5b4637;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
}

.accessory-cart-actions .accessory-cart-contact {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 36px;
    padding: 6px 12px;
    margin: 0;

    box-sizing: border-box;
    border: 1px solid #b9a99b;
    border-radius: 5px;

    background: #f2f0ed;
    color: #5b4637;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;

    text-decoration: none;
}

/* PODŚWIETLENIE PRZYCISKÓW KOSZYKA */

.accessory-cart-actions .accessory-cart-clear:hover,
.accessory-cart-actions .accessory-cart-contact:hover {
    color: #b72b27;
    border-color: #b72b27;
}

/* KRZYŻYK — ZAMYKANIE KOSZYKA */

.accessory-cart-panel {
    position: absolute;
}

.accessory-cart-close {
    position: absolute;
    top: 12px;
    right: 14px;

    width: 30px;
    height: 30px;
    padding: 0;

    border: none;
    border-radius: 4px;

    background: transparent;
    color: #756e68;

    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.accessory-cart-close:hover {
    color: #b72b27;
}
/* =====================================================
   LICZNIK KOSZYKA — WIĘKSZY NA TELEFONIE
===================================================== */

@media (max-width: 560px) {

    .accessory-cart-count {
        min-width: 24px;
        height: 24px;
        font-size: 15px;
        border-radius: 12px;
    }

}

/* =====================================================
   KONIEC
===================================================== */
