﻿

.pt-product-page {
    direction: rtl;
    color: #233247;
    background: #f5f7fa;
    padding: 35px 0 65px;
    line-height: 1.9;
}

.pt-product-page * {
    box-sizing: border-box;
}

.pt-product-container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

/* Breadcrumb */

.pt-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #8190a4;
    font-size: 12px;
    margin-bottom: 25px;
}

    .pt-product-breadcrumb a {
        color: #60738b;
        text-decoration: none;
        transition: color .25s;
    }

        .pt-product-breadcrumb a:hover {
            color: #0879c9;
        }

    .pt-product-breadcrumb span {
        color: #b2bdca;
    }

/* Main product card */

.pt-product-main {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 35px;
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(27, 55, 85, .045);
}

/* Gallery */

.pt-product-gallery {
    min-width: 0;
}

.pt-product-main-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 13px;
    background: radial-gradient(circle at center, #ffffff 0, #f3f7fb 75%);
    border: 1px solid #e8eef4;
}

    .pt-product-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 20px;
        transition: transform .4s ease;
    }

    .pt-product-main-image:hover img {
        transform: scale(1.045);
    }

.pt-product-image-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e8f5ff;
    color: #0876bc;
    border: 1px solid #d2eaff;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 11px;
    z-index: 2;
}

.pt-product-gallery-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0;
    font-size: 11px;
    color: #8997a8;
}

    .pt-product-gallery-caption span:last-child {
        color: #0879c9;
    }

.pt-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pt-product-thumb {
    height: 82px;
    padding: 5px;
    border: 1px solid #e2e9f0;
    background: #f8fafc;
    border-radius: 9px;
    cursor: pointer;
    overflow: hidden;
    transition: all .25s;
}

    .pt-product-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .pt-product-thumb:hover,
    .pt-product-thumb.active {
        border-color: #0879c9;
        background: #edf7ff;
        box-shadow: 0 0 0 2px rgba(8, 121, 201, .07);
    }

/* Product information */

.pt-product-info {
    min-width: 0;
    padding: 4px 0;
}

.pt-product-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0879c9;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

    .pt-product-category::before {
        content: "";
        width: 22px;
        height: 2px;
        background: #0879c9;
        display: inline-block;
    }

.pt-product-title {
    color: #172b43;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.8;
    margin: 0 0 13px;
}

.pt-product-short-description {
    font-size: 13px;
    color: #718095;
    line-height: 2.2;
    margin: 0 0 20px;
}

.pt-product-divider {
    border: 0;
    border-top: 1px solid #edf0f4;
    margin: 20px 0;
}

/* Product status */

.pt-product-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pt-product-status-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f4f8fb;
    color: #52657c;
    border: 1px solid #e8eef4;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 11px;
}

    .pt-product-status-item i {
        width: 7px;
        height: 7px;
        background: #14a77b;
        border-radius: 50%;
    }

/* Price */

.pt-product-price-box {
    background: linear-gradient(135deg, #f0f8ff, #f8fbff);
    border: 1px solid #dceeff;
    border-right: 4px solid #0879c9;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 20px 0;
}

.pt-product-price-label {
    color: #73859a;
    font-size: 12px;
    margin-bottom: 5px;
}

.pt-product-price {
    color: #0874bb;
    font-size: 23px;
    font-weight: 800;
}

    .pt-product-price small {
        font-size: 12px;
        font-weight: normal;
        margin-right: 5px;
    }

.pt-product-price-note {
    color: #8291a4;
    font-size: 11px;
    margin-top: 5px;
}

/* Technical highlights */

.pt-product-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.pt-product-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e9eef4;
    border-radius: 9px;
}

.pt-product-highlight-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf5ff;
    color: #0879c9;
    border-radius: 8px;
    font-size: 17px;
}

.pt-product-highlight strong {
    display: block;
    font-size: 12px;
    color: #344960;
    margin-bottom: 2px;
}

.pt-product-highlight span {
    display: block;
    font-size: 11px;
    color: #8491a1;
}

/* Buttons */

.pt-product-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.pt-product-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s;
}

.pt-product-btn-primary {
    flex: 1;
    color: #fff;
    background: #0879c9;
    border: 1px solid #0879c9;
    box-shadow: 0 5px 14px rgba(8, 121, 201, .15);
}

    .pt-product-btn-primary:hover {
        background: #075f9e;
        border-color: #075f9e;
        color: #fff;
        transform: translateY(-2px);
    }

.pt-product-btn-outline {
    color: #52677f;
    background: #fff;
    border: 1px solid #dce5ee;
}

    .pt-product-btn-outline:hover {
        color: #0879c9;
        border-color: #0879c9;
    }

/* Assurance bar */

.pt-product-assurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.pt-product-assurance-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 9px;
}

.pt-product-assurance-icon {
    color: #0879c9;
    font-size: 20px;
}

.pt-product-assurance-item strong {
    display: block;
    color: #344960;
    font-size: 11px;
}

.pt-product-assurance-item span {
    display: block;
    color: #8997a8;
    font-size: 10px;
}

/* Tabs */

.pt-product-tabs-section {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 16px;
    padding: 0 25px 25px;
    box-shadow: 0 8px 30px rgba(27, 55, 85, .035);
}

.pt-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid #e9eef4;
    margin-bottom: 24px;
}

.pt-product-tab {
    position: relative;
    padding: 20px 2px 17px;
    color: #7b899b;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .pt-product-tab.active {
        color: #0879c9;
    }

        .pt-product-tab.active::after {
            content: "";
            position: absolute;
            right: 0;
            left: 0;
            bottom: -1px;
            height: 3px;
            border-radius: 3px;
            background: #0879c9;
        }

.pt-product-tab-content {
    display: none;
    animation: ptProductFade .3s ease;
}

    .pt-product-tab-content.active {
        display: block;
    }

@keyframes ptProductFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pt-product-tab-heading {
    color: #233c55;
    font-size: 17px;
    font-weight: bold;
    margin: 0 0 15px;
}

.pt-product-description {
    color: #6c7d90;
    font-size: 13px;
    line-height: 2.5;
}

    .pt-product-description p {
        margin: 0 0 14px;
    }

/* Technical table */

.pt-product-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .pt-product-specs tr:nth-child(odd) {
        background: #f7f9fc;
    }

    .pt-product-specs th,
    .pt-product-specs td {
        text-align: right;
        padding: 13px 16px;
        border: 1px solid #edf1f5;
    }

    .pt-product-specs th {
        width: 30%;
        color: #52677f;
        font-weight: bold;
    }

    .pt-product-specs td {
        color: #748397;
    }

/* Reviews */

.pt-product-review {
    padding: 17px;
    margin-bottom: 12px;
    border: 1px solid #e8eef4;
    border-radius: 10px;
    background: #fff;
}

    .pt-product-review strong {
        color: #30465e;
        font-size: 13px;
    }

    .pt-product-review p {
        color: #78879a;
        font-size: 12px;
        margin: 8px 0 0;
        line-height: 2.2;
    }

.pt-product-review-note {
    padding: 13px;
    border-radius: 8px;
    background: #f3f8fd;
    color: #60768d;
    font-size: 12px;
    margin-top: 15px;
}

/* Responsive */

@media (max-width: 850px) {
    .pt-product-main {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .pt-product-main-image {
        height: 350px;
    }

    .pt-product-title {
        font-size: 23px;
    }

    .pt-product-assurance {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pt-product-page {
        padding-top: 20px;
    }

    .pt-product-container {
        width: 93%;
    }

    .pt-product-main {
        padding: 13px;
        border-radius: 12px;
    }

    .pt-product-main-image {
        height: 270px;
    }

    .pt-product-thumb {
        height: 65px;
    }

    .pt-product-title {
        font-size: 20px;
    }

    .pt-product-highlights {
        gap: 8px;
    }

    .pt-product-highlight {
        padding: 9px;
        gap: 7px;
    }

    .pt-product-highlight-icon {
        width: 29px;
        height: 29px;
        font-size: 14px;
    }

    .pt-product-actions {
        flex-direction: column;
    }

    .pt-product-btn {
        width: 100%;
    }

    .pt-product-tabs-section {
        padding: 0 13px 18px;
    }

    .pt-product-tabs {
        gap: 20px;
    }

    .pt-product-tab {
        font-size: 11px;
        padding-top: 17px;
    }

    .pt-product-specs th,
    .pt-product-specs td {
        padding: 10px 8px;
        font-size: 11px;
    }
}

.pt-product-price-label,
.pt-product-price,
.pt-product-price-note {
    font-size: 14px;
    line-height: 2;
    font-weight: 500;
    margin: 5px 0;
}

.pt-product-price {
    color: #0874bb;
    font-weight: 700;
}

.pt-product-price-label {
    color: #344960;
}

.pt-product-price-note {
    color: #0874bb;
}


/* پاپ‌آپ تصویر */
.pt-product-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 20, 32, 0.92);
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

    .pt-product-lightbox.pt-lightbox-active {
        display: flex;
    }

    .pt-product-lightbox img {
        display: block;
        max-width: 95%;
        max-height: 85vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        animation: ptImageZoom .25s ease;
    }

.pt-product-lightbox-close {
    position: absolute;
    top: 15px;
    left: 25px;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    background: #fff;
    color: #172b43;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

    .pt-product-lightbox-close:hover {
        background: #0879c9;
        color: #fff;
    }

@keyframes ptImageZoom {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .pt-product-lightbox img {
        max-width: 100%;
        max-height: 75vh;
    }

    .pt-product-lightbox-close {
        top: 12px;
        left: 12px;
    }
}


/* ===== Product Reviews ===== */
.pt-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 25px;
    align-items: start;
    direction: rtl;
}

.pt-review-form-box,
.pt-review-list-box {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e7edf3;
    border-radius: 12px;
    background: #fff;
}

.pt-review-section-title,
.pt-review-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.pt-review-section-title {
    justify-content: flex-start;
}

.pt-review-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 10px;
    color: #0879c9;
    background: #eaf5ff;
    font-size: 22px;
}

.pt-review-section-title h3,
.pt-review-list-heading h3 {
    margin: 0 0 5px;
    color: #233c55;
    font-size: 15px;
    font-weight: 700;
}

.pt-review-section-title p,
.pt-review-list-heading p {
    margin: 0;
    color: #8491a1;
    font-size: 11px;
    line-height: 2;
}

.pt-review-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pt-review-field {
    margin-bottom: 17px;
}

    .pt-review-field label {
        display: block;
        margin-bottom: 8px;
        color: #43566c;
        font-size: 12px;
        font-weight: 700;
    }

    .pt-review-field input,
    .pt-review-field select,
    .pt-review-field textarea {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 12px;
        border: 1px solid #dfe7ef;
        border-radius: 8px;
        outline: none;
        background: #fafdff;
        color: #344960;
        font-family: inherit;
        font-size: 12px;
        line-height: 1.8;
        transition: border-color .2s, box-shadow .2s;
    }

        .pt-review-field input:focus,
        .pt-review-field select:focus,
        .pt-review-field textarea:focus {
            border-color: #0879c9;
            box-shadow: 0 0 0 3px rgba(8, 121, 201, .08);
        }

    .pt-review-field textarea {
        resize: vertical;
        min-height: 120px;
    }

        .pt-review-field input::placeholder,
        .pt-review-field textarea::placeholder {
            color: #a1adba;
        }

.pt-review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pt-review-privacy {
    color: #8996a5;
    font-size: 10px;
    line-height: 2;
}

.pt-review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: #0879c9;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

    .pt-review-submit:hover {
        background: #075f9e;
        transform: translateY(-1px);
    }

.pt-review-feedback {
    display: none;
    margin-top: 15px;
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 2;
}

    .pt-review-feedback.pt-review-success {
        display: block;
        background: #eaf8f0;
        color: #187548;
    }

    .pt-review-feedback.pt-review-error {
        display: block;
        background: #fff0f0;
        color: #b42318;
    }

.pt-review-count {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 7px;
    background: #eaf5ff;
    color: #0879c9;
    font-size: 11px;
    font-weight: 700;
}

.pt-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-review-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 25px 15px;
    text-align: center;
    border: 1px dashed #dbe5ef;
    border-radius: 10px;
    background: #fafdff;
}

.pt-review-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #eaf5ff;
    color: #0879c9;
    font-size: 22px;
}

.pt-review-empty strong {
    color: #455b72;
    font-size: 13px;
}

.pt-review-empty p {
    max-width: 280px;
    margin: 8px 0 0;
    color: #8996a5;
    font-size: 11px;
    line-height: 2.2;
}

.pt-review-item {
    padding: 16px;
    border: 1px solid #e8eef4;
    border-radius: 10px;
    background: #fff;
}

.pt-review-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pt-review-author {
    color: #344960;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pt-review-subject {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    background: #f0f6fc;
    color: #0879c9;
    font-size: 10px;
}

.pt-review-date {
    color: #99a5b2;
    font-size: 10px;
    white-space: nowrap;
}

.pt-review-item-message {
    margin: 0;
    color: #6f7f91;
    font-size: 12px;
    line-height: 2.3;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 850px) {
    .pt-review-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pt-review-form-box,
    .pt-review-list-box {
        padding: 15px;
    }

    .pt-review-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pt-review-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .pt-review-submit {
        width: 100%;
    }

    .pt-review-list-heading {
        align-items: flex-start;
    }
}

.btnn {
    background: #1d358f;
    padding: 8px 32px 8px;
    color: white;
    border-radius: 5px;
}