﻿/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */

.product-detail-page {
    background: #fff;
    min-height: 100vh;
    padding-bottom: 60px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
    font-size: 14px;
    color: #777;
}

    .product-breadcrumb a {
        color: #16803c;
        text-decoration: none;
        font-weight: 500;
    }

        .product-breadcrumb a:hover {
            text-decoration: underline;
        }

    .product-breadcrumb .current {
        color: #555;
        max-width: 280px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================================
   MAIN PRODUCT AREA
   ========================================================= */

.product-main-section {
    padding-bottom: 35px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 55px;
    align-items: start;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.product-gallery {
    min-width: 0;
}

.main-product-image {
    position: relative;
    width: 100%;
    height: 470px;
    background: #f7f8f7;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8ebe8;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .main-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
    }

    .main-product-image:hover img {
        transform: scale(1.02);
    }


/* Product availability badge */

.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #16803c;
    color: #fff;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}


/* Gallery button */

.gallery-view-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #16803c;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

    .gallery-view-btn:hover {
        background: #16803c;
        color: #fff;
        transform: scale(1.05);
    }


/* =========================================================
   THUMBNAILS
   ========================================================= */

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-thumbnail {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    padding: 3px;
    border: 2px solid transparent;
    background: #f7f8f7;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

    .product-thumbnail:hover {
        border-color: #86b998;
    }

    .product-thumbnail.active {
        border-color: #16803c;
    }

    .product-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 7px;
        display: block;
    }


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.product-information {
    padding-top: 5px;
}

.product-category {
    display: inline-block;
    color: #16803c;
    background: #edf8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-detail-title {
    margin: 0;
    color: #18251c;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.product-type {
    color: #777;
    font-size: 15px;
    margin-top: 9px;
}


/* =========================================================
   RATING
   ========================================================= */

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.rating-stars {
    color: #f5b301;
    font-size: 18px;
    letter-spacing: 1px;
}

.rating-text {
    color: #777;
    font-size: 14px;
}


/* =========================================================
   PRICE
   ========================================================= */

.product-price-box {
    margin-top: 22px;
    padding: 18px 20px;
    background: #f7fbf8;
    border: 1px solid #e1eee4;
    border-radius: 12px;
}

.price-label {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 3px;
}

.product-detail-price {
    color: #16803c;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.2;
}


/* =========================================================
   VARIANTS
   ========================================================= */

.product-option-section {
    margin-top: 25px;
}

    .product-option-section h3 {
        margin: 0 0 12px;
        font-size: 17px;
        color: #222;
    }

.variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    position: relative;
    min-width: 145px;
    padding: 12px 14px;
    border: 1px solid #d9dedb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
}

    .variant-option:hover {
        border-color: #16803c;
    }

    .variant-option.selected {
        border: 2px solid #16803c;
        background: #f3faf5;
    }

.variant-main {
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

.variant-size {
    color: #777;
    font-size: 13px;
}

.variant-price {
    color: #16803c;
    font-size: 14px;
    font-weight: 700;
    margin-top: 3px;
}


/* =========================================================
   STOCK
   ========================================================= */

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    color: #555;
}

    .product-stock strong {
        font-weight: 600;
    }

.stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

    .stock-dot.available {
        background: #20a653;
    }

    .stock-dot.out {
        background: #d63b3b;
    }


/* =========================================================
   QUANTITY
   ========================================================= */

.quantity-section {
    margin-top: 20px;
}

    .quantity-section label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-size: 14px;
        font-weight: 600;
    }

.quantity-control {
    width: 135px;
    height: 43px;
    display: flex;
    align-items: center;
    border: 1px solid #d6dbd7;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

    .quantity-control button {
        width: 42px;
        height: 100%;
        border: none;
        background: #f6f8f6;
        color: #16803c;
        font-size: 21px;
        cursor: pointer;
    }

        .quantity-control button:hover {
            background: #e9f4ec;
        }

    .quantity-control input {
        flex: 1;
        width: 50px;
        height: 100%;
        border: none;
        outline: none;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: #222;
        background: #fff;
    }


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.btn-add-cart,
.btn-buy-now {
    height: 49px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-cart {
    background: #16803c;
    color: #fff;
    border: 1px solid #16803c;
}

    .btn-add-cart:hover {
        background: #116a31;
    }

.btn-buy-now {
    background: #f4b400;
    color: #222;
    border: 1px solid #f4b400;
}

    .btn-buy-now:hover {
        background: #e5a900;
    }


/* =========================================================
   WISHLIST
   ========================================================= */

.wishlist-detail-btn {
    width: 100%;
    margin-top: 10px;
    height: 43px;
    border: 1px solid #d9dedb;
    background: #fff;
    color: #555;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .wishlist-detail-btn:hover,
    .wishlist-detail-btn.active {
        color: #d9364f;
        border-color: #e7aab4;
        background: #fff7f8;
    }


/* =========================================================
   SELLER BOX
   ========================================================= */

.seller-box {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #e2e6e3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-icon {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #edf7f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

.seller-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seller-label {
    color: #888;
    font-size: 12px;
}

.seller-name-detail {
    color: #16803c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 2px;
}

    .seller-name-detail:hover {
        text-decoration: underline;
    }

.seller-location {
    color: #777;
    font-size: 12px;
    margin-top: 2px;
}

.seller-view-btn {
    flex-shrink: 0;
    color: #16803c;
    border: 1px solid #b8d7c0;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

    .seller-view-btn:hover {
        background: #edf8f0;
    }

/* VERIFIED SELLER BADGE */

.seller-verified-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    width: fit-content;
    padding: 4px 10px;
    background: #eaf3ff;
    border: 1px solid #b6d4fe;
    border-radius: 20px;
    color: #0d6efd;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

    .seller-verified-badge i {
        font-size: 13px;
        color: #0d6efd;
    }

.seller-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

/* =========================================================
   DESCRIPTION + CARE
   ========================================================= */

.product-content-section {
    margin-top: 20px;
}

.product-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.product-description-card,
.product-care-card {
    border: 1px solid #e3e7e4;
    border-radius: 15px;
    padding: 25px;
    background: #fff;
}

    .product-description-card h2,
    .product-care-card h2 {
        margin: 0 0 18px;
        font-size: 21px;
        color: #1e2b22;
    }

.product-description {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.empty-content {
    color: #888;
    margin: 0;
}


/* =========================================================
   CARE
   ========================================================= */

.care-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.care-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px;
    border-radius: 10px;
    background: #f7faf8;
}

    .care-item > span {
        font-size: 20px;
    }

    .care-item div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .care-item small {
        color: #888;
        font-size: 11px;
    }

    .care-item strong {
        color: #333;
        font-size: 13px;
        font-weight: 600;
    }

.care-notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e7ebe8;
}

    .care-notes strong {
        font-size: 13px;
        color: #333;
    }

    .care-notes p {
        margin: 5px 0 0;
        color: #666;
        font-size: 14px;
        line-height: 1.6;
    }


/* =========================================================
   GALLERY MODAL
   ========================================================= */

.product-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

    .product-gallery-modal.show {
        display: flex;
    }

    .product-gallery-modal img {
        max-width: min(1000px, 92vw);
        max-height: 88vh;
        object-fit: contain;
        border-radius: 8px;
    }

.gallery-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 43px;
    height: 43px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

body.gallery-open {
    overflow: hidden;
}


.product-video-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

    .product-video-card h2 {
        margin: 0 0 18px;
        font-size: 22px;
        font-weight: 700;
    }

.product-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

    .product-video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.product-local-video {
    display: block;
    width: 100%;
    max-height: 600px;
    border-radius: 12px;
    background: #000;
}

.wishlist-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

    .wishlist-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }


.buy-now-btn {
    flex: 1;
    min-height: 50px;
    background: #ffffff;
    color: #138a3d;
    border: 2px solid #138a3d;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

    .buy-now-btn:hover {
        background: #138a3d;
        color: #ffffff;
    }

    .buy-now-btn:active {
        transform: scale(0.98);
    }



.chat-seller-btn {
    background: #198754;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .chat-seller-btn:hover {
        background: #146c43;
    }

    .chat-seller-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


.contact-seller-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .contact-seller-modal.show {
        display: flex;
    }

.contact-seller-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .2);
}

    .contact-seller-box h3 {
        margin: 0 0 8px;
    }

    .contact-seller-box p {
        margin-bottom: 20px;
        color: #666;
    }

.contact-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.contact-form-group {
    margin-bottom: 16px;
}

    .contact-form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        width: 100%;
        padding: 11px 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

.send-enquiry-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #138a3d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

    .send-enquiry-btn:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

.existing-enquiry-box {
    margin-bottom: 16px;
    padding: 14px;
    background: #f1f8f4;
    border: 1px solid #b9ddc5;
    border-radius: 8px;
}

    .existing-enquiry-box strong {
        display: block;
        margin-bottom: 10px;
        color: #137333;
    }

.existing-enquiry-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.existing-enquiry-date {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}
/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-product-image {
        height: 500px;
    }

    .product-information {
        padding-top: 0;
    }

    .product-detail-title {
        font-size: 32px;
    }

    .product-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .product-content-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .product-video-card {
        width: 100%;
        padding: 14px;
        margin-left: 0;
        margin-right: 0;
    }

        .product-video-card h2 {
            font-size: 18px;
            margin-bottom: 12px;
        }

    .product-video-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .product-detail-page {
        padding-bottom: 35px;
    }

    .product-breadcrumb {
        padding: 12px 0;
        font-size: 12px;
        gap: 5px;
    }

        .product-breadcrumb .current {
            max-width: 150px;
        }

    .product-main-section {
        padding-bottom: 20px;
    }

    .product-detail-grid {
        gap: 22px;
    }

    .main-product-image {
        height: 340px;
        border-radius: 13px;
    }

    .product-badge {
        top: 12px;
        left: 12px;
        font-size: 11px;
        padding: 6px 10px;
    }

    .gallery-view-btn {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .product-thumbnail {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }

    .product-category {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 9px;
    }

    .product-detail-title {
        font-size: 28px;
        letter-spacing: 0;
    }

    .product-type {
        font-size: 14px;
    }

    .product-rating {
        margin-top: 11px;
    }

    .rating-stars {
        font-size: 16px;
    }

    .rating-text {
        font-size: 12px;
    }

    .product-price-box {
        margin-top: 17px;
        padding: 15px;
    }

    .product-detail-price {
        font-size: 27px;
    }

    .product-option-section {
        margin-top: 20px;
    }

    .variant-option {
        min-width: 125px;
        padding: 10px 11px;
    }

    .product-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn-add-cart,
    .btn-buy-now {
        height: 48px;
    }

    .seller-box {
        align-items: flex-start;
    }

    .seller-view-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .product-content-section {
        margin-top: 10px;
    }

    .product-description-card,
    .product-care-card {
        padding: 18px;
        border-radius: 12px;
    }

        .product-description-card h2,
        .product-care-card h2 {
            font-size: 19px;
        }

    .care-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .main-product-image {
        height: 320px;
    }

    .product-detail-title {
        font-size: 25px;
    }

    .product-detail-price {
        font-size: 25px;
    }

    .variant-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .variant-option {
        min-width: 0;
        width: 100%;
    }

    .seller-box {
        flex-wrap: wrap;
    }

    .seller-info {
        width: calc(100% - 60px);
    }

    .seller-view-btn {
        width: 100%;
        text-align: center;
        margin-top: 3px;
    }
}
@media (max-width: 576px) {
    .wishlist-toast {
        bottom: 20px;
        max-width: calc(100% - 30px);
        white-space: normal;
        text-align: center;
    }
}

.product-description {
    unicode-bidi: plaintext;
    text-align: start;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

    .product-description:lang(ur) {
        font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
        line-height: 2.2;
    }
.care-notes-text {
    unicode-bidi: plaintext;
    text-align: start;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.product-description {
    unicode-bidi: plaintext;
    text-align: start;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.care-notes-text {
    unicode-bidi: plaintext;
    text-align: start;
    line-height: 2.2;
    overflow-wrap: anywhere;
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}