/* ==========================================================================
   Product detail page
   ========================================================================== */

.product-detail {
    padding: 1.5rem 0 3rem;
}

.product-detail__row {
    align-items: flex-start;
    gap: 0;
}

.product-detail__gallery-col {
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.product-detail__gallery {
    position: relative;
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ececec;
}

.product-detail__gallery .product-card__badges {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail__gallery .favorite-icon {
    position: absolute;
    top: 17px;
    right: 17px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #e50046;
}

.product-detail__gallery span.q-product-in-cart {
    position: absolute;
    top: 12px;
    right: 60px;
    z-index: 6;
    font-size: 12px;
    font-weight: 700;
    color: #191919;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary, #febb16);
    box-shadow: 0 2px 8px rgba(254, 187, 22, 0.5);
}

.product-detail__slider-main-wrap {
    position: relative;
}

.product-detail__meta-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-detail__meta-badges--gallery {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 6;
    pointer-events: none;
    justify-content: flex-end;
}

.product-detail__meta-badges--title {
    margin-bottom: 0.5rem;
}

.product-detail__original-badge .product-card-right-label {
    width: 90px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

.product-detail__meta-badges .product-card__badge {
    flex-shrink: 0;
}

.product-detail__gallery .product-card__timer {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    text-align: center;
}

.product-detail__gallery .product-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 4;
    border-radius: 12px;
}

.product-detail__3d-view {
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.product-detail__3d-view iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

.product-detail__slider-wrap {
    padding: 12px;
    background: #fff;
    overflow: visible;
}

.product-detail__slider-main {
    background: transparent !important;
    border-radius: 8px;
    overflow: visible;
    min-height: 360px;
}

.product-detail__slider-main .slick-list {
    overflow: hidden;
}

.product-detail__slider-main .slick-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    outline: none;
}

.product-detail__slider-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 16px;
    box-sizing: border-box;
}

.product-detail__slider-main .product-detail__slider-slide.slick-current {
    pointer-events: auto;
}

.product-detail__zoom-target {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
    cursor: zoom-in;
    vertical-align: top;
}

.product-detail__zoom-target img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 480px;
    height: auto;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
}

.product-detail__inner-zoom--active {
    cursor: zoom-out;
}

.product-detail__inner-zoom--active img {
    cursor: zoom-out;
}

.product-detail__zoom-target img.product-detail__energy-slide {
    max-height: 482px;
    background-color: #fff;
}

.product-detail__slider-nav {
    margin-top: 12px;
}

.product-detail__slider-nav .slick-slide {
    padding: 0 6px;
    margin-left: 3px;
    margin-right: 3px;
    cursor: pointer;
}

.product-detail__slider-nav img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    /* border: 2px solid transparent; */
    border-radius: 8px;
    /* background: #f7f7f7; */
    padding: 0 !important;
    transition: border-color 0.2s ease;
}

.product-detail__slider-nav .slick-current img {
    border-color: var(--color-primary, #febb16);
}

.product-detail__energy-thumb {
    height: 80px !important;
    object-fit: contain !important;
}

/* --------------------------------------------------------------------------
   Info panel
   -------------------------------------------------------------------------- */

.product-detail__info {
    padding: 0 0 0 1rem;
}

.product-detail__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    color: #191919;
    margin-bottom: 1rem;
}

.product-detail__pricing {
    justify-content: flex-start;
    margin-bottom: 1rem;
    min-height: 2rem;
}

.product-detail__pricing .new_price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #191919;
}

.product-detail__pricing .old_price {
    font-size: 1.1rem;
    color: #b4b4b4;
    text-decoration: line-through;
}

.product-detail__actions {
    margin-bottom: 1rem;
}

.product-detail__actions .product-card__actions {
    width: auto;
}

.product-detail__cart {
    max-width: 360px;
    margin-bottom: 1.5rem;
    padding-top: 0;
    border-top: none;
}

.product-detail__cart .product-card__cart-row .product-card__qty,
.product-detail__cart .product-card__cart-row .pro-qty {
    max-width: 200px;
}

.product-detail__branch-dot {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Description
   -------------------------------------------------------------------------- */

.product-detail__description {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ececec;
}

.product-detail__description-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #484848;
    margin-bottom: 1rem;
}

.product-detail__description-body {
    color: #555;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.product-detail__description-body img {
    max-width: 100%;
    height: auto;
}

.product-detail__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.product-detail__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-detail__specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.product-detail__specs li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .product-detail__info {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .product-detail {
        padding: 1rem 0 2rem;
    }

    .product-detail__title {
        font-size: 1.2rem;
    }

    .product-detail__pricing .new_price {
        font-size: 1.25rem;
    }

    .product-detail__slider-main,
    .product-detail__slider-main .slick-slide {
        min-height: 280px;
    }

    .product-detail__slider-slide {
        padding: 12px;
    }

    .product-detail__zoom-target img {
        max-height: 320px;
    }

    .product-detail__3d-view iframe {
        height: 280px;
    }

    .product-detail__slider-nav img {
        height: 64px;
    }

    .product-detail__cart {
        max-width: none;
    }

    .product-detail__cart .product-card__cta {
        min-height: 48px;
    }

    .product-detail__cart .product-card__cart-row .pro-qty .qtybtn {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }
}
