﻿
/* ===============================
   صفحه جزئیات محصول هنر سنگ آسمان
================================ */
.as-product-page {
    direction: rtl;
   
    color: #292d2b;
    padding: 45px 0;
    background: #f7f7f5;
    box-sizing: border-box;
}

.as-product-page *,
.as-product-page *::before,
.as-product-page *::after {
    box-sizing: border-box;
}

.as-product-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* نوار بالای محصول */

.as-product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 12px;
    color: #888d88;
}

    .as-product-breadcrumb a {
        color: #777d77;
        text-decoration: none;
    }

        .as-product-breadcrumb a:hover {
            color: #8a6a43;
        }

    .as-product-breadcrumb span {
        color: #b0b2ad;
    }

/* کادر اصلی */

.as-product-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 38px;
    align-items: stretch;
    padding: 28px;
    background: #fff;
    border: 1px solid #eaeae5;
    border-radius: 15px;
    box-shadow: 0 8px 35px rgba(35, 40, 35, 0.035);
}

/* ===============================
   گالری تصاویر
================================ */

.as-gallery {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-gallery-main {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 11px;
    background: #f0efeb;
    cursor: zoom-in;
}

    .as-gallery-main img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .as-gallery-main:hover img {
        transform: scale(1.035);
    }

.as-gallery-zoom {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(35, 38, 34, 0.78);
    border-radius: 50%;
    font-size: 23px;
    pointer-events: none;
}

.as-gallery-label {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(48, 54, 47, 0.8);
    border-radius: 5px;
    font-size: 11px;
}

.as-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.as-gallery-thumb {
    height: 100px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f0efeb;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

    .as-gallery-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .as-gallery-thumb:hover img {
        transform: scale(1.05);
    }

    .as-gallery-thumb.active {
        border-color: #8b704c;
    }

/* ===============================
   اطلاعات محصول
================================ */

.as-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 5px 0;
}

.as-product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b704c;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 17px;
}

    .as-product-eyebrow::before {
        content: "";
        display: inline-block;
        width: 25px;
        height: 2px;
        background: #8b704c;
    }

.as-product-title {
    margin: 0 0 17px;
    color: #252925;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.9;
}

.as-product-intro {
    margin: 0 0 22px;
    color: #737770;
    font-size: 13px;
    line-height: 2.4;
}

.as-product-divider {
    width: 100%;
    height: 1px;
    background: #ecece7;
    margin: 0 0 22px;
}

/* جدول مشخصات */

.as-spec-heading {
    margin: 0 0 15px;
    font-size: 15px;
    font-weight: bold;
    color: #303630;
}

.as-spec-list {
    width: 100%;
    margin-bottom: 23px;
    border: 1px solid #eeeeea;
    border-radius: 8px;
    overflow: hidden;
}

.as-spec-row {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    border-bottom: 1px solid #eeeeea;
    font-size: 12px;
    line-height: 2;
}

    .as-spec-row:last-child {
        border-bottom: none;
    }

.as-spec-label {
    padding: 11px 13px;
    color: #737770;
    background: #f8f8f6;
}

.as-spec-value {
    padding: 11px 13px;
    color: #333833;
    font-weight: bold;
    overflow-wrap: anywhere;
}

/* نشان استاندارد */

.as-standard-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f7f6f1;
    border: 1px solid #e9e4d8;
    border-radius: 9px;
}

.as-standard-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #80633f;
    background: #ebe3d5;
    border-radius: 8px;
    font-size: 23px;
}

.as-standard-text strong {
    display: block;
    margin-bottom: 5px;
    color: #373b34;
    font-size: 13px;
}

.as-standard-text span {
    display: block;
    color: #7b7e75;
    font-size: 11px;
    line-height: 2;
}

/* دکمه تماس */

.as-product-actions {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.as-product-contact {
    min-height: 48px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 15px;
    border: 1px solid #373d35;
    border-radius: 7px;
    background: #373d35;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

    .as-product-contact:hover {
        background: #8b704c;
        border-color: #8b704c;
        color: #fff;
    }

.as-product-contact-outline {
    flex: 0 0 auto;
    background: #fff;
    color: #373d35;
}

    .as-product-contact-outline:hover {
        background: #f6f3ed;
        color: #373d35;
        border-color: #8b704c;
    }

/* ===============================
   تب توضیحات محصول
================================ */

.as-product-description {
    margin-top: 28px;
    padding: 0 28px 28px;
    background: #fff;
    border: 1px solid #eaeae5;
    border-radius: 13px;
    box-shadow: 0 8px 35px rgba(35, 40, 35, 0.025);
}

.as-description-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 23px 5px 18px;
    margin-bottom: 24px;
    border: none;
    border-bottom: 3px solid #8b704c;
    background: transparent;
    color: #353a34;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
}

    .as-description-tab span {
        color: #8b704c;
        font-size: 19px;
    }

.as-description-content {
    color: #666b64;
    font-size: 13px;
    line-height: 2.8;
    text-align: right;
    direction: rtl;
}

    .as-description-content h3 {
        margin: 0 0 13px;
        color: #30362f;
        font-size: 18px;
    }

    .as-description-content p {
        margin: 0 0 15px;
    }

    .as-description-content ul {
        margin: 12px 0 20px;
        padding-right: 22px;
    }

    .as-description-content li {
        padding-right: 3px;
        margin-bottom: 7px;
    }

        .as-description-content li::marker {
            color: #8b704c;
        }

/* ===============================
   پنجره بزرگنمایی تصاویر
================================ */

.as-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 65px 70px;
    background: rgba(17, 19, 17, 0.94);
}

    .as-lightbox.open {
        display: flex;
    }

.as-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    user-select: none;
}

.as-lightbox-close,
.as-lightbox-prev,
.as-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .as-lightbox-close:hover,
    .as-lightbox-prev:hover,
    .as-lightbox-next:hover {
        background: #8b704c;
    }

.as-lightbox-close {
    top: 20px;
    left: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 29px;
}

.as-lightbox-prev,
.as-lightbox-next {
    top: 50%;
    width: 47px;
    height: 55px;
    border-radius: 7px;
    font-size: 30px;
    transform: translateY(-50%);
}

.as-lightbox-prev {
    right: 18px;
}

.as-lightbox-next {
    left: 18px;
}

.as-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    direction: ltr;
}

/* ===============================
   نمایش در تبلت و موبایل
================================ */

@media (max-width: 850px) {
    .as-product-page {
        padding: 25px 0;
    }

    .as-product-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 20px;
    }

    .as-gallery-main {
        height: 370px;
    }

    .as-product-info {
        padding: 0;
    }

    .as-product-title {
        font-size: 24px;
    }

    .as-product-description {
        padding: 0 20px 22px;
    }
}

@media (max-width: 480px) {
    .as-product-container {
        width: calc(100% - 20px);
    }

    .as-product-main {
        padding: 13px;
        gap: 23px;
        border-radius: 10px;
    }

    .as-gallery-main {
        height: 280px;
    }

    .as-gallery-thumbs {
        gap: 7px;
    }

    .as-gallery-thumb {
        height: 78px;
    }

    .as-product-title {
        font-size: 21px;
        line-height: 1.8;
    }

    .as-product-intro {
        font-size: 12px;
    }

    .as-spec-row {
        grid-template-columns: 105px minmax(0, 1fr);
        font-size: 11px;
    }

    .as-spec-label,
    .as-spec-value {
        padding: 10px;
    }

    .as-standard-box {
        padding: 12px;
    }

    .as-product-actions {
        flex-direction: column;
    }

    .as-product-contact-outline {
        min-height: 44px;
    }

    .as-product-description {
        margin-top: 18px;
        padding: 0 15px 18px;
    }

    .as-description-content {
        font-size: 12px;
    }

    .as-lightbox {
        padding: 60px 45px;
    }

    .as-lightbox-image {
        max-height: calc(100vh - 120px);
    }

    .as-lightbox-prev {
        right: 5px;
    }

    .as-lightbox-next {
        left: 5px;
    }

    .as-lightbox-prev,
    .as-lightbox-next {
        width: 35px;
        height: 45px;
    }
}

tbody, td, tfoot, th, thead, tr {
    border-color: inherit;
    border-style: solid;
    border-width: 1px;
}