/*
================================================================
PAMELA SHOP - PRODUCT DETAIL / CKEDITOR CONTENT
================================================================
این فایل فقط استایل‌های تکمیلی صفحه جزئیات محصول را نگه می‌دارد.
استایل‌های عمومی سایت در pamela-shop.css باقی می‌مانند.
================================================================
*/

/* --------------------------------------------------------------
   بخش توضیحات کامل محصول
   -------------------------------------------------------------- */

/* ظرف اصلی توضیحات را از سایر اطلاعات محصول جدا می‌کند. */
.product-description-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

/* هدر کوچک بالای توضیحات. */
.product-description-header {
    margin-bottom: 14px;
}

/* متن کوچک معرفی بخش توضیحات. */
.product-description-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--pink-dark);
    font-size: 12px;
    font-weight: 800;
}

/* عنوان توضیحات محصول. */
.product-description-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
}

/* محتوای HTML تولیدشده توسط CKEditor. */
.product-description-content {
    direction: rtl;
    text-align: right;
    color: #555;
    font-size: 15px;
    line-height: 2.15;
}

/* پاراگراف‌های توضیحات. */
.product-description-content p {
    margin: 0 0 16px;
}

/* تیترهای داخل توضیحات. */
.product-description-content h1,
.product-description-content h2,
.product-description-content h3 {
    color: var(--text);
    line-height: 1.7;
    font-weight: 800;
}

/* تیتر سطح اول. */
.product-description-content h1 {
    margin: 28px 0 14px;
    font-size: 28px;
}

/* تیتر سطح دوم. */
.product-description-content h2 {
    margin: 25px 0 13px;
    font-size: 23px;
}

/* تیتر سطح سوم. */
.product-description-content h3 {
    margin: 21px 0 11px;
    font-size: 19px;
}

/* لیست‌های شماره‌ای و بولتی. */
.product-description-content ul,
.product-description-content ol {
    margin: 0 0 18px;
    padding-right: 28px;
}

/* آیتم‌های لیست. */
.product-description-content li {
    margin-bottom: 6px;
}

/* لینک‌های داخل توضیحات. */
.product-description-content a {
    color: var(--pink-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* حالت Hover لینک. */
.product-description-content a:hover {
    text-decoration: none;
}

/* متن Bold. */
.product-description-content strong {
    font-weight: 800;
}

/* متن Italic. */
.product-description-content em {
    font-style: italic;
}

/* نقل قول داخل توضیحات. */
.product-description-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-right: 4px solid var(--pink);
    border-radius: 10px;
    background: #fff6f8;
    color: #555;
}

/* جدول مشخصات محصول. */
.product-description-content figure.table {
    width: 100%;
    margin: 22px 0;
    overflow-x: auto;
}

/* خود جدول. */
.product-description-content table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
}

/* سلول‌های جدول. */
.product-description-content th,
.product-description-content td {
    padding: 11px 13px;
    border: 1px solid var(--line);
    text-align: right;
}

/* سرستون جدول. */
.product-description-content th {
    background: #fff5f7;
    color: var(--text);
    font-weight: 800;
}

/* کد Inline. */
.product-description-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #f3f1f2;
}

/* بلوک کد. */
.product-description-content pre {
    overflow-x: auto;
    padding: 15px;
    border-radius: 10px;
    background: #252225;
    color: #fff;
    direction: ltr;
    text-align: left;
}

/* خط افقی داخل توضیحات. */
.product-description-content hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

/* جلوگیری از بیرون‌زدگی محتوا. */
.product-description-content * {
    max-width: 100%;
}

/* --------------------------------------------------------------
   بخش نظرات - فعلاً Placeholder
   -------------------------------------------------------------- */

/* فاصله بخش نظرات از کارت محصول. */
.product-reviews-placeholder {
    margin-top: 32px;
}

/* کارت موقت سیستم نظرات. */
.reviews-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.035);
    text-align: center;
}

/* آیکون بخش نظرات. */
.reviews-coming-soon-icon {
    font-size: 30px;
}

/* عنوان Placeholder. */
.reviews-coming-soon strong {
    color: var(--text);
    font-size: 17px;
}

/* توضیح Placeholder. */
.reviews-coming-soon p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

/* --------------------------------------------------------------
   موبایل
   -------------------------------------------------------------- */

@media (max-width: 767px) {

    /* فاصله کمتر توضیحات در موبایل. */
    .product-description-section {
        margin-top: 20px;
        padding-top: 18px;
    }

    /* عنوان توضیحات در موبایل. */
    .product-description-header h2 {
        font-size: 19px;
    }

    /* متن توضیحات در موبایل. */
    .product-description-content {
        font-size: 14px;
        line-height: 2;
    }

    /* تیترها در موبایل. */
    .product-description-content h1 {
        font-size: 23px;
    }

    .product-description-content h2 {
        font-size: 20px;
    }

    .product-description-content h3 {
        font-size: 17px;
    }

    /* جدول در موبایل با اسکرول افقی کنترل می‌شود. */
    .product-description-content figure.table {
        max-width: 100%;
        overflow-x: auto;
    }

    /* دکمه نظرات روی موبایل تمام عرض مناسبی می‌گیرد. */
    .product-reviews-button {
        text-align: center;
    }
}
