/* Product Details Page Specific Styles */

/* main.product-details-page .container{        overflow: hidden;} */


.product-details-page {
    padding: 60px 0 100px;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    gap: 5px;
    font-size: 20px;
    font-weight: 500;
    color: #13036E;
}

.breadcrumb-list a {
    color: #13036E;
    text-decoration: none;
}

.breadcrumb-list span {
    color: #13036E;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-img-container {
    background-color: #F3F8FF;
    border-radius: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    height: 800px; /* Consistent height */
}

/* Gallery logic */
.gallery-img {
    display: none;
    max-width: 100%;
    height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.gallery-img.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.thumb-gallery {
    margin-top: 20px;
    position: relative;
    padding: 0 10px;
    overflow-x: hidden;
}


#thumbGallery .owl-item,
#thumbGallery .owl-item .item{width: max-content !important;}
.thumb-item {
    width: 143px;
    height: 143px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    scroll-snap-align: start;
    background-color: #fff;
}

.thumb-item:hover, .thumb-item.active {
    border-color: #138FFF;
    background-color: #F3F8FF;
    box-shadow: 0 0 0 1px #138FFF;
}

/* Owl Nav for Thumbnails */
.thumb-gallery.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    left: 0;
    margin-top: 0;
}

.thumb-gallery.owl-carousel .owl-nav button {
    pointer-events: auto;
    background: white !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    color: #13036E !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.thumb-gallery.owl-carousel .owl-nav button:hover {
    background: #138FFF !important;
    color: white !important;
    transform: scale(1.1);
}

.thumb-gallery.owl-carousel .owl-nav button.disabled {
    opacity: 0;
    pointer-events: none;
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info-column {
    padding-left: 40px;
}

.product-title {
    font-size: 42px;
    font-weight: 700;
    color: #1B1B1B;
    margin-bottom: 20px;
    text-align: left;
}

.product-snippet {
    font-size: 22px;
    color: #333;
    font-weight: 400;
    line-height:32px;
    margin-bottom: 20px;
    text-align: left;
}

.product-rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.stars {
    color: #D1D5DB;
    display: flex;
    gap: 2px;
}

.stars .filled {
    color: #FBBF24;
}

.review-count {
        font-size: 20px;
    color: #333333;
    font-weight: 400;
}

.product-meta-list {
    margin-bottom: 50px;
}

.meta-row {
    display: flex;
    margin-bottom: 12px;
  /* font-size: 22px;
    line-height: 32px; */
       font-size: 18px;
    line-height: 22px;

        gap: 10px;
            /* margin-bottom: 25px; */
            margin-bottom: 15px;
}
.meta-row:last-of-type{margin-bottom: 0;}
.meta-label {
    /* width: 140px; */
    font-weight: 700;
    color: #000;
}

.meta-value {
    color: #333333;
    font-weight: 500;
}

/* Variant Selector */
.product-info-column .variant-selector-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    margin-bottom: 35px;
    padding: 0;
}

.product-info-column .variant-selector-box .variant-option {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.product-info-column .variant-option:hover {
    border-color: #138FFF;
    background: #F3F8FF;
}

.product-info-column .variant-option.active {
    border-color: #13036E;
    background: linear-gradient(135deg, #F3F8FF 0%, #EDE9FE 100%);
    box-shadow: 0 0 0 1.5px #13036E;
}

.product-info-column .variant-option input[type="radio"] {
    display: none !important;
}

.product-info-column .variant-radio-dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.product-info-column .variant-option.active .variant-radio-dot {
    border-color: #13036E;
    border-width: 2px;
}

.product-info-column .variant-option.active .variant-radio-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #13036E;
    display: block;
}

.product-info-column .variant-label {
    font-size: 18px;
    font-weight: 500;
    color: #1B1B1B;
    flex: 1;
    line-height: 1.4;
}

.product-info-column .variant-diff {
    font-size: 15px;
    font-weight: 600;
    color: #138FFF;
    white-space: nowrap;
    background: rgba(19, 143, 255, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 65px;
}

.current-price {
    font-size: 20px;
    /* font-size: 35px; */
    font-weight: 600;
    line-height: 42px;
    color: #001348;
}

.old-price {
    font-size: 22px;
    color: #7A7A7A;
    text-decoration: line-through;
    font-weight: 400;
}

/* Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.product-actions .quantity-selector


.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.qty-input {
    width: 80px;
    height: 54px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    outline: none;
}

.btn-add-to-cart {
    background: linear-gradient(90deg, #138FFF 0%, #13036E 100%);
    color: #fff !important;
    /* font-size: 18px; */
    font-size: 16px;
    font-weight: 600;
    padding: 15px 65px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 54px;
    display: flex;
    align-items: center;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(19, 143, 255, 0.2);
}

.action-icon-btn {
   border: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-icon-btn:hover {
    border-color: #138FFF;
    color: #138FFF;
}

/* Tabs Section */
.may-like-product-sec{padding-top: 120px;}
.may-like-product-sec h2{margin-bottom: 50px;}
.product-tabs-section {
    margin: 120px 0;
    box-shadow: 0px 0px 24px 0px #0000001A;
    border-radius: 14px;

}
.tabs-content {
    padding: 30px 60px 50px;
}
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid #EAECEE;
    margin-bottom: 0;
}

.tab-link {
    /* font-size: 22px; */
    font-size: 18px;
    font-weight: 600;
    color: #000;
    padding: 20px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: -1px;
}

/* Tab logic */
#tab-1:checked ~ .tabs-nav label[for="tab-1"],
#tab-2:checked ~ .tabs-nav label[for="tab-2"],
#tab-3:checked ~ .tabs-nav label[for="tab-3"] {
    color: #13036E;
}

#tab-1:checked ~ .tabs-nav label[for="tab-1"]::after,
#tab-2:checked ~ .tabs-nav label[for="tab-2"]::after,
#tab-3:checked ~ .tabs-nav label[for="tab-3"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #13036E;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

#tab-1:checked ~ .tabs-content .pane-1,
#tab-2:checked ~ .tabs-content .pane-2,
#tab-3:checked ~ .tabs-content .pane-3 {
    display: block;
}

.tab-pane p {
   /* font-size: 22px; */
   font-size: 16px;
    color: #333;
    text-align: left;
    margin-bottom: 25px;
    line-height: 30px;
    font-weight: 400;
       
}
.tab-pane p:last-of-type{margin-bottom: 0px;}
.features-list {
    margin: 5px 0 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    line-height: 32px;
    color: #333;
    font-weight: 400;
    margin-bottom: 20px;
    /* background-image: url(../images/product-list-true-icon.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px;
    padding-left: 30px; */
}

.features-list li svg {
    margin-top: 4px;
    flex-shrink: 0;
}

/* ── Product Reviews ───────────────────────────────────────────────── */

/* Summary block */
.review-summary {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #EAECEE;
}

.review-summary-left {
    text-align: center;
    min-width: 140px;
}

.review-avg-score {
    font-size: 48px;
    font-weight: 700;
    color: #13036E;
    line-height: 1.1;
}

.review-avg-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 6px 0;
}

.review-total-count {
    font-size: 14px;
    color: #666;
}

.review-summary-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-bar-label {
    font-size: 13px;
    color: #555;
    min-width: 50px;
    text-align: right;
}

.review-bar-track {
    flex: 1;
    height: 10px;
    background: #EAECEE;
    border-radius: 5px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: #F59E0B;
    border-radius: 5px;
    transition: width 0.4s ease;
}

.review-bar-count {
    font-size: 13px;
    color: #555;
    min-width: 24px;
}

/* Star icons */
.star-icon.filled { fill: #F59E0B; }
.star-icon.empty  { fill: #D1D5DB; }
.star-icon.half   { fill: #F59E0B; }

/* Write review */
.review-write-section {
    margin-bottom: 30px;
}

.btn-write-review {
    background: #13036E;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s;
}

.btn-write-review:hover {
    background: #1a0590;
}

.review-form-wrapper {
    margin-top: 16px;
}

.review-form {
    background: #F9FAFB;
    border: 1px solid #EAECEE;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-form-stars {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.star-select {
    display: flex;
    gap: 4px;
}

.star-select-icon {
    fill: #D1D5DB;
    cursor: pointer;
    transition: fill 0.15s;
}

.star-select-icon:hover,
.star-select-icon.selected {
    fill: #F59E0B;
}

.review-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.review-input:focus {
    border-color: #13036E;
}

.review-textarea {
    resize: vertical;
    min-height: 80px;
}

.review-form-actions {
    display: flex;
    gap: 10px;
}

.btn-submit-review {
    background: #13036E;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s;
}

.btn-submit-review:hover { background: #1a0590; }
.btn-submit-review:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-cancel-review {
    background: transparent;
    color: #666;
    border: 1px solid #D1D5DB;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s;
}

.btn-cancel-review:hover { border-color: #999; }

.review-login-msg {
    font-size: 15px;
    color: #666;
}

.review-login-msg a {
    color: #13036E;
    font-weight: 600;
    text-decoration: underline;
}

/* Review cards */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: #fff;
    border: 1px solid #EAECEE;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #13036E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.review-card-meta {
    flex: 1;
}

.review-card-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.review-card-date {
    font-size: 13px;
    color: #999;
}

.review-card-stars {
    display: flex;
    gap: 2px;
}

.review-card-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.review-card-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.review-empty-msg {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 15px;
}

/* Load more */
.review-load-more {
    text-align: center;
    margin-top: 20px;
}

.btn-load-more-reviews {
    background: transparent;
    color: #13036E;
    border: 2px solid #13036E;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
}

.btn-load-more-reviews:hover {
    background: #13036E;
    color: #fff;
}

/* Review responsive */
@media (max-width: 767px) {
    .review-summary {
        flex-direction: column;
        gap: 20px;
    }
    .review-summary-left {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: unset;
    }
    .review-avg-score { font-size: 36px; }
    .review-form { padding: 16px; }
    .review-form-actions { flex-direction: column; }
    .review-card { padding: 14px; }
}

/* Related Products */
.related-products-section {
    padding: 100px 0;
}

.related-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
}

/* Reuse existing product card styles or define similar ones */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}


@media (max-width:1800px){
    .main-img-container{height: 600px;padding: 0px;}
}
@media (max-width:1400px) {
    .product-info-column {
    padding-left: 10px;
}

.btn-add-to-cart{padding: 13px 50px;height: 50px;}

.tabs-content {padding: 30px 40px 50px;}
    .may-like-product-sec{padding-top: 100px;}
    .product-tabs-section{margin: 100px 0;}
.main-img-container{height: 550px;}

}

/* Responsive */
@media (max-width: 1200px) {
    .product-info-column { padding-left: 20px; }
        .main-img-container {
        height: 500px;
    }
}

@media (max-width: 991px) {
    .product-gallery { position: static; margin-bottom: 40px; }
    .product-info-column { padding-left: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .tabs-nav { gap: 20px; }

    .main-img-container{height: 600px;}
    /* .gallery-img{height: 90%;} */
    .gallery-img{height: auto;}
    .thumb-gallery.owl-carousel .owl-nav button{margin: 0 5px !important;}
}

@media (max-width: 767px) {
    .product-title { text-wrap-style: pretty    ;}
    .product-grid { grid-template-columns: 1fr; }
    .product-actions { flex-wrap: wrap;align-items: stretch; }
    .product-info-column .variant-option{padding: 12px 14px; gap: 10px;}
    .quantity-control { justify-content: center; }
    .btn-add-to-cart {order:4;width: 100%; text-align: center; padding: 12px 20px; text-align: center; justify-content: center; height: 50px;    }
    .action-row { display: flex; gap: 10px; justify-content: center; }


    .may-like-product-sec{padding-top: 50px;}

    .thumb-item {width: 100px;height: 100px;}
    .main-img-container{height: 375px; border-radius: 10px; padding: 30px;}
    .gallery-img{height: 90%;}

    .product-tabs-section{margin: 60px 0;}
    .tabs-content {padding: 30px 20px;}
    .tab-pane p{font-size: 14px;line-height: 20px;}
 
    .features-list li{font-size: 14px;margin-bottom: 15px;line-height: 20px;}
}
