/* =========================================================
   PRODUCT DETAIL
   ========================================================= */

.product-detail-page {
    padding: 0 0 75px;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.product-detail-layout {
    display: grid;

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

    gap: 28px;

    align-items: start;
}


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

.product-detail-sidebar {
    position: sticky;
    top: 20px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--white);

    box-shadow: var(--shadow);
}

.product-detail-sidebar__header {
    padding: 20px;

    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            var(--orange-soft),
            var(--white)
        );
}

.product-detail-sidebar__header span {
    display: block;

    margin-bottom: 3px;

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

    text-transform: uppercase;
    letter-spacing: 0.1em;

    color: var(--orange);
}

.product-detail-sidebar__header h2 {
    margin: 0;

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

    color: var(--text);
}

.product-detail-sidebar__list {
    display: flex;
    flex-direction: column;
}


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

.product-detail-sidebar__item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 11px;

    min-height: 68px;

    padding: 11px 14px;

    text-decoration: none;

    border-bottom: 1px solid #f1eeea;

    color: var(--text);

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

.product-detail-sidebar__item:last-child {
    border-bottom: 0;
}

.product-detail-sidebar__item:hover {
    color: var(--orange-dark);

    background: var(--orange-soft);
}

.product-detail-sidebar__item.is-active {
    background: var(--orange-light);
}

.product-detail-sidebar__item.is-active::before {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    content: "";

    background: var(--orange);
}

.product-detail-sidebar__item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 9px;

    font-size: 12px;

    color: var(--orange);

    background: var(--orange-light);
}

.product-detail-sidebar__item-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
}

.product-detail-sidebar__item-content strong {
    overflow: hidden;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-detail-sidebar__item-content small {
    margin-top: 2px;

    font-size: 9px;

    color: #a09b96;
}

.product-detail-sidebar__item-arrow {
    flex: 0 0 auto;

    font-size: 9px;

    color: #bbb5af;
}

.product-detail-sidebar__item.is-active
.product-detail-sidebar__item-arrow {
    color: var(--orange);
}


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

.product-detail-main {
    min-width: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.product-detail-hero {
    display: grid;

    grid-template-columns:
        minmax(270px, 42%)
        minmax(0, 1fr);

    overflow: hidden;

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

    background: var(--white);

    box-shadow: var(--shadow);
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.product-detail-hero__image {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 480px;

    padding: 28px;

    border-right: 1px solid var(--border);

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #ffffff 45%,
            #faf8f5 100%
        );
}

.product-detail-hero__image-inner {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;

    min-height: 0;
}

.product-detail-hero__image img {
    display: block;

    max-width: 95%;
    max-height: 360px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 14px 18px rgba(45, 49, 53, 0.08)
        );
}

.product-detail-hero__genuine {
    display: inline-flex;
    align-items: center;
    align-self: center;

    gap: 6px;

    padding: 7px 10px;

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

    border-radius: 8px;

    color: #718071;

    background: #f3f7f2;
}

.product-detail-hero__genuine i {
    color: #6a9a70;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.product-detail-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 42px;
}

.product-detail-hero__eyebrow {
    display: block;

    margin-bottom: 8px;

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

    text-transform: uppercase;
    letter-spacing: 0.12em;

    color: var(--orange);
}

.product-detail-hero__content h1 {
    margin: 0 0 13px;

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

    line-height: 1.2;

    letter-spacing: -0.02em;

    color: var(--text);
}

.product-detail-hero__description {
    max-width: 520px;

    margin: 0 0 27px;

    font-size: 13px;
    line-height: 1.7;

    color: var(--text-soft);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.product-detail-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.product-detail-action {
    display: flex;
    align-items: center;

    gap: 13px;

    min-height: 70px;

    padding: 12px 14px;

    text-decoration: none;

    border: 1px solid #ece8e3;
    border-radius: 11px;

    color: var(--text);

    background: #ffffff;

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

.product-detail-action:hover {
    transform: translateX(3px);

    border-color: #f2c49d;

    color: var(--text);

    box-shadow:
        0 7px 18px rgba(45, 49, 53, 0.06);

    background: var(--orange-soft);
}

.product-detail-action--primary {
    border-color: #f4c9a5;

    background:
        linear-gradient(
            90deg,
            var(--orange-soft),
            #ffffff
        );
}

.product-detail-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    border-radius: 10px;

    font-size: 14px;

    color: var(--orange);

    background: var(--orange-light);
}

.product-detail-action__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
}

.product-detail-action__content strong {
    margin-bottom: 2px;

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

    color: #3d4145;
}

.product-detail-action__content small {
    font-size: 9px;

    color: #99948f;
}

.product-detail-action__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border-radius: 50%;

    font-size: 9px;

    color: var(--orange);

    background: var(--orange-light);
}


/* =========================================================
   INFORMATION
   ========================================================= */

.product-detail-info {
    display: grid;

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

    gap: 12px;

    margin-top: 17px;
}

.product-detail-info__item {
    display: flex;
    align-items: center;

    gap: 11px;

    min-height: 80px;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--white);

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

.product-detail-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border-radius: 9px;

    font-size: 12px;

    color: var(--orange);

    background: var(--orange-light);
}

.product-detail-info__item strong {
    display: block;

    margin-bottom: 2px;

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

    color: #484c50;
}

.product-detail-info__item small {
    display: block;

    font-size: 8px;
    line-height: 1.4;

    color: #99948f;
}


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

@media (max-width: 991.98px) {

    .product-detail-layout {
        grid-template-columns:
            215px minmax(0, 1fr);

        gap: 18px;
    }

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

    .product-detail-hero__image {
        min-height: 330px;

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

    .product-detail-hero__image img {
        max-height: 270px;
    }

    .product-detail-hero__content {
        padding: 30px;
    }

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

}


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

@media (max-width: 767.98px) {

    .product-detail-page {
        padding-bottom: 45px;
    }

    .product-detail-layout {
        display: block;
    }


    /* Sidebar becomes horizontal list */

    .product-detail-sidebar {
        position: static;

        margin-bottom: 17px;
    }

    .product-detail-sidebar__header {
        padding: 15px;
    }

    .product-detail-sidebar__list {
        display: flex;
        flex-direction: row;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .product-detail-sidebar__item {
        min-width: 190px;

        border-right: 1px solid #f1eeea;
        border-bottom: 0;
    }

    .product-detail-sidebar__item.is-active::before {
        top: auto;
        right: 0;
        bottom: 0;

        width: auto;
        height: 3px;
    }


    /* Hero */

    .product-detail-hero {
        border-radius: 14px;
    }

    .product-detail-hero__image {
        min-height: 280px;

        padding: 20px;
    }

    .product-detail-hero__image img {
        max-height: 220px;
    }

    .product-detail-hero__content {
        padding: 24px 20px;
    }

    .product-detail-hero__content h1 {
        font-size: 24px;
    }

}


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

@media (max-width: 575.98px) {

    .product-detail-sidebar__item {
        min-width: 165px;
    }

    .product-detail-action {
        min-height: 65px;
    }

    .product-detail-action__content small {
        line-height: 1.4;
    }

}