﻿
:root {
    --toos-navy: #071b2e;
    --toos-navy-light: #0e304b;
    --toos-orange: #e49a43;
    --toos-orange-dark: #b87525;
    --toos-cream: #fff9ef;
    --toos-text: #17202a;
    --toos-muted: #697681;
    --toos-border: #e5e9ed;
    --toos-danger: #b73535;
    --toos-success: #25834b;
    --toos-shadow: 0 18px 50px rgba(7, 27, 46, .07);
}

/* تنظیمات پایه */

.details-page-section {
    direction: rtl;
    padding: 35px 0 100px;
    background: radial-gradient(circle at 90% 5%, rgba(228, 154, 67, .08), transparent 28rem), #f7f9fa;
    color: var(--toos-text);
}

    .details-page-section * {
        box-sizing: border-box;
    }

    .details-page-section a {
        text-decoration: none;
    }

/* مسیر صفحه */

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 24px;
    color: var(--toos-muted);
    font-size: 13px;
}

    .product-breadcrumb a {
        color: var(--toos-orange-dark);
        font-weight: 700;
    }

        .product-breadcrumb a:hover {
            color: var(--toos-navy);
        }

    .product-breadcrumb i {
        color: #9ca7af;
        font-size: 11px;
    }

/* کارت اصلی */

.product-details-box {
    padding: 38px;
    border: 1px solid var(--toos-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--toos-shadow);
}

/* تصاویر */

.product-media-column {
    position: sticky;
    top: 25px;
}

.details-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid #e6eaed;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(228, 154, 67, .13), transparent 45%), linear-gradient(145deg, #f4f6f7, #e8edef);
}

    .details-image-wrapper::after {
        content: "TOOS / ENGINEERING";
        position: absolute;
        right: 24px;
        bottom: 20px;
        color: #c6ced3;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 3px;
        pointer-events: none;
    }

.details-product-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 480px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .4s ease;
}

.details-image-wrapper:hover .details-product-image {
    transform: scale(1.035);
}

.details-placeholder {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    min-height: 480px;
    color: #98a5ad;
    text-align: center;
}

    .details-placeholder i {
        font-size: 90px;
    }

    .details-placeholder strong {
        color: var(--toos-navy);
        font-size: 24px;
        letter-spacing: 5px;
    }

    .details-placeholder span {
        font-size: 12px;
    }

/* برچسب محصول ویژه */

.details-featured-badge {
    position: absolute;
    z-index: 3;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 50px;
    background: var(--toos-orange);
    color: var(--toos-navy);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(228, 154, 67, .22);
}

/* گالری */

.product-gallery-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.gallery-thumb-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    padding: 6px;
    border: 1px solid var(--toos-border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all .25s ease;
}

    .gallery-thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        mix-blend-mode: multiply;
    }

    .gallery-thumb-item:hover,
    .gallery-thumb-item.active {
        border-color: var(--toos-orange);
        box-shadow: 0 8px 24px rgba(228, 154, 67, .18);
        transform: translateY(-3px);
    }

/* محتوای محصول */

.details-content {
    padding: 12px 0;
}

.details-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--toos-orange-dark);
    font-size: 14px;
    font-weight: 800;
}

.details-content h1 {
    margin: 17px 0 15px;
    color: var(--toos-navy);
    font-size: clamp(27px, 3.1vw, 42px);
    font-weight: 950;
    line-height: 1.65;
}

.details-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.rating-stars {
    display: inline-flex;
    gap: 4px;
    color: var(--toos-orange-dark);
    font-size: 16px;
}

.rating-text {
    color: var(--toos-muted);
    font-size: 12px;
    font-weight: 600;
}

.details-short-description {
    margin-bottom: 25px;
    color: #52616d;
    font-size: 15px;
    font-weight: 500;
    line-height: 2.35;
}

/* قیمت */

.details-price-box {
    margin: 25px 0 18px;
    padding: 23px 25px;
    border: 1px solid #f1d5ad;
    border-radius: 22px;
    background: linear-gradient(135deg, #fffaf2, #fff);
}

.price-label {
    margin-bottom: 9px;
    color: var(--toos-muted);
    font-size: 13px;
    font-weight: 700;
}

.price-values {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
}

.current-price {
    color: #080b0e;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 950;
    letter-spacing: -1px;
}

    .current-price small,
    .old-price small {
        margin-right: 5px;
        color: var(--toos-orange-dark);
        font-size: 13px;
        font-weight: 800;
    }

.old-price {
    color: #9da6ad;
    font-size: 15px;
    text-decoration: line-through;
}

/* موجودی */

.stock-status {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 25px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

    .stock-status.available {
        color: var(--toos-success);
        background: #edf9f1;
    }

    .stock-status.unavailable {
        color: var(--toos-danger);
        background: #fff0f0;
    }

    .stock-status i {
        font-size: 19px;
    }

    .stock-status b {
        font-weight: 900;
    }

/* دکمه‌ها */

.details-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

    .details-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 58px;
        border-radius: 15px !important;
        font-size: 13px;
        font-weight: 800;
        transition: all .25s ease;
    }

.details-main-button,
.add-to-cart-button {
    border-color: var(--toos-navy) !important;
    background: var(--toos-navy) !important;
    color: #fff !important;
}

    .details-main-button:hover,
    .add-to-cart-button:hover {
        border-color: var(--toos-orange-dark) !important;
        background: var(--toos-orange-dark) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }

.details-call-button {
    border: 1px solid var(--toos-navy) !important;
    background: #fff !important;
    color: var(--toos-navy) !important;
}

    .details-call-button:hover {
        border-color: var(--toos-orange-dark) !important;
        background: var(--toos-cream) !important;
        color: var(--toos-navy) !important;
        transform: translateY(-2px);
    }

.add-to-cart-form {
    grid-column: 1 / -1;
}

.add-to-cart-button {
    width: 100%;
}

/* مزیت‌های خرید */

.trust-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 25px;
    border-top: 1px solid var(--toos-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--toos-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.9;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid #f0d6ae;
    border-radius: 14px;
    background: #fff9ef;
    color: var(--toos-orange-dark);
    font-size: 22px;
}

/* بخش‌های متنی */

.product-description-section,
.full-details-section,
.technical-features-section,
.product-video-section {
    margin-top: 30px;
    padding: 38px;
    border: 1px solid var(--toos-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(7, 27, 46, .035);
}

.description-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--toos-border);
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--toos-orange-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
}

.description-heading h2 {
    margin: 0 0 10px;
    color: var(--toos-navy);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 950;
    line-height: 1.7;
}

.description-heading p {
    margin: 0;
    color: var(--toos-muted);
    font-size: 13px;
    line-height: 2;
}

.description-content,
.full-details-content {
    padding-top: 25px;
    color: #27343e;
    font-size: 15px;
    font-weight: 500;
    line-height: 2.5;
    overflow-wrap: anywhere;
}

.full-details-content {
    white-space: normal;
}

.empty-description {
    color: var(--toos-muted);
}

/* ویژگی‌های فنی */

.technical-features-section {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 30px 0 0;
}

    .technical-features-section .description-heading {
        margin-bottom: 22px;
    }

.technical-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.technical-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 17px;
    border: 1px solid #f0dfc7;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffaf2, #fff);
    transition: all .25s ease;
}

    .technical-item:hover {
        border-color: var(--toos-orange);
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(228, 154, 67, .12);
    }

.technical-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    border-radius: 14px;
    background: var(--toos-navy);
    color: var(--toos-orange);
    font-size: 22px;
}

.technical-title {
    color: var(--toos-navy);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.9;
}

/* ویدیو */

.video-wrapper {
    margin-top: 25px;
    overflow: hidden;
    border-radius: 18px;
    background: #071b2e;
    box-shadow: 0 12px 35px rgba(7, 27, 46, .15);
}

.product-video {
    display: block;
    width: 100%;
    max-height: 650px;
}

/* محصولات مرتبط */

.related-products-section {
    padding-top: 75px;
}

.section-heading {
    margin-bottom: 28px;
}

    .section-heading h2 {
        margin: 0 0 8px;
        color: var(--toos-navy);
        font-size: 32px;
        font-weight: 950;
    }

    .section-heading p {
        margin: 0;
        color: var(--toos-muted);
        font-size: 13px;
    }

.related-product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--toos-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(7, 27, 46, .045);
    transition: all .3s ease;
}

    .related-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(7, 27, 46, .11);
    }

.related-product-image {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #f1f4f5;
}

    .related-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        mix-blend-mode: multiply;
        transition: transform .35s ease;
    }

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 7px 12px;
    border-radius: 30px;
    background: var(--toos-orange);
    color: var(--toos-navy);
    font-size: 11px;
    font-weight: 900;
}

.related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    color: #8e9ba4;
}

    .related-placeholder i {
        margin-bottom: 8px;
        font-size: 50px;
    }

.related-product-content {
    padding: 23px;
}

.related-category {
    color: var(--toos-orange-dark);
    font-size: 11px;
    font-weight: 800;
}

.related-product-content h3 {
    margin: 10px 0;
    color: var(--toos-navy);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.8;
}

.related-product-content p {
    min-height: 55px;
    margin-bottom: 20px;
    color: var(--toos-muted);
    font-size: 12px;
    line-height: 2;
}

.related-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid var(--toos-border);
}

    .related-product-footer strong {
        color: var(--toos-navy);
        font-size: 18px;
        font-weight: 950;
    }

    .related-product-footer small {
        color: var(--toos-orange-dark);
        font-size: 10px;
    }

.related-details-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--toos-orange-dark);
    font-size: 12px;
    font-weight: 900;
}

    .related-details-link:hover {
        color: var(--toos-navy);
    }

/* واکنش‌گرایی */

@media (max-width: 1199px) {
    .product-details-box {
        padding: 28px;
    }

    .details-image-wrapper,
    .details-product-image,
    .details-placeholder {
        min-height: 400px;
        height: 400px;
    }

    .technical-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .product-media-column {
        position: static;
    }

    .details-content {
        padding-top: 10px;
    }

        .details-content h1 {
            font-size: 32px;
        }

    .technical-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .details-page-section {
        padding: 20px 0 60px;
    }

    .product-details-box,
    .product-description-section,
    .full-details-section,
    .product-video-section {
        padding: 20px;
        border-radius: 18px;
    }

    .details-image-wrapper,
    .details-product-image,
    .details-placeholder {
        min-height: 290px;
        height: 290px;
    }

    .details-featured-badge {
        top: 12px;
        right: 12px;
        padding: 8px 11px;
        font-size: 10px;
    }

    .details-content h1 {
        font-size: 27px;
    }

    .details-short-description {
        font-size: 14px;
    }

    .current-price {
        font-size: 31px;
    }

    .details-actions {
        grid-template-columns: 1fr;
    }

    .add-to-cart-form {
        grid-column: auto;
    }

    .trust-items {
        grid-template-columns: 1fr;
    }

    .technical-features {
        grid-template-columns: 1fr;
    }

    .technical-item {
        min-height: 78px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .related-product-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
