﻿/* =========================================
   PRODUCT BREADCRUMB
========================================= */

.text-success {
    color: #1d2157 !important;
}

.shop-breadcrumb-section {
    background: #fff;
    padding: 25px 0 15px;
    border-bottom: 1px solid #edf1f6;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 15px;
}

    .shop-breadcrumb a {
        color: #6b7280;
        text-decoration: none;
        font-weight: 500;
        transition: .25s;
    }

        .shop-breadcrumb a:hover {
            color: #FFD501;
        }

    .shop-breadcrumb i {
        font-size: 12px;
    }

    .shop-breadcrumb .separator {
        color: #c7ced8;
        display: flex;
        align-items: center;
    }

    .shop-breadcrumb .current {
        color: #1d2157;
        font-weight: 700;
    }


/* =========================================
   PRODUCT INFORMATION
========================================= */

.product-info-wrapper {
    padding: 0 !important;
}

.product-overview {
    padding: 35px 20px 0 20px;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1d;
    line-height: 1.2;
    margin-bottom: 20px;
}

.product-rating {
    margin-bottom: 25px;
}

    .product-rating i {
        color: #FFD501;
        font-size: 18px;
        margin-right: 3px;
    }

.product-price {
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 22px;
    font-weight: normal !important;
    color: #c9c9c9;
    line-height: 1;
}

.price-old {
    color: #150A51;
    font-size: 22px;
    font-weight: bold !important;
}

.product-meta {
    margin-bottom: 25px;
}

    .product-meta div {
        margin-bottom: 12px;
        font-size: 18px;
        color: #555;
    }

    .product-meta strong {
        color: #555;
        font-weight: 700;
    }

.stock span {
    color: #555;
    font-weight: normal !important;
}

.product-qty-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

    .product-qty-row label {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

    .product-qty-row .pro-qty {
        display: flex;
        align-items: center;
        height: 40px;
    }

    .product-qty-row .qtybtn {
        width: 40px;
        text-align: center;
        cursor: pointer;
        font-size: 18px;
        font-weight: 600;
        line-height: 40px;
    }

        .product-qty-row .qtybtn.inc {
            border-right: 0;
        }

    .product-qty-row input {
        width: 90px;
        border: none;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
    }

.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

    .product-actions .primary-btn {
        height: 60px;
        padding: 0 45px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 40px;
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
    }

.wishlist-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

    .wishlist-btn:hover {
        border-color: #FFD501;
    }

    .wishlist-btn i {
        font-size: 22px;
        color: #222;
    }

.share-product {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #555;
    font-size: 16px;
    font-weight: 600;
}

    .share-product i {
        font-size: 18px;
    }


/* =========================================
   PRODUCT TABS
========================================= */

.product-tab-section {
    margin-bottom: 70px;
}

.product-tab {
    margin-top: 10px;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.tab-item {
    border-bottom: 1px solid #ececec;
}

    .tab-item .nav {
        margin: 0;
    }

    .tab-item .nav-item {
        margin: 0 25px;
    }

    .tab-item .nav-link {
        border: 0;
        border-radius: 0;
        color: #333;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 18px 0;
        position: relative;
    }

        .tab-item .nav-link:hover,
        .tab-item .nav-link.active {
            color: #150A51;
        }

        .tab-item .nav-link.active {
            background: transparent;
        }

            .tab-item .nav-link.active::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -1px;
                width: 100%;
                height: 2px;
                background: #150A51;
            }

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: none;
}

    .product-tabs .nav-item {
        list-style: none;
    }

    .product-tabs .nav-link {
        border: none;
        background: #f5f7fb;
        color: #4b5563;
        padding: 12px 24px;
        border-radius: 50px;
        font-weight: 600;
        transition: .25s;
    }

        .product-tabs .nav-link:hover {
            background: #e9f3ff;
            color: #003c71;
        }

        .product-tabs .nav-link.active {
            background: #003c71;
            color: #fff;
        }

.tab-item-content {
    margin-top: 30px;
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.product-content {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

    .product-content p:last-child {
        margin-bottom: 0;
    }

.tab-pane {
    min-height: 180px;
}


/* =========================================
   DISCOUNT TOOLTIP
========================================= */

.oneplan-discount-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
}

.oneplan-discount-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 14px;
    cursor: pointer;
}

.oneplan-discount-tooltip-content {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-10%);
    width: 320px;
    padding: 14px 16px;
    background: #F5F5F5;
    border: 1px solid #D5D5D5;
    color: #150A51;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
}

.oneplan-discount-tooltip:hover .oneplan-discount-tooltip-content,
.oneplan-discount-tooltip:focus-within .oneplan-discount-tooltip-content {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   PRODUCT GALLERY
========================================= */

.product-gallery-card {
    background: #fff;
    padding: 35px;
}

.gallery-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

    .gallery-image img {
        max-width: 100%;
        max-height: 460px;
        object-fit: contain;
    }

.product-carousel-indicators {
    position: static;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

    .product-carousel-indicators li {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #d6dbe5;
        opacity: 1;
        border: 0;
    }

        .product-carousel-indicators li.active {
            background: #FFD501;
        }

.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    opacity: 1;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {
    .product-details-section {
        padding: 25px 0 50px;
    }

    .product-info-wrapper {
        padding-left: 0;
        margin-top: 35px;
    }

    .product-overview {
        padding: 20px;
        border-radius: 18px;
        margin-bottom: 25px;
    }

    .product-information {
        padding: 20px;
        border-radius: 18px;
    }

    .product-title {
        font-size: 30px;
    }

    .price-current {
        font-size: 34px;
    }

    .price-old {
        font-size: 22px;
    }

    .product-meta div,
    .product-qty-row label {
        font-size: 18px;
    }

    .product-actions {
        flex-wrap: wrap;
    }

        .product-actions .primary-btn {
            flex: 1;
        }

    .wishlist-btn {
        width: 56px;
        height: 56px;
    }

    .product-gallery-card {
        padding: 20px;
        margin-bottom: 30px;
    }

    .gallery-image {
        min-height: 320px;
    }

        .gallery-image img {
            max-height: 300px;
        }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .product-price {
        width: 100%;
    }

    .price-current,
    .price-old {
        display: block;
        width: 100%;
    }

    .price-current {
        font-size: 18px;
    }

    .price-old {
        position: relative;
        font-size: 18px;
        line-height: 1.5;
    }

    /* Keep the info icon next to the discount price */
    .oneplan-discount-tooltip {
        position: static;
        display: inline-flex;
        vertical-align: middle;
    }

    .oneplan-discount-tooltip-trigger {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-left: 3px;
        vertical-align: middle;
    }

    /* Mobile tooltip */
    .oneplan-discount-tooltip-content {
        left: 0;
        top: calc(100% + 8px);
        transform: none;
        width: calc(100vw - 32px);
        max-width: 320px;
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.5;
        z-index: 9999;
    }
}
