/* ==========================================================================
   Progoti Bazar - Product Details Page Stylesheet
   Follows Anti-Gravity Design Standards & Clean Structural Separation
   ========================================================================== */

/* ✅ Scoped Review Section */
.gomobd-review-section {
    font-family: 'Poppins', sans-serif;
}

/* Title */
.gomobd-review-section .gomobd-review-title {
    font-size: 20px;
    color: #222;
}

/* Review Card */
.gomobd-review-section .gomobd-review-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.3s ease-in-out;
}
.gomobd-review-section .gomobd-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Header */
.gomobd-review-section .gomobd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Avatar */
.gomobd-review-section .gomobd-review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-right: 12px;
}

/* Name + Date */
.gomobd-review-section .gomobd-review-meta {
    flex-grow: 1;
}
.gomobd-review-section .gomobd-review-name {
    font-size: 16px;
    margin: 0;
    color: #222;
}
.gomobd-review-section .gomobd-review-date {
    font-size: 13px;
    color: #888;
}

/* Stars */
.gomobd-review-section .gomobd-review-stars {
    color: #f8b400;
    font-size: 15px;
}

/* Review Text */
.gomobd-review-section .gomobd-review-body {
    margin-top: 10px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Empty state */
.gomobd-review-section .gomobd-review-empty {
    background: #f9f9f9;
    border-radius: 10px;
    color: #777;
}

/* ✅ Review Modal */
#exampleModal .modal-content {
    pointer-events: auto !important;
    background: #fff;
}
#exampleModal .modal-body,
#exampleModal .insert-review,
#exampleModal form,
#exampleModal input,
#exampleModal textarea,
#exampleModal button,
#exampleModal label {
    pointer-events: auto !important;
}

/* ✅ Simple Wholesale Pricing Styles */
.wholesale-tier-row:hover {
    background: #f0f8f0 !important;
}
.wholesale-tier-row.active-tier {
    background: #d4edda !important;
    border-left: 3px solid #28a745 !important;
}

/* বই PDF প্রিভিউ বাটন */
.btn-pdf-preview {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.35);
}
.btn-pdf-preview:hover {
    background: linear-gradient(135deg, #1a252f 0%, #2980b9 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.45);
}

/* বই প্রিভিউ মোডাল */
#bookPdfModal { z-index: 99999999 !important; position: fixed !important; }
body.book-pdf-modal-open .modal-backdrop { z-index: 99999998 !important; }
#bookPdfModal .modal-dialog { max-width: 95%; width: 1100px; margin: 2.5rem auto; position: relative; }
#bookPdfModal .modal-content {
    border: none; border-radius: 12px; overflow: hidden; background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    pointer-events: auto;
}
#bookPdfModal .book-pdf-modal-body,
#bookPdfModal .book-pdf-sidebar a, #bookPdfModal .book-pdf-sidebar button,
#bookPdfModal .book-pdf-sidebar form, #bookPdfModal .book-pdf-preview-col { pointer-events: auto; }
body.book-pdf-modal-open .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.18) !important;
    opacity: 1 !important;
}
.book-pdf-modal-close {
    position: absolute; top: -42px; right: 0; z-index: 1060;
    background: rgba(80, 80, 80, 0.92); color: #fff !important;
    border: none; padding: 8px 16px; border-radius: 6px;
    font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: background 0.2s;
}
.book-pdf-modal-close:hover { background: rgba(60, 60, 60, 0.95); color: #fff; }
.book-pdf-modal-body { display: flex; min-height: 75vh; }
.book-pdf-preview-col {
    flex: 0 0 68%; background: #fafafa; padding: 20px;
    overflow-y: auto; max-height: 80vh; border-right: 1px solid #e8e8e8;
}
#bookPdfViewer {
    min-height: 400px; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
#bookPdfViewer .pdf-page-canvas {
    max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 4px; display: block;
}
#bookPdfViewer .pdf-loading { padding: 40px; color: #666; font-size: 16px; }
#bookPdfViewer .pdf-loading i { font-size: 32px; margin-bottom: 12px; display: block; color: #3498db; }
.book-pdf-sidebar {
    flex: 0 0 32%; padding: 24px; background: #fff; border-left: 1px solid #eee;
    display: flex; flex-direction: column; overflow-y: auto;
}
.book-pdf-sidebar .product-thumb {
    width: 140px; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 16px;
}
.book-pdf-sidebar .product-title { font-weight: 700; font-size: 16px; color: #222; margin-bottom: 4px; }
.book-pdf-sidebar .product-author { font-size: 13px; color: #777; margin-bottom: 12px; }
.book-pdf-sidebar .price-wrap { margin-bottom: 16px; }
.book-pdf-sidebar .price-current { font-size: 20px; font-weight: 700; color: #2c3e50; }
.book-pdf-sidebar .price-old { font-size: 14px; color: #999; text-decoration: line-through; margin-right: 8px; }
.book-pdf-sidebar .price-save { font-size: 13px; color: #28a745; font-weight: 600; }
.book-pdf-addcart {
    width: 100%; padding: 12px 20px; background: #3498db; color: #fff !important;
    border: none; border-radius: 8px; font-weight: 600; font-size: 15px;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s;
}
.book-pdf-addcart:hover { background: #2980b9; color: #fff !important; }
.book-pdf-related { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eee; }
.book-pdf-related h6 { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; }
.book-pdf-related-item {
    display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    text-decoration: none; color: inherit; transition: background 0.2s; border-radius: 6px; margin-bottom: 4px;
}
.book-pdf-related-item:hover { background: #f9f9f9; }
.book-pdf-related-item:last-child { border-bottom: none; }
.book-pdf-related-item img { width: 50px; height: 65px; object-fit: cover; border-radius: 4px; }
.book-pdf-related-item .item-info { flex: 1; min-width: 0; }
.book-pdf-related-item .item-title { font-size: 13px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-pdf-related-item .item-author { font-size: 11px; color: #777; }
.book-pdf-related-item .item-price { font-size: 13px; font-weight: 600; color: #3498db; margin-top: 2px; }

/* 🌿 Description & Reviews Modern Tabs */
.description-nav-wrapper {
    background-color: transparent !important;
    padding: 15px 0 0 !important;
    box-shadow: none !important;
    border-bottom: 2px solid #E2E8F0;
    margin-top: 25px;
}
.desc-nav-ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.desc-nav-ul li {
    margin: 0;
}
.desc-nav-ul li a {
    padding: 10px 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #475569 !important;
    background-color: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: relative;
    top: 2px;
}
.desc-nav-ul li a:hover {
    color: #0D5C3A !important;
    background-color: #FFFFFF !important;
}
.desc-nav-ul li.active a,
.desc-nav-ul li a.active {
    color: #FFFFFF !important;
    background-color: #0D5C3A !important;
    border-color: #0D5C3A !important;
    box-shadow: 0 -2px 8px rgba(13, 92, 58, 0.2) !important;
}
.product-tab-pane {
    display: none;
    animation: fadeInTab 0.25s ease-in-out;
}
.product-tab-pane.active {
    display: block;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.pro_details_area {
    padding-top: 20px;
    padding-bottom: 25px;
}
.product-tab-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: rgba(99, 99, 99, 0.08) 0px 2px 8px 0px;
}
.product-tab-box h4 {
    font-family: 'Hind Siliguri', sans-serif;
    color: #14241B;
    font-weight: 700;
}
.review-item-card {
    background: #F8FAF6;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
}
.review-avatar-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0D5C3A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* 🌿 Related Products Styling */
.related-product-section {
    background: #FFFFFF;
    padding: 24px 0 30px;
    margin-top: 20px;
    border-top: 1px solid #F1F5F9;
}
.related-product-section .related-title h5 {
    font-family: 'Hind Siliguri', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    color: #14241B !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.related-product-section .related-title .title-bar {
    width: 4px;
    height: 20px;
    background-color: #0D5C3A;
    border-radius: 2px;
    display: inline-block;
}
.related-product-section .product_item {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    box-shadow: rgba(99, 99, 99, 0.12) 0px 2px 8px 0px !important;
    padding: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin: 5px 2px 15px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.related-product-section .product_item:hover {
    box-shadow: rgba(13, 92, 58, 0.18) 0px 6px 18px 0px !important;
    transform: translateY(-2px) !important;
    border-color: #0D5C3A !important;
}
.related-product-section .sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}
.related-product-section .sale-badge-box {
    background: #B91C1C !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
    padding: 2px 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}
.related-product-section .sale-badge-box p {
    color: #FFFFFF !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    display: inline !important;
}
.related-product-section .pro_img {
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F8FAF6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}
.related-product-section .pro_img img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.related-product-section .product_item:hover .pro_img img {
    transform: scale(1.05);
}
.related-product-section .pro_name a {
    font-family: 'Hind Siliguri', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #1E293B !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}
.related-product-section .pro_name a:hover {
    color: #0D5C3A !important;
}
.related-product-section .pro_star {
    margin: 4px 0 6px;
    font-size: 11px;
}
.related-product-section .pro_star .fa-star,
.related-product-section .pro_star .fa-star-half-alt,
.related-product-section i.fas.fa-star,
.related-product-section i.fas.fa-star-half-alt {
    color: #E5A912 !important;
}
.related-product-section i.far.fa-star {
    color: #CBD5E1 !important;
}
.related-product-section .pro_price {
    margin: 2px 0 8px !important;
}
.related-product-section .pro_price p {
    margin: 0 !important;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.related-product-section .pro_price .new_price {
    color: #0D5C3A !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}
.related-product-section .pro_price del {
    color: #94A3B8 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}
.related-product-section .pro_btn {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    margin-top: 4px;
}
.related-product-section .pro_btn form {
    flex: 1;
    margin: 0;
}
.related-product-section .order-btn,
.related-product-section .order-btn-link {
    background-color: #E5A912 !important;
    color: #14241B !important;
    border: 0 !important;
    border-radius: 5px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 7px 10px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
    transition: background-color 0.15s ease, transform 0.08s ease !important;
}
.related-product-section .order-btn:hover,
.related-product-section .order-btn-link:hover {
    background-color: #D97706 !important;
    color: #FFFFFF !important;
}
.related-product-section .order-btn:active,
.related-product-section .order-btn-link:active {
    transform: translateY(1.5px) !important;
}
.related-product-section .cart-icon-btn,
.related-product-section .cart-icon-link {
    background-color: #0D5C3A !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 5px !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    transition: background-color 0.15s ease, transform 0.08s ease !important;
    flex-shrink: 0;
}
.related-product-section .cart-icon-btn:hover,
.related-product-section .cart-icon-link:hover {
    background-color: #09472C !important;
    color: #FFFFFF !important;
}
.related-product-section .cart-icon-btn:active,
.related-product-section .cart-icon-link:active {
    transform: translateY(1.5px) !important;
}
.related-product-section button.owl-prev,
.related-product-section button.owl-next {
    top: 45% !important;
}
.related-product-section button.owl-prev i,
.related-product-section button.owl-next i {
    background-color: #0D5C3A !important;
    color: #FFFFFF !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(13, 92, 58, 0.3) !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
}
.related-product-section button.owl-prev:hover i,
.related-product-section button.owl-next:hover i {
    background-color: #09472C !important;
    transform: scale(1.1) !important;
    color: #FFFFFF !important;
}
