/* =========================================================
   ACCESSORIES PAGE
   ========================================================= */

.accessories-page {
    padding: 10px 0 70px;
    background: var(--background, #faf9f7);
}

.accessories-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.accessories-sidebar {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border, #ebe7e2);
    border-radius: 18px;

    box-shadow: var(
        --shadow,
        0 8px 28px rgba(45, 49, 53, 0.06)
    );
}

.accessories-sidebar__header {
    padding: 22px 22px 18px;

    background:
        linear-gradient(
            135deg,
            #fff8f2 0%,
            #ffffff 100%
        );

    border-bottom: 1px solid var(--border, #ebe7e2);
}

.accessories-sidebar__header span {
    display: block;

    margin-bottom: 4px;

    color: var(--orange, #f58220);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.accessories-sidebar__header h2 {
    margin: 0;

    color: var(--text, #2d3135);

    font-size: 19px;
    font-weight: 700;
}


/* =========================================================
   SIDEBAR LIST
   ========================================================= */

.accessories-sidebar__list {
    padding: 8px;
}

.accessories-sidebar__item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 11px;

    color: var(--text, #2d3135);

    border-radius: 11px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.accessories-sidebar__item:hover {
    background: var(--orange-soft, #fff8f2);

    color: var(--orange-dark, #df6e0d);

    transform: translateX(2px);
}

.accessories-sidebar__item-icon {
    display: flex;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    background: var(--orange-light, #fff3e8);

    color: var(--orange, #f58220);

    border-radius: 9px;

    font-size: 13px;
}

.accessories-sidebar__item-content {
    display: flex;

    flex: 1;
    min-width: 0;

    flex-direction: column;

    gap: 1px;
}

.accessories-sidebar__item-content strong {
    overflow: hidden;

    color: inherit;

    font-size: 13px;
    font-weight: 650;

    line-height: 1.35;

    text-overflow: ellipsis;
}

.accessories-sidebar__item-content small {
    color: var(--text-soft, #6f757b);

    font-size: 11px;
}

.accessories-sidebar__item-arrow {
    color: #b8b8b8;

    font-size: 10px;

    transition: transform 0.2s ease;
}

.accessories-sidebar__item:hover
.accessories-sidebar__item-arrow {
    color: var(--orange, #f58220);

    transform: translateX(2px);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.accessories-main {
    min-width: 0;
}


/* =========================================================
   INTRO
   ========================================================= */

.accessories-intro {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 20px;
    padding: 22px 24px;

    background: #ffffff;

    border: 1px solid var(--border, #ebe7e2);
    border-radius: 18px;

    box-shadow: var(
        --shadow,
        0 8px 28px rgba(45, 49, 53, 0.06)
    );
}

.accessories-intro__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--orange, #f58220);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.accessories-intro h2 {
    margin: 0 0 5px;

    color: var(--text, #2d3135);

    font-size: 24px;
    font-weight: 700;
}

.accessories-intro p {
    max-width: 600px;

    margin: 0;

    color: var(--text-soft, #6f757b);

    font-size: 14px;
    line-height: 1.6;
}

.accessories-intro__count {
    display: flex;

    flex: 0 0 84px;

    min-height: 72px;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    background: var(--orange-soft, #fff8f2);

    border: 1px solid #f7dfca;
    border-radius: 14px;
}

.accessories-intro__count strong {
    color: var(--orange, #f58220);

    font-size: 24px;
    font-weight: 750;

    line-height: 1;
}

.accessories-intro__count span {
    margin-top: 5px;

    color: var(--text-soft, #6f757b);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.accessories-product-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.accessory-product-card {
    display: grid;

    grid-template-columns: 150px minmax(0, 1fr);

    min-width: 0;
    min-height: 210px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border, #ebe7e2);
    border-radius: 17px;

    box-shadow:
        0 5px 20px rgba(45, 49, 53, 0.04);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.accessory-product-card:hover {
    transform: translateY(-2px);

    border-color: #f2d2b7;

    box-shadow:
        0 11px 30px rgba(45, 49, 53, 0.08);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.accessory-product-card__image {
    position: relative;

    display: flex;

    min-height: 210px;

    align-items: center;
    justify-content: center;

    padding: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfaf8 100%
        );

    border-right: 1px solid var(--border, #ebe7e2);
}

.accessory-product-card__image-button {
    position: relative;

    display: flex;

    width: 100%;
    height: 100%;

    min-height: 175px;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;

    border: 0;

    cursor: zoom-in;
}

.accessory-product-card__image-button img {
    display: block;

    width: 100%;
    max-width: 125px;
    height: 155px;

    object-fit: contain;

    transition: transform 0.25s ease;
}

.accessory-product-card:hover
.accessory-product-card__image-button img {
    transform: scale(1.03);
}

.accessory-product-card__zoom {
    position: absolute;

    right: 3px;
    bottom: 3px;

    display: flex;

    width: 30px;
    height: 30px;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: var(--orange, #f58220);

    border: 1px solid var(--border, #ebe7e2);
    border-radius: 50%;

    box-shadow:
        0 4px 12px rgba(45, 49, 53, 0.08);

    font-size: 11px;

    opacity: 0;

    transform: translateY(3px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.accessory-product-card:hover
.accessory-product-card__zoom {
    opacity: 1;

    transform: translateY(0);
}

.accessory-product-card__placeholder {
    display: flex;

    width: 95px;
    height: 95px;

    align-items: center;
    justify-content: center;

    background: var(--orange-soft, #fff8f2);

    color: #d9b89c;

    border-radius: 50%;

    font-size: 31px;
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.accessory-product-card__content {
    display: flex;

    min-width: 0;

    flex-direction: column;

    padding: 18px;
}

.accessory-product-card__content h3 {
    margin: 0 0 13px;

    color: var(--text, #2d3135);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}


/* =========================================================
   PRODUCT META
   ========================================================= */

.accessory-product-card__meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 14px;
}

.accessory-product-card__meta > div {
    display: flex;

    min-width: 90px;

    flex-direction: column;

    gap: 2px;

    padding: 7px 9px;

    background: #faf9f7;

    border-radius: 8px;
}

.accessory-product-card__meta span {
    color: var(--text-soft, #6f757b);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.accessory-product-card__meta strong {
    color: var(--text, #2d3135);

    font-size: 12px;
    font-weight: 650;
}


/* =========================================================
   PRICES
   ========================================================= */

.accessory-product-card__prices {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: auto;
    margin-bottom: 10px;
}

.accessory-product-card__prices > div {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    background: var(--orange-soft, #fff8f2);

    border: 1px solid #f6dfcc;
    border-radius: 8px;
}

.accessory-product-card__prices span {
    color: var(--text-soft, #6f757b);

    font-size: 10px;
    font-weight: 600;
}

.accessory-product-card__prices strong {
    color: var(--orange-dark, #df6e0d);

    font-size: 14px;
    font-weight: 750;
}

.accessory-product-card__discount {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    width: fit-content;

    margin-bottom: 9px;

    color: #5c8a5c;

    font-size: 11px;
    font-weight: 650;
}


/* =========================================================
   ADD TO CART
   ========================================================= */

.accessory-product-card__cart {
    margin-top: auto;
    padding-top: 5px;
}

.accessory-product-card__add {
    display: flex;

    width: 100%;
    min-height: 42px;

    align-items: center;

    gap: 9px;

    padding: 6px 10px 6px 7px;

    background: var(--orange, #f58220);

    color: #ffffff;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 650;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.accessory-product-card__add:hover {
    background: var(--orange-dark, #df6e0d);

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(245, 130, 32, 0.20);
}

.accessory-product-card__add-icon {
    display: flex;

    flex: 0 0 29px;

    width: 29px;
    height: 29px;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.18);

    border-radius: 7px;

    font-size: 11px;
}

.accessory-product-card__add-arrow {
    margin-left: auto;

    font-size: 9px;
}


/* =========================================================
   OUT OF STOCK
   ========================================================= */

.accessory-product-card__out {
    display: flex;

    width: 100%;
    min-height: 42px;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 12px;

    background: #f5f5f5;

    color: #8b8b8b;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 650;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.accessories-empty {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 28px;

    background: #ffffff;

    border: 1px solid var(--border, #ebe7e2);
    border-radius: 17px;

    box-shadow:
        0 5px 20px rgba(45, 49, 53, 0.04);
}

.accessories-empty__icon {
    display: flex;

    flex: 0 0 55px;

    width: 55px;
    height: 55px;

    align-items: center;
    justify-content: center;

    background: var(--orange-soft, #fff8f2);

    color: var(--orange, #f58220);

    border-radius: 14px;

    font-size: 20px;
}

.accessories-empty strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text, #2d3135);

    font-size: 16px;
}

.accessories-empty p {
    margin: 0;

    color: var(--text-soft, #6f757b);

    font-size: 13px;
}


/* =========================================================
   PRODUCT LIGHTBOX
   ========================================================= */

.product-lightbox {
    position: fixed;
    z-index: 99999;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.product-lightbox.is-open {
    display: flex;
}

.product-lightbox__backdrop {
    position: absolute;

    inset: 0;

    background: rgba(32, 34, 36, 0.78);

    backdrop-filter: blur(3px);
}

.product-lightbox__dialog {
    position: relative;
    z-index: 2;

    width: min(680px, 100%);
    max-height: calc(100vh - 50px);

    overflow: hidden;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.25);
}

.product-lightbox__close {
    position: absolute;
    z-index: 3;

    top: 12px;
    right: 12px;

    display: flex;

    width: 36px;
    height: 36px;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: var(--text, #2d3135);

    border: 1px solid var(--border, #ebe7e2);
    border-radius: 50%;

    box-shadow:
        0 4px 14px rgba(45, 49, 53, 0.10);

    cursor: pointer;
}

.product-lightbox__close:hover {
    color: var(--orange, #f58220);
}

.product-lightbox__image {
    display: flex;

    min-height: 400px;
    max-height: calc(100vh - 150px);

    align-items: center;
    justify-content: center;

    padding: 35px;

    background: #ffffff;
}

.product-lightbox__image img {
    display: block;

    max-width: 100%;
    max-height: calc(100vh - 220px);

    object-fit: contain;
}

.product-lightbox__footer {
    padding: 15px 20px;

    background: #faf9f7;

    border-top: 1px solid var(--border, #ebe7e2);
}

.product-lightbox__footer span {
    display: block;

    margin-bottom: 2px;

    color: var(--orange, #f58220);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-lightbox__footer strong {
    color: var(--text, #2d3135);

    font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .accessories-layout {
        grid-template-columns: 240px minmax(0, 1fr);

        gap: 20px;
    }

    .accessories-product-grid {
        grid-template-columns: 1fr;
    }

    .accessory-product-card {
        grid-template-columns: 170px minmax(0, 1fr);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .accessories-page {
        padding-bottom: 45px;
    }

    .accessories-layout {
        display: block;
    }

    .accessories-sidebar {
        display: none;
    }

    .accessories-intro {
        align-items: flex-start;

        padding: 18px;
    }

    .accessories-intro h2 {
        font-size: 21px;
    }

    .accessories-intro p {
        font-size: 13px;
    }

    .accessories-intro__count {
        flex-basis: 68px;

        min-height: 64px;
    }

    .accessories-intro__count strong {
        font-size: 20px;
    }

    .accessories-product-grid {
        grid-template-columns: 1fr;
    }

    .accessory-product-card {
        grid-template-columns: 125px minmax(0, 1fr);

        min-height: 190px;
    }

    .accessory-product-card__image {
        min-height: 190px;

        padding: 10px;
    }

    .accessory-product-card__image-button {
        min-height: 160px;
    }

    .accessory-product-card__image-button img {
        max-width: 105px;
        height: 140px;
    }

    .accessory-product-card__content {
        padding: 14px;
    }

    .accessory-product-card__content h3 {
        font-size: 14px;
    }

    .accessory-product-card__meta {
        gap: 6px;
    }

    .accessory-product-card__meta > div {
        min-width: 75px;

        padding: 6px 7px;
    }

    .product-lightbox {
        padding: 15px;
    }

    .product-lightbox__image {
        min-height: 300px;

        padding: 25px 15px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .accessories-intro {
        gap: 12px;
    }

    .accessories-intro__count {
        display: none;
    }

    .accessory-product-card {
        display: block;
    }

    .accessory-product-card__image {
        min-height: 185px;

        border-right: 0;
        border-bottom: 1px solid var(--border, #ebe7e2);
    }

    .accessory-product-card__image-button {
        min-height: 160px;
    }

    .accessory-product-card__image-button img {
        width: auto;
        max-width: 160px;
        height: 150px;
    }

    .accessory-product-card__zoom {
        opacity: 1;
    }

    .accessory-product-card__content {
        padding: 16px;
    }

    .accessory-product-card__meta > div {
        flex: 1;

        min-width: 90px;
    }
}


/* =========================================================
   LIGHTBOX BODY STATE
   ========================================================= */

body.product-lightbox-open {
    overflow: hidden;
}

/* =========================================================
   PRICE + CART INLINE
   ========================================================= */
.accessory-product-card__buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}
.accessory-product-card__buy-row .accessory-product-card__prices {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
}
.accessory-product-card__buy-row .accessory-product-card__discount {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}
.accessory-product-card__buy-row .accessory-product-card__cart {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}
.accessory-product-card__buy-row .accessory-product-card__add {
    width: auto;
    min-width: 125px;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .accessory-product-card__buy-row { gap: 7px; }
    .accessory-product-card__buy-row .accessory-product-card__add { min-width: 0; }
}
