/*========================================
        PRODUCT DETAILS PAGE STYLE
=========================================*/
.details-gallery {
    position: relative;
}

.details-label-group {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.details-label {
    font-size: 14px;
    padding: 6px 10px;
    margin-bottom: 6px;
    line-height: 13px;
    border-radius: 3px;
    text-transform: capitalize;
    text-align: center;
    color: var(--white);
}
.details-label:last-child {
    margin-bottom: 0px;
}

.details-label.off {
    background: var(--red);
}

.details-label.new {
    background: var(--green);
}

.details-label.sale {
    background: var(--orange);
}

.details-label.feat {
    background: var(--purple);
}

.details-label.rate {
    background: var(--yellow);
}

.details-preview li img {
    width: 100%;
    border-radius: 8px;
    padding: 0;
    list-style: none;
}

.details-thumb li {
    cursor: pointer;
}
.details-thumb li img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--white);
}
.details-thumb .slick-current img {
    border: 1px solid var(--primary);
}

.product-nav-popup {
    position: absolute;
    top: 30px;
    left: 50%;
    z-index: 3;
    width: 100px;
    height: auto;
    visibility: hidden;
    opacity: 0;
    padding: 10px;
    border-radius: 8px;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0px 15px 35px 0px rgba(0, 0, 0, 0.1);
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.product-nav-popup::before {
    position: absolute;
    content: "";
    z-index: -1;
    top: -3px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    transform: rotate(45deg) translateX(-50%);
    background: var(--white);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.product-nav-popup img {
    width: 100%;
}
.product-nav-popup small {
    font-size: 14px;
    line-height: 18px;
    display: inline-block;
}

.details-content {
    padding: 0px 10px;
    border-radius: 8px;
}

.details-name {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 5px;
    font-weight: 400;
    text-transform: capitalize;
}
.details-name a {
    color: var(--heading);
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.details-name a:hover {
    color: var(--primary);
}

.details-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.details-meta p {
    font-size: 13px;
    margin-right: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--placeholder);
}
.details-meta span,
.details-meta a {
    margin-left: 5px;
    color: var(--placeholder);
}
.details-meta a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.details-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
}
.details-rating i,
.details-rating a {
    font-size: 15px;
    margin-right: 3px;
    color: var(--gray);
}
.details-rating a {
    margin-left: 8px;
    white-space: nowrap;
    text-transform: capitalize;
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.details-rating a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.details-rating .active {
    color: var(--yellow);
}

.details-price {
    margin-bottom: 10px;
}
.details-price del {
    color: var(--red);
    font-weight: 300;
    color: var(--gray);
    font-size: small;
}
.details-price span {
    color: var(--red);
    white-space: nowrap;
    margin-right: 8px;
}
.details-price span small {
    font-weight: 400;
}

.details-desc {
    margin-bottom: 10px;
}
.details-desc tbody tr td {
    padding: 5px 10px !important;
}

.file-drop-area {
    position: relative;
    padding: 2rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border: 2px dashed #dae1e7;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
}

.details-list-group {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}
.details-list-group:last-child {
    margin-bottom: 0px;
}

.details-list-title {
    font-weight: 500;
    margin-right: 15px;
    color: var(--heading);
    text-transform: capitalize;
}

.details-tag-list {
    display: flex;
    align-items: center;
    justify-content: center;
}
.details-tag-list li {
    margin-right: 8px;
}
.details-tag-list li a {
    font-size: 14px;
    font-weight: 300;
    line-height: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    color: var(--white);
    background: var(--primary);
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.details-tag-list li a:hover {
    color: var(--white);
    background: var(--primary);
}

.details-share-list {
    display: flex;
    align-items: center;
    justify-content: center;
}
.details-share-list li {
    margin-right: 8px;
}
.details-share-list li a {
    width: 35px;
    height: 35px;
    font-size: 16px;
    line-height: 35px;
    border-radius: 50%;
    text-align: center;
    color: var(--text);
    background: var(--chalk);
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.details-share-list li a:hover {
    color: var(--white);
    background: var(--primary);
}

.details-add-group {
    margin-bottom: 10px;
}
.details-add-group .product-add,
.details-add-group .action-input {
    padding: 10px 0px;
    color: var(--white);
    background: var(--primary);
    text-transform: uppercase;
}
.details-add-group .action-minus i,
.details-add-group .action-plus i {
    background: var(--chalk);
}

.details-action-group {
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    position: relative;
}
.details-action-group a {
    padding: 10px 0px;
    border-radius: 8px;
    color: var(--text);
    background: var(--chalk);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.details-action-group a:hover {
    color: var(--primary);
}
.details-action-group a i {
    font-size: 16px;
    margin-right: 8px;
}
.details-action-group a span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.details-wish.active {
    color: var(--white);
    background: var(--primary);
}
.details-wish.active:hover {
    color: var(--white);
    background: var(--primary);
}

.product-details-frame {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: var(--white);
}
.product-details-frame:last-child {
    margin-bottom: 0px;
}

.frame-title {
    margin-bottom: 30px;
    text-transform: capitalize;
}

.tab-descrip {
    position: relative;
}
.tab-descrip ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 25px;
}
.tab-descrip ul li {
    margin-bottom: 8px;
}
.tab-descrip ul li:last-child {
    margin-bottom: 0px;
}
.tab-descrip img {
    border-radius: 8px;
    width: 100% !important;
}
.tab-descrip a {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 80px;
    height: 80px;
    font-size: 22px;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
    color: var(--white);
    background: rgba(15, 199, 86, 0.8);
    transform: translate(-50%, -50%);
    box-shadow: var(--primary-bshadow);
    text-shadow: var(--primary-tshadow);
}

.table-bordered {
    margin-bottom: 0px;
}
.table-bordered th,
.table-bordered td {
    padding: 12px 25px;
    text-align: left;
}
.table-bordered th {
    font-weight: 500;
}
.table-bordered td:last-child {
    border-right: 1px solid var(--border);
}

#tab-spec ol, #tab-spec ul {
    padding-left: 2rem !important;
    list-style: disc;
}

.review-item {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: var(--chalk);
    border: 1px solid var(--border);
}
.review-item:last-child {
    margin-bottom: 0px;
}

.review-media {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.review-avatar {
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}
.review-avatar i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    color: var(--primary);
    align-items: center;
}

.review-meta {
    text-transform: capitalize;
}
.review-meta p {
    color: var(--heading);
    font-size: 14px;
    text-transform: capitalize;
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.review-meta p:hover {
    color: var(--primary);
}
.review-meta span {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
}
.review-meta span b {
    font-weight: 500;
    color: var(--primary);
}

.review-rating li {
    font-size: 16px;
    margin-right: 5px;
    color: var(--yellow);
    display: inline-block;
}

.review-reply {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.review-reply input {
    width: 100%;
    padding: 7px 18px;
    border-radius: 6px;
    margin-right: 20px;
    background: var(--white);
}
.review-reply button {
    font-size: 15px;
    padding: 6px 15px;
    border-radius: 6px;
    color: var(--white);
    background: var(--primary);
    text-transform: capitalize;
    transition: all linear 0.3s;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
}
.review-reply button:hover {
    background: var(--heading);
}
.review-reply button i {
    margin-right: 5px;
}

.review-reply-list {
    margin-left: 80px;
    margin-top: 35px;
    border-top: 1px solid var(--border);
}

.review-reply-item {
    padding: 30px 0px;
    border-bottom: 1px solid var(--border);
}
.review-reply-item:last-child {
    padding-bottom: 0px;
    border-bottom: none;
}

.review-form .btn {
    width: 100%;
    padding: 12px 30px;
}

@media (max-width: 991px) {
    .product-navigation {
        margin: 25px 0px;
    }
}
@media (max-width: 575px) {
    .details-content {
        padding: 10px 0px;
    }
    .details-name {
        font-size: 18px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .product-details-frame {
        padding: 20px;
    }
    .review-item {
        padding: 20px 15px;
    }
    .review-reply {
        flex-direction: column;
    }
    .review-reply input {
        margin: 0px 0px 15px;
    }
    .review-reply-list {
        margin-left: 25px;
    }
    .star-rating label {
        margin: 0px 6px;
    }
    .details-label {
        padding: 5px 5px;
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    .review-reply-list {
        margin-left: 30px;
    }
}

/* product detail page tab content resize*/
@media (min-width: 992px) {
    #tab-section .tab-content {
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 300px;
        scrollbar-width: thin;
        scrollbar-color: #c0a090 #f0e8e0;
    }
    #tab-section .tab-content::-webkit-scrollbar {
        width: 5px;
    }
    #tab-section .tab-content::-webkit-scrollbar-track {
        background: #f0e8e0;
        border-radius: 10px;
    }
    #tab-section .tab-content::-webkit-scrollbar-thumb {
        background: #c0a090;
        border-radius: 10px;
    }
}

@media (min-width: 1200px) {
    #tab-section .tab-content {
        max-height: 380px;
    }
}

@media (min-width: 1400px) {
    #tab-section .tab-content {
        max-height: 450px;
    }
}

@media (min-width: 1600px) {
    #tab-section .tab-content {
        max-height: 480px;
    }
}

.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    display: inline-block;
    width: 100%;
    background-color: #f5f5f5;
}

.zoom-container img {
    width: 100%;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

.zoom-container.active img {
    opacity: 0;
    filter: blur(2px);
}

.zoom-container.active {
    background-image: var(--bg-img);
    background-size: 200%;
    background-position: var(--x, 0%) var(--y, 0%);
    background-repeat: no-repeat;
}

/* থাম্বনেইল লিস্ট স্টাইল (মোবাইল ও পিসি ফ্রেন্ডলি স্ক্রল) */
.details-thumb-list {
    cursor: grab;
    display: flex;
    gap: 10px;
    padding: 5px 0;
    margin: 10px 0 0 0;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* ক্রোম ও সাফারিতে স্ক্রলবার সুন্দর করার জন্য */
.details-thumb-list::-webkit-scrollbar {
    height: 5px;
}
.details-thumb-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.details-thumb-list.dragging {
    cursor: grabbing; /* মাউস চেপে ধরে টানার সময় মুষ্টিবদ্ধ হাতের আইকন */
    user-select: none; /* টানার সময় ভেতরের টেক্সট বা ইমেজ সিলেক্ট হবে না */
}

/* থাম্বনেইল আইটেম */
.thumb-item {
    flex: 0 0 80px; /* থাম্বনেইলের ফিক্সড সাইজ ৮০ পিক্সেল */
    width: 80px;
    height: 80px;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* যে ইমেজটি প্রিভিউতে থাকবে (Active State) */
.thumb-item.active {
    border-color: #81017f; /* আপনার সাইটের ব্র্যান্ড কালার দিতে পারেন */
    filter: grayscale(100%); /* গ্রে কালার করার জন্য */
    opacity: 0.5;
    pointer-events: none; /* ক্লিক বা টাচ পুরোপুরি বন্ধ */
    cursor: default;
}

