/* =========================================
   ULTRA MODERN GLASSMORPHISM LOGIN UI
========================================= */

/* انیمیشن‌ها */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(30px) scale(0.95); }
}
@keyframes fadeUpCard {
    0% { opacity: 0; transform: translateY(40px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* پس‌زمینه تمام صفحه و تاریک */
#beiten-auth-wrapper {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 999999 !important;
    background: #050505 !important;
    display: flex !important;
    justify-content: center !important; align-items: center !important;
    margin: 0 !important; padding: 20px !important;
    overflow: hidden !important;
}

/* افکت‌های نوری داینامیک پشت کارت */
.beiten-auth-bg-shapes {
    position: absolute !important; width: 100% !important; height: 100% !important; z-index: 0 !important; pointer-events: none !important;
}
.beiten-auth-shape-1 {
    background: linear-gradient(to right, #4f46e5, #ec4899) !important;
    width: 45vw !important; height: 45vw !important;
    top: -10% !important; left: -10% !important;
    filter: blur(140px) !important; opacity: 0.35 !important; border-radius: 50% !important;
    animation: float1 12s ease-in-out infinite !important;
}
.beiten-auth-shape-2 {
    background: linear-gradient(to right, #8b5cf6, #3b82f6) !important;
    width: 40vw !important; height: 40vw !important;
    bottom: -15% !important; right: -5% !important;
    filter: blur(140px) !important; opacity: 0.35 !important; border-radius: 50% !important;
    animation: float2 10s ease-in-out infinite !important;
}

/* استایل بدنه اصلی کارت (گلس) */
.beiten-auth-card {
    width: 100% !important; max-width: 440px !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(25px) !important; -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1) !important;
    border-radius: 28px !important;
    padding: 50px 45px !important;
    z-index: 10 !important;
    animation: fadeUpCard 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* هدر و لوگو */
.beiten-auth-header { text-align: center !important; margin-bottom: 35px !important; }
.beiten-auth-logo { display: flex !important; justify-content: center !important; margin-bottom: 20px !important; }
.beiten-auth-logo svg { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)) !important; transform: scale(1.1) !important; }
.beiten-auth-title { font-size: 28px !important; font-weight: 900 !important; color: #ffffff !important; letter-spacing: -0.5px !important; margin-bottom: 8px !important; }
.beiten-auth-subtitle { color: #94a3b8 !important; font-size: 14px !important; }

/* تب‌های سوئیچ لاگین/ثبت‌نام */
.beiten-auth-tabs {
    background: rgba(0, 0, 0, 0.3) !important; border-radius: 14px !important;
    padding: 6px !important; display: flex !important; margin-bottom: 35px !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
}
.beiten-auth-tab {
    flex: 1 !important; padding: 14px !important; border-radius: 10px !important;
    font-weight: 700 !important; font-size: 14px !important; color: #94a3b8 !important;
    background: transparent !important; border: none !important; cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.beiten-auth-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; color: white !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3) !important; transform: translateY(-1px) !important;
}
.beiten-auth-tab-indicator { display: none !important; }

/* فیلدهای ورودی (Inputs) */
.beiten-auth-field { margin-bottom: 24px !important; }
.beiten-auth-field label { display: block !important; font-size: 13px !important; color: #cbd5e1 !important; margin-bottom: 10px !important; font-weight: 600 !important; letter-spacing: 0.5px !important; }
.beiten-auth-input-wrap { position: relative !important; }
.beiten-auth-input-wrap input {
    width: 100% !important; background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important; color: #fff !important;
    border-radius: 16px !important; padding: 18px 18px 18px 52px !important;
    font-size: 15px !important; transition: all 0.3s ease !important;
}
.beiten-auth-input-wrap input:focus {
    background: rgba(0, 0, 0, 0.4) !important; border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), inset 0 0 0 1px #8b5cf6 !important; outline: none !important; transform: translateY(-2px) !important;
}

/* آیکون داخل فیلدها */
.beiten-auth-icon { position: absolute !important; left: 18px !important; top: 50% !important; transform: translateY(-50%) !important; color: #64748b !important; transition: 0.3s !important; pointer-events: none !important; }
.beiten-auth-input-wrap:focus-within .beiten-auth-icon { color: #c084fc !important; filter: drop-shadow(0 0 8px rgba(192,132,252,0.4)) !important; }
.beiten-auth-toggle-pass { position: absolute !important; right: 16px !important; top: 50% !important; transform: translateY(-50%) !important; color: #64748b !important; background: none !important; border: none !important; cursor: pointer !important; transition: 0.3s !important; }
.beiten-auth-toggle-pass:hover { color: #fff !important; }

/* چک‌باکس مرا بخاطر بسپار */
.beiten-auth-row { margin-bottom: 28px !important; margin-top: -5px !important; }
.beiten-auth-check { display: flex !important; align-items: center !important; gap: 12px !important; cursor: pointer !important; font-size: 13px !important; color: #94a3b8 !important; font-weight: 500 !important; }
.beiten-auth-check input { display: none !important; }
.beiten-auth-checkmark { width: 20px !important; height: 20px !important; border-radius: 6px !important; border: 1px solid #475569 !important; background: rgba(0, 0, 0, 0.3) !important; position: relative !important; transition: 0.2s !important; }
.beiten-auth-check input:checked ~ .beiten-auth-checkmark { background: #6366f1 !important; border-color: #6366f1 !important; box-shadow: 0 0 10px rgba(99,102,241,0.4) !important; }
.beiten-auth-check input:checked ~ .beiten-auth-checkmark::after { content: '' !important; position: absolute !important; left: 6px !important; top: 3px !important; width: 5px !important; height: 10px !important; border: solid white !important; border-width: 0 2px 2px 0 !important; transform: rotate(45deg) !important; }

/* دکمه اصلی (Glow Button) */
.beiten-auth-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    background-size: 200% auto !important;
    color: #fff !important; border-radius: 16px !important; font-weight: 800 !important; font-size: 16px !important;
    padding: 18px !important; border: none !important; cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3) !important; margin-top: 10px !important;
    transition: all 0.4s ease !important; position: relative !important; overflow: hidden !important;
}
.beiten-auth-btn:hover {
    background-position: right center !important; transform: translateY(-3px) !important; box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5) !important;
}
.beiten-auth-btn::after { content: '' !important; position: absolute !important; top: 0 !important; left: -100% !important; width: 50% !important; height: 100% !important; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%) !important; transform: skewX(-25deg) !important; animation: btnShine 4s infinite !important; }
@keyframes btnShine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* فوتر پایین */
.beiten-auth-footer { margin-top: 35px !important; text-align: center !important; padding-top: 25px !important; border-top: 1px solid rgba(255,255,255,0.06) !important; display: flex !important; justify-content: center !important; gap: 8px !important; align-items: center !important; }
.beiten-auth-footer-text { color: #64748b !important; font-size: 14px !important; }
.beiten-auth-switch { background: transparent !important; border: none !important; cursor: pointer !important; padding: 0 !important; color: #c084fc !important; font-weight: 700 !important; font-size: 14px !important; transition: 0.3s !important; }
.beiten-auth-switch:hover { color: #fff !important; text-shadow: 0 0 10px rgba(192,132,252,0.5) !important; }
/* =========================================
   MODERN WOOCOMMERCE CHECKOUT UI
========================================= */

/* استایل باکس‌های هر مرحله (اطلاعات تماس، آدرس، پرداخت) */
.wc-block-components-checkout-step {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    transition: all 0.3s ease !important;
}

.wc-block-components-checkout-step:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

/* تیترهای مراحل */
.wc-block-components-checkout-step__title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin-bottom: 20px !important;
}

/* استایل فیلدهای ورودی (Inputs & Selects) */
.wc-block-components-text-input input,
.wc-blocks-components-select__select {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: #334155 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* افکت کلیک روی فیلدها */
.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus,
.wc-block-components-text-input.is-active input {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15) !important;
    background: #ffffff !important;
    outline: none !important;
}

/* نوشته لیبل فیلدها */
.wc-block-components-text-input label {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* باکس خطای پرداخت (قرمز) */
.wc-block-components-notice-banner.is-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 12px !important;
    color: #991b1b !important;
    padding: 16px !important;
    font-size: 13px !important;
}
.wc-block-components-notice-banner.is-error svg {
    fill: #ef4444 !important;
}

/* چک‌باکس‌ها و قوانین */
.wc-block-components-checkbox__label {
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* دکمه نهایی ثبت سفارش (Place Order) */
.wc-block-components-checkout-place-order-button {
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    padding: 22px !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3) !important;
    transition: all 0.4s ease !important;
    margin-top: 15px !important;
    width: 100% !important;
}

.wc-block-components-checkout-place-order-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.45) !important;
    background: linear-gradient(135deg, #9333ea, #4f46e5) !important;
}

/* ستون خلاصه سفارش سمت راست */
.wc-block-components-sidebar {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    border-radius: 16px !important;
    padding: 24px !important;
}
/* =========================================
   FINAL FIX: PREMIUM PRODUCTS GRID & CARDS
========================================= */

.premium-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 30px !important;
}

.premium-product-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
    overflow: hidden !important; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    padding: 0 !important;
}

.premium-product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1) !important;
}

/* هدر و عکس محصول */
.ppc-header {
    width: 100% !important;
    height: 200px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    background: #f8fafc !important;
    border-radius: 20px 20px 0 0 !important;
}

.ppc-header img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* بدنه کارت */
.ppc-body {
    padding: 25px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    align-items: center !important;
}

/* تگ دسته بندی */
.ppc-category {
    background: #f3e8ff !important;
    color: #a855f7 !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 15px !important;
    display: inline-block !important;
}

/* اسم محصول */
.ppc-name {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* قیمت */
.ppc-price {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #6366f1 !important;
    margin-bottom: 15px !important;
}

/* وضعیت موجودی */
.ppc-status {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    margin-bottom: 25px !important;
}

.ppc-dot {
    width: 8px !important;
    height: 8px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* دکمه خرید */
.ppc-btn {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-decoration: none !important;
    margin-top: auto !important;
}

.ppc-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3) !important;
}
/* =========================================
   ULTRA MODERN ORDER CONFIRMATION UI
========================================= */

/* مخفی کردن پیام موفقیت تکراری (باگ ووکامرس) */
.woocommerce-message:nth-of-type(2) {
    display: none !important;
}

/* استایل پیام موفقیت */
.woocommerce-message {
    background: #ecfdf5 !important;
    border: 1px solid #10b981 !important;
    color: #065f46 !important;
    border-radius: 16px !important;
    padding: 16px 24px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1) !important;
}
.woocommerce-message .button {
    background: #10b981 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}
.woocommerce-message .button:hover {
    background: #059669 !important;
}

/* کارت‌های اطلاعات بالای صفحه (شماره سفارش، تاریخ و...) */
.thankyou-info-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 40px 0 !important;
}
.ty-info-card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 20px !important;
    padding: 25px 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
}
.ty-info-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08) !important;
    border-color: #e0e7ff !important;
}
.ty-info-icon {
    width: 54px !important;
    height: 54px !important;
    margin: 0 auto 15px !important;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1)) !important;
    color: #6366f1 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.ty-info-label {
    display: block !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 6px !important;
}
.ty-info-value {
    display: block !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}
.ty-total-price { color: #a855f7 !important; }

/* ساختار گرید پایین صفحه (جزئیات سفارش و آدرس) */
.ty-content-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}
@media (max-width: 992px) {
    .ty-content-grid { grid-template-columns: 1fr !important; }
}

/* استایل باکس‌های اصلی */
.ty-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03) !important;
    padding: 35px !important;
    overflow: hidden !important;
}
.ty-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}
.ty-card-header h2 {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}
.ty-card-header svg { color: #8b5cf6 !important; }

/* جدول جزئیات سفارش */
.ty-table { width: 100% !important; border-collapse: collapse !important; }
.ty-table th, .ty-table td { padding: 18px 10px !important; border-bottom: 1px solid #f8fafc !important; }
.ty-table thead th {
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.ty-table tbody td { color: #334155 !important; font-weight: 600 !important; font-size: 15px !important; }
.ty-product-name {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}
.ty-qty {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
.ty-table tfoot th, .ty-table tfoot td { color: #64748b !important; padding: 12px 10px !important; }
.ty-table tfoot tr:last-child th, .ty-table tfoot tr:last-child td {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    border-top: 2px dashed #e2e8f0 !important;
    padding-top: 20px !important;
}
.ty-table tfoot tr:last-child td { color: #6366f1 !important; }

/* آدرس صورتحساب و پشتیبانی */
.ty-address-body p {
    color: #475569 !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-bottom: 15px !important;
}
.ty-contact-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 18px !important;
    background: rgba(139, 92, 246, 0.08) !important;
    color: #7c3aed !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: 0.3s !important;
    width: 100% !important;
    justify-content: center !important;
}
.ty-contact-link:hover { background: rgba(139, 92, 246, 0.15) !important; transform: translateY(-2px) !important; }

.ty-help-card {
    margin-top: 20px !important;
    text-align: center !important;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9) !important;
    border: none !important;
}
.ty-help-card svg { color: #3b82f6 !important; margin-bottom: 15px !important; }
.ty-help-card p { color: #475569 !important; font-weight: 600 !important; margin-bottom: 20px !important; }
.ty-help-card .btn-outline {
    border: 2px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
}

/* دکمه‌های پایین صفحه */
.thankyou-actions {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    margin-top: 20px !important;
}
.thankyou-actions .btn {
    padding: 16px 32px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}
.thankyou-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3) !important;
}
.thankyou-actions .btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45) !important;
}
.thankyou-actions .btn-outline {
    border: 2px solid #e2e8f0 !important;
    color: #475569 !important;
    background: white !important;
}
.thankyou-actions .btn-outline:hover {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
/* =========================================
   SHOP PAGE & SIDEBAR LAYOUT STYLING
========================================= */

/* چیدمان کلی فروشگاه (Sidebar + Content) */
.shop-layout {
    display: flex !important;
    gap: 40px !important;
    padding: 40px 0 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

@media (max-width: 992px) {
    .shop-layout { flex-direction: column !important; }
    .shop-sidebar { width: 100% !important; }
}

/* استایل سایدبار و جستجو */
.shop-sidebar { flex: 0 0 300px !important; }
.widget_search {
    background: #f8fafc !important;
    padding: 30px !important;
    border-radius: 24px !important;
    border: 1px solid #f1f5f9 !important;
}
.widget-title { font-size: 18px !important; margin-bottom: 20px !important; color: #0f172a !important; }
.woocommerce-product-search { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.search-field { padding: 14px !important; border-radius: 12px !important; border: 1px solid #e2e8f0 !important; width: 100% !important; }
.woocommerce-product-search button {
    background: #0f172a !important; color: white !important;
    padding: 12px !important; border-radius: 12px !important; border: none !important;
    cursor: pointer !important; transition: 0.3s !important;
}

/* استایل لیست محصولات */
.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    padding: 0 !important;
    list-style: none !important;
}

/* کلیک‌پذیر کردن کارت محصول */
.premium-product-card-wrap { position: relative !important; list-style: none !important; }
.ppc-overlay-link {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 1 !important;
}
/* دکمه افزودن به سبد خرید همیشه باید بالاتر از لینک کاور باشد */
.ppc-btn { position: relative !important; z-index: 2 !important; }

/* اصلاح ظاهر کارت‌ها در گرید فروشگاه */
.premium-product-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    height: 100% !important;
}

/* نوار ابزار بالای فروشگاه */
.shop-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: #f8fafc !important;
    border-radius: 16px !important;
}

.woocommerce-ordering select {
    padding: 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
}
/* ═══════════════════════════════════════════
   MODERN SHOP — WordPress Additional CSS
   زیبا، مدرن، ریسپانسیو
═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --shop-bg: #f0f2ff;
  --card-bg: #ffffff;
  --accent: #6c63ff;
  --accent-dark: #4f46e5;
  --accent-light: #ede9fe;
  --accent-glow: rgba(108, 99, 255, 0.15);
  --text-1: #1e1b4b;
  --text-2: #6b7280;
  --text-3: #a5b4fc;
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --border: rgba(108, 99, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(108, 99, 255, 0.08);
  --shadow-md: 0 8px 32px rgba(108, 99, 255, 0.14);
  --shadow-hover: 0 20px 48px rgba(108, 99, 255, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
}

/* ── Page Background ── */
body .woocommerce,
body .woocommerce-page,
.site-main {
  background: var(--shop-bg) !important;
}

/* ════════════════════════════════════
   SHOP LAYOUT
════════════════════════════════════ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  align-items: start;
}

/* ════════════════════════════════════
   SIDEBAR
════════════════════════════════════ */
.shop-sidebar {
  position: sticky;
  top: 24px;
}

.shop-sidebar .widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.shop-sidebar .widget-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  margin-bottom: 16px !important;
  padding-right: 12px;
  border-right: 3px solid var(--accent);
}

/* Search widget */
.shop-sidebar .woocommerce-product-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-sidebar .search-field {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--shop-bg) !important;
  color: var(--text-1) !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

.shop-sidebar .search-field:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.shop-sidebar .search-field::placeholder {
  color: var(--text-2) !important;
}

.shop-sidebar button[type="submit"] {
  width: 100% !important;
  padding: 12px !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35) !important;
}

.shop-sidebar button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.45) !important;
}

/* ════════════════════════════════════
   SHOP TOOLBAR
════════════════════════════════════ */
.shop-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 14px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: var(--shadow-sm) !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.shop-results {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.woocommerce-result-count {
  font-size: 13px !important;
  color: var(--text-2) !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.woocommerce-ordering {
  margin: 0 !important;
}

.woocommerce-ordering select.orderby {
  padding: 9px 16px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--shop-bg) !important;
  color: var(--text-1) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: auto !important;
  transition: border-color 0.2s ease !important;
}

.woocommerce-ordering select.orderby:focus {
  border-color: var(--accent) !important;
}

/* ════════════════════════════════════
   PRODUCTS GRID
════════════════════════════════════ */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ════════════════════════════════════
   PRODUCT CARD
════════════════════════════════════ */
li.premium-product-card-wrap {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.premium-product-card {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(.22, .68, 0, 1.2),
              box-shadow 0.3s ease,
              border-color 0.3s ease !important;
  position: relative !important;
  cursor: pointer !important;
}

.premium-product-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--accent) !important;
}

/* Image header */
.ppc-header {
  position: relative !important;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
  padding: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 180px !important;
  overflow: hidden !important;
}

.ppc-product-img {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  position: relative !important;
  z-index: 2 !important;
  transition: transform 0.3s ease !important;
  filter: drop-shadow(0 8px 20px rgba(108, 99, 255, 0.2)) !important;
}

.premium-product-card:hover .ppc-product-img {
  transform: scale(1.08) !important;
}

/* Shine effect */
.ppc-shine {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%
  ) !important;
  background-size: 200% 100% !important;
  z-index: 1 !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.premium-product-card:hover .ppc-shine {
  opacity: 1 !important;
  animation: card-shine 0.6s ease forwards !important;
}

@keyframes card-shine {
  from { background-position: 200% 0; }
  to   { background-position: -100% 0; }
}

/* Overlay link */
.ppc-overlay-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
}

/* Card body */
.ppc-body {
  padding: 20px 22px 22px !important;
}

/* Category badge */
.ppc-category {
  display: inline-block !important;
  background: var(--accent-light) !important;
  color: var(--accent-dark) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 4px 12px !important;
  border-radius: 100px !important;
  margin-bottom: 12px !important;
}

/* Product name */
.ppc-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-1) !important;
  line-height: 1.5 !important;
  margin-bottom: 14px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Divider */
.ppc-body::before {
  display: none !important;
}

/* Price */
.ppc-price {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--accent) !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.ppc-price .woocommerce-Price-currencySymbol {
  font-size: 14px !important;
  font-weight: 600 !important;
  opacity: 0.7 !important;
  margin-left: 2px !important;
}

/* Stock status */
.ppc-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--green) !important;
  background: var(--green-bg) !important;
  padding: 5px 12px !important;
  border-radius: 100px !important;
  margin-bottom: 16px !important;
}

.ppc-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--green) !important;
  animation: dot-pulse 1.8s infinite !important;
  flex-shrink: 0 !important;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Add to Cart button */
.ppc-btn.btn,
a.ppc-btn,
.ppc-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 13px 20px !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3) !important;
  position: relative !important;
  z-index: 6 !important;
  letter-spacing: 0.02em !important;
}

.ppc-btn:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.45) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #7c75ff 0%, #6366f1 100%) !important;
}

.ppc-btn:active {
  transform: scale(0.98) !important;
}

/* ════════════════════════════════════
   PAGINATION
════════════════════════════════════ */
.shop-pagination {
  margin-top: 32px !important;
}

.shop-pagination .page-numbers {
  display: flex !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  justify-content: center !important;
}

.shop-pagination .page-numbers li a,
.shop-pagination .page-numbers li span {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--border) !important;
  background: var(--card-bg) !important;
  color: var(--text-2) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.shop-pagination .page-numbers li .current,
.shop-pagination .page-numbers li a:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35) !important;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 220px 1fr !important;
    gap: 20px !important;
    padding: 24px 16px !important;
  }

  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr !important;
    padding: 16px 12px !important;
  }

  .shop-sidebar {
    position: static !important;
  }

  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .ppc-header {
    min-height: 140px !important;
    padding: 20px !important;
  }

  .ppc-product-img {
    width: 80px !important;
    height: 80px !important;
  }

  .ppc-body {
    padding: 14px 16px 16px !important;
  }

  .ppc-name {
    font-size: 13px !important;
  }

  .ppc-price {
    font-size: 18px !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  ul.products {
    grid-template-columns: 1fr !important;
    max-width: 360px !important;
    margin: 0 auto !important;
  }

  .shop-toolbar .shop-results {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .woocommerce-ordering select.orderby {
    width: 100% !important;
  }
}
/* تیره تر کردن بک گراند هیرو */

.hero-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(5,0,20,.45);
    z-index:1;
}

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

/* عنوان اصلی */

.hero-title{
    color:#ffffff !important;
    text-shadow:
        0 2px 10px rgba(0,0,0,.5),
        0 0 30px rgba(139,92,246,.3);
}

/* متن زیر عنوان */

.hero-desc{
    color:rgba(255,255,255,.85) !important;
    font-size:18px;
    line-height:1.8;
}

/* آمار */

.stat-number{
    color:#fff !important;
}

.stat-label{
    color:rgba(255,255,255,.7) !important;
}

/* دکمه سفید خراب */

.hero-actions .btn-outline{
    background:rgba(255,255,255,.08) !important;
    border:1px solid rgba(255,255,255,.2) !important;
    color:#fff !important;
    backdrop-filter:blur(20px);
}

.hero-actions .btn-outline:hover{
    background:rgba(255,255,255,.15) !important;
}

/* کارت های شناور */

.hero-float-card{
    background:rgba(20,15,45,.75) !important;
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(20px);
}

.float-card-title{
    color:#fff;
}

.float-card-sub{
    color:rgba(255,255,255,.65);
}
/* =========================================
   PREMIUM CUSTOMER DASHBOARD UI (LIGHT/MODERN)
========================================= */

.bd-customer-wrap {
    font-family: 'Inter', -apple-system, sans-serif !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* هدر داشبورد */
.bd-customer-header {
    text-align: center !important;
    margin-bottom: 35px !important;
}

.bd-customer-header h2 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
}

.bd-customer-header p {
    color: #64748b !important;
    font-size: 15px !important;
}

/* =========================================
   کارت‌های آمار (Stats)
========================================= */
.bd-customer-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.bd-cstat {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 20px !important;
    padding: 25px !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease !important;
}

.bd-cstat:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08) !important;
    border-color: #e0e7ff !important;
}

.bd-cstat-num {
    display: block !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 10px !important;
}

.bd-cstat-label {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* =========================================
   لیست سفارشات (Accordion Cards)
========================================= */
.bd-customer-orders {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.bd-corder-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

/* حالت باز شده سفارش */
.bd-corder-card.expanded {
    border-color: #a5b4fc !important;
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.1) !important;
}

.bd-corder-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 25px !important;
    cursor: pointer !important;
    background: #ffffff !important;
    transition: background 0.3s ease !important;
}

.bd-corder-header:hover {
    background: #f8fafc !important;
}

.bd-corder-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 100px !important;
}

.bd-corder-id {
    font-weight: 900 !important;
    color: #0f172a !important;
    font-size: 16px !important;
}

.bd-corder-date {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
}

.bd-corder-center {
    flex-grow: 1 !important;
    padding: 0 20px !important;
}

.bd-corder-product {
    font-weight: 700 !important;
    color: #334155 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bd-corder-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.bd-corder-total {
    font-weight: 900 !important;
    color: #10b981 !important; /* رنگ سبز برای قیمت */
    font-size: 16px !important;
}

/* انیمیشن فلش (Chevron) */
.bd-corder-chevron {
    color: #94a3b8 !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bd-corder-card.expanded .bd-corder-chevron {
    transform: rotate(180deg) !important;
    color: #6366f1 !important;
}

/* =========================================
   محتوای داخل سفارش (پیام ها و فرم)
========================================= */
.bd-corder-body {
    display: none !important; /* مخفی در حالت عادی */
    padding: 0 25px 25px 25px !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #fcfcfd !important;
}

.bd-corder-card.expanded .bd-corder-body {
    display: block !important; /* نمایش در حالت کلیک شده */
    animation: slideDown 0.4s ease forwards !important;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* فرم ارسال پیام چت‌مانند */
.bd-request-form h4 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 20px 0 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bd-request-input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 10px !important;
    transition: all 0.3s ease !important;
}

.bd-request-input-wrap:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

.bd-request-textarea {
    flex-grow: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 14px !important;
    min-height: 48px !important;
    max-height: 150px !important;
    resize: vertical !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: #334155 !important;
    outline: none !important;
}

.bd-request-textarea::placeholder {
    color: #cbd5e1 !important;
}

/* دکمه ارسال استایل تلگرام/مدرن */
.bd-request-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
}

.bd-request-btn:hover {
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35) !important;
}

/* ریسپانسیو (موبایل) */
@media (max-width: 768px) {
    .bd-corder-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .bd-corder-center { padding: 0 !important; width: 100% !important; }
    .bd-corder-right { width: 100% !important; justify-content: space-between !important; margin-top: 5px !important; }
}
/* =========================================
   PREMIUM CHAT SECTION UI (Telegram Style)
========================================= */

/* باکس کلی بخش چت */
.bd-chat-section {
    background: #f8fafc !important; /* بک‌گراند خاکستری ملایم برای تمایز بخش چت */
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* عنوان بخش چت */
.bd-chat-section h4 {
    text-align: center !important;
    margin: 0 0 15px 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* ساختار کلی هر پیام */
.bd-msg {
    display: flex !important;
    width: 100% !important;
    margin-bottom: 5px !important;
}

/* =========================================
   پیام‌های مشتری (سمت راست - رنگی)
========================================= */
.bd-msg-customer {
    justify-content: flex-end !important; /* چسبیدن به راست */
}

.bd-msg-customer .bd-msg-bubble {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
    /* گوشه پایین سمت راست تیزتر برای حالت دم پیام */
    border-radius: 20px 20px 4px 20px !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.25) !important;
}

.bd-msg-customer .bd-msg-sender {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bd-msg-customer .bd-msg-time {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bd-msg-customer .bd-msg-subject {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* =========================================
   پیام‌های مدیر/فروشگاه (سمت چپ - سفید)
========================================= */
.bd-msg-admin {
    justify-content: flex-start !important; /* چسبیدن به چپ */
}

.bd-msg-admin .bd-msg-bubble {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    /* گوشه پایین سمت چپ تیزتر */
    border-radius: 20px 20px 20px 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.bd-msg-admin .bd-msg-sender {
    color: #6366f1 !important; /* اسم ادمین با رنگ برند */
}

.bd-msg-admin .bd-msg-time {
    color: #94a3b8 !important;
}

.bd-msg-admin .bd-msg-subject {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* =========================================
   استایل‌های مشترک حباب پیام (Bubble)
========================================= */
.bd-msg-bubble {
    max-width: 80% !important; /* پیام کل صفحه رو پر نکنه */
    min-width: 120px !important;
    padding: 12px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

/* فرستنده */
.bd-msg-sender {
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
}

/* موضوع (اگر وجود داشت) */
.bd-msg-subject {
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
    border-bottom: 1px dashed;
    padding-bottom: 6px !important;
}

/* متن پیام */
.bd-msg-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    word-break: break-word !important; /* کلمات طولانی بیرون نزنن */
    margin-bottom: 4px !important;
}

/* زمان پیام */
.bd-msg-time {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-align: right !important;
    margin-top: 4px !important;
}
/* ===== Fix layout overflow & alignment for single product ===== */

/* پایه: جلوگیری از سرریز افقی */
.beiten-single-product-container,
.beiten-single-product-container * {
    box-sizing: border-box;
}
.beiten-single-product-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* ستون‌بندی اصلی: تصویر | جزئیات */
.beiten-product-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr); /* minmax(0,..) سرریز را می‌گیرد */
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* ستون گالری تصویر */
.beiten-product-gallery-column {
    min-width: 0;
}
.beiten-product-gallery-column .product-gallery-main img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ستون جزئیات — مهم‌ترین فیکس: min-width:0 */
.beiten-product-summary-column {
    min-width: 0;
    width: 100%;
}

/* هدر عنوان + دکمه پشتیبانی در یک ردیف */
.product-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.product-summary-header .product-title {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.3;
    overflow-wrap: anywhere; /* عنوان طولانی بشکند نه اینکه سرریز کند */
    flex: 1 1 60%;
    min-width: 0;
}
.product-summary-header .support-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* باکس توضیحات کوتاه و قیمت ویژه — نگذار از ستون بیرون بزند */
.product-short-description,
.product-short-description > div {
    width: 100%;
    max-width: 100%;
}
.product-short-description * {
    max-width: 100%;
}

/* بخش اکشن‌ها: گارانتی + فرم خرید */
.product-actions-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 20px;
    width: 100%;
}
.product-guarantees-sidebar { min-width: 0; }
.product-guarantees-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-guarantees-sidebar li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* قیمت + تعداد + دکمه افزودن به سبد */
.product-cart-form-container { min-width: 0; }
.product-price-display {
    margin-bottom: 12px;
}
.product-price-display .price-value {
    font-size: 22px;
    font-weight: 800;
    color: #da0f32;
}
.product-cart-form-container form.cart {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.product-cart-form-container .quantity .qty {
    width: 64px;
    height: 46px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.product-cart-form-container .single_add_to_cart_button {
    flex: 1 1 auto;
    min-height: 46px;
}


/* =========================================
   PREMIUM SINGLE PRODUCT PAGE UI
========================================= */

/* چیدمان کلی صفحه محصول (گرید دو ستونه) */
.beiten-product-detail-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-bottom: 50px !important;
    align-items: flex-start !important;
}

.beiten-product-gallery-column {
    flex: 1 1 40% !important;
    max-width: 45% !important;
}

.beiten-product-summary-column {
    flex: 1 1 50% !important;
    min-width: 300px !important;
}

/* =========================================
   گالری و تصویر محصول
========================================= */
.product-gallery-main {
    background: #f8fafc !important;
    border-radius: 24px !important;
    padding: 30px !important;
    text-align: center !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.3s ease !important;
}

.product-gallery-main:hover {
    transform: translateY(-5px) !important;
}

.product-gallery-main img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)) !important;
}



/* =========================================
   بخش فرم خرید و گارانتی‌ها
========================================= */
.product-actions-wrapper {
    display: flex !important;
    gap: 20px !important;
    align-items: stretch !important;
}

/* سایدبار گارانتی (Instant Delivery / 24/7 Support) */
.product-guarantees-sidebar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px 15px !important;
    flex: 0 0 140px !important;
}

.product-guarantees-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.product-guarantees-sidebar li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
}

.guarantee-icon {
    color: #10b981 !important; /* سبز موفقیت */
    background: #d1fae5 !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
}

/* فرم افزودن به سبد خرید */
.product-cart-form-container {
    flex-grow: 1 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.product-price-display {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.product-price-display .price-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

.product-price-display .price-value .amount {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}

/* استایل دکمه سبد خرید ووکامرس */
form.cart {
    display: flex !important;
    gap: 15px !important;
    margin: 0 !important;
}

form.cart .quantity {
    margin: 0 !important;
}

form.cart input.qty {
    width: 70px !important;
    height: 50px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    padding: 0 !important;
}

form.cart input.qty:focus {
    border-color: #6366f1 !important;
    outline: none !important;
}

form.cart button.single_add_to_cart_button {
    flex-grow: 1 !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    height: 50px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    padding: 0 20px !important;
}

form.cart button.single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
}

/* =========================================
   تب‌های محصول (Product Tabs)
========================================= */
.product-tabs-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

.product-tabs-header ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: flex !important;
    gap: 10px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    overflow-x: auto !important; /* اسکرول افقی در موبایل */
    scrollbar-width: none !important;
}

.product-tabs-header ul::-webkit-scrollbar {
    display: none !important;
}

.product-tabs-header li {
    margin: 0 !important;
}

.product-tabs-header li a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important; /* اتصال به خط پایین */
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.product-tabs-header li.is-active a,
.product-tabs-header li a:hover {
    color: #6366f1 !important;
    border-bottom-color: #6366f1 !important;
}

/* مخفی کردن تایتل تکراری داخل تب‌ها */
.tab-title {
    display: none !important;
}

/* =========================================
   ریسپانسیو موبایل
========================================= */
@media (max-width: 768px) {
    .beiten-product-gallery-column,
    .beiten-product-summary-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    .product-actions-wrapper {
        flex-direction: column !important;
    }
    
    .product-guarantees-sidebar {
        flex: auto !important;
        width: 100% !important;
    }
    
    .product-guarantees-sidebar ul {
        flex-direction: row !important;
        justify-content: space-around !important;
    }
    
    .product-summary-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}
/* =========================================
   1. BREADCRUMBS (مسیرنما)
========================================= */
.beiten-breadcrumb {
    margin-bottom: 30px !important;
    padding: 12px 20px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
}

.beiten-breadcrumb ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}

.beiten-breadcrumb li {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.beiten-breadcrumb li:not(:last-child)::after {
    content: "/" !important;
    margin-left: 10px !important;
    color: #cbd5e1 !important;
    font-weight: 400 !important;
}

.beiten-breadcrumb a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.beiten-breadcrumb a:hover {
    color: #6366f1 !important;
}

.beiten-breadcrumb li.is-active a {
    color: #0f172a !important;
    font-weight: 800 !important;
    pointer-events: none !important; /* غیرفعال کردن کلیک روی صفحه فعلی */
}

/* =========================================
   2. MAIN LAYOUT (چیدمان دو ستونه)
========================================= */
.beiten-product-detail-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-bottom: 50px !important;
    align-items: flex-start !important;
}

.beiten-product-gallery-column {
    width: 42% !important;
    position: sticky !important;
    top: 30px !important; /* ثابت ماندن عکس موقع اسکرول */
}

.beiten-product-summary-column {
    width: calc(58% - 40px) !important;
}

.product-gallery-main {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 40px !important;
    text-align: center !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-gallery-main img {
    max-width: 100% !important;
    height: auto !important;
    transition: transform 0.4s ease !important;
}

.product-gallery-main:hover img {
    transform: scale(1.05) !important;
}

/* =========================================
   3. PRODUCT HEADER (عنوان و ساپورت)
========================================= */
.product-summary-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 12px !important;
}

.product-title {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.support-btn {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.support-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.product-category-meta {
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin-bottom: 25px !important;
    display: block !important;
}

.product-category-meta a {
    color: #6366f1 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* =========================================
   4. ADD TO CART & GUARANTEES (بخش پایین)
========================================= */
.product-actions-wrapper {
    display: flex !important;
    gap: 20px !important;
    margin-top: 30px !important;
    align-items: stretch !important; /* هم ارتفاع شدن باکس‌ها */
}

/* باکس گارانتی (سمت چپ) */
.product-guarantees-sidebar {
    width: 130px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 20px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.product-guarantees-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.product-guarantees-sidebar li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
}

.guarantee-icon {
    color: #10b981 !important;
    background: #d1fae5 !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
}

/* باکس فرم خرید (سمت راست) */
.product-cart-form-container {
    flex-grow: 1 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.product-price-display {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px dashed #f1f5f9 !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

.product-price-display .price-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

.product-price-display .price-value .amount {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}

/* دکمه و انتخاب تعداد */
form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
}

form.cart .quantity {
    margin: 0 !important;
}

form.cart input.qty {
    width: 65px !important;
    height: 52px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

form.cart input.qty:focus {
    border-color: #a855f7 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1) !important;
}

form.cart button.single_add_to_cart_button {
    flex-grow: 1 !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3) !important;
}

form.cart button.single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4) !important;
}

/* =========================================
   5. RESPONSIVE MOBILE
========================================= */
@media (max-width: 768px) {
    .beiten-product-gallery-column,
    .beiten-product-summary-column {
        width: 100% !important;
    }
    
    .beiten-product-gallery-column {
        position: relative !important;
        top: 0 !important;
    }
    
    .product-actions-wrapper {
        flex-direction: column !important;
    }
    
    .product-guarantees-sidebar {
        width: 100% !important;
        padding: 15px !important;
    }
    
    .product-guarantees-sidebar ul {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 30px !important;
    }
}
/* فراخوانی فونت‌ها از CDN */
/* [UPGRADE] invalid mid-file @import (browsers ignore it) — Roboto is now aliased locally in fonts.css
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap'); */
/* [UPGRADE] mid-file @import is invalid CSS and ignored by browsers — font is self-hosted in assets/fonts/fonts.css
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/yekan-bakh@v0.2.0/Yekan-Bakh-font-face.css'); */

/* اعمال روی سایت */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, textarea, select, .bd-msg-text, .product-title {
    font-family: 'Roboto', 'Yekan Bakh', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif !important;
}
/* =========================================
   PREMIUM SHOP PAGE LAYOUT
========================================= */

/* ساختار کلی صفحه فروشگاه */
.shop-layout {
    display: flex !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
    align-items: flex-start !important;
}

/* =========================================
   سایدبار (Sidebar)
========================================= */
.shop-sidebar {
    width: 280px !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 20px !important; /* ثابت موندن سایدبار موقع اسکرول */
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    z-index: 10 !important;
}

.shop-sidebar .widget {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.widget-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #0f172a !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
}

/* فرم جستجو در سایدبار */
.woocommerce-product-search {
    position: relative !important;
    display: flex !important;
}

.woocommerce-product-search input.search-field {
    width: 100% !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 15px 12px 40px !important; /* فضای ایکون */
    font-size: 13px !important;
    outline: none !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
}

.woocommerce-product-search input.search-field:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1) !important;
}

.woocommerce-product-search button {
    position: absolute !important;
    left: 10px !important; /* سمت چپ برای سایت فارسی */
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
}

/* نمادهای اعتماد سایدبار */
.trust-badges {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #475569 !important;
}

.trust-item svg {
    background: #e0e7ff !important;
    padding: 6px !important;
    border-radius: 10px !important;
    width: 34px !important;
    height: 34px !important;
    color: #4f46e5 !important;
    flex-shrink: 0 !important;
}

/* =========================================
   محتوای اصلی و نوار ابزار (Toolbar)
========================================= */
.shop-content {
    flex-grow: 1 !important;
    width: calc(100% - 310px) !important;
}

.shop-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff !important;
    padding: 15px 25px !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.shop-results {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.woocommerce-result-count {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 700 !important;
}

/* دراپ‌داون مرتب‌سازی */
.woocommerce-ordering select {
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    padding: 10px 15px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.woocommerce-ordering select:focus {
    border-color: #6366f1 !important;
}

/* دکمه‌های تغییر ویو (گرید/لیست) */
.shop-view-toggle {
    display: flex !important;
    gap: 8px !important;
}

.view-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    display: flex !important;
    transition: all 0.3s ease !important;
}

.view-btn.active, .view-btn:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 4px 10px rgba(99,102,241,0.2) !important;
}

/* =========================================
   شبکه محصولات (Product Grid)
========================================= */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.products li.product {
    margin: 0 !important; /* ریست کردن استایل‌های پیش‌فرض ووکامرس */
    width: 100% !important;
    clear: none !important;
}

/* =========================================
   ریسپانسیو (موبایل و تبلت)
========================================= */
@media (max-width: 992px) {
    .shop-layout {
        flex-direction: column !important;
    }
    
    .shop-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .shop-sidebar .widget {
        flex: 1 1 300px !important;
    }
    
    .shop-content {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .shop-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .shop-results {
        justify-content: space-between !important;
    }
    
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
}
/* =========================================
   PREMIUM TRUST BADGES (SIDEBAR)
========================================= */

.trust-badges {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
}

.trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
    background: #f8fafc !important; /* پس‌زمینه خیلی ملایم */
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: default !important;
}

/* افکت شناور شدن موقع هاور */
.trust-item:hover {
    background: #ffffff !important;
    border-color: #c7d2fe !important; /* حاشیه بنفش ملایم */
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.1) !important;
}

/* استایل آیکون‌ها */
.trust-item svg {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe) !important;
    color: #4f46e5 !important; /* رنگ برند */
    padding: 10px !important;
    border-radius: 12px !important;
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* چرخش و بزرگ‌نمایی آیکون موقع هاور */
.trust-item:hover svg {
    transform: scale(1.1) rotate(5deg) !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
}

/* استایل متن */
.trust-item span {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    letter-spacing: -0.3px !important;
}
/* 1. فراخوانی فونت انگلیسی برای اعداد و حروف لاتین */
/* [UPGRADE] mid-file @import is invalid CSS and ignored by browsers — font is self-hosted in assets/fonts/fonts.css
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap'); */

/* 2. فراخوانی فونت فارسی وزیرمتن (نسخه استاندارد بدون تبدیل عدد) */
/* [UPGRADE] mid-file @import is invalid CSS and ignored by browsers — font is self-hosted in assets/fonts/fonts.css
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v3.3.0/Vazirmatn-font-face.css'); */

/* 3. اعمال ترکیب فونت‌ها روی تمام متن‌های سایت */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, textarea, select, li, td, th, label {
    font-family: 'Inter', 'Vazirmatn', -apple-system, Tahoma, sans-serif !important;
}

/* 4. اجبار ۱۰۰٪ برای انگلیسی شدن قیمت‌ها و اعداد ووکامرس */
.amount, .price, .woocommerce-Price-amount, .woocommerce-Price-currencySymbol, .bd-cstat-num, input[type="number"], .bd-corder-id, .bd-stat-number {
    font-family: 'Inter', sans-serif !important;
    direction: ltr !important;
    display: inline-block !important;
}
/* =========================================
   FIX SQUISHED PRODUCT CARDS
========================================= */

/* 1. اصلاح گرید کلی محصولات برای جلوگیری از له شدن */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; /* حداقل عرض 250 پیکسل برای هر کارت */
    gap: 25px !important;
    width: 100% !important;
}

ul.products li.product, 
.premium-product-card-wrap {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 2. استایل و فرم‌بندی اصلی خود کارت */
.premium-product-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important; /* هم‌تراز کردن ارتفاع همه کارت‌ها */
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.premium-product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08) !important;
    border-color: #e0e7ff !important;
}

/* 3. باکس عکس محصول */
.ppc-header {
    width: 100% !important;
    height: 200px !important; /* ارتفاع ثابت عکس */
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.ppc-product-img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.premium-product-card:hover .ppc-product-img {
    transform: scale(1.08) !important;
}

/* 4. بدنه و متون داخل کارت */
.ppc-body {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; /* هل دادن قیمت و دکمه به پایین کارت */
    text-align: right !important; /* راست‌چین کردن متون */
    direction: rtl !important;
    box-sizing: border-box !important;
    z-index: 2 !important; /* رفع باگ کلیک دکمه */
}

.ppc-category {
    font-size: 11px !important;
    color: #6366f1 !important;
    font-weight: 900 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
}

.ppc-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.6 !important;
    margin: 0 0 10px 0 !important;
    /* محدود کردن اسم طولانی به دو خط */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ppc-desc {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 0 15px 0 !important;
    /* محدود کردن توضیحات طولانی به دو خط */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 5. قیمت و وضعیت موجودی */
.ppc-price {
    margin-top: auto !important; /* همیشه به پایین می‌چسبد */
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #10b981 !important;
    direction: ltr !important; /* چپ‌چین شدن قیمت */
    text-align: left !important;
    margin-bottom: 10px !important;
}

.ppc-status {
    font-size: 12px !important;
    color: #475569 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 15px !important;
}

/* 6. دکمه افزودن به سبد */
.ppc-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important; /* قابل کلیک بودن */
}

/* مخفی کردن دکمه پیش‌نمایش اضافه */
.ppc-quick-view {
    display: none !important;
}
/* =========================================
   ULTIMATE SHOP GRID FIX (رفع له شدن کارت‌ها)
========================================= */

/* 1. تضمین باز شدن کامل عرض بخش محصولات */
.shop-layout {
    width: 100% !important;
}

.shop-content {
    flex: 1 !important; /* پر کردن تمام فضای باقیمانده */
    min-width: 0 !important; /* جلوگیری از باگ‌های فلکس‌باکس */
    width: 100% !important;
}

/* 2. کشتن استایل‌های مزاحم ووکامرس (مهم‌ترین بخش) */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.shop-content ul.products::before,
.shop-content ul.products::after {
    display: none !important; /* حذف float clearing */
}

/* 3. شبکه بندی اجباری */
.woocommerce ul.products,
.shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; /* حداقل عرض 280 پیکسل برای هر کارت */
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. آزاد کردن کارت‌ها از قفس عرض‌های درصدی ووکامرس */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.shop-content ul.products li.product,
li.premium-product-card-wrap.product {
    float: none !important;
    width: 100% !important; /* پر کردن کامل سلولِ گرید */
    max-width: 100% !important;
    margin: 0 !important;
    clear: none !important;
    display: block !important;
}
/* =========================================
   PREMIUM SECTION HEADER
========================================= */

.section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 40px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
    direction: rtl !important;
}

.section-header > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.section-badge {
    display: inline-block !important;
    align-self: flex-start !important;
    background: #e0e7ff !important;
    color: #4f46e5 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
}

.section-title {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.section-desc {
    font-size: 15px !important;
    color: #64748b !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

.section-header .btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.section-header .btn-outline:hover {
    border-color: #6366f1 !important;
    background: #6366f1 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2) !important;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 25px !important;
    }
    
    .section-title {
        font-size: 26px !important;
    }
    
    .section-header .btn-outline {
        width: 100% !important;
    }
}
/* =========================================
   PREMIUM LOGIN & REGISTER PANEL (DARK THEME)
========================================= */

/* تنظیم ساختار کلی و وسط‌چین کردن پنل */
#beiten-auth-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80vh !important;
    padding: 20px !important;
    position: relative !important;
}

/* استایل کارت اصلی لاگین */
.beiten-auth-card {
    width: 100% !important;
    max-width: 420px !important;
    background: #0f172a !important; /* رنگ دارک مینیمال */
    border: 1px solid #1e293b !important;
    border-radius: 24px !important;
    padding: 40px 30px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

/* هدر لاگین */
.beiten-auth-header {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.beiten-auth-title {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 15px 0 5px 0 !important;
}

.beiten-auth-subtitle {
    color: #94a3b8 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* =========================================
   رفع باگ فیلدهای ورودی (اصلی‌ترین قسمت)
========================================= */
.beiten-auth-field {
    margin-bottom: 20px !important;
    text-align: left !important;
    direction: ltr !important; /* اجبار به چپ‌چین برای ایمیل و پسورد */
}

.beiten-auth-field label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    margin-bottom: 8px !important;
}

.beiten-auth-input-wrap {
    position: relative !important; /* بسیار مهم برای تنظیم آیکون‌ها */
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* آیکون سمت چپ (ایمیل/یوزرنیم) */
.beiten-auth-input-wrap .beiten-auth-icon {
    position: absolute !important;
    left: 15px !important;
    color: #64748b !important;
    pointer-events: none !important; /* کلیک از روی آیکون رد می‌شود! */
    z-index: 5 !important;
}

/* فیلد ورودی متن و رمز عبور */
.beiten-auth-input-wrap input {
    width: 100% !important;
    height: 54px !important;
    background: #1e293b !important;
    border: 2px solid #334155 !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    padding-left: 45px !important; /* فضا دادن برای آیکون چپ */
    padding-right: 45px !important; /* فضا دادن برای دکمه چشم راست */
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.beiten-auth-input-wrap input:focus {
    border-color: #6366f1 !important;
    background: #0f172a !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

/* دکمه نمایش رمز عبور (رفع باگ مزاحمت کلیک) */
.beiten-auth-toggle-pass {
    position: absolute !important;
    right: 12px !important; /* ثابت کردن در سمت راست */
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important; /* بالاتر از اینپوت برای کلیک شدن */
    transition: color 0.3s ease !important;
}

.beiten-auth-toggle-pass:hover {
    color: #a855f7 !important;
}

/* =========================================
   دکمه‌ها و چک‌باکس
========================================= */
.beiten-auth-row {
    margin-bottom: 25px !important;
}

.beiten-auth-check {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

/* دکمه اصلی ورود / ثبت‌نام */
.beiten-auth-btn {
    width: 100% !important;
    height: 54px !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25) !important;
}

.beiten-auth-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.4) !important;
}

/* استایل فوتر کارت (بخش تغییر بین لاگین و ثبت‌نام) */
.beiten-auth-footer {
    margin-top: 30px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
}

.beiten-auth-switch {
    background: transparent !important;
    border: none !important;
    color: #a855f7 !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

.beiten-auth-switch:hover {
    color: #6366f1 !important;
    text-decoration: underline !important;
}
/* پاکسازی کامل استایل‌های قبلی برای این صفحه */
.page-id-XXX #beiten-auth-modern { /* اگر ID برگه را داری جای XXX بگذار */
    margin: 0 !important;
    padding: 0 !important;
}

/* اصلاح چیدمان */
.auth-split-container {
    display: flex !important;
    width: 100% !important;
    max-width: 1080px !important;
    height: 650px !important; /* ارتفاع ثابت برای جلوگیری از به‌هم‌ریختگی */
    background: #ffffff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* تنظیم دقیق فرم سمت چپ */
.auth-form-side {
    width: 50% !important;
    background: #ffffff !important;
    padding: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* تنظیم گرافیک سمت راست */
.auth-visual-side {
    width: 50% !important;
    background: linear-gradient(135deg, #4f6af6, #6c3fff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* تنظیم کلی کانتینر */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #eef2ff; /* رنگ پس‌زمینه ملایم */
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* اصلاح چیدمان سمت چپ */
.auth-form-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* اصلاح سمت راست (گرافیک) */
.auth-visual-side {
    flex: 1;
    background: linear-gradient(135deg, #4f6af6, #6c3fff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ریسپانسیو (بسیار مهم) */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column; /* در موبایل فرم می‌آید بالا */
    }
    .auth-visual-side {
        display: none; /* در موبایل گرافیک مخفی شود تا فضا باز شود */
    }
    .auth-form-side {
        width: 100%;
        padding: 30px;
    }
}

/* تنظیمات داخل فرم برای جلوگیری از بهم ریختگی */
.auth-form-inner form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form-inner input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
/* Full-screen Auth Container */
#beiten-auth-modern {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: flex !important;
    background: #fff !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.auth-split-container {
    display: flex !important;
    width: 100% !important;
    min-height: 100% !important;
}

/* Make both sides take full height */
.auth-form-side, .auth-visual-side {
    min-height: 100vh !important;
}

/* Improve Input Designs */
.auth-input-wrapper {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    background: #f9fafb !important;
    transition: all 0.3s ease !important;
}

.auth-input-wrapper:focus-within {
    border-color: #6366f1 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

.auth-input-wrapper input {
    width: 100% !important;
}

/* Improve Button Design */
.auth-submit-btn {
    padding: 16px 28px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.3s ease !important;
}

.auth-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.4) !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}
#beiten-auth-modern {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    z-index: 99999 !important;
}

.auth-split-container {
    display: flex !important;
    flex-direction: row !important;
    width: 90% !important;
    max-width: 1000px !important;
    height: 650px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

.auth-form-side {
    width: 50% !important;
    padding: 40px 50px !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    direction: rtl !important;
}

.auth-visual-side {
    width: 50% !important;
    background: linear-gradient(135deg, #4f6af6, #6c3fff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#auth-register-form {
    display: none;
}

@media (max-width: 850px) {
    .auth-split-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 500px !important;
    }
    .auth-visual-side {
        display: none !important;
    }
    .auth-form-side {
        width: 100% !important;
    }
}
/* ===== BEITEN AUTH - FULL DESIGN ===== */
/* [UPGRADE] mid-file @import is invalid CSS and ignored by browsers — font is self-hosted in assets/fonts/fonts.css
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&display=swap'); */
html, body { font-family: 'DM Sans', sans-serif !important; background: #fff !important; overflow-x: hidden !important; }
#beiten-auth-modern { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 99999999 !important; display: flex !important; background: #fff !important; overflow: hidden !important; }
.auth-split-container { display: flex !important; width: 100% !important; height: 100% !important; }
.is-rtl .auth-split-container { flex-direction: row-reverse !important; }
.auth-form-side { width: 50% !important; height: 100% !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 60px 40px !important; position: relative !important; background: #fff !important; overflow-y: auto !important; }
.auth-top-bar { position: absolute !important; top: 28px !important; left: 40px !important; right: 40px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; z-index: 10 !important; }
.is-rtl .auth-top-bar { flex-direction: row-reverse !important; }
.auth-back-btn { width: 42px !important; height: 42px !important; border-radius: 50% !important; border: 1.5px solid #e5e7eb !important; background: #fff !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; color: #6b7280 !important; transition: all 0.2s !important; }
.auth-back-btn:hover { border-color: #6366f1 !important; color: #6366f1 !important; }
.auth-top-link { font-size: 14px !important; color: #6b7280 !important; display: flex !important; align-items: center !important; gap: 6px !important; }
.auth-top-link a { color: #6366f1 !important; font-weight: 700 !important; text-decoration: none !important; }
.auth-top-link a:hover { text-decoration: underline !important; }
.auth-header { margin-bottom: 36px !important; text-align: center !important; }
.auth-title { font-size: 40px !important; font-weight: 800 !important; color: #111827 !important; margin-bottom: 8px !important; }
.auth-subtitle { font-size: 15px !important; color: #6b7280 !important; }
.auth-form { display: flex !important; flex-direction: column !important; gap: 20px !important; max-width: 420px !important; width: 100% !important; }
.auth-input-group label { display: block !important; font-size: 13px !important; font-weight: 600 !important; color: #374151 !important; margin-bottom: 8px !important; }
.auth-input-wrapper { display: flex !important; align-items: center !important; border: 2px solid #e5e7eb !important; border-radius: 14px !important; padding: 14px 18px !important; background: #f9fafb !important; transition: all 0.2s !important; }
.auth-input-wrapper:focus-within { border-color: #6366f1 !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(99,102,241,0.12) !important; }
.auth-icon { color: #9ca3af !important; margin-right: 12px !important; display: flex !important; flex-shrink: 0 !important; }
.auth-input-wrapper:focus-within .auth-icon { color: #6366f1 !important; }
.is-rtl .auth-icon { margin-right: 0 !important; margin-left: 12px !important; }
.auth-input-wrapper input { flex: 1 !important; border: none !important; outline: none !important; background: transparent !important; font-size: 15px !important; color: #111827 !important; font-family: inherit !important; padding: 2px 0 !important; width: 100% !important; }
.auth-input-wrapper input::placeholder { color: #9ca3af !important; }
.auth-toggle-pass { background: none !important; border: none !important; color: #9ca3af !important; cursor: pointer !important; padding: 4px !important; display: flex !important; }
.auth-toggle-pass:hover { color: #6366f1 !important; }
.auth-options { display: flex !important; justify-content: space-between !important; align-items: center !important; font-size: 14px !important; }
.auth-checkbox { display: flex !important; align-items: center !important; gap: 8px !important; color: #6b7280 !important; cursor: pointer !important; font-size: 13px !important; }
.auth-checkbox input { accent-color: #6366f1 !important; width: 16px !important; height: 16px !important; }
.auth-forgot { color: #6366f1 !important; text-decoration: none !important; font-weight: 600 !important; font-size: 13px !important; }
.auth-forgot:hover { text-decoration: underline !important; }
.auth-submit-btn { width: 100% !important; padding: 16px 28px !important; border-radius: 14px !important; border: none !important; background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%) !important; color: white !important; font-size: 16px !important; font-weight: 700 !important; font-family: inherit !important; cursor: pointer !important; transition: all 0.2s !important; box-shadow: 0 4px 16px rgba(129,140,248,0.35) !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; margin-top: 6px !important; }
.auth-submit-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 24px rgba(129,140,248,0.5) !important; }
.auth-submit-row { display: flex !important; align-items: center !important; justify-content: center !important; gap: 14px !important; margin-top: 4px !important; }
.auth-or-divider { font-size: 13px !important; color: #9ca3af !important; }
.auth-social-btns { display: flex !important; gap: 10px !important; }
.social-btn { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 1.5px solid #e5e7eb !important; background: #fff !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; transition: all 0.2s !important; }
.social-btn:hover { border-color: #d1d5db !important; box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }
.auth-pass-reqs { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin-top: 10px !important; }
.req-item { font-size: 12px !important; color: #9ca3af !important; padding: 4px 12px !important; border-radius: 9999px !important; border: 1px solid #e5e7eb !important; background: #f9fafb !important; transition: all 0.2s !important; }
.req-item.met { color: #22c55e !important; border-color: #bbf7d0 !important; background: #f0fdf4 !important; }
.auth-strength-meter { width: 100% !important; height: 4px !important; background: #e5e7eb !important; border-radius: 2px !important; margin-top: 8px !important; overflow: hidden !important; }
.strength-bar { height: 100% !important; width: 0% !important; border-radius: 2px !important; transition: all 0.3s !important; }
.auth-switch-text { text-align: center !important; font-size: 14px !important; color: #6b7280 !important; margin-top: 20px !important; }
.switch-mode-btn { background: none !important; border: none !important; color: #6366f1 !important; font-weight: 600 !important; cursor: pointer !important; font-family: inherit !important; font-size: 14px !important; }
.switch-mode-btn:hover { text-decoration: underline !important; }
.auth-lang-selector { position: absolute !important; bottom: 28px !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; gap: 6px !important; font-size: 13px !important; font-weight: 600 !important; color: #6b7280 !important; cursor: pointer !important; padding: 6px 14px !important; border-radius: 10px !important; border: 1.5px solid #e5e7eb !important; background: #fff !important; }
.auth-lang-flag { font-size: 16px !important; }
.auth-visual-side { width: 50% !important; height: 100% !important; position: relative !important; overflow: hidden !important; display: flex !important; align-items: center !important; justify-content: center !important; background: linear-gradient(135deg, #4f6af6 0%, #6c3fff 50%, #3b82f6 100%) !important; }
.auth-visual-side::before { content: '' !important; position: absolute !important; top: -15% !important; right: -10% !important; width: 350px !important; height: 350px !important; background: rgba(96,165,250,0.25) !important; border-radius: 50% !important; filter: blur(50px) !important; }
.auth-visual-side::after { content: '' !important; position: absolute !important; bottom: -10% !important; left: -10% !important; width: 400px !important; height: 400px !important; background: rgba(139,92,246,0.2) !important; border-radius: 50% !important; filter: blur(50px) !important; }
.auth-visual-content { position: relative !important; z-index: 2 !important; display: flex !important; flex-direction: column !important; gap: 24px !important; align-items: center !important; }
.vc-card { background: rgba(255,255,255,0.15) !important; backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important; border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 22px !important; padding: 28px !important; box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important; animation: vcFloat 3s ease-in-out infinite !important; width: 220px !important; }
.vc-card:nth-child(2) { animation-delay: 0.5s !important; }
@keyframes vcFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.vc-inbox { text-align: center !important; }
.vc-inbox .vc-label { font-size: 11px !important; font-weight: 700 !important; color: #6ee7b7 !important; text-transform: uppercase !important; letter-spacing: 1px !important; margin-bottom: 4px !important; }
.vc-inbox .vc-number { font-size: 34px !important; font-weight: 800 !important; color: #fff !important; }
.vc-inbox .vc-chart { display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; margin-top: 16px !important; }
.vc-inbox .vc-dot { width: 18px !important; height: 18px !important; border-radius: 50% !important; box-shadow: 0 0 12px rgba(255,255,255,0.3) !important; }
.vc-data { width: 240px !important; }
.vc-data .vc-data-bar { height: 12px !important; border-radius: 6px !important; background: linear-gradient(90deg,#34d399,#3b82f6) !important; margin-bottom: 12px !important; }
.vc-data .vc-data-line { height: 8px !important; border-radius: 4px !important; background: rgba(255,255,255,0.3) !important; margin-bottom: 8px !important; }
.vc-data .vc-data-line:last-of-type { width: 65% !important; }
.vc-data .vc-data-title { font-size: 16px !important; font-weight: 700 !important; color: #fff !important; margin-top: 16px !important; margin-bottom: 6px !important; }
.vc-data .vc-data-desc { font-size: 13px !important; color: rgba(255,255,255,0.85) !important; line-height: 1.6 !important; }
.auth-notices { margin-bottom: 16px !important; width: 100% !important; max-width: 420px !important; }
.auth-notice { padding: 12px 16px !important; border-radius: 12px !important; font-size: 14px !important; margin-bottom: 10px !important; display: flex !important; align-items: center !important; gap: 8px !important; }
.auth-notice.error { background: #fef2f2 !important; color: #b91c1c !important; border: 1px solid #fecaca !important; }
.auth-notice.success { background: #f0fdf4 !important; color: #15803d !important; border: 1px solid #bbf7d0 !important; }
.auth-input-group.error .auth-input-wrapper { border-color: #ef4444 !important; }
.auth-success-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; background: rgba(255,255,255,0.92) !important; z-index: 99999 !important; display: flex !important; justify-content: center !important; align-items: center !important; opacity: 0 !important; visibility: hidden !important; transition: all 0.3s !important; }
.auth-success-overlay.active { opacity: 1 !important; visibility: visible !important; }
.auth-success-check { width: 80px !important; height: 80px !important; border-radius: 50% !important; background: #22c55e !important; color: white !important; display: flex !important; justify-content: center !important; align-items: center !important; transform: scale(0) !important; transition: transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275) !important; }
.auth-success-overlay.active .auth-success-check { transform: scale(1) !important; }
@media (max-width: 900px) {
  #beiten-auth-modern { position: fixed !important; height: 100vh !important; width: 100vw !important; }
  .auth-split-container { flex-direction: column !important; }
  .auth-visual-side { display: none !important; }
  .auth-form-side { width: 100% !important; padding: 80px 24px 40px !important; }
  .auth-top-bar { left: 20px !important; right: 20px !important; top: 20px !important; }
  .auth-lang-selector { position: relative !important; left: auto !important; transform: none !important; bottom: auto !important; margin-top: 24px !important; }
}

/* ==================================================
   بهینه‌سازی و دیزاین مدرن بخش وبلاگ (آخرین مقالات)
================================================== */

/* کانتینر اصلی بخش وبلاگ */
.container:has(.blog-grid) {
    padding: 60px 20px !important;
    background: #f8fafc !important; /* پس‌زمینه ملایم برای تمایز بخش */
    border-radius: 24px !important;
    margin: 40px auto !important;
}

/* هدر بخش (آخرین مقالات) */
.section-header {
    margin-bottom: 50px !important;
    text-align: center !important;
}

.section-badge {
    display: inline-block !important;
    background: #e0e7ff !important;
    color: #4f46e5 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    letter-spacing: 0.5px !important;
}

.section-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
}

.section-desc {
    color: #64748b !important;
    font-size: 16px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* شبکه گرید مقالات */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

/* کارت مقاله */
.blog-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f1f5f9 !important;
    height: 100% !important;
}

.blog-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1) !important;
    border-color: #e0e7ff !important;
}

.blog-card-link {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* بخش تصویر کارت */
.blog-card-image {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    background: #e2e8f0 !important;
    overflow: hidden !important;
}

.blog-thumb-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
}

.blog-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05) !important;
}

/* بدنه کارت مقاله */
.blog-card-body {
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* متای مقاله (تاریخ و دسته‌بندی) */
.blog-card-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 15px !important;
}

.blog-date {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.blog-category {
    background: #f1f5f9 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

/* عنوان مقاله */
.blog-card-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
    transition: color 0.3s ease !important;
}

.blog-card:hover .blog-card-title {
    color: #6366f1 !important;
}

/* چکیده مقاله */
.blog-card-excerpt {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

/* دکمه ادامه مطلب */
.blog-read-more {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #6366f1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: gap 0.3s ease !important;
}

.blog-card:hover .blog-read-more {
    gap: 12px !important;
}

.blog-read-more svg {
    transition: transform 0.3s ease !important;
}

.blog-card:hover .blog-read-more svg {
    transform: translateX(-3px) !important; /* حرکت فلش به سمت چپ در حالت فارسی */
}

/* دکمه مشاهده همه مقالات */
.blog-footer {
    margin-top: 20px !important;
}

.btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
    background: transparent !important;
    color: #6366f1 !important;
    border: 2px solid #6366f1 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.btn-outline:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2) !important;
}
/* ==================================================
   دیزاین مدرن فرم تماس با ما (بدون کد کوتاه Contact Form 7)
================================================== */

/* مخفی کردن متن خام شورت‌کد کانتکت فرم 7 در صورت عدم رندر */
.contact-form-card {
    font-size: 0 !important; /* مخفی کردن تکست خام مثل [contact-form-7...] */
}

/* برگرداندن فونت برای عناصر داخلی که باید دیده شوند */
.contact-form-card > * {
    font-size: 15px !important; 
}

/* استایل باکس اصلی فرم */
.contact-form-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f1f5f9 !important;
    direction: rtl !important;
}

/* عناوین فرم */
.contact-form-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
}

.contact-form-desc {
    color: #64748b !important;
    font-size: 15px !important;
    margin-bottom: 30px !important;
}

/* استایل لیبل‌ها (نام، ایمیل، و...) */
.contact-form-group label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
}

/* استایل فیلدهای ورودی (اینپوت‌ها و تکست‌اریا) */
.contact-custom-form input,
.contact-custom-form textarea {
    width: 100% !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

/* فوکوس روی فیلدها */
.contact-custom-form input:focus,
.contact-custom-form textarea:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* پِلِیس‌هولدر فیلدها */
.contact-custom-form input::placeholder,
.contact-custom-form textarea::placeholder {
    color: #94a3b8 !important;
}

/* فاصله‌گذاری بین فیلدها */
.contact-form-group {
    margin-bottom: 20px !important;
}

/* دکمه ارسال */
.contact-custom-form button[type="submit"] {
    width: 100% !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 18px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

.contact-custom-form button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3) !important;
}

/* چیدمان دو ستونه برای نام و ایمیل (گرید) */
.contact-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr !important; /* در موبایل تک ستونه شود */
        gap: 0 !important;
    }
    .contact-form-card {
        padding: 25px !important;
    }
}
/* ==================================================
   استایل دکمه‌های دسته‌بندی محصولات
================================================== */
.product-category-filters {
    display: flex !important;
    gap: 15px !important;
    margin-top: 25px !important;
    margin-bottom: 35px !important;
    justify-content: flex-start !important;
    direction: rtl !important;
}

.cat-filter-btn {
    background: #ffffff !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
}

.cat-filter-btn:hover {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    transform: translateY(-2px) !important;
}

.cat-filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.25) !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .product-category-filters {
        justify-content: center !important;
    }
}
/* ==================================================
   دیزاین مینیمال، اوپتیمایز و راست‌چین برای بخش آخرین مقالات (وبلاگ)
================================================== */

/* کانتینر اصلی بخش وبلاگ - مینیمال و راست‌چین */
.blog-section {
    padding: 50px 0 !important;
    background: #ffffff !important;
    direction: rtl !important;
}

/* هدر بخش - راست‌چین و جمع‌وجور */
.blog-section .section-header {
    text-align: right !important; /* راست‌چین کردن عنوان */
    margin-bottom: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* هم‌ترازی از راست */
}

.blog-section .section-badge {
    background: #eef2ff !important;
    color: #6366f1 !important;
    padding: 4px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.blog-section .section-title {
    font-size: 24px !important; /* کوچک‌تر کردن فونت عنوان */
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 5px 0 !important;
}

.blog-section .section-desc {
    font-size: 14px !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* گرید مقالات - متناسب و اوپتیمایز شده */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; /* اندازه منطقی کارت‌ها */
    gap: 20px !important;
}

/* کارت مقاله - مینیمال و بدون اضافات */
.blog-card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
}

.blog-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-3px) !important;
}

.blog-card-link {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* تصویر کارت - ارتفاع کمتر و استاندارد */
.blog-card-image {
    width: 100% !important;
    height: 180px !important; /* ارتفاع کمتر برای مینیمال شدن */
    background: #f8fafc !important;
    overflow: hidden !important;
    position: relative !important;
}

.blog-thumb-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    color: #cbd5e1 !important;
}

.blog-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03) !important;
}

/* بدنه کارت */
.blog-card-body {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* متا (تاریخ و دسته‌بندی) */
.blog-card-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.blog-date {
    font-size: 11px !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.blog-category {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6366f1 !important;
    background: #eef2ff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

/* عنوان مقاله */
.blog-card-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

/* چکیده مقاله - محدود شده به ۲ خط */
.blog-card-excerpt {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 0 15px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* فقط دو خط نمایش داده شود */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

/* لینک ادامه مطلب */
.blog-read-more {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #6366f1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: gap 0.3s ease !important;
    margin-top: auto !important;
}

.blog-card:hover .blog-read-more {
    gap: 8px !important;
}

/* فلش رو به چپ در نسخه فارسی */
.blog-read-more svg {
    transform: rotate(180deg) !important;
}

/* فوتر (دکمه مشاهده همه) */
.blog-section .blog-footer {
    text-align: right !important; /* قرارگیری در سمت راست */
    margin-top: 25px !important;
}

.blog-section .btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #6366f1 !important;
    background: transparent !important;
    border: 1px solid #c7d2fe !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.blog-section .btn-outline:hover {
    background: #eef2ff !important;
    border-color: #6366f1 !important;
}
.section-header.text-center {
    text-align: right !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.section-desc {
    margin-right: 0 !important;
    margin-left: auto !important;
}
/* ==================================================
   اصلاح باکس تصویر کارت محصولات
================================================== */

.premium-product-card .ppc-header {
    width: 100% !important;
    height: 200px !important; /* ارتفاع ثابت برای یکدست شدن کارت‌ها */
    background: #f8fafc !important; /* پس‌زمینه یکپارچه */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    position: relative !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.premium-product-card .ppc-header img.ppc-product-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* جلوگیری از کشیدگی و دفرمه شدن عکس */
    mix-blend-mode: multiply !important; /* حذف سفیدی دور عکس در صورت وجود */
    transition: transform 0.4s ease !important;
}

.premium-product-card:hover .ppc-header img.ppc-product-img {
    transform: scale(1.05) !important;
}
a[href*="instagram"],
.social-banner-instagram {
    display: none !important;
}
/* ==================================================
   دیزاین فرم متغیرها (انتخاب مدت زمان، قیمت و دکمه افزودن به سبد)
================================================== */

/* باکس اصلی فرم */
.woocommerce-cart-form-wrapper form.variations_form {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 25px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    margin-top: 20px !important;
    font-family: inherit !important;
    direction: rtl !important;
}

/* ساختار جدول متغیرها (حذف استایل‌های پیش‌فرض جدول) */
table.variations {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin-bottom: 20px !important;
}

table.variations th, 
table.variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: right !important;
    border: none !important;
}

/* لیبل انتخابگر (مثلا: مدت زمان) */
table.variations th.label label {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
    display: block !important;
}

/* فیلد انتخاب (Select Box) */
table.variations td.value select {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    appearance: none !important; /* حذف فلش پیش‌فرض مرورگر */
    -webkit-appearance: none !important;
    /* اضافه کردن فلش کاستوم متناسب با راست‌چین */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 15px center !important; /* فلش در سمت چپ */
    background-size: 12px auto !important;
    cursor: pointer !important;
}

table.variations td.value select:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* دکمه پاک کردن گزینه‌ها */
a.reset_variations {
    display: inline-block !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #ef4444 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: opacity 0.3s ease !important;
}

a.reset_variations:hover {
    opacity: 0.7 !important;
}

/* باکس توضیحات متغیر انتخاب شده */
.woocommerce-variation-description {
    background: #eef2ff !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    color: #4f46e5 !important;
    line-height: 1.6 !important;
    border-right: 4px solid #6366f1 !important;
}

.woocommerce-variation-description p {
    margin: 0 !important;
    font-weight: 600 !important;
}

/* قیمت متغیر */
.woocommerce-variation-price {
    margin-bottom: 25px !important;
    text-align: left !important; /* قیمت معمولاً چپ‌چین قشنگ‌تره، اگر خواستی right کن */
}

.woocommerce-variation-price .price {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #10b981 !important; /* رنگ سبز جذاب برای قیمت */
}

/* بخش تعداد و دکمه افزودن به سبد خرید */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 15px !important;
    align-items: stretch !important;
}

/* فیلد تعداد (Quantity) */
.woocommerce-variation-add-to-cart .quantity {
    flex: 0 0 80px !important;
}

.woocommerce-variation-add-to-cart .quantity input.qty {
    width: 100% !important;
    height: 100% !important;
    min-height: 56px !important;
    padding: 0 10px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    -moz-appearance: textfield !important; /* مخفی کردن فلش‌های عدد در فایرفاکس */
}

/* مخفی کردن فلش‌های بالا/پایین فیلد عدد در کروم */
.woocommerce-variation-add-to-cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-variation-add-to-cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.woocommerce-variation-add-to-cart .quantity input.qty:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
}

/* دکمه نهایی افزودن به سبد خرید */
button.single_add_to_cart_button {
    flex: 1 !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
}

button.single_add_to_cart_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35) !important;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 480px) {
    .woocommerce-variation-add-to-cart {
        flex-direction: column !important;
    }
    
    .woocommerce-variation-add-to-cart .quantity {
        flex: auto !important;
    }
    
    .woocommerce-variation-add-to-cart .quantity input.qty {
        height: 50px !important;
        min-height: 50px !important;
    }
    
    button.single_add_to_cart_button {
        min-height: 55px !important;
    }
}
/* ==================================================
   دیزاین بزرگ و مدرن برای بخش قیمت‌ها
================================================== */

/* استایل عدد اصلی قیمت */
.woocommerce-Price-amount.amount,
.woocommerce-variation-price .price .woocommerce-Price-amount.amount {
    font-size: 32px !important;      /* بزرگ کردن سایز اصلی */
    font-weight: 900 !important;     /* ضخیم کردن عدد */
    color: #10b981 !important;       /* رنگ سبز جذاب و حس خوب خرید */
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* استایل نماد ارز (مثل دلار یا لیر) */
.woocommerce-Price-currencySymbol {
    font-size: 20px !important;      /* سایز نماد کمی کوچکتر از عدد */
    font-weight: 700 !important;
    color: #64748b !important;       /* رنگ خاکستری ملایم‌تر برای تمرکز روی عدد */
    margin-right: 6px !important;    /* فاصله بین نماد و عدد */
    margin-left: 2px !important;
    vertical-align: middle !important;
}

/* اگر قیمت با تخفیف خورده بود (قیمت خط خورده قبلی) */
del .woocommerce-Price-amount.amount {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}
.woocommerce div.product form.cart table.variations td.value select {
    width: 100% !important;
    min-width: 250px !important;
    height: 50px !important;
    padding: 0 15px 0 45px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    direction: rtl !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 15px center !important;
    background-size: 16px !important;
    display: block !important;
}

.woocommerce div.product form.cart table.variations td.value select:focus {
    border-color: #6366f1 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

/* استایل برای زمانی که قالب از افزونه‌های Select2 استفاده می‌کند */
.woocommerce div.product form.cart table.variations td.value .select2-container .select2-selection--single {
    height: 50px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background-color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    direction: rtl !important;
}

.woocommerce div.product form.cart table.variations td.value .select2-container .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding-right: 15px !important;
}

.woocommerce div.product form.cart table.variations td.value .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    left: 10px !important;
    right: auto !important;
}
.bst-launcher {
    bottom: 85px !important;
    z-index: 9999 !important;
}

.back-to-top {
    bottom: 20px !important;
    z-index: 9998 !important;
}

@media (max-width: 768px) {
    .bst-launcher {
        bottom: 75px !important;
    }
    .back-to-top {
        bottom: 15px !important;
    }
}
.woocommerce-variation-price {
    display: none !important;
}
.variations_form select option:disabled {
    display: none !important;
}
.variations_form select option.attached:not(.enabled) {
    display: none !important;
}
/* مخفی کردن کامل زمان‌های ناموجود */
.variations_form select option.attached:not(.enabled),
.variations_form select option:disabled {
    display: none !important;
}

/* زیباسازی جدول انتخاب متغیرها */
table.variations {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
}
table.variations th, table.variations td {
    padding: 12px 0 !important;
    vertical-align: middle !important;
    border: none !important;
}
table.variations th.label {
    width: 25% !important;
    text-align: right !important;
    font-weight: 600 !important;
    color: #334155 !important;
    padding-left: 10px !important;
}

/* استایل اختصاصی کشوهای انتخاب (Select) */
.variations_form select {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* فلش اختصاصی برای منوی راست‌چین */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 15px center !important;
    background-size: 18px !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}
.variations_form select:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
    background-color: #ffffff !important;
}

/* استایل دکمه پاک کردن (Reset) */
a.reset_variations {
    display: inline-block !important;
    margin-top: 10px !important;
    font-size: 12px !important;
    color: #ef4444 !important;
    background: #fef2f2 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}
a.reset_variations:hover {
    background: #fee2e2 !important;
}

/* بخش افزودن به سبد خرید و فیلد تعداد */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
}
.woocommerce-variation-add-to-cart .quantity input.qty {
    width: 65px !important;
    height: 50px !important;
    padding: 0 !important;
    text-align: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #1e293b !important;
}
.woocommerce-variation-add-to-cart button.single_add_to_cart_button {
    flex: 1 !important;
    height: 50px !important;
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.woocommerce-variation-add-to-cart button.single_add_to_cart_button:not(.disabled):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.3) !important;
}
.woocommerce-variation-add-to-cart button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}
.woocommerce-variation-price {
    display: block !important;
    margin-bottom: 15px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #8b5cf6 !important;
}
.woocommerce-variation-price,
.single_variation .price {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* نمایش ۶ محصول در هر ردیف (در دسکتاپ) */
@media (min-width: 1200px) {
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 15px !important;
    }
    ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* نمایش ۴ محصول در تبلت */
@media (max-width: 1199px) and (min-width: 768px) {
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }
    ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* مینیمال کردن قیمت (اندازه کوچک‌تر و رنگ ملایم‌تر) */
.premium-product-card .ppc-price,
.premium-product-card .ppc-price .woocommerce-Price-amount,
.premium-product-card .ppc-price span {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #475569 !important; /* رنگ تیره‌تر و مینیمال به جای سبز براق */
    margin: 5px 0 !important;
}

/* کوچک کردن فونت‌ها و فاصله‌های کارت برای تناسب بهتر */
.premium-product-card {
    padding: 12px !important;
}

.premium-product-card .ppc-name {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

.premium-product-card .ppc-category {
    font-size: 10px !important;
    margin-bottom: 5px !important;
}

.premium-product-card .ppc-status {
    font-size: 11px !important;
    margin-bottom: 10px !important;
}

.premium-product-card .ppc-btn {
    font-size: 12px !important;
    padding: 8px !important;
    height: auto !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-product-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-header {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product.premium-product-card-wrap .premium-product-card {
    padding: 0 !important;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-body {
    padding: 15px !important;
}
/* ====== FIX: عکس محصول کل کادر مربع رو پر کنه ====== */
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-header {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    border-radius: 18px 18px 0 0 !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-product-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* ===== ZxAcc: کارت کوچیک‌تر، ۶تا در ردیف + عکس کامل تو باکس ===== */

/* ۱) گرید: کارت کوچیک‌تر، حدود ۶تا در ردیف، ریسپانسیو */
.woocommerce ul.products,
.shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 16px !important;
}
@media (max-width: 600px){
  .woocommerce ul.products,
  .shop-content ul.products{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ۲) خود کارت */
.woocommerce ul.products li.product.premium-product-card-wrap .premium-product-card{
    min-width: 0 !important;
    border-radius: 16px !important;
}

/* ۳) باکس عکس — مربع، عکس کل کادر رو می‌گیره */
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-header{
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    border-radius: 16px 16px 0 0 !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-product-img{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ۴) بدنه‌ی کارت جمع‌وجور برای سایز کوچیک‌تر */
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-body{
    padding: 12px 12px 14px !important;
    gap: 7px !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-category{
    font-size: 9px !important;
    padding: 3px 10px !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-name{
    font-size: 13px !important;
    min-height: 36px !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-desc{
    display: none !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-price{
    font-size: 18px !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-status{
    font-size: 11px !important;
    min-height: 22px !important;
}
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-btn{
    min-height: 38px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
}
.product-gallery-main {
    position: relative !important;
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background-color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 !important;
}

.product-gallery-main img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-gallery-badge {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background-color: #10b981 !important; /* رنگ سبز مینیمال */
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.product-gallery-main {
    position: relative !important;
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background-color: transparent !important; /* حذف رنگ پس‌زمینه که حاشیه می‌ساخت */
    display: block !important;
    border: none !important; /* حذف بردر اگر لازم است */
    padding: 0 !important;
}

.product-gallery-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* فیت شدن کامل عکس در ابعاد باکس */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
}
/* رفع مشکل بیرون زدن و نصفه دیده شدن محتوای توضیحات در موبایل */
.tab-content-body, 
.tab-content-body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

.tab-content-body img,
.tab-content-body figure,
.tab-content-body iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    /* خنثی کردن پدینگ‌های زیاد اینلاین (مثل padding: 45px که داخل کد دادی) */
    .tab-content-body div, 
    .tab-content-body header,
    .tab-content-body section,
    .tab-content-body aside {
        padding: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .product-tabs-container {
        padding: 20px 15px !important;
        overflow-x: hidden !important; /* جلوگیری از اسکرول افقی کل باکس */
    }

    .tab-content-body h1 {
        font-size: 22px !important;
    }
    
    .tab-content-body h2, 
    .tab-content-body h3 {
        font-size: 18px !important;
    }
}
/* ==================================================
   MODERN STATIC PAGE (PRIVACY POLICY) UI
================================================== */

/* کانتینر اصلی و پس‌زمینه */
.page-content.section-padding {
    padding: 60px 20px !important;
    background: #f8fafc !important; /* پس‌زمینه ملایم سایت */
    direction: rtl !important;
}

/* محدود کردن عرض برای خوانایی بهتر متن */
.container-narrow {
    max-width: 850px !important;
    margin: 0 auto !important;
}

/* باکس اصلی محتوا (کارت سفید) */
.page.type-page .entry-content {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 50px 60px !important;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 2 !important;
}

/* عنوان اصلی (H2) */
.page.type-page .entry-content h2 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 0 30px 0 !important;
    padding-bottom: 20px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

/* نقطه گرادیانت کنار عنوان */
.page.type-page .entry-content h2::before {
    content: "" !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    border-radius: 50% !important;
    margin-left: 12px !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4) !important;
}

/* پاراگراف‌ها */
.page.type-page .entry-content p {
    margin-bottom: 20px !important;
    text-align: justify !important;
}

/* باکس لیست‌ها (ul) */
.page.type-page .entry-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 35px 0 !important;
    background: #f8fafc !important;
    border-radius: 16px !important;
    padding: 30px 35px !important;
    border: 1px solid #f1f5f9 !important;
}

/* آیتم‌های لیست (li) */
.page.type-page .entry-content ul li {
    position: relative !important;
    padding-right: 30px !important;
    margin-bottom: 18px !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

.page.type-page .entry-content ul li:last-child {
    margin-bottom: 0 !important;
}

/* تیک سبز به جای دایره مشکی لیست */
.page.type-page .entry-content ul li::before {
    content: "✓" !important;
    position: absolute !important;
    right: 0 !important;
    top: 2px !important;
    color: #10b981 !important; /* سبز */
    font-weight: 900 !important;
    font-size: 16px !important;
    background: #d1fae5 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

/* استایل لینک‌ها (آیدی تلگرام و ...) */
.page.type-page .entry-content a {
    color: #6366f1 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    background: #eef2ff !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin: 0 4px !important;
}

.page.type-page .entry-content a:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.25) !important;
}

/* ==================================================
   RESPONSIVE (موبایل و تبلت)
================================================== */
@media (max-width: 768px) {
    .page-content.section-padding {
        padding: 30px 15px !important;
    }

    .page.type-page .entry-content {
        padding: 30px 25px !important;
        border-radius: 20px !important;
    }
    
    .page.type-page .entry-content h2 {
        font-size: 22px !important;
    }

    .page.type-page .entry-content ul {
        padding: 20px 25px !important;
    }
}
/* ==================================================
   ULTRA PREMIUM & GLASSMORPHISM FOOTER
================================================== */

.footer-top {
    position: relative !important;
    background: #030712 !important; /* دارک بسیار عمیق */
    padding: 80px 0 50px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    direction: rtl !important;
    overflow: hidden !important;
}

/* هاله نوری (Glow) بالای فوتر */
.footer-top::before {
    content: "" !important;
    position: absolute !important;
    top: -100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 70% !important;
    height: 200px !important;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15), transparent 70%) !important;
    pointer-events: none !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr !important;
    gap: 50px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* --------------------------------------
   ستون برند و لوگو
-------------------------------------- */
.footer-brand {
    padding-left: 20px !important;
}

.footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px !important;
    text-decoration: none !important;
    margin-bottom: 25px !important;
}

.footer-logo img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2) !important;
}

.footer-logo-text {
    font-size: 28px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #ffffff, #94a3b8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: 1px !important;
}

.footer-desc {
    font-size: 14px !important;
    line-height: 2 !important;
    color: #94a3b8 !important;
    margin-bottom: 30px !important;
    font-weight: 500 !important;
}

/* آیکون شبکه‌های اجتماعی (استایل گلس) */
.footer-social {
    display: flex !important;
    gap: 15px !important;
}

.social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
    border-radius: 14px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-link:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4) !important;
}

/* --------------------------------------
   عناوین فوتر
-------------------------------------- */
.footer-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin: 0 0 30px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.footer-title::before {
    content: "" !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    background: #a855f7 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px #a855f7 !important;
}

/* --------------------------------------
   لینک‌ها
-------------------------------------- */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.footer-links li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
}

.footer-links li a::after {
    content: "" !important;
    position: absolute !important;
    bottom: -4px !important;
    right: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #a855f7, #6366f1) !important;
    transition: width 0.3s ease !important;
    border-radius: 2px !important;
}

.footer-links li a:hover {
    color: #ffffff !important;
    transform: translateX(-5px) !important;
}

.footer-links li a:hover::after {
    width: 100% !important;
}

/* --------------------------------------
   ارتباط با ما
-------------------------------------- */
.footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.footer-contact li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: all 0.3s ease !important;
}

.footer-contact li:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.footer-contact-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #a855f7 !important;
}

.footer-contact a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* --------------------------------------
   آیکون‌های پرداخت (پیلز مدرن)
-------------------------------------- */
.payment-methods {
    margin-top: 15px !important;
}

.payment-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 15px 0 !important;
}

.payment-icons {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.payment-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)) !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s ease !important;
}

.payment-icon:hover {
    color: #ffffff !important;
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

/* --------------------------------------
   ریسپانسیو
-------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
    
    .footer-brand {
        grid-column: 1 / -1 !important;
        text-align: center !important;
        padding-left: 0 !important;
    }

    .footer-logo {
        justify-content: center !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-title {
        justify-content: center !important;
    }
    
    .footer-title::before {
        display: none !important;
    }
    
    .footer-links li a {
        justify-content: center !important;
    }
    
    .footer-links li a:hover {
        transform: translateY(-3px) !important;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
}
/* ==================================================
   PREMIUM FOOTER BOTTOM (COPYRIGHT)
================================================== */

.footer-bottom {
    background: #02040a !important; /* رنگ تیره‌تر از فوتر بالایی برای ایجاد عمق */
    padding: 25px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
    direction: rtl !important;
}

.footer-bottom-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.footer-bottom p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.footer-bottom p strong {
    font-weight: 900 !important;
    font-size: 15px !important;
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    padding: 0 4px !important;
    letter-spacing: 1px !important;
}
.hero-float-card.float-card-3 {
    margin-top: 70px !important; /* عدد رو کم و زیاد کن تا دقیق بیاد سر جاش */
    /* اگر با margin جواب نداد، خط بالا رو پاک کن و از این استفاده کن: */
    /* top: 80% !important; */
}
/* مخفی کردن شماره تلفن در بخش contact-info-card */

.contact-info-card.contact-card-phone a {

    display: none !important;

}

/* مخفی کردن شماره تلفن در بخش contact-info-card */

.contact-info-card.contact-card-phone a {

    display: none !important;

}

/* مخفی کردن کامل کارت تلفن */

.contact-info-card.contact-card-phone {

    display: none !important;

}
/* =========================================================
   MODERN CRYPTO PAYMENT METHOD (CRYPTOMUS FIX)
   ========================================================= */

/* ۱. مخفی کردن عکس شکسته افزونه که باعث تکرار متن شده است */
.wc-block-components-radio-control__label img[alt*="Cryptomus"],
.wc-block-components-radio-control__label img[src*="cryptomus"] {
    display: none !important;
}

/* ۲. استایل‌دهی به باکس اصلی روش پرداخت */
.wc-block-components-radio-control-accordion-option {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* ۳. تغییر ظاهر باکس وقتی کاربر این روش را انتخاب می‌کند */
.wc-block-components-radio-control-accordion-option.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
    border-color: #6366f1 !important;
    background: #f8fafc !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12) !important;
}

/* ۴. تنظیم چیدمان متن لیبل */
.wc-block-components-radio-control__label {
    display: flex !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* ۵. ساخت یک آیکون کریپتو (بیت‌کوین) با CSS به جای عکس خراب */
.wc-block-components-radio-control__label span {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.wc-block-components-radio-control__label span::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    background-color: #10b981; /* رنگ سبز جذاب برای کریپتو */
    -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9.5A3.5 3.5 0 0 1 11.5 6h2A3.5 3.5 0 0 1 17 9.5c0 1.5-1 2.8-2.4 3.3.6.3 1.1.8 1.4 1.4V14a3.5 3.5 0 0 1-3.5 3.5h-2A3.5 3.5 0 0 1 7 14v-.5M12 6v13M9 6v13'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9.5A3.5 3.5 0 0 1 11.5 6h2A3.5 3.5 0 0 1 17 9.5c0 1.5-1 2.8-2.4 3.3.6.3 1.1.8 1.4 1.4V14a3.5 3.5 0 0 1-3.5 3.5h-2A3.5 3.5 0 0 1 7 14v-.5M12 6v13M9 6v13'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ۶. استایل توضیحات پایین باکس (Crypto payment system) */
.wc-block-components-radio-control-accordion-content {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 2px dashed #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    direction: ltr !important; /* چون متن انگلیسی است */
    text-align: right !important; /* هماهنگ با سایت راست‌چین */
}
/* مخفی کردن کامل بخش گزینه‌های حمل و نقل در تسویه‌حساب */
fieldset#shipping-option,
.wc-block-checkout__shipping-option {
    display: none !important;
}
.ps-card-btn.add-to-cart-btn {
    padding: 6px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    min-height: 34px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ps-card-btn.add-to-cart-btn svg {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
}
.cta-section {
    display: none !important;
}
/* ==================================================
   MODERN PASSWORD RESET UI
================================================== */
#page-14 .woocommerce {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #f1f5f9 !important;
    max-width: 500px !important;
    margin: 40px auto !important;
    text-align: center !important;
    direction: rtl !important;
}

/* باکس پیام موفقیت (نوار سبز) */
#page-14 .woocommerce-message {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1) !important;
}

/* آیکون تیک سبز */
#page-14 .woocommerce-message::before {
    content: "✓" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

/* متن توضیحات */
#page-14 .woocommerce p {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.8 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ==================================================
   RESPONSIVE (موبایل و تبلت)
================================================== */
@media (max-width: 768px) {
    #page-14 .woocommerce {
        padding: 30px 20px !important;
        margin: 20px 15px !important;
        border-radius: 20px !important;
    }

    #page-14 .woocommerce-message {
        font-size: 14px !important;
        padding: 14px 15px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    #page-14 .woocommerce-message::before {
        margin-bottom: 4px !important;
    }

    #page-14 .woocommerce p {
        font-size: 13px !important;
    }
}
.auth-visual-side {
    background: linear-gradient(135deg, #0f172a, #1e1b4b) !important; /* پس‌زمینه تیره غلیظ برای خوانایی */
    color: #ffffff !important;
}

.bauth-visual-inner {
    background: transparent !important;
}

.auth-visual-side h2 {
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.auth-visual-side p {
    color: #cbd5e1 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.bauth-visual-features li {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    background: transparent !important;
}
.ps-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--ps-accent, #6366f1) !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

.ps-badge svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
/* ==================================================
   FIX VERTICAL TEXT & MINIMAL PRICES 
================================================== */

/* ۱. حل قطعی مشکل عمودی شدن و به هم ریختگی متن‌ها */
ul.wc-block-grid__products li.wc-block-grid__product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-grid__product-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.wc-block-grid__product-title {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    font-size: 13px !important; /* مینیمال‌تر */
    font-weight: 800 !important;
    line-height: 1.6 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    word-break: break-word !important; /* جلوگیری از شکستن حروف */
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* جلوگیری از فشرده شدن عکس‌ها که باعث تنگی جا برای متن می‌شود */
.wc-block-grid__product-image {
    width: 100% !important;
    max-width: 110px !important;
    flex-shrink: 0 !important; 
    margin: 0 auto 15px auto !important;
}

/* ۲. دیزاین مینیمال و بهینه برای اعداد و قیمت‌ها */
.wc-block-grid__product-price {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    color: #10b981 !important;
}

.wc-block-grid__product-price .woocommerce-Price-amount {
    font-size: 15px !important; /* سایز کوچیک و شیک */
    font-weight: 800 !important;
    display: inline-block !important;
}

.wc-block-grid__product-price .woocommerce-Price-currencySymbol {
    font-size: 12px !important; /* نماد دلار کوچیک‌تر */
    margin-right: 2px !important;
    opacity: 0.8 !important;
}

/* ==================================================
   ۳. ریسپانسیو اختصاصی
================================================== */
@media (max-width: 768px) {
    .wc-block-grid__product-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .wc-block-grid__product-price .woocommerce-Price-amount {
        font-size: 14px !important;
    }
    
    .wc-block-grid__product-price .woocommerce-Price-currencySymbol {
        font-size: 11px !important;
    }
    
    .wc-block-grid__product-image {
        max-width: 90px !important;
        height: 90px !important;
    }
}
/* ==================================================
   PRODUCT CAROUSEL GRID FIX (6 ITEMS)
================================================== */
/* این بخش مربوط به "جدیدترین محصولات" است که در ساختار فعلی
   کلاس ps-grid دارد و برخلاف اسکرول بالایی، یک گرید ثابت است.
*/
.ps-section #ps-latest .ps-grid,
.ps-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
}

/* حل مشکل عرض کارت‌ها در گرید */
.ps-card {
    width: 100% !important;
    min-width: unset !important;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 1400px) {
    .ps-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .ps-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 600px) {
    .ps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}
/* ==================================================
   FIX DISCOUNT BADGE Z-INDEX
================================================== */
.ppc-header {
    position: relative !important;
}

.ppc-sale-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    z-index: 10 !important; /* بالا آوردن تگ روی عکس */
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}