﻿/* ============================================ */
/* 1. RESET & BASE STYLES (استایل‌های پایه)     */
/* ============================================ */

img {
    display: inline-block;
    position: relative;
}

/* تصویر پیش‌فرض برای عکس‌های لود نشده */
img::before {
    content: "📷";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #999;
    font-size: 1.5rem;
}

img::after {
    content: "عکس یافت نشد";
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    text-align: center;
}


/* ============================================ */
/* 2. FAQ SECTION (بخش سوالات متداول)           */
/* ============================================ */

.faq-item {
    border: 1px solid #4CAF50;
    border-radius: 8px;
    margin: 10px 0;
    padding: 10px;
    background: #f9fff9;
}

.faq-question {
    margin: 0;
    cursor: pointer;
    color: #2e7d32;
    text-align: justify;
}

.faq-question:hover {
    color: #1b5e20;
}

.faq-answer {
    display: none;
    margin-top: 8px;
    color: #333;
}

.faq-item.active .faq-answer {
    display: block;
    text-align: justify;
}


/* ============================================ */
/* 3. CTA BUTTONS (دکمه‌های دعوت به اقدام)      */
/* ============================================ */

.cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.cta-button {
    background: linear-gradient(135deg, #3aa2e0, #36c57d);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: #ffff00 !important;
}

.cta-secondary {
    background: linear-gradient(135deg, #36c57d, #3aa2e0);
}


/* ============================================ */
/* 4. TABLE STYLES (استایل‌های جدول)            */
/* ============================================ */

.Box table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: center;
    background-color: #fdfdfd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.Box table tr {
    border-bottom: 1px solid #ccc;
}

.Box table th,
.Box table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.Box table th {
    background-color: #36c57d;
    color: #fff;
    font-weight: bold;
}

.Box table tr:nth-child(even) {
    background-color: #f3f9f5;
}

.Box table tr:hover {
    background-color: #e0f2e9;
    transition: background-color 0.3s ease;
}

/* جدول ریسپانسیو */
@media screen and (max-width: 768px) {
    .Box table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    .Box table th,
    .Box table td {
        display: table-cell;
    }
}


/* ============================================ */
/* 5. VIDEO STYLES (استایل‌های ویدئو)           */
/* ============================================ */

video {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    margin: 50px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.35);
    background: #000;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    border: 2px solid rgba(255,255,255,0.08);
}

video:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0,255,160,0.4);
    border-color: rgba(0,255,200,0.3);
}

video::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 25px 35px 25px 45px;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    pointer-events: none;
}

video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0,255,180,0.3) 0%, rgba(0,0,0,0) 70%);
    transform: translate(-50%, -50%);
    opacity: 0.7;
    filter: blur(15px);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

video:hover::before {
    color: #00ffd5;
    text-shadow: 0 0 20px #00ffd5;
    transform: translate(-50%, -50%) scale(1.1);
}

video:hover::after {
    opacity: 1;
    filter: blur(25px);
}

video:focus::before,
video:active::before {
    opacity: 0;
}

/* ویدئو ریسپانسیو */
@media (max-width: 600px) {
    video {
        max-width: 95%;
        border-radius: 14px;
        margin: 25px auto;
    }
    video::before {
        font-size: 50px;
        padding: 20px 28px 20px 38px;
    }
}


/* ============================================ */
/* 6. PRODUCT INDEX REPEATER (تکرارکننده محصول) */
/* ============================================ */

.ProductIndexRepeaterDataList .Item .ItemImageLink {
    height: auto;
    margin-top: 5px;
}

.ProductIndexRepeaterDataList .Item .ItemImage {
    width: 95%;
    max-height: none;
    border-radius: 10px 10px 0 0;
    min-height: 200px;
}

.ProductIndexRepeaterDataList .Item {
    height: 328px;
    display: inline-block;
    padding-bottom: 10px;
}

.ProductIndexRepeaterDataList .Item .CheckBoxMoghayese {
    width: 63px !important;
}

@media (max-width: 600px) {
    .ProductIndexRepeaterDataList .Item .ItemImage {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .ProductIndexRepeaterDataList .Item {
        height: 265px;
        border-radius: 0;
    }
}


/* ============================================ */
/* 7. COLOR & SIZE SELECTION (انتخاب رنگ و سایز) */
/* ============================================ */

.SizeTitleItem {
    float: right;
    width: 60px;
    margin-left: 10px;
    margin-top: 1px;
    border: 1px solid #DDD;
    padding-left: 10px;
    cursor: pointer;
    width: 108px;
    padding-bottom: 1px;
    padding-top: 2px;
    background-color: #fff;
}

.SizeTitleItem2 {
    background-color: #eee;
}

.FieldRadioRang {
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    overflow: visible !important;
    display: inline !important;
    float: none !important;
}

.FieldRadioRang tr {
    border: 0 !important;
}

.FieldRadioRang tr:hover {
    background-color: transparent !important;
    transition: none !important;
}

.FieldRadioRang td {
    padding: 0 !important;
    border: 0 !important;
    margin-left: 2px;
    margin-right: 2px;
    display: inline-block;
    font-size: 8pt;
    cursor: pointer;
    color: #333;
    margin-top: 2px;
    width: 64px;
    background-color: #fff;
    margin: 3px 3px 40px 3px;
}

.FieldRadioRang td input {
    cursor: pointer;
    display: none;
}

.FieldRadioRang td:hover {
    color: #ff0000;
}

.FieldRadioRang td label {
    width: 100%;
    float: right;
    text-align: center;
    cursor: pointer;
    border: solid 2px #ddd;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 2px;
}

.FieldRadioRang td label:hover {
    border: solid 2px #ff0000;
}

.FieldRadioRang .ColorDetail,
.ColorDetail {
    width: 56px;
    height: 56px;
    display: inline-block;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
    background-size: 100% 100%;
    border-radius: 50%;
}

.FieldRadioRang .Title {
    float: right;
    width: 100%;
    text-align: center;
    font-size: 8pt;
}

.SizeTitle2 {
    width: calc(100% - 10px) !important;
    text-align: center !important;
}

.FieldRadio2 {
    font-size: 11pt;
}

.ColorItem {
    width: 10px;
    height: 10px;
    float: right;
    margin-top: 4px;
    margin-left: 5px;
    margin-right: 2px;
    border: 1px solid #ccc;
    cursor: pointer;
}


/* ============================================ */
/* 8. TABLE OF CONTENTS (فهرست مطالب)           */
/* ============================================ */

.table-of-contents {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1.2rem;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.toc-list {
    list-style: decimal;
    padding-right: 20px;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item a {
    text-decoration: none;
    color: #0066cc;
}

.toc-item a:hover {
    text-decoration: underline;
}


/* ============================================ */
/* 9. TYPOGRAPHY & HEADINGS (تایپوگرافی)       */
/* ============================================ */

article h2 {
    padding: 5px 15px;
    background: #fff2ec;
    border-right: 3px solid #ff6925;
    max-width: max-content;
    width: auto;
    text-align: right !important;
    line-height: 240%;
}


/* ============================================ */
/* 10. OTHER COMPONENTS (سایر کامپوننت‌ها)      */
/* ============================================ */

.BastanMenu {
    background-color: #ff0000;
    color: #fff;
    padding: 5px 15px;
    margin: 10px 0;
    border-radius: 10px;
}

.ProductShowColor {
    margin-top: 0;
}

.ProductCompareItemTitle {
    font-weight: bold;
    color: #000;
}

.CategorySpecialProduct .ItemImage {
    height: 190px;
}

.HeaderTopMenu {
    box-shadow: 0px 5px 10px #ccc;
}

#owl-demo .item img {
    width: 70px;
    height: 70px;
}

.OrderRepairStep .Item {
    margin-top: 11px !important;
}