/*
Theme Name: Arman Salamat Lab
Theme URI: https://armansalamatlab.com
Author: Behnam jafari
Description: Custom theme for Arman Salamat Dental Laboratory based on the technical proposal.
Version: 1.0
Text Domain: arman-salamat
*/

:root {
    /* پالت رنگی اختصاصی */
    --primary: #D71920;       /* قرمز آرمانی */
    --primary-dark: #b01217;  /* قرمز تیره برای هاور */
    --secondary: #000000;     /* مشکی مطلق */
    --text-main: #333333;     /* رنگ متن اصلی */
    --text-light: #666666;    /* رنگ متن کم‌رنگ */
    --bg-light: #F8F9FA;      /* پس‌زمینه خیلی روشن */
    --white: #FFFFFF;
    --border-color: #e5e5e5;
    
    /* تنظیمات */
    --container: 1240px;      /* عرض سایت کمی عریض‌تر و مدرن‌تر */
    --radius: 8px;            /* گوشه‌های نرم برای دکمه‌ها */
    --shadow: 0 4px 20px rgba(0,0,0,0.08); /* سایه نرم و مدرن */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* انیمیشن نرم */
}

/* ریست اولیه */
* { box-sizing: border-box; outline: none; }
body {
    font-family: 'Tahoma', sans-serif; /* موقت */
    background-color: var(--white);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

/* کانتینر */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

/* --- HEADER STYLE --- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid var(--primary); /* نوار قرمز بالای سایت */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- استایل لوگوی تصویری --- */
.logo-area a {
    display: flex;
    align-items: center;
}

.site-logo {
    max-width: 220px; /* عرض لوگو - اگر کوچک یا بزرگ بود این عدد را تغییر دهید */
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02); /* یک افکت خیلی نرم و شیک موقع هاور */
}

/* ریسپانسیو لوگو برای موبایل */
@media (max-width: 768px) {
    .site-logo {
        max-width: 160px; /* در موبایل کمی کوچکتر شود */
    }
}

/* منو */
.main-menu ul {
    display: flex;
    gap: 30px;
}
.main-menu a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
    padding: 10px 0;
    position: relative;
}
/* افکت زیرخط متحرک برای منو */
.main-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary);
    transition: var(--transition);
}
.main-menu a:hover { color: var(--primary); }
.main-menu a:hover::after { width: 100%; }

/* دکمه هدر */
.header-action .btn-cta {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(215, 25, 32, 0.3); /* سایه قرمز زیر دکمه */
}
.header-action .btn-cta:hover {
    background-color: var(--secondary); /* در هاور مشکی می‌شود - شیک‌تر */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* --- FOOTER STYLE --- */
.site-footer {
    background: var(--secondary);
    color: #aaaaaa;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    font-size: 14px;
}
/* --- HERO SLIDER STYLES --- */
.hero-slider-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden; /* جلوگیری از اسکرول اضافه */
    background-color: #1a1a1a; /* رنگ پس‌زمینه لودینگ */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0; /* در حالت عادی مخفی */
    transition: opacity 1.5s ease-in-out; /* انیمیشن نرم فید */
    z-index: 1;
}

.hero-slide.active {
    opacity: 1; /* اسلاید فعال دیده شود */
    z-index: 2;
}

/* وقتی اسلاید فعال شد، متن‌ها انیمیشن بگیرند */
.hero-slide.active .hero-subtitle { animation: fadeInUp 0.8s ease forwards 0.5s; }
.hero-slide.active .hero-title    { animation: fadeInUp 0.8s ease forwards 0.8s; }
.hero-slide.active .hero-description { animation: fadeInUp 0.8s ease forwards 1.1s; }
.hero-slide.active .hero-buttons  { animation: fadeInUp 0.8s ease forwards 1.4s; }

/* لایه تاریک */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10; /* بالاتر از overlay */
    color: var(--white);
    max-width: 800px;
}

/* انیمیشن متن‌ها (همان قبلی) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e0e0e0;
    margin-bottom: 10px;
    opacity: 0; /* مقدار اولیه */
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
}

.hero-title .highlight { color: var(--primary); }

.hero-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #f1f1f1;
    max-width: 600px;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
}

/* دکمه‌ها (همان قبلی) */
.btn-hero {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}
.btn-red {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(215, 25, 32, 0.4);
}
.btn-red:hover { background-color: #ff1e26; transform: translateY(-3px); }
.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}
.btn-outline:hover { background: var(--white); color: var(--secondary); transform: translateY(-3px); }

/* نقطه‌های پایین اسلایدر */
.slider-dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}
.slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-slide { background-position: center top; } /* تنظیم عکس در موبایل */
}

/* لایه تاریک روی عکس برای خوانایی متن */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

/* انیمیشن ورود متن */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e0e0e0;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards; /* اجرای انیمیشن */
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s; /* با تاخیر اجرا شود */
}

.hero-title .highlight {
    color: var(--primary); /* قرمز شدن بخش خاصی از متن */
}

.hero-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #f1f1f1;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* دکمه‌های هیرو */
.hero-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.btn-hero {
    padding: 15px 35px;
    border-radius: 50px; /* دکمه‌های کپسولی */
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-red {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(215, 25, 32, 0.4);
}
.btn-red:hover {
    background-color: #ff1e26;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}
.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-buttons { flex-direction: column; }
    .btn-hero { width: 100%; text-align: center; }
}

/* --- OVERLAPPING SERVICES GRID --- */
.services-overlap-section {
    position: relative;
    z-index: 20; /* بالاتر از اسلایدر قرار بگیرد */
    margin-top: -100px; /* کشیدن باکس‌ها به سمت بالا روی عکس */
    padding-bottom: 80px;
    background: transparent; /* پس‌زمینه شفاف تا عکس زیرش معلوم شود */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 ستون مساوی */
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 8px; /* گوشه‌های کمی گرد */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* سایه نرم */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* انیمیشن فنری نرم */
    border-bottom: 4px solid transparent; /* خط رنگی مخفی پایین */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* افکت هاور کارت‌ها */
.service-card:hover {
    transform: translateY(-15px); /* بالا آمدن */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-bottom-color: var(--primary); /* ظاهر شدن خط قرمز پایین */
}

/* آیکون */
.icon-box {
    margin-bottom: 20px;
    color: #444;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    color: var(--primary); /* قرمز شدن آیکون در هاور */
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* باعث می‌شود دکمه‌ها در یک راستا قرار بگیرند */
}

/* لینک پایین کارت */
.service-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link .arrow {
    transition: transform 0.3s;
}

.service-card:hover .service-link .arrow {
    transform: translateX(-5px); /* حرکت فلش به سمت چپ در هاور */
}

/* استایل خاص برای کارت چهارم (Milling Center) */
.highlight-card {
    background: #222; /* تیره */
    border-bottom-color: var(--primary); /* همیشه خط قرمز داشته باشد */
}
.highlight-card h3, 
.highlight-card p {
    color: #fff; /* متن سفید */
}
.highlight-card .icon-box {
    color: #fff;
}
.highlight-card .service-link {
    color: #fff;
    opacity: 0.8;
}
.highlight-card:hover .service-link {
    opacity: 1;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* در تبلت ۲ ستونه */
    }
}

@media (max-width: 768px) {
    .services-overlap-section {
        margin-top: 30px; /* در موبایل روی عکس نیاید، بیاید پایین */
    }
    .services-grid {
        grid-template-columns: 1fr; /* در موبایل تک ستونه */
        gap: 15px;
    }
}

/* --- WHY US (DARK INTERACTIVE SECTION) --- */
.why-us-section {
    background-color: #0a0a0a; /* مشکی تقریباً مطلق */
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.why-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ستون راست: متون */
.why-text-col {
    flex: 1;
    z-index: 2;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
}
.text-red { color: var(--primary); }

.section-desc {
    color: #888;
    margin-bottom: 40px;
    font-size: 16px;
}

/* لیست ویژگی‌ها */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-right: 3px solid #333; /* خط غیرفعال سمت راست */
    background: rgba(255, 255, 255, 0.03); /* پس‌زمینه خیلی محو */
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 8px 0 0 8px;
}

.f-number {
    font-size: 24px;
    font-weight: 900;
    color: #444;
    transition: color 0.3s;
    line-height: 1;
}

.f-content h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #e0e0e0;
}

.f-content p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.6;
    height: 0; /* در حالت عادی توضیحات مخفی یا کوتاه */
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

/* حالت فعال (Active State) */
.feature-item.active {
    background: rgba(215, 25, 32, 0.05); /* هاله قرمز خیلی محو */
    border-right-color: var(--primary); /* خط قرمز شود */
}

.feature-item.active .f-number {
    color: var(--primary);
}

.feature-item.active .f-content h3 {
    color: var(--white);
}

.feature-item.active .f-content p {
    height: auto; /* نمایش توضیحات */
    max-height: 60px; /* محدودیت ارتفاع */
    opacity: 1;
    margin-top: 5px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ستون چپ: تصویر */
.why-visual-col {
    flex: 1;
    height: 500px;
    position: relative;
}

.image-holder {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* تصاویر روی هم */
.f-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* همه مخفی */
    transform: scale(1.1); /* کمی زوم */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.8);
}

.f-img.active {
    opacity: 1; /* فقط فعال دیده شود */
    transform: scale(1); /* زوم به عقب برگردد */
    z-index: 2;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .why-container {
        flex-direction: column;
    }
    .why-visual-col {
        width: 100%;
        height: 350px;
        order: -1; /* عکس بیاید بالا */
    }
    .feature-item .f-content p {
        height: auto; opacity: 1; margin-top: 5px; /* در موبایل همه باز باشند */
    }
}

/* --- STATS PARALLAX SECTION --- */
.stats-section {
    background-image: url('assets/img/stats-bg.jpg'); /* تصویر پس‌زمینه */
    background-attachment: fixed; /* جادوی پارالاکس */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 120px 0;
    position: relative;
    text-align: center;
    color: var(--white);
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(215, 25, 32, 0.85); /* قرمز برند با شفافیت */
    /* یا اگر می‌خواهید تیره باشد: background: rgba(0, 0, 0, 0.8); */
    mix-blend-mode: multiply; /* ترکیب رنگ با عکس */
    z-index: 1;
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
}

.stat-plus, .stat-symbol {
    font-size: 30px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 5px;
    opacity: 0.8;
}

.stat-label {
    font-size: 16px;
    margin-top: 15px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* در موبایل ۲ ستونه */
        gap: 30px;
    }
    .stat-number {
        font-size: 40px;
    }
}
/* --- WORKFLOW SECTION --- */
.workflow-section {
    background-color: var(--white);
    padding: 100px 0 0 0; /* پایین پدینگ ندارد چون مارکی آنجاست */
    text-align: center;
    overflow: hidden;
}

.text-dark { color: var(--secondary); }
.text-gray { color: #777; max-width: 600px; margin: 10px auto 50px; }

/* استایل مراحل */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 60px;
    padding: 0 40px;
}

/* خط اتصال */
.workflow-line {
    position: absolute;
    top: 40px; /* وسط آیکون‌ها */
    left: 100px;
    right: 100px;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.line-progress {
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 2s ease; /* انیمیشن پر شدن */
}

/* آیتم‌های تکی */
.step-item {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 15px;
    transition: transform 0.3s;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-icon svg {
    width: 35px;
    height: 35px;
}

.step-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.step-item p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* افکت هاور */
.step-item:hover { transform: translateY(-10px); }
.step-item:hover .step-icon {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(215, 25, 32, 0.2);
}

.workflow-cta { margin-bottom: 80px; }

/* --- PARTNERS MARQUEE (Final Seamless Fix) --- */
.partners-marquee {
    direction: ltr; /* نکته کلیدی: اجبار به چپ‌چین برای حذف باگ RTL */
    background: #f4f4f4;
    padding: 35px 0;
    overflow: hidden;
    border-top: 1px solid #eee;
    user-select: none;
}

.marquee-track {
    display: flex;
    width: max-content; /* عرض را به اندازه محتوا باز می‌کند */
    animation: scrollMarquee 30s linear infinite; /* حرکت یکنواخت */
}

.marquee-group {
    display: flex;
    align-items: center;
    /* اینجا هیچ فاصله یا پدینگی ندهید */
}

.marquee-group span {
    font-size: 24px;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    /* فاصله را اینجا تنظیم می‌کنیم: */
    padding: 0 60px; /* ۶۰ پیکسل چپ + ۶۰ پیکسل راست = ۱۲۰ پیکسل فاصله بین همه آیتم‌ها */
    display: inline-block;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* دقیقاً نصف مسیر را طی می‌کند */
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .marquee-group span {
        font-size: 18px;
        padding: 0 30px;
    }
}
/* --- GALLERY MASONRY SECTION --- */
.gallery-section {
    background-color: #111; /* پس‌زمینه تیره */
    padding: 100px 0;
}

.text-white { color: var(--white); }
.text-gray-dark { color: #888; max-width: 600px; margin: 10px auto 50px; }
.mb-50 { margin-bottom: 50px; }

/* شبکه گرید */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ۴ ستون */
    grid-template-rows: repeat(2, 280px); /* ۲ ردیف با ارتفاع ثابت */
    gap: 15px;
}

/* استایل کلی آیتم‌ها */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: crosshair; /* نشانگر موس خاص */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* تنظیم سایز آیتم‌های خاص برای ایجاد حالت موزاییکی */
.item-large {
    grid-column: span 2; /* ۲ ستون عرض */
    grid-row: span 2;    /* ۲ ردیف ارتفاع (بزرگترین عکس) */
}

.item-wide {
    grid-column: span 2; /* ۲ ستون عرض */
}

.item-wide-bottom {
    grid-column: span 2; /* ۲ ستون عرض */
}

/* افکت هاور (Overlay) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(215, 25, 32, 0.9), rgba(0,0,0,0.4)); /* گرادینت قرمز */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0; /* در حالت عادی مخفی */
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    transform: translateY(10px);
    transition: transform 0.4s;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.4s 0.1s; /* با کمی تاخیر */
}

/* انیمیشن در هاور */
.gallery-item:hover img {
    transform: scale(1.1); /* زوم شدن عکس */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* در تبلت ۲ ستونه */
        grid-template-rows: auto; /* ارتفاع اتوماتیک */
    }
    .item-large, .item-wide, .item-wide-bottom {
        grid-column: span 2; /* همه تمام عرض */
        grid-row: span 1;
        height: 300px;
    }
    .gallery-item { height: 250px; } /* آیتم‌های کوچک */
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* در موبایل تک ستونه */
        gap: 10px;
    }
    .item-large, .item-wide, .item-wide-bottom, .gallery-item {
        grid-column: span 1;
        height: 250px;
    }
}
/* --- FINAL CTA SECTION --- */
.cta-section {
    background: linear-gradient(135deg, #D71920 0%, #b01217 100%); /* گرادینت قرمز برند */
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-content {
    text-align: right;
    max-width: 600px;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-content .highlight-white {
    background: rgba(255,255,255,0.2);
    padding: 0 10px;
    border-radius: 4px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-white:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
}
.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* --- PROFESSIONAL FOOTER --- */
.site-footer {
    background-color: #050505; /* مشکی خیلی تیره */
    color: #bbb;
    padding: 80px 0 20px;
    font-size: 14px;
    border-top: 5px solid #222;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col {
    flex: 1.5; /* ستون برند کمی عریض‌تر */
}

.footer-logo {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.social-links svg { width: 20px; height: 20px; }

.links-col h4, .contact-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
/* خط قرمز کوچک زیر تیترهای فوتر */
.links-col h4::after, .contact-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.links-col ul, .contact-col ul {
    list-style: none;
    padding: 0;
}

.links-col li { margin-bottom: 12px; }
.links-col a {
    color: #bbb;
    transition: all 0.3s;
}
.links-col a:hover {
    color: var(--primary);
    padding-right: 5px; /* حرکت کوچک به راست */
}

.contact-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}
.contact-col .icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.slogan {
    font-size: 12px;
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .cta-container { flex-direction: column; text-align: center; gap: 30px; }
    .cta-content { text-align: center; margin: 0 auto; }
}

@media (max-width: 768px) {
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* --- ABOUT SPLIT SECTION --- */
.about-split-section {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content { flex: 1; }

.sub-title {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.4;
    color: var(--secondary);
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.about-features {
    list-style: none;
    margin-bottom: 40px;
}

.about-features li {
    margin-bottom: 15px;
    color: #444;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

.btn-text-arrow {
    color: var(--primary);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s;
}

.btn-text-arrow:hover {
    gap: 15px;
    border-bottom-color: var(--primary);
}

.about-image { flex: 1; position: relative; }

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.img-wrapper:hover img { transform: scale(1.05); }

/* نشان تجربه گوشه عکس */
.exp-badge {
    position: absolute;
    bottom: 30px;
    right: -20px; /* بیرون زدگی */
    background: var(--primary);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(215, 25, 32, 0.3);
    text-align: center;
}

.exp-badge .years {
    display: block;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.exp-badge .txt {
    font-size: 12px;
    opacity: 0.9;
}

/* --- PRODUCT SHOWCASE (Store Teaser) --- */
.product-showcase-section {
    padding: 0 0 100px 0;
    background: var(--white);
}

.product-banner {
    /* ترکیب گرادینت تیره (برای خوانایی متن) و تصویر پس‌زمینه */
    background: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%), url('assets/img/store-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* پترن پس‌زمینه محو */
.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.product-info {
    flex: 1;
    z-index: 2;
    color: var(--white);
    max-width: 500px;
}

.badge-new {
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
}

.product-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.product-info p {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.7;
}

.btn-white-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

.btn-white-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

.product-visual {
    flex: 1;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    perspective: 1000px; /* حالت سه بعدی */
}

.mini-product-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 12px;
    width: 140px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    transition: all 0.4s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.mini-product-card span { font-weight: bold; font-size: 14px; }
.mini-product-card small { font-size: 11px; opacity: 0.7; }

/* چیدمان کج و کوله هنری */
.p1 { transform: translateY(0) rotate(-5deg); }
.p2 { transform: translateY(-30px) rotate(0deg); background: rgba(215, 25, 32, 0.2); border-color: var(--primary); }
.p3 { transform: translateY(10px) rotate(5deg); }

.mini-product-card:hover {
    transform: translateY(-40px) scale(1.1) rotate(0);
    background: var(--white);
    color: var(--secondary);
    z-index: 10;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .about-container { flex-direction: column; }
    .product-banner { flex-direction: column; text-align: center; padding: 40px 20px; }
    .product-visual { margin-top: 40px; justify-content: center; }
    .product-info { margin: 0 auto; }
}
/* --- NEWS & EVENTS SECTION --- */
.news-events-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* کمی تیره‌تر از سفید مطلق برای تفکیک */
    border-top: 1px solid #eee;
}

.news-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    gap: 60px;
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.sec-head h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.btn-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s;
}
.btn-link:hover { padding-right: 5px; }

/* استایل وبلاگ (Blog) */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card-mini {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.blog-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.blog-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumb {
    width: 100%; height: 100%; background: #eee;
}

.blog-info .date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.blog-info h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.blog-info h4 a { color: #333; }
.blog-info h4 a:hover { color: var(--primary); }

/* استایل ایونت‌ها (Events) */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    border-right: 4px solid transparent; /* خط رنگی مخفی */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s;
}

.event-card:hover {
    border-right-color: var(--primary); /* نمایش خط قرمز در هاور */
    transform: translateX(-5px);
}

.event-date-box {
    background: #f4f4f4;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.event-date-box .day {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
}

.event-date-box .month {
    font-size: 12px;
    font-weight: bold;
    margin-top: 2px;
}

.event-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
}

.event-details p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.event-details .tag {
    display: inline-block;
    background: #fff0f0;
    color: var(--primary);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    font-weight: bold;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .news-wrapper {
        grid-template-columns: 1fr; /* در موبایل و تبلت تک ستونه */
        gap: 50px;
    }
}


/* --- MOBILE NAVIGATION (HAMBURGER MENU) --- */

/* تنظیمات اولیه کانتینر در دسکتاپ */
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ظاهر دکمه همبرگری (در حالت عادی مخفی) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* همیشه روی منو باشد */
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary); /* رنگ مشکی برای خطوط */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* ریسپانسیو - اعمال در سایز تبلت و موبایل */
@media (max-width: 992px) {
    
    .menu-toggle {
        display: flex; /* نمایش دکمه همبرگری */
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%; /* منو در حالت پیش‌فرض خارج از صفحه است */
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        padding: 40px 20px;
    }

    /* کلاسی که با جاوااسکریپت اضافه می‌شود تا منو باز شود */
    .nav-container.active {
        right: 0;
    }

    /* عمودی کردن لیست منوها */
    .main-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .main-menu a {
        font-size: 18px; /* بزرگ‌تر شدن فونت برای کلیک راحت‌تر در موبایل */
    }

    /* انیمیشن تبدیل ۳ خط همبرگر به ضربدر (X) */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
    
    /* جلوگیری از اسکرول صفحه وقتی منو باز است */
    body.menu-open {
        overflow: hidden; 
    }
}




/* --- INNER PAGE HERO --- */
.inner-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.inner-hero-content {
    position: relative;
    z-index: 2;
}

.inner-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 10px;
}

.inner-desc {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- SERVICES PAGE STRUCTURE --- */
.service-group {
    padding: 100px 0;
}

.badge-red {
    background: rgba(215, 25, 32, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.badge-white {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

/* Dentists Section (Light) */
.dentists-services {
    background-color: var(--white);
}

.services-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.s-card {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.s-card:hover {
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.s-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #555;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.s-icon svg { width: 30px; height: 30px; }
.s-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 15px; color: var(--secondary); }
.s-card p { color: #666; line-height: 1.7; margin: 0; }

/* Labs Section (Dark B2B) */
.labs-services {
    background-color: var(--secondary);
    background-image: radial-gradient(circle at 50% 0%, #222 0%, #000 100%);
}

.milling-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.m-card {
    background: rgba(255,255,255,0.05);
    border-top: 3px solid #444;
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.m-card:hover {
    background: rgba(215, 25, 32, 0.1);
    border-top-color: var(--primary);
}

.m-card h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.m-card p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.mt-40 { margin-top: 40px; }

/* Responsive */
@media (max-width: 992px) {
    .services-list-grid { grid-template-columns: 1fr; }
    .milling-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .milling-grid { grid-template-columns: 1fr; }
}








/* --- MILLING CENTER PAGE --- */
.bg-dark-theme {
    background-color: #0a0a0a;
}

.milling-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milling-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(10,10,10,1) 100%);
}

.relative { position: relative; }
.z-10 { z-index: 10; }

.badge-tech {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title-large {
    font-size: 50px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-desc-large {
    color: #bbb;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Capabilities Grid */
.capabilities-section {
    padding: 80px 0;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cap-card {
    background: #141414;
    border: 1px solid #222;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.cap-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(215, 25, 32, 0.1);
}

.cap-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 80px;
    font-weight: 900;
    color: #1f1f1f;
    z-index: 0;
    transition: color 0.4s;
}

.cap-card:hover .cap-number {
    color: rgba(215, 25, 32, 0.1);
}

.cap-card h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cap-card p {
    color: #888;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Integration Section */
.integration-section {
    padding: 0 0 100px 0;
}

.integration-box {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    border: 1px solid #222;
}

.int-content { flex: 1.5; }
.int-content h2 { color: var(--white); font-size: 32px; margin-bottom: 20px; }
.int-content p { color: #aaa; margin-bottom: 25px; line-height: 1.7; }

.format-list { list-style: none; margin-bottom: 30px; color: #ccc; }
.format-list li { margin-bottom: 15px; padding-right: 20px; position: relative; }
.format-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

.int-logos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.logo-box {
    background: #222;
    color: #666;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s;
}

.logo-box:hover {
    background: #333;
    color: var(--white);
}

.mt-20 { margin-top: 20px; }

/* Responsive */
@media (max-width: 992px) {
    .cap-grid { grid-template-columns: 1fr; }
    .integration-box { flex-direction: column; text-align: center; }
    .format-list li { padding-right: 0; }
    .format-list li::before { display: none; }
}





/* --- GLOBAL BUTTON STYLES FIX --- */
.btn-cta {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px; /* گوشه‌های کاملاً گرد مثل بقیه دکمه‌ها */
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
}

.btn-red {
    background-color: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 5px 20px rgba(215, 25, 32, 0.3);
    border: none;
}

.btn-red:hover {
    background-color: #b01217; /* قرمز تیره‌تر در هاور */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 25, 32, 0.4);
}





/* --- SUBMIT CASE PAGE --- */
.bg-light-gray { background-color: #f4f7f6; }

.submit-case-section {
    padding: -60px 0 100px 0;
    margin-top: -80px; /* کشیدن باکس‌ها به روی هدر */
    position: relative;
    z-index: 10;
}

.submit-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.instructions-col { flex: 1; }
.form-col { flex: 1.5; }

/* Instructions Styling */
.inst-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.inst-box h3 { font-size: 24px; color: var(--secondary); margin-bottom: 15px; }

.guideline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guideline-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.g-icon {
    width: 35px;
    height: 35px;
    background: rgba(215, 25, 32, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.g-text strong { display: block; color: var(--secondary); font-size: 16px; margin-bottom: 5px; }
.g-text span { color: #666; font-size: 13px; line-height: 1.6; display: block; }
.g-text code { background: #f0f0f0; padding: 2px 5px; border-radius: 4px; font-family: monospace; color: var(--primary); }

.direct-portal-box {
    background: #111;
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
}
.direct-portal-box h4 { color: var(--white); margin-bottom: 10px; font-size: 18px; }
.direct-portal-box p { color: #aaa; font-size: 13px; margin-bottom: 15px; }
.portal-email {
    display: inline-block;
    background: var(--primary);
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Modern Form Styling */
.modern-form-box {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.form-header h3 { font-size: 26px; color: var(--secondary); margin-bottom: 5px; }
.form-header p { color: #888; margin: 0; font-size: 14px; }

.custom-submit-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 5px; }
.form-group label { font-size: 13px; font-weight: 700; color: #444; }

/* Inputs & Selects */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.1);
    outline: none;
}

/* Drag & Drop Upload Zone Styling */
.upload-drop-zone {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
    overflow: hidden;
}

.upload-drop-zone:hover {
    border-color: var(--primary);
    background: rgba(215, 25, 32, 0.02);
}

.upload-drop-zone svg { width: 40px; height: 40px; color: #aaa; margin-bottom: 15px; transition: color 0.3s; }
.upload-drop-zone:hover svg { color: var(--primary); }

.upload-title { display: block; font-weight: 700; color: var(--secondary); margin-bottom: 5px; }
.upload-desc { display: block; font-size: 12px; color: #888; }

/* مخفی کردن دکمه زشت پیش‌فرض و پوشاندن کل باکس با آن */
.file-input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .submit-wrapper { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
    .modern-form-box { padding: 30px 20px; }
}

/* --- CF7 Fixes for Upload Zone --- */
.upload-drop-zone span.wpcf7-form-control-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.wpcf7 form.init .wpcf7-response-output { display: none; }







/* --- ABOUT US PAGE --- */
.about-story-section {
    padding: 100px 0;
    background: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.rounded-image {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
}

.shadow-large {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Core Values Section */
.core-values-section {
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #222;
    transition: all 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(215, 25, 32, 0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.v-icon {
    margin-bottom: 25px;
    color: var(--primary);
}

.v-icon svg {
    width: 45px;
    height: 45px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
}

.value-card p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-image { order: -1; } /* عکس در موبایل بالای متن بیاید */
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .values-grid { grid-template-columns: 1fr; }
}








/* --- CONTACT US PAGE --- */
.contact-page-section {
    padding: -60px 0 100px 0;
    margin-top: -80px; /* کشیدن باکس‌ها به روی هدر */
    position: relative;
    z-index: 10;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-col { flex: 1; }
.contact-form-col { flex: 1.2; }

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.info-card h3 { font-size: 24px; color: var(--secondary); margin-bottom: 15px; }

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.i-icon {
    width: 45px;
    height: 45px;
    background: rgba(215, 25, 32, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.i-icon svg { width: 22px; height: 22px; }

.i-text strong { display: block; color: var(--secondary); font-size: 16px; margin-bottom: 5px; }
.i-text span { color: #666; font-size: 14px; line-height: 1.6; display: block; }

.map-box {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #eee;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper { flex-direction: column; }
}





/* --- SINGLE SERVICE PAGE --- */
.single-service-section {
    padding: 80px 0 100px 0;
}

.service-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.service-main-content {
    flex: 2; /* عرض بیشتر برای محتوا */
}

.service-sidebar {
    flex: 1; /* عرض کمتر برای سایدبار */
    position: sticky; /* سایدبار هنگام اسکرول ثابت می‌ماند */
    top: 40px;
}

/* استایل‌دهی به متن‌های داخل ادیتور وردپرس */
.service-text-box {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.service-text-box h2, .service-text-box h3 {
    color: var(--secondary);
    margin: 30px 0 15px 0;
    font-weight: 800;
}

.service-text-box h2:first-child { margin-top: 0; }

.service-text-box p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-text-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-text-box ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    color: #444;
}

.service-text-box ul li::before {
    content: '✔';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-text-box img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.service-nav-widget h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.service-nav-widget ul { list-style: none; padding: 0; margin: 0; }
.service-nav-widget ul li { margin-bottom: 10px; border-bottom: 1px dashed #eee; padding-bottom: 10px; }
.service-nav-widget ul li:last-child { border: none; margin: 0; padding: 0; }

.service-nav-widget ul a {
    color: #666;
    transition: all 0.3s;
    display: block;
    font-weight: 500;
    text-decoration: none;
}

.service-nav-widget ul a:hover {
    color: var(--primary);
    transform: translateX(-5px); /* حرکت ریز به سمت راست */
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    text-align: center;
    border: 1px solid #333;
}

.cta-widget h4 { color: var(--white); font-size: 18px; margin-bottom: 15px; }
.cta-widget p { color: #aaa; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.w-100 { width: 100%; display: block; }

/* Responsive */
@media (max-width: 992px) {
    .service-layout { flex-direction: column; }
    .service-sidebar { position: static; }
    .service-text-box { padding: 30px 20px; }
}







/* --- FAQ PAGE --- */
.faq-section {
    padding: 80px 0 100px 0;
}

.faq-wrapper {
    max-width: 800px; /* عرض محدود برای خوانایی بهتر متن */
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ddd;
}

/* در حالت باز شده */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(215, 25, 32, 0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: right;
    font-size: 16px;
    font-weight: 800;
    color: var(--secondary);
    transition: color 0.3s;
    font-family: inherit;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

/* ساخت آیکون + و - با CSS خالص */
.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    margin-right: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

/* خط افقی (همیشه هست) */
.faq-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

/* خط عمودی (در حالت باز می‌چرخد و محو می‌شود) */
.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background-color: var(--primary);
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0; /* تبدیل مثبت به منفی */
}

/* بخش پاسخ (متن کشویی) */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* عددی بزرگتر از ارتفاع محتوا */
    opacity: 1;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    padding: 25px 30px;
    margin: 0;
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question { padding: 20px; font-size: 15px; }
    .faq-answer p { padding: 20px; }
}























/* --- BLOG ARCHIVE PAGE --- */
.blog-archive-section {
    padding: 80px 0 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.blog-card-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f4f4f4;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.08); /* زوم شدن عکس موقع هاور */
}

/* بج (Badge) دسته بندی روی عکس */
.blog-cat {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(215, 25, 32, 0.3);
}

.blog-card-content {
    padding: 30px;
    flex-grow: 1; /* باعث می‌شود دکمه‌ها در پایین کارت‌ها تراز شوند */
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.blog-card-content h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-content h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    align-self: flex-start;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.read-more:hover {
    gap: 15px;
    border-bottom-color: var(--primary);
}

/* استایل دهی به شماره صفحات (Pagination) */
.pagination-wrapper {
    text-align: center;
    margin-top: 50px;
}

.nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 10px;
    background: var(--white);
    color: var(--secondary);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(215, 25, 32, 0.2);
}

.screen-reader-text { display: none; } /* مخفی کردن متن‌های اضافی وردپرس در صفحه‌بندی */

/* Responsive */
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}











/* --- SINGLE POST PAGE --- */
.single-post-section {
    padding: 80px 0 100px 0;
}

.post-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.post-main-content {
    flex: 2;
    min-width: 0; /* جلوگیری از بیرون زدگی محتوا */
}

.post-sidebar {
    flex: 1;
    position: sticky;
    top: 40px;
}

.mb-15 { margin-bottom: 15px; }
.post-meta-bottom span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }

/* Typography for Post Content */
.post-text-box {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

.entry-content {
    color: #444;
    font-size: 16px;
    line-height: 2.1;
    margin-bottom: 60px;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    color: var(--secondary);
    margin: 40px 0 20px 0;
    font-weight: 800;
}

.entry-content h2 { font-size: 26px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.entry-content h3 { font-size: 22px; }

.entry-content p { margin-bottom: 25px; }

.entry-content ul, .entry-content ol {
    margin-bottom: 25px;
    padding-right: 20px;
}

.entry-content li { margin-bottom: 10px; }

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.entry-content blockquote {
    background: #f9f9f9;
    border-right: 5px solid var(--primary);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    color: #555;
    border-radius: 12px 0 0 12px;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* Tags Styling */
.post-tags-box {
    border-top: 1px solid #eee;
    padding-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tags-title { font-weight: 800; color: var(--secondary); }
.tags-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags-list a {
    background: #f4f4f4;
    color: #666;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.tags-list a:hover { background: var(--primary); color: var(--white); }

/* Sidebar Widgets for Blog */
.recent-posts-widget ul { list-style: none; padding: 0; margin: 0; }
.recent-posts-widget li {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.recent-posts-widget li:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }

.rp-thumb { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.rp-thumb:hover img { transform: scale(1.1); }
.no-thumb-mini { width: 100%; height: 100%; background: #eee; }

.rp-info h4 { font-size: 14px; margin: 0 0 5px 0; line-height: 1.5; }
.rp-info h4 a { color: var(--secondary); text-decoration: none; transition: color 0.3s; }
.rp-info h4 a:hover { color: var(--primary); }
.rp-info .rp-date { font-size: 11px; color: #999; }

/* Categories Widget Fix for WP Function */
.categories-widget ul { list-style: none; padding: 0; margin: 0; }
.categories-widget li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
}
.categories-widget li:last-child { border: none; margin: 0; padding: 0; }
.categories-widget a { color: #666; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.categories-widget a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 992px) {
    .post-layout { flex-direction: column; }
    .post-sidebar { position: static; }
    .post-text-box { padding: 30px 20px; }
}





/* ===========================================
   SHOP CATEGORY ACCORDION – MINIMAL VERSION
   Clean, compact, mother-site style
=========================================== */

/* ===========================================
   FIXED & MINIMAL SHOP ACCORDION
=========================================== */

.shop-cat-accordion {
    width: 100%;
    margin: 60px 0;
    direction: rtl;
}

.cat-accordion-wrapper {
    display: flex !important; /* اجبار به افقی بودن */
    flex-direction: row !important;
    gap: 15px;
    height: 400px;
    overflow: hidden;
    width: 100%;
}

.cat-panel {
    flex: 1; /* همه پنل‌ها اندازه مساوی */
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

/* پنل باز شده */
.cat-panel.cat-expanded {
    flex: 3; /* پنل باز بزرگتر شود */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cat-panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
}

/* استایل متن عمودی کنار پنل */
.cat-title-vertical {
    width: 60px;
    height: 100%;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
    cursor: pointer;
    writing-mode: vertical-rl;
    transform: rotate(0deg);
}

.cat-title-vertical h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
    white-space: nowrap;
}

/* محتوای اصلی (تصویر و دکمه) */
.cat-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cat-panel.cat-expanded .cat-panel-content {
    opacity: 1;
    visibility: visible;
}

/* کوچک کردن عکس - مهم */
.cat-panel-content img {
    max-width: 180px; /* سایز عکس کوچک و مینیمال */
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
}

.cat-panel-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 800;
}

.cat-btn {
    padding: 8px 20px;
    background: #e31e24; /* رنگ قرمز سایت شما */
    color: #fff !important;
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
}

/* حالت هاور در دسکتاپ */
@media (min-width: 992px) {
    .cat-panel:hover {
        flex: 3;
    }
    .cat-panel:hover .cat-panel-content {
        opacity: 1;
        visibility: visible;
    }
}

/* ریسپانسیو موبایل */
@media (max-width: 991px) {
    .cat-accordion-wrapper {
        flex-direction: column !important;
        height: auto;
    }
    .cat-panel {
        height: 80px;
        flex: none !important;
    }
    .cat-panel.cat-expanded {
        height: 350px;
    }
    .cat-title-vertical {
        writing-mode: horizontal-tb;
        width: 100%;
        height: 60px;
        flex-direction: row;
        border-left: none;
        border-bottom: 1px solid #eee;
    }
}


/* ===========================================
   section3
=========================================== */




.category-carousel-section {
    width: 100%;
    margin: 80px 0;
    direction: rtl;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 10px;
}

.category-title {
    font-size: 28px;
    font-weight: 800;
}

.view-all-btn {
    background: #e31e24;
    padding: 7px 22px;
    border-radius: 30px;
    color: #fff !important;
    font-size: 14px;
    text-decoration: none;
}

.products-carousel {
    padding-bottom: 40px;
}

.product-card {
    height: auto;
}
.product-card {
    padding: 0 5px;
}


.product-inner {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.product-inner img {
    max-width: 100%;
    max-height: 180px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.product-inner h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 10px 0;
}

.price {
    color: #e31e24;
    font-weight: bold;
}

/* FORCE SWIPER TO BE HORIZONTAL */
.swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

.swiper-slide {
    width: auto !important;
}

/* MINIMAL SEPARATOR BELOW TITLE + BUTTON */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 25px;
}

/* OPTIONAL HEIGHT FIX */
.product-card {
    height: auto !important;
}

.product-inner {
    height: 100%;
}

.category-carousel-section {
    border-bottom: 2px solid #e31e24;
    padding-bottom: 30px;
    margin-bottom: 60px;
}


.product-inner {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: .3s;
}

.product-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}
/* سکشن */
.category-carousel-section {
    margin: 60px 0;
    border-bottom: 2px solid #e31e24; /* خط قرمز مینیمال */
    padding-bottom: 40px;
}

/* فاصله عنوان */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

/* کارت محصول */
.product-card {
    padding: 10px;
}

.product-inner {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    text-align: center;
}

.product-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* باکس تصویر */
.img-box {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.img-box img {
    max-height: 160px;
    object-fit: contain;
}

/* عنوان */
.product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0;
}

/* وضعیت موجود */
.stock-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stock-status.instock {
    background: #e6f7ed;
    color: #0f9d58;
}

.stock-status.outofstock {
    background: #ffe6e6;
    color: #e31e24;
}

/* --- (اصلاح شده) قیمت --- */
.price-box {
    margin-top: 15px;
    font-weight: 700;
    font-size: 18px;
    text-align: center; /* <<< تغییر: قیمت وسط چین شد */
    color: #333;
    min-height: 27px;
}
.price-box .price del { font-size: 14px; color: #999; margin-left: 8px; }
.price-box .price ins { color: #e31e24; text-decoration: none; }



/* --- (اصلاح شده) نوار نشانگر هاور --- */
.hover-bar {
    position: absolute;
    bottom: 0; /* <<< تغییر: به پایین کارت چسبید */
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 3px;
    width: 0;
    background-color: #e31e24;
    transition: width 0.4s ease-in-out;
    /* <<< جدید: انحنا متناسب با کارت */
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* Swiper Force Horizontal */
.swiper {
    overflow: hidden;
    width: 100%;
}

.swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

.swiper-slide {
    width: auto !important;
}
























/* ===========================================
   SECTION 3 - PRODUCTS CAROUSEL (FINAL CODE)
=========================================== */

/* پس‌زمینه سکشن برای ایجاد تمایز بصری */
.category-carousel-section {
    width: 100%;
    margin: 60px 0;
    direction: rtl;
    background-color: #f9f9f9;
    padding: 40px 0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px 15px;
    border-bottom: 1px solid #e8e8e8;
}

.category-title {
    font-size: 26px;
    font-weight: 800;
    color: #333;
}

.view-all-btn {
    background: #e31e24;
    padding: 8px 25px;
    border-radius: 30px;
    color: #fff !important;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    background: #c01419;
}

/* --- Product Card Styling (Final) --- */

.products-carousel .swiper-slide {
    height: auto;
}

.product-card {
    position: relative;
    padding: 0 10px;
    height: 100%;
}

.product-inner {
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;  /* برای موقعیت‌دهی خط هاور */
    overflow: hidden;   /* برای برش دادن گوشه‌های خط هاور */
}

.product-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}

/* بخش تصویر */
.product-image-container {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.product-image-container img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}

/* آیکون ها */
.product-card-actions { position: absolute; top: 15px; left: 15px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity 0.3s ease; }
.product-inner:hover .product-card-actions { opacity: 1; }
.action-btn { background-color: #fff; border: 1px solid #eee; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; transition: all 0.2s ease; }
.action-btn:hover { background-color: #e31e24; color: #fff; border-color: #e31e24; }
.sale-badge { position: absolute; top: 15px; right: 15px; background-color: #e31e24; color: #fff; padding: 4px 10px; font-size: 13px; font-weight: 700; border-radius: 20px; }


/* --- بخش اطلاعات --- */
.product-info {
    padding: 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- استایل دسته و موجودی انبار --- */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #777;
}

.stock-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}
.stock-status.instock {
    background-color: rgba(15, 157, 88, 0.1);
    color: #0f9d58;
}
.stock-status.outofstock {
    background-color: rgba(227, 30, 36, 0.1);
    color: #e31e24;
}

/* --- عنوان محصول --- */
.product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}
.product-title a { color: #333; text-decoration: none; }

/* --- قیمت (اصلاح شده) --- */
.price-box {
    margin-top: 15px;
    font-weight: 700;
    font-size: 18px;
    text-align: center; /* تغییر به وسط‌چین */
    color: #333;
    min-height: 27px;
}

.price-box .price del { font-size: 14px; color: #999; margin-left: 8px; }
.price-box .price ins { color: #e31e24; text-decoration: none; }

/* --- نوار نشانگر هاور (اصلاح شده) --- */
.hover-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: #e31e24;
    transition: width 0.4s ease-in-out;
}

.product-inner:hover .hover-bar {
    width: 100%;
}


/* --- سکشن چهارم --- */
.features-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: #f8f9fa; /* پس زمینه کلی */
    gap: 20px;
    min-height: 400px;
}

/* استایل پنل‌های کناری */
.side-panel {
    width: 250px;
    height: 350px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.left-panel { background-color: #FFFFFF; } /* زرد */
.right-panel { background-color: #FFFFFF; } /* سرمه‌ای */
.side-panel img { width: 80%; height: auto; }

/* استایل پنل مرکزی */
.center-content-box {
    background: #fff;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex: 1;
    max-width: 800px;
}

.features-header { text-align: center; margin-bottom: 30px; }
.features-header h3 { font-size: 24px; color: #333; }

/* گرید ویژگی‌ها */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 15px;
    transition: 0.3s;
}

.feature-item:hover { border-color: #e31e24; }

.icon-box {
    background: #fff5f5;
    color: #e31e24;
    padding: 10px;
    border-radius: 50%;
    margin-left: 15px;
}

.text-box h4 { font-size: 16px; margin: 0; }
.text-box p { font-size: 13px; color: #777; margin: 0; }

/* ریسپانسیو برای موبایل */
@media (max-width: 992px) {
    .features-section { flex-wrap: wrap; }
    .side-panel { width: 100%; height: 200px; }
}































/* ===========================================
   SECTION 2 - KEY CATEGORIES (V2 - Refined Design)
=========================================== */

.category-grid-redefined {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    direction: rtl;
}
.section-header {
    text-align: center;
}
/* --- Card Main Structure --- */
.category-card-redefined {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 18px; /* انحنای کارت */
    text-decoration: none;
    overflow: hidden; /* مهم برای افکت تصویر */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-redefined:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* --- Image Container (برای کنترل اندازه تصویر) --- */
.category-card-redefined .card-image {
    height: 200px; /* ارتفاع ثابت برای کادر تصویر */
    overflow: hidden;
    padding: 20px; /* ایجاد فاصله از لبه‌ها */
    background-color: #fdfdfd;
}

.category-card-redefined .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* تصویر کاملا داخل کادر نمایش داده می‌شود */
    transition: transform 0.4s ease;
}

.category-card-redefined:hover .card-image img {
    transform: scale(1.07); /* افکت زوم روی تصویر در زمان هاور */
}

/* --- Card Content --- */
.category-card-redefined .card-content {
    padding: 20px 25px;
    text-align: right;
    border-top: 1px solid #f0f0f0;
}

.category-card-redefined .card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.category-card-redefined .card-content span {
    font-size: 14px;
    color: #e31e24; /* رنگ اصلی سایت شما */
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-card-redefined:hover .card-content span {
    color: #333;
}

.category-card-redefined .card-content i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.category-card-redefined:hover .card-content i {
    transform: translateX(-4px);
}

/* --- Responsive for smaller devices --- */
@media (max-width: 992px) {
    .category-grid-redefined {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .category-grid-redefined {
        grid-template-columns: 1fr;
    }
}









/* Product Carousel Section */
.product-carousel {
    padding: 0 40px; /* فضایی برای دکمه های چپ و راست */
}
.product-card-dark {
    background-color: #252525;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #333;
    transition: border-color 0.3s ease;
}
.product-card-dark:hover {
    border-color: #e31e24;
}
.product-image-dark {
    background-color: #ffffff;
    padding: 15px;
}
.product-image-dark img {
    max-width: 100%;
    height: 180px; /* ارتفاع ثابت برای یکسان سازی */
    object-fit: contain;
}
.product-info-dark {
    padding: 20px;
}
.product-info-dark .product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #f0f0f0;
}
.product-info-dark .product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e31e24;
    margin-bottom: 20px;
}

/* Swiper Navigation Buttons Styling */
.swiper-button-next,
.swiper-button-prev {
    color: #e31e24 !important;
    background-color: rgba(255, 255, 255, 0.1);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

/* Responsive for Carousel */
@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
    .product-carousel {
        padding: 0;
    }
}






/* ===========================================
   SECTION 4 - CALL TO ACTION BANNERS (DARK THEME)
=========================================== */

.cta-section-dark {
    background-color: #1a1a1a; /* یک مشکی ملایم */
    padding: 80px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    direction: rtl;
}

.cta-banner {
    position: relative;
    display: block;
    height: 350px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.cta-banner:hover {
    transform: scale(1.03);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    transition: background-color 0.3s ease;
}

.cta-banner:hover .cta-overlay {
    background-color: rgba(0,0,0,0.1);
}

.cta-content {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #fff;
    z-index: 2;
    text-align: right;
    transition: bottom 0.3s ease;
}

.cta-banner:hover .cta-content {
    bottom: 35px;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.cta-subtitle {
    font-size: 16px;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.cta-button {
    background-color: #e31e24;
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-banner:hover .cta-button {
    background-color: #fff;
    color: #e31e24;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .cta-banner {
        height: 280px;
    }
}




/* ===========================================
   SECTION 6 - TRUST / WHY US
=========================================== */

.trust-section {
    background-color: #f9f9f9; /* یک خاکستری بسیار روشن برای تمایز */
    padding: 80px 0;
    direction: rtl;
}

/* --- Helper Class for Centered Section Headers --- */
.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}
.section-header-center .section-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}
.section-header-center .section-subtitle {
    font-size: 16px;
    color: #666;
}

/* --- Trust Grid --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 20px;
}

.trust-item i {
    font-size: 40px;
    color: #e31e24; /* Red Accent */
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.trust-item:hover i {
    transform: translateY(-5px);
}

.trust-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.trust-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/*
Theme Name: Arman Salamat
Author: Your Name
Description: Custom theme for Arman Salamat Laboratory.
Version: 1.0
*/

/* ==========================================================================
   Shop Page Styles
   ========================================================================== */

/* Main Layout: Sidebar + Products */
.shop-container {
    padding: 50px 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Fixed sidebar, flexible products area */
    gap: 30px;
}

/* Sidebar Styles */
.shop-sidebar {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    height: fit-content; /* Sidebar height adjusts to content */
}

.shop-sidebar .filter-box {
    margin-bottom: 30px;
}

.shop-sidebar .filter-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e60023; /* Main Red Color */
    display: inline-block;
}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar ul li {
    margin-bottom: 8px;
}

.shop-sidebar ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-sidebar ul li a:hover,
.shop-sidebar ul li.current-cat a {
    color: #e60023;
}

.shop-sidebar .ajax-filter label {
    display: block;
    margin-bottom: 12px;
    color: #555;
    cursor: pointer;
}

.shop-sidebar .ajax-filter input[type="checkbox"] {
    margin-left: 8px; /* For RTL */
}


/* Products Area Styles */
.shop-products {
    flex: 1;
}

/* This is the main products grid container */
#product-area .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns grid */
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Product Card Styles */
#product-area .products li.product {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0; /* Remove default padding */
}

#product-area .products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#product-area .products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

#product-area .products li.product img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* Product Hover Overlay */
.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#product-area .products li.product:hover .product-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.product-hover-overlay .icon-button {
    background-color: #e60023;
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    margin: 0 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.product-hover-overlay .icon-button:hover {
    background-color: #c4001d;
}

/* Product Info Below Image */
.product-info {
    padding: 20px 15px;
    text-align: center;
}

.product-info .woocommerce-loop-product__title {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    min-height: 44px; /* Prevents layout shifts for different title lengths */
}

.product-info .woocommerce-loop-product__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-info .woocommerce-loop-product__title a:hover {
    color: #e60023;
}

.product-info .price {
    font-size: 1.25em;
    color: #e60023;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* Attributes Panel (Hover Effect) */
.product-attributes-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #eee;
    padding: 15px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    text-align: right; /* RTL support */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.07);
}

#product-area .products li.product:hover .product-attributes-panel {
    transform: translateY(0);
}

.product-attributes-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    color: #444;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Width & Float Override (CRITICAL)
   This fixes the narrow column issue.
   ========================================================================== */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}


/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 1200px) {
    #product-area .products {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on smaller desktops */
    }
}

@media (max-width: 992px) {
    .shop-grid {
        grid-template-columns: 1fr; /* Stack sidebar and products */
    }
    .shop-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    #product-area .products {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    #product-area .products {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

### **خلاصه اقدامات:**

1.  در فایل `functions.php`، خط مربوط به بارگذاری `shop.css` را کامنت یا حذف کنید.
2.  کد CSS جدید و یکپارچه بالا را به طور کامل جایگزین محتوای فعلی `style.css` کنید.
3.  کش مرورگر را با `Ctrl + F5` (یا `Cmd + Shift + R` در مک) کاملاً پاک کنید.

پس از این مراحل، تداخل‌ها باید برطرف شده و چیدمان محصولات شما کاملاً درست شود.

/* ==========================================================================
   Product Card Buttons - (V5 - Final Version: Custom Content)
   ========================================================================== */

/*
  SECTION 1: Keep the button container always visible.
*/
#product-area ul.products li.product .product-hover-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    top: auto !important; left: auto !important;
    transform: none !important;
    background-color: transparent !important;
    display: flex !important;
    justify-content: center;
    align-items: stretch; /* Make buttons equal height */
    gap: 8px;
    padding: 5px 10px 15px 10px;
}

/*
  SECTION 2: General styling for the button wrappers.
*/
#product-area ul.products li.product .product-hover-overlay a.button,
#product-area ul.products li.product .product-hover-overlay a.icon-button {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 12px;
    text-decoration: none !important;
    border-radius: 8px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/*
  SECTION 3: Style the "View Product" button to have TEXT.
*/
#product-area ul.products li.product .product-hover-overlay a.icon-button:not(.add_to_cart_button) {
    flex-grow: 1; /* Take up more space */
    background-color: #f0f2f5; /* Light Grey */
    border-color: #dadddf;
    color: #333 !important;
}
/* Hide the original eye icon */
#product-area ul.products li.product .product-hover-overlay a.icon-button:not(.add_to_cart_button) i {
    display: none;
}
/* Add the desired text using CSS */
#product-area ul.products li.product .product-hover-overlay a.icon-button:not(.add_to_cart_button)::after {
    content: "مشاهده محصول";
    font-weight: bold;
    font-size: 14px;
}
/* Hover effect */
#product-area ul.products li.product .product-hover-overlay a.icon-button:not(.add_to_cart_button):hover {
    background-color: #333;
    color: #fff !important;
    border-color: #333;
}


/*
  SECTION 4: Style the "Add to Cart" button to be an ICON ONLY.
*/
#product-area ul.products li.product .product-hover-overlay a.add_to_cart_button {
    width: 48px; /* Make it a square */
    height: 48px;
    flex-shrink: 0; /* Prevent it from shrinking */
    font-size: 0; /* This hides the "Add to cart" text */
    background-color: #e60023; /* Red */
    border-color: #e60023;
}
/* Restore visibility and size of the cart icon */
#product-area ul.products li.product .product-hover-overlay a.add_to_cart_button i {
    font-size: 18px;
    color: #fff;
}
/* Hover effect */
#product-area ul.products li.product .product-hover-overlay a.add_to_cart_button:hover {
    background-color: #fff;
}
#product-area ul.products li.product .product-hover-overlay a.add_to_cart_button:hover i {
    color: #e60023; /* Make the icon red on hover */
}


/*
  SECTION 5: Hide the giant invisible link that covers the image.
*/
#product-area ul.products li.product .product-hover-overlay a.woocommerce-loop-product__link {
    display: none !important;
}






















/*
==========================================================================
// --- کد جامع و نهایی برای استایل صفحه محصول - V11 (نسخه اصلاح شده) ---
// این کد همه مشکلات چیدمان، هاور و پنل اضافی را حل میکند
==========================================================================
*/

/* بخش 1 تا 4: استایل کلی صفحه محصول، گالری، اطلاعات و تب ها */
.single-product div.product{display:grid;grid-template-columns:1fr;gap:30px;margin-top:40px;align-items:flex-start}@media (min-width:768px){.single-product div.product{grid-template-columns:45% 50%;gap:5%}}.single-product .woocommerce-product-gallery{border:1px solid #eee;border-radius:8px;padding:10px}.single-product .summary{position:relative}.single-product .summary .product_title{font-size:32px;font-weight:700;margin-bottom:10px}.single-product .summary p.price{display:block!important;font-size:28px;font-weight:700;color:#e60000;margin-bottom:20px}.single-product .summary .woocommerce-product-details__short-description{font-size:16px;line-height:1.7;color:#555;margin-bottom:25px}.single-product .summary form.cart{display:flex;flex-direction:row-reverse;align-items:center;gap:15px;background-color:#f9f9f9;padding:20px;border-radius:8px;margin-top:20px}.single-product .summary .quantity .qty{width:60px;height:50px;text-align:center;border:1px solid #ccc;border-radius:5px}.single-product .summary .single_add_to_cart_button{background-color:#e60000!important;color:#fff!important;font-size:16px!important;font-weight:700;padding:12px 25px!important;border-radius:5px!important;flex-grow:1;text-align:center;transition:background-color .3s}.single-product .summary .single_add_to_cart_button:hover{background-color:#c00000!important}.single-product .summary .product_meta{margin-top:20px;border-top:1px solid #eee;padding-top:15px;font-size:14px}.woocommerce-tabs{margin-top:60px;clear:both}.woocommerce-tabs ul.tabs{padding:0;margin:0 0 2em 0;display:flex;border-bottom:2px solid #eee}.woocommerce-tabs ul.tabs li{padding:10px 20px;margin:0 0 0 10px;cursor:pointer;border-radius:5px 5px 0 0;background:#f9f9f9;border:1px solid #eee;border-bottom:none;position:relative;bottom:-2px}.woocommerce-tabs ul.tabs li.active{background:#fff;border-bottom:2px solid #fff;font-weight:700}

/* 
==========================================================================
// بخش 5 (اصلاح شده): استایل گرید برای محصولات مشابه 
==========================================================================
*/
.single-product .related.products {
    clear: both; 
    margin-top: 60px;
    margin-bottom: 60px;
}
.single-product .related.products > h2 {
    text-align: center; 
    margin-bottom: 30px; 
    font-size: 28px;
}
/* کد گرید که در نسخه قبل حذف شده بود، در اینجا بازگردانده شد */
.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important;
}
.single-product .related.products ul.products li.product {
    width: auto !important; /* ریست کردن عرض برای اطمینان از کارکرد گرید */
    margin: 0 !important;
}


/* 
==========================================================================
// بخش 6: حل مشکل پنل روی محصولات مشابه (فقط در حالت هاور نمایش داده شود)
==========================================================================
*/
.related.products li.product .product-attributes-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease-in-out;
}
.related.products li.product:hover .product-attributes-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*
==========================================================================
// بخش 7: مخفی کردن پنل اضافی از روی تصویر اصلی محصول
==========================================================================
*/
.single-product div.product > .product-attributes-panel {
    display: none !important;
}







/*
==========================================================================
// --- بخش 8: استایل مدرن برای جدول توضیحات تکمیلی (ویژگی ها) ---
==========================================================================
*/

/* استایل کلی برای کانتینر جدول */
.woocommerce-Tabs-panel--additional_information {
    padding-top: 20px;
}

/* استایل اصلی جدول ویژگی ها */
table.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse; /* حذف فاصله بین سلول ها */
    border-radius: 8px; /* گرد کردن گوشه ها */
    overflow: hidden; /* اطمینان از اعمال شدن گوشه های گرد */
    border: 1px solid #e0e0e0;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* افزودن یک سایه ملایم */
}

/* استایل برای تمام سلول ها (سرتیتر و مقدار) */
table.woocommerce-product-attributes th,
table.woocommerce-product-attributes td {
    padding: 18px 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0; /* خط جداکننده افقی */
}

/* استایل مخصوص سلول سرتیتر (مانند: نام محصول، کاربرد) */
table.woocommerce-product-attributes th {
    font-weight: 700; /* ضخیم کردن فونت */
    background-color: #f8f8f8; /* یک پس زمینه خیلی ملایم */
    width: 30%; /* اختصاص عرض ثابت برای نظم بیشتر */
    color: #333;
}

/* استایل مخصوص سلول مقدار */
table.woocommerce-product-attributes td {
    color: #555;
}

/* استایل برای سطرهای زوج (افکت راه راه) */
table.woocommerce-product-attributes tr:nth-of-type(even) {
    background-color: #fcfcfc;
}

/* حذف خط جداکننده برای آخرین سطر جدول */
table.woocommerce-product-attributes tr:last-child th,
table.woocommerce-product-attributes tr:last-child td {
    border-bottom: none;
}

/* استایل هاور برای سطرها جهت تعامل بهتر */
table.woocommerce-product-attributes tr:hover {
    background-color: #f0f8ff; /* تغییر رنگ پس زمینه در زمان هاور */
}



/*
==========================================================================
// --- بخش 9: استایل مدرن برای پیام "افزوده شد به سبد خرید" ---
==========================================================================
*/

/* استایل کانتینر اصلی پیام */
.woocommerce-message {
    background-color: #e9f7ef; /* پس زمینه سبز بسیار ملایم */
    color: #155724; /* رنگ متن سبز تیره برای خوانایی */
    border: 1px solid #c3e6cb; /* یک حاشیه سبز ملایم */
    border-right: 5px solid #28a745; /* یک خط ضخیم تر در سمت راست برای تاکید (مناسب سایت فارسی) */
    padding: 20px 25px;
    margin: 20px 0 30px 0 !important; /* ایجاد فاصله از بالا و پایین */
    border-radius: 8px; /* گوشه های گرد و مدرن */
    position: relative; /* برای جایگذاری آیکون */
    display: flex; /* استفاده از فلکس برای چیدمان بهتر */
    align-items: center; /* تراز عمودی محتوا */
    justify-content: space-between; /* ایجاد فاصله بین متن و دکمه */
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* سایه ملایم برای ایجاد عمق */
    clear: both; /* جلوگیری از تداخل با عناصر دیگر */
    width: 100%;
    box-sizing: border-box;
}

/* افزودن آیکون تیک (✓) در کنار پیام */
.woocommerce-message::before {
    content: '\2713'; /* کد یونیکد برای آیکون تیک */
    font-size: 22px;
    font-weight: bold;
    color: #28a745; /* رنگ سبز اصلی */
    margin-left: 15px; /* ایجاد فاصله بین آیکون و متن */
    line-height: 1;
}

/* استایل دکمه "مشاهده سبد خرید" که داخل پیام قرار دارد */
.woocommerce-message .button {
    background-color: #28a745 !important; /* رنگ سبز اصلی و قوی */
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 18px !important;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap; /* جلوگیری از شکستن متن دکمه */
    transition: background-color 0.3s ease;
}

/* استایل هاور برای دکمه */
.woocommerce-message .button:hover {
    background-color: #218838 !important; /* کمی تیره تر شدن در زمان هاور */
}































