/*
Theme Name: Light Shop
Author: Sajad Oladi
Description: قالب سبک فروشگاهی برای وردپرس و ووکامرس
Version: 1.0.0
Text Domain: light-shop
*/

/* ============================
   پایه
   ============================ */

html { direction: rtl; }

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background: #f8fafc;
    color: #222;
}

*, *::before, *::after { box-sizing: border-box; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}/* ============================
   هدر
   ============================ */

.site-header {
    background: #2d6a2d;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 16px;
    direction: rtl;
}

/* لوگو */
.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo .logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.header-logo img {
    max-height: 44px;
    width: auto;
    border-radius: 50%;
}

/* جستجو */
.header-search form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    border-radius: 6px;
    overflow: hidden;
    border: none;
    width: 200px;
    flex-shrink: 0;
}

.header-search button {
    background: transparent;
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    order: 1;
}

.header-search input {
    border: none;
    background: transparent;
    padding: 7px 10px 7px 6px;
    font-size: 13px;
    outline: none;
    color: #ffffff;
    width: 100%;
    direction: rtl;
    order: 2;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.75);
}

/* منو */
.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 6px 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
    border-radius: 4px;
}

.nav-list li a:hover {
    background: rgba(255,255,255,0.15);
}

.nav-list li a::after { display: none; }

/* اینماد و دکمه تماس — مخفی در این طرح */
.header-enamad,
.header-call-btn { display: none !important; }

/* همبرگر */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* ============================
   هدر موبایل
   ============================ */

@media (max-width: 768px) {

    .header-container {
        padding: 0 10px;
        height: 50px;
        direction: rtl;
        gap: 8px;
    }

    /* لوگو سمت راست */
    .header-logo {
        order: 1;
        flex-shrink: 0;
    }

    .header-logo img {
        max-height: 40px;
        width: auto;
        border-radius: 50%;
    }

    /* جستجو وسط */
    .header-search {
        order: 2;
        flex: 1;
    }

    .header-search form {
        width: 100%;
    }

    .header-search input {
        flex: 1;
        min-width: 0;
    }

    /* همبرگر سمت چپ */
    .hamburger {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }

    /* منوی کشویی */
    .header-nav {
        display: none;
        position: absolute;
        top: 50px;
        right: 0;
        width: 65%;
        background: #2d6a2d;
        border-bottom: 2px solid #1a4a1a;
        border-left: 2px solid #1a4a1a;
        border-radius: 0 0 0 12px;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        direction: rtl;
        flex-direction: column;
    }

    .header-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        gap: 0;
    }

    .nav-list li a {
        padding: 11px 8px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
        font-size: 14px;
    }
}
/* ============================
   فوتر پایه (بازنویسی جلوتر)
   ============================ */

.site-footer {
    background: #111;
    color: #fff;
    padding: 20px 0;
    margin-top: 10px;
    text-align: center;
}

/* ============================
   بنر اصلی
   ============================ */

.home-hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 10px;
}

.home-hero-content h1 { font-size: 42px; margin-bottom: 16px; color: #ffffff; }
.home-hero-content p { font-size: 18px; margin-bottom: 28px; color: #e0e7ff; }

.home-hero-button {
    display: inline-block;
    background: #ffffff;
    color: #1d4ed8;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.home-hero-button:hover { background: #dbeafe; color: #1e40af; }

@media (max-width: 640px) {
    .home-hero { padding: 50px 0; }
    .home-hero-content h1 { font-size: 28px; }
    .home-hero-content p { font-size: 15px; }
}

/* ============================
   پیشنهاد شگفت‌انگیز
   ============================ */

.home-amazing-offers {
    padding: 10px 0;
    margin-bottom: 10px;
}

.amazing-offers-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    direction: rtl;
    background: #7bea91;
    border-radius: 8px;
    padding: 24px 34px;
    min-height: 315px;
    overflow: hidden;
}

.amazing-offers-title {
    flex: 0 0 210px;
    min-width: 210px;
    max-width: 210px;
    text-align: right;
}

.amazing-offers-title h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.25;
}

.amazing-offers-title a {
    display: inline-block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.amazing-offers-products {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.amazing-offers-products::-webkit-scrollbar { display: none; }

.amazing-offers-products .woocommerce ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    grid-template-columns: unset !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    width: max-content !important;
}

.amazing-offers-products .woocommerce ul.products::before,
.amazing-offers-products .woocommerce ul.products::after { display: none !important; }

.amazing-offers-products .woocommerce ul.products li.product {
    flex: 0 0 185px !important;
    width: 185px !important;
    min-width: 185px !important;
    max-width: 185px !important;
    min-height: 255px !important;
    float: none !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    border-left: none !important;
    padding: 14px 14px 16px !important;
    text-align: right !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
    position: relative;
}

.amazing-offers-products .woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 145px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 12px !important;
    background: #ffffff !important;
}

.amazing-offers-products .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.7 !important;
    min-height: 42px !important;
    margin: 0 0 10px !important;
    text-align: right !important;
}

.amazing-offers-products .woocommerce ul.products li.product .price {
    display: block !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-align: right !important;
    margin: 0 !important;
}

.amazing-offers-products .woocommerce ul.products li.product .button { display: none !important; }

.amazing-offers-products .woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    left: auto !important;
    bottom: auto !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 5px !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    min-height: auto !important;
    line-height: 1.6 !important;
    z-index: 5 !important;
}

@media (max-width: 768px) {
    .amazing-offers-box { flex-direction: row; align-items: stretch; padding: 12px 10px; gap: 10px; }
    .amazing-offers-title {
        flex: 0 0 30% !important;
        min-width: 30% !important;
        max-width: 30% !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center !important;
    }
    .amazing-offers-title h2 { font-size: 22px !important; margin: 0 0 12px !important; }
    .amazing-offers-title a { font-size: 12px; }
    .amazing-offers-products .woocommerce ul.products li.product {
        flex: 0 0 160px !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
    }
    .amazing-offers-products .woocommerce ul.products li.product a img { height: 110px !important; }
}

/* ============================
   عنوان بخش‌های محصول
   ============================ */

.home-products-header { margin-bottom: 12px; }

.home-products-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    border-bottom: 3px solid #14b8a6;
    display: inline-block;
    padding-bottom: 8px;
    margin: 0;
}

/* ============================
   اسکرول افقی محصولات
   ============================ */

.home-products,
.home-best-products,
.home-all-products {
    padding: 10px 0;
    margin-bottom: 10px;
}

.home-products-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-products-scroll::-webkit-scrollbar { display: none; }

.home-products-scroll .woocommerce ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: max-content !important;
    background: #ffffff;
    border-radius: 16px;
    overflow: visible !important;
}

.home-products-scroll .woocommerce ul.products::before,
.home-products-scroll .woocommerce ul.products::after { display: none !important; }

.home-products-scroll .woocommerce ul.products li.product {
    flex: 0 0 230px !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
    padding: 22px 18px 18px;
    text-align: right;
    border-left: 1px solid #e5e7eb;
    position: relative;
    min-height: 360px;
    scroll-snap-align: start;
    transition: box-shadow 0.2s ease;
    background: #ffffff;
}

.home-products-scroll .woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    z-index: 2;
}

.home-products-scroll .woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 190px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 16px !important;
    background: #ffffff;
}

.home-products-scroll .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.8;
    min-height: 54px;
    margin-bottom: 12px;
    text-align: right;
}

.home-products-scroll .woocommerce ul.products li.product .price {
    display: block !important;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: right;
}

.home-products-scroll .woocommerce ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f766e;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 9px 15px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
}

.home-products-scroll .woocommerce ul.products li.product .button:hover { background: #115e59; }

.home-products-scroll .woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    right: 12px !important;
    top: 12px !important;
    left: auto !important;
    bottom: auto !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    min-height: auto !important;
    line-height: 1.6 !important;
    z-index: 5 !important;
}

@media (max-width: 640px) {
    .home-products-scroll .woocommerce ul.products li.product {
        flex: 0 0 185px !important;
        width: 185px !important;
        min-width: 185px !important;
        max-width: 185px !important;
        min-height: 310px;
    }
    .home-products-scroll .woocommerce ul.products li.product a img { height: 145px !important; }
}

/* ============================
   دسته‌بندی‌های تصویری
   ============================ */

.home-image-categories {
    padding: 10px 0;
    margin-bottom: 10px;
}

.home-image-categories-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.home-image-category-item {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
}

.home-image-category-item img {
    width: 100%;
    height: 460px;
    display: block;
    object-fit: contain;
}

@media (min-width: 769px) and (max-width: 1366px) {
    .home-image-category-item img { height: 420px; object-fit: contain; }
}

@media (max-width: 640px) {
    .home-image-categories .container { padding-right: 10px; padding-left: 0; }
    .home-image-categories-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .home-image-categories-row::-webkit-scrollbar { display: none; }
    .home-image-category-item { flex: 0 0 52%; min-width: 52%; }
    .home-image-category-item img { height: 200px; object-fit: cover; }
}

/* ============================
   دو بنر
   ============================ */

.home-two-banners {
    padding: 10px 0;
    margin-bottom: 10px;
}

.home-two-banners-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.home-two-banner-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.home-two-banner-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .home-two-banners-row { grid-template-columns: 1fr; gap: 12px; }
    .home-two-banner-item img { height: 135px; }
}

/* ============================
   صفحه فروشگاه ووکامرس
   ============================ */

.woocommerce-page-wrapper {
    padding: 40px 0;
    min-height: 70vh;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    text-align: center;
    transition: 0.2s ease;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 14px;
    background: #f1f5f9;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    color: #111827;
    font-weight: 700;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .price {
    color: #0f766e;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    display: block;
}

.woocommerce ul.products li.product .button {
    display: inline-block;
    background: #0f766e;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
}

.woocommerce ul.products li.product .button:hover { background: #115e59; color: #ffffff !important; }

.woocommerce span.onsale {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    min-height: auto !important;
    line-height: 1.6 !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* ============================
   صفحه تک محصول
   ============================ */

.woocommerce div.product {
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.woocommerce div.product .product_title { font-size: 26px; margin-bottom: 16px; color: #111827; }

.woocommerce div.product p.price,
.woocommerce div.product span.price { color: #0f766e; font-size: 20px; font-weight: 700; }

.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #0f766e;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    border: none;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: #115e59; color: #ffffff; }

.woocommerce .quantity .qty { height: 42px; border: 1px solid #d1d5db; border-radius: 8px; }

/* ============================
   دکمه تماس بگیرید
   ============================ */

.light-shop-contact-button {
    display: inline-block;
    background: #0f766e;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.light-shop-contact-button:hover { background: #115e59; color: #ffffff !important; }

/* ============================
   سایر صفحات
   ============================ */

.site-main {
    padding: 40px 0;
    min-height: 70vh;
}

/* ============================
   بخش مقالات
   ============================ */

.home-blog {
    padding: 10px 0;
    margin-bottom: 10px;
}

.home-blog-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-blog-scroll::-webkit-scrollbar { display: none; }

.home-blog-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    background: #ffffff;
    border-radius: 16px;
    overflow: visible;
}

.home-blog-card {
    flex: 0 0 230px;
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    overflow: hidden;
    text-decoration: none;
    color: #111827;
    padding: 22px 18px 18px;
    position: relative;
    min-height: 320px;
    scroll-snap-align: start;
    transition: box-shadow 0.2s ease;
}

.home-blog-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    z-index: 2;
}

.home-blog-card-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 14px;
}

.home-blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-blog-card-no-img { background: #e5e7eb; }

.home-blog-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.home-blog-card-body h3 { font-size: 14px; font-weight: 800; color: #111827; margin: 0; line-height: 1.7; }
.home-blog-card-body p { font-size: 12px; color: #6b7280; margin: 0; line-height: 1.8; }

.home-blog-card-date { font-size: 12px; color: #14b8a6; font-weight: 700; margin-top: auto; }

@media (max-width: 640px) {
    .home-blog-card {
        flex: 0 0 185px;
        width: 185px;
        min-width: 185px;
        max-width: 185px;
        min-height: 280px;
    }
    .home-blog-card-img { height: 120px; }
}

/* ============================
   فوتر
   ============================ */

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 48px 0 0;
    margin-top: 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1f2937;
}

.footer-col-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f766e;
    display: inline-block;
}

.footer-about-text {
    font-size: 13px;
    line-height: 2;
    color: #9ca3af;
    margin: 0;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.footer-contact-list a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover { color: #14b8a6; }

.footer-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links-list li a:hover { color: #14b8a6; }

.footer-col-enamad {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-enamad img {
    width: 90px;
    height: auto;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 4px;
}

.footer-bottom {
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* ریسپانسیو فوتر */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-col {
        text-align: center;
        align-items: center;
    }

    .footer-col-title {
        display: block;
        text-align: center;
    }

    .footer-about-text {
        text-align: center;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-links-list {
        align-items: center;
    }

    .footer-col-enamad {
        align-items: center;
    }

    .footer-enamad {
        display: flex;
        justify-content: center;
    }
}

/* ============================
   دکمه تماس محصولات
   ============================ */

.light-shop-call-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #0f766e !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 9px 15px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
}

.light-shop-call-btn:hover {
    background: #115e59 !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .light-shop-call-btn {
        font-size: 12px;
        padding: 7px 10px;
    }
}
@media (max-width: 768px) {

    /* بخش‌های محصولات تا لبه صفحه برسن */
    .home-products .container,
    .home-best-products .container,
    .home-all-products .container,
    .home-blog .container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /* عنوان بخش padding خودش رو حفظ کنه */
    .home-products .home-products-header,
    .home-best-products .home-products-header,
    .home-all-products .home-products-header,
    .home-blog .home-products-header {
        padding-right: 15px;
        padding-left: 15px;
    }
}
@media (max-width: 768px) {

    /* بخش‌های محصولات و شگفت‌انگیز تا لبه صفحه برسن */
    .home-products .container,
    .home-best-products .container,
    .home-all-products .container,
    .home-blog .container,
    .home-amazing-offers .container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /* عنوان بخش‌ها padding خودشون رو حفظ کنن */
    .home-products .home-products-header,
    .home-best-products .home-products-header,
    .home-all-products .home-products-header,
    .home-blog .home-products-header {
        padding-right: 15px;
        padding-left: 15px;
    }
}
/* ============================
   فاصله یکسان بین بخش‌ها در موبایل
   ============================ */

@media (max-width: 768px) {

    .home-page {
        padding: 0 !important;
    }

    .home-hero {
        padding: 30px 0 !important;
        margin-bottom: 10px !important;
    }

    .home-amazing-offers,
    .home-products,
    .home-best-products,
    .home-all-products,
    .home-image-categories,
    .home-two-banners,
    .home-blog {
        padding: 0 !important;
        margin-bottom: 10px !important;
    }

    .site-main.home-page {
        padding: 0 !important;
    }
}
/* ============================
   صفحه تک مقاله
   ============================ */

.single-post-page {
    padding: 30px 0 40px;
    min-height: 70vh;
}

.single-post-title {
    font-size: 24px;
    font-weight: 800;
    color: #2d6a2d;
    margin: 0 0 24px;
    line-height: 1.6;
    border-right: 4px solid #2d6a2d;
    padding-right: 12px;
}

/* چیدمان دو ستون */
.single-post-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    direction: rtl;
    align-items: start;
}

/* سایدبار */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.sidebar-box-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2d6a2d;
    display: inline-block;
}

/* آخرین مطالب */
.sidebar-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-recent-posts li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    transition: color 0.2s;
}

.sidebar-recent-posts li a:hover { color: #2d6a2d; }

.sidebar-recent-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* لینک‌های مفید */
.sidebar-useful-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-useful-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.sidebar-useful-links li a::before {
    content: '✅';
    font-size: 13px;
}

.sidebar-useful-links li a:hover { color: #2d6a2d; }

/* محتوای مقاله */
.single-post-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.single-post-featured-img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.single-post-featured-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.single-post-body {
    font-size: 14px;
    line-height: 2.2;
    color: #374151;
    direction: rtl;
    text-align: right;
}

.single-post-body h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 28px 0 12px;
}

.single-post-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 22px 0 10px;
}

.single-post-body p { margin-bottom: 16px; }

.single-post-body ul,
.single-post-body ol {
    padding-right: 20px;
    margin-bottom: 16px;
}

.single-post-body li { margin-bottom: 8px; }

.single-post-body strong { color: #111827; font-weight: 800; }

.single-post-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

/* ناوبری قبل/بعد */
.single-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    gap: 16px;
}

.post-nav-prev,
.post-nav-next {
    flex: 1;
}

.post-nav-next { text-align: left; }

.post-nav-prev a,
.post-nav-next a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    transition: color 0.2s;
}

.post-nav-prev a:hover,
.post-nav-next a:hover { color: #2d6a2d; }

.nav-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
}

.nav-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

/* مطالب/محصولات مرتبط */
.single-related-posts,
.single-related-products {
    margin-top: 30px;
}

.single-related-title {
    font-size: 18px;
    font-weight: 800;
    color: #2d6a2d;
    margin: 0 0 16px;
    border-right: 4px solid #2d6a2d;
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.single-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s;
}

.related-post-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

.related-post-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-post-no-img { background: #e5e7eb; }

.related-post-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    padding: 10px 12px;
    line-height: 1.7;
}

/* ============================
   ریسپانسیو single post
   ============================ */

@media (max-width: 900px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    .single-sidebar {
        order: 2;
    }
    .single-post-content {
        order: 1;
    }
    .single-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .single-post-title { font-size: 18px; }
    .single-post-featured-img img { height: 220px; }
    .single-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .single-post-nav { flex-direction: column; }
}
/* ============================
   صفحه تک محصول سفارشی
   ============================ */

.single-product-page {
    padding: 30px 0 50px;
    min-height: 70vh;
}

/* باکس اصلی */
.sp-main-box {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    direction: rtl;
}

/* اطلاعات */
.sp-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.7;
    margin: 0 0 16px;
}

.sp-short-desc {
    font-size: 13px;
    line-height: 2;
    color: #4b5563;
    margin-bottom: 20px;
}

.sp-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 14px;
}

.sp-price-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.sp-price-value {
    font-size: 16px;
    font-weight: 800;
    color: #2d6a2d;
}

.sp-price-contact {
    font-size: 15px;
    font-weight: 800;
    color: #2d6a2d;
}

.sp-call-btn {
    display: inline-block;
    background: #2d6a2d;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.sp-call-btn:hover { background: #1a4a1a; }

/* گالری */
.sp-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-gallery-main {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}

.sp-gallery-main img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
}

.sp-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.sp-gallery-arrow:hover { background: rgba(0,0,0,0.6); }
.sp-prev { right: 8px; }
.sp-next { left: 8px; }

.sp-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-thumb {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sp-thumb.active,
.sp-thumb:hover { border-color: #2d6a2d; }

/* تگ‌های دسته‌بندی */
.sp-tags-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    direction: rtl;
}

.sp-tag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    max-width: 72px;
}

.sp-tag-item img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s;
}

.sp-tag-item:hover img { border-color: #2d6a2d; }
.sp-tag-item span { line-height: 1.5; }

/* توضیحات کامل */
.sp-full-desc-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    direction: rtl;
}

.sp-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #2d6a2d;
    margin: 0 0 16px;
    text-align: center;
}

.sp-full-desc {
    font-size: 14px;
    line-height: 2.2;
    color: #374151;
}

.sp-full-desc h2, .sp-full-desc h3 {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    margin: 20px 0 10px;
    text-align: center;
}

.sp-full-desc strong { font-weight: 800; color: #111827; }
.sp-full-desc ul { padding-right: 20px; }
.sp-full-desc li { margin-bottom: 8px; }

/* دیدگاه‌ها */
.sp-comments-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 20px;
    direction: rtl;
}

.sp-comments-box textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.sp-comments-box textarea:focus { border-color: #2d6a2d; }

.sp-comments-box input[type="submit"],
.sp-comments-box .submit input {
    background: #2d6a2d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-family: Tahoma, Arial, sans-serif;
    transition: background 0.2s;
}

.sp-comments-box input[type="submit"]:hover { background: #1a4a1a; }

/* محصولات مرتبط */
.sp-related-products { margin-top: 10px; direction: rtl; }

.sp-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sp-related-title {
    font-size: 18px;
    font-weight: 800;
    color: #2d6a2d;
    border-right: 4px solid #2d6a2d;
    padding-right: 10px;
    margin: 0;
}

.sp-related-call-btn {
    background: #2d6a2d;
    color: #ffffff !important;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.sp-related-call-btn:hover { background: #1a4a1a; }

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sp-related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.sp-related-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

.sp-related-card-link { text-decoration: none; color: inherit; }

.sp-related-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.sp-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-related-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-related-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.6;
}

.sp-related-price {
    font-size: 12px;
    color: #2d6a2d;
    font-weight: 700;
}

.sp-related-actions {
    padding: 0 12px 12px;
}

.sp-related-view-btn {
    display: block;
    background: #2d6a2d;
    color: #ffffff !important;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.sp-related-view-btn:hover { background: #1a4a1a; }

/* دکمه شناور مشاوره روی کارت */
.sp-related-hover-btn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d6a2d;
    color: #ffffff !important;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
}

.sp-related-card:hover .sp-related-hover-btn {
    opacity: 1;
    pointer-events: auto;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .sp-main-box {
        grid-template-columns: 1fr;
    }
    .sp-gallery { order: -1; }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .sp-main-box { padding: 16px; }
    .sp-gallery-main img { height: 240px; }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}