/* استایل‌های اضافی قالب */
* {
    font-family: 'Vazir', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose-stone {
    color: #57534e;
}

.prose-stone a {
    color: #14532d;
}

.prose-stone a:hover {
    color: #166534;
}

/* WooCommerce overrides */
.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product a img {
    border-radius: 1rem;
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* ==========================================
   CSS نهایی و دقیقاً منطبق با ساختار HTML جدید اروند کتاب
   ========================================== */

:root {
    --ak-primary: #175338;
    --ak-primary-hover: #0f3d28;
    --ak-primary-dark: #0a2e1c;
    --ak-gold: #b8862a;
    --ak-gold-light: #f7f3e9;
    --ak-text: #1f2937;
    --ak-text-light: #6b7280;
    --ak-border: #e5e7eb;
    --ak-bg-light: #f9fafb;
    --ak-radius: 16px;
    --ak-radius-sm: 10px;
}

/* ==========================================
   ۱. چیدمان اصلی صفحه تکی محصول (دو ستونه)
   ========================================== */
.woocommerce div.product {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
}

/* در موبایل تک ستونه شود */
@media (max-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

/* ==========================================
   ۲. گالری تصاویر محصول (جلد کتاب)
   ========================================== */
.woocommerce-product-gallery {
    position: relative !important;
}

.woocommerce-product-gallery__wrapper {
    border-radius: var(--ak-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    background: var(--ak-bg-light) !important;
    border: 1px solid var(--ak-border) !important;
}

.woocommerce-product-gallery__image img,
.wp-post-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/4 !important; /* نسبت استاندارد جلد کتاب */
    object-fit: contain !important;
    padding: 32px !important;
    box-sizing: border-box !important;
    transition: transform 0.5s ease !important;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.03) !important;
}

/* ==========================================
   ۳. بخش خلاصه محصول (عنوان، قیمت، توضیحات)
   ========================================== */
.summary.entry-summary {
    padding-top: 8px !important;
}

.ak-single-product-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: var(--ak-primary) !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
}

.ak-single-product-price {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--ak-gold) !important;
    margin-bottom: 20px !important;
    padding: 16px 20px !important;
    background: var(--ak-gold-light) !important;
    border-radius: var(--ak-radius-sm) !important;
    border-right: 4px solid var(--ak-gold) !important;
    display: inline-block !important;
}

.ak-single-product-price del {
    color: var(--ak-text-light) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    margin-left: 12px !important;
    opacity: 0.7 !important;
}

.ak-single-product-excerpt {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: var(--ak-text) !important;
    margin-bottom: 24px !important;
    padding: 16px 20px !important;
    background: var(--ak-bg-light) !important;
    border-radius: var(--ak-radius-sm) !important;
    border-right: 3px solid var(--ak-primary) !important;
}

/* ==========================================
   ۴. فرم سبد خرید (Quantity + Button) - بسیار مهم
   ========================================== */
.ak-single-product-cart form.cart {
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-top: 28px !important;
    margin-bottom: 24px !important;
}

.ak-single-product-cart .quantity {
    flex: 0 0 110px !important; /* عرض ثابت برای باکس تعداد */
}

.ak-single-product-cart .quantity input.qty {
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    border: 2px solid var(--ak-border) !important;
    border-radius: var(--ak-radius-sm) !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--ak-primary) !important;
    transition: border-color 0.3s ease !important;
}

.ak-single-product-cart .quantity input.qty:focus {
    border-color: var(--ak-primary) !important;
    outline: none !important;
}

.ak-single-product-cart .single_add_to_cart_button {
    flex: 1 !important; /* دکمه فضای باقی‌مانده را پر می‌کند */
    background: linear-gradient(135deg, var(--ak-primary) 0%, var(--ak-primary-hover) 100%) !important;
    color: #ffffff !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: var(--ak-radius-sm) !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(23, 83, 56, 0.25) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.ak-single-product-cart .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, var(--ak-primary-hover) 0%, var(--ak-primary-dark) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(23, 83, 56, 0.35) !important;
}

/* پیام موجودی انبار */
.ak-single-product-cart .stock.in-stock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #16a34a !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

/* ==========================================
   ۵. متا اطلاعات محصول
   ========================================== */
.ak-single-product-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: var(--ak-bg-light) !important;
    border-radius: var(--ak-radius-sm) !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 0.95rem !important;
    border: 1px solid var(--ak-border) !important;
}

.ak-single-product-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--ak-text) !important;
}

.ak-single-product-meta .sku_wrapper strong {
    color: var(--ak-primary) !important;
    font-weight: 700 !important;
}

/* ==========================================
   ۶. تب‌های محصول (توضیحات، نظرات و...)
   ========================================== */
.woocommerce-tabs .wc-tabs {
    display: flex !important;
    border-bottom: 2px solid var(--ak-border) !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 8px !important;
}

.woocommerce-tabs .wc-tabs li {
    margin: 0 !important;
}

.woocommerce-tabs .wc-tabs li a {
    display: block !important;
    padding: 12px 24px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--ak-text-light) !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.woocommerce-tabs .wc-tabs li.active a,
.woocommerce-tabs .wc-tabs li a:hover {
    color: var(--ak-primary) !important;
    border-bottom-color: var(--ak-primary) !important;
}

.woocommerce-Tabs-panel {
    padding: 24px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    line-height: 1.8 !important;
    color: var(--ak-text) !important;
}

/* ==========================================
   ۷. بخش محصولات مرتبط (Related Products)
   ========================================== */
.related.products {
    margin-top: 64px !important;
    padding-top: 32px !important;
    border-top: 1px solid var(--ak-border) !important;
}

.related.products h2 {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--ak-primary) !important;
    margin-bottom: 24px !important;
    text-align: right !important;
}

/* گرید محصولات مرتبط */
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (max-width: 1024px) {
    .related.products ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .related.products ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
}

/* ==========================================
   ۸. کارت محصول در بخش محصولات مرتبط (تطابق کامل با PHP)
   ========================================== */
.related.products .ak-product-card {
    background: #ffffff !important;
    border: 1px solid var(--ak-border) !important;
    border-radius: var(--ak-radius) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.related.products .ak-product-card:hover {
    border-color: var(--ak-gold) !important;
    box-shadow: 0 20px 40px -8px rgba(184, 134, 42, 0.2) !important;
    transform: translateY(-8px) !important;
}

.related.products .ak-product-image-wrapper {
    position: relative !important;
    width: 100% !important;
    background-color: var(--ak-bg-light) !important;
    border-radius: var(--ak-radius) var(--ak-radius) 0 0 !important;
    overflow: hidden !important;
    aspect-ratio: 3/4 !important;
}

.related.products .ak-product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    transition: transform 0.5s ease !important;
}

.related.products .ak-product-card:hover .ak-product-img {
    transform: scale(1.05) !important;
}

.related.products .ak-product-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--ak-text) !important;
    line-height: 1.6 !important;
    padding: 16px 16px 8px 16px !important;
    margin: 0 !important;
    text-align: right !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 52px !important;
    transition: color 0.3s ease !important;
}

.related.products .ak-product-card:hover .ak-product-title {
    color: var(--ak-primary) !important;
}

.related.products .ak-product-price-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--ak-primary) !important;
    padding: 0 16px 16px 16px !important;
    margin: 0 !important;
    text-align: right !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.related.products .ak-product-cart-wrapper {
    padding: 0 16px 16px 16px !important;
}

.related.products .ak-product-cart-wrapper .button,
.related.products .ak-product-cart-wrapper .add_to_cart_button {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, var(--ak-primary) 0%, var(--ak-primary-hover) 100%) !important;
    color: #ffffff !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: var(--ak-radius-sm) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(23, 83, 56, 0.25) !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.related.products .ak-product-cart-wrapper .button:hover {
    background: linear-gradient(135deg, var(--ak-primary-hover) 0%, var(--ak-primary-dark) 100%) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================
   ۹. بهینه‌سازی موبایل برای فرم خرید
   ========================================== */
@media (max-width: 480px) {
    .ak-single-product-cart form.cart {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .ak-single-product-cart .quantity {
        flex: 1 !important;
        width: 100% !important;
    }
    
    .ak-single-product-title {
        font-size: 1.4rem !important;
    }
    
    .ak-single-product-price {
        font-size: 1.3rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================
   زیباسازی حرفه‌ای بخش فروشگاه اروند کتاب
   سازگار با ووکامرس و المنتور
   ========================================== */

:root {
    --ak-primary: #175338;
    /* سبز یشمی عمیق (رنگ اصلی) */
    --ak-primary-hover: #103d29;
    /* سبز تیره‌تر برای حالت هاور */
    --ak-gold: #b8862a;
    /* طلایی لوکس */
    --ak-gold-light: #f7f3e9;
    /* پس‌زمینه کرم روشن */
    --ak-text: #1f2937;
    /* رنگ متن اصلی */
    --ak-text-light: #6b7280;
    /* رنگ متن ثانویه (قیمت خط‌خورده) */
    --ak-radius: 16px;
    /* میزان گردی گوشه‌ها */
    --ak-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --ak-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ۱. شبکه محصولات (Grid) - چیدمان منظم و ریسپانسیو */
.woocommerce ul.products,
.products-grid,
.elementor-widget-woocommerce-products .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
    padding: 20px 0 !important;
}

/* ۲. کارت محصول (Product Card) */

.woocommerce ul.products li.product:hover,
.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--ak-shadow-hover) !important;
    border-color: var(--ak-gold) !important;
}

/* ۳. تصویر محصول (بهینه‌شده برای جلد کتاب) */
.woocommerce ul.products li.product a img,
.product-card img,
.elementor-product-card img {
    border-radius: var(--ak-radius) var(--ak-radius) 0 0 !important;
    transition: transform 0.5s ease !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 3/4 !important;
    /* نسبت استاندارد جلد کتاب */
}

.woocommerce ul.products li.product:hover a img,
.product-card:hover img {
    transform: scale(1.05) !important;
}

/* ۴. عنوان محصول */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-card .product-title,
.elementor-product-card .elementor-product-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--ak-text) !important;
    padding: 16px 16px 8px 16px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    transition: color 0.3s ease !important;
    /* محدود کردن به ۲ خط برای نظم بیشتر */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--ak-primary) !important;
}

/* ۵. قیمت محصول */
.woocommerce ul.products li.product .price,
.product-card .price,
.elementor-product-card .price {
    padding: 0 16px 16px 16px !important;
    font-size: 0.95rem !important;
    color: var(--ak-primary) !important;
    font-weight: 800 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

/* قیمت خط‌خورده (قدیمی) */
.woocommerce ul.products li.product .price del,
.product-card .price del {
    color: var(--ak-text-light) !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
}

/* قیمت فعلی (با تخفیف یا عادی) */
.woocommerce ul.products li.product .price ins,
.product-card .price ins {
    text-decoration: none !important;
    color: var(--ak-gold) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol,
.product-card .price .woocommerce-Price-currencySymbol {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-right: 2px !important;
}

/* ۶. برچسب تخفیف (Sale Badge) */
.woocommerce span.onsale,
.product-card .onsale,
.elementor-product-card .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    /* راست‌چین برای فارسی */
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3) !important;
    z-index: 10 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
}

/* ۷. دکمه افزودن به سبد خرید */
.woocommerce ul.products li.product .button,
.product-card .add_to_cart_button,
.elementor-product-card .add_to_cart_button {
    display: block !important;
    width: calc(100% - 32px) !important;
    margin: 0 16px 16px 16px !important;
    padding: 12px 16px !important;
    background: var(--ak-primary) !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-radius: 12px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product .button:hover,
.product-card .add_to_cart_button:hover {
    background: var(--ak-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(23, 83, 56, 0.3) !important;
}

/* افزودن آیکون سبد خرید به دکمه (اختیاری) */
.woocommerce ul.products li.product .button::before {
    content: '🛒' !important;
    margin-left: 8px !important;
    font-size: 1rem !important;
}

/* ۸. بهینه‌سازی برای موبایل (Responsive) */
@media (max-width: 768px) {

    .woocommerce ul.products,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* دو ستون در موبایل */
        gap: 12px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        padding: 10px 10px 4px 10px !important;
    }

    .woocommerce ul.products li.product .price {
        padding: 0 10px 10px 10px !important;
        font-size: 0.85rem !important;
    }

    .woocommerce ul.products li.product .button {
        width: calc(100% - 20px) !important;
        margin: 0 10px 10px 10px !important;
        padding: 10px !important;
        font-size: 0.8rem !important;
    }

    .woocommerce span.onsale {
        top: 8px !important;
        right: 8px !important;
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
}

/* ۹. انیمیشن ورود زیبا برای محصولات (Fade In Up) */
@keyframes akFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce ul.products li.product,
.product-card {
    animation: akFadeInUp 0.6s ease-out forwards !important;
}

/* تاخیر پلکانی انیمیشن برای زیبایی بیشتر */
.woocommerce ul.products li.product:nth-child(1) {
    animation-delay: 0.1s !important;
}

.woocommerce ul.products li.product:nth-child(2) {
    animation-delay: 0.2s !important;
}

.woocommerce ul.products li.product:nth-child(3) {
    animation-delay: 0.3s !important;
}

.woocommerce ul.products li.product:nth-child(4) {
    animation-delay: 0.4s !important;
}

.woocommerce-product-gallery__trigger {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 10px;
    top: 10px;
}

/* ==========================================
   زیباسازی حرفه‌ای اروند کتاب (صفحه محصول تکی + فروشگاه)
   سازگار با ووکامرس و المنتور پرو
   ========================================== */

:root {
    --ak-primary: #175338;
    /* سبز یشمی */
    --ak-primary-hover: #0f3d28;
    /* سبز تیره‌تر */
    --ak-gold: #b8862a;
    /* طلایی */
    --ak-radius: 12px;
    /* گردی گوشه‌ها */
}

/* ==========================================
   ۱. صفحه تکی محصول (Single Product Page)
   ========================================== */

/* عنوان محصول */
.single-product h1.product_title,
.single-product .product_title.entry-title,
.elementor-widget-woocommerce-product-title .elementor-heading-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--ak-primary) !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
}

/* قیمت محصول */
.single-product .summary .price,
.single-product p.price,
.elementor-widget-woocommerce-product-price .woocommerce-Price-amount {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--ak-gold) !important;
    margin-bottom: 20px !important;
    display: block !important;
}

/* قیمت خط‌خورده (قدیمی) */
.single-product .summary .price del,
.single-product p.price del {
    color: #9ca3af !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    margin-left: 10px !important;
    opacity: 0.8 !important;
}

/* قیمت فعلی (با تخفیف) */
.single-product .summary .price ins,
.single-product p.price ins {
    text-decoration: none !important;
    color: var(--ak-gold) !important;
    font-weight: 800 !important;
}

/* دکمه افزودن به سبد خرید */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.elementor-widget-woocommerce-add-to-cart .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--ak-primary) 0%, var(--ak-primary-hover) 100%) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 15px 30px !important;
    border-radius: var(--ak-radius) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(23, 83, 56, 0.3) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.single-product .single_add_to_cart_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(23, 83, 56, 0.4) !important;
    background: linear-gradient(135deg, var(--ak-primary-hover) 0%, #0a2e1c 100%) !important;
}

/* قاب تصاویر محصول */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
    border-radius: var(--ak-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(184, 134, 42, 0.2) !important;
    max-height: 560px;
}

/* ==========================================
   ۲. صفحه فروشگاه / آرشیو محصولات (Shop Page)
   ========================================== */

/* شبکه محصولات */
.woocommerce ul.products,
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 25px !important;
}

/* تصویر محصول در آرشیو */
.woocommerce ul.products li.product a img {
    border-radius: var(--ak-radius) var(--ak-radius) 0 0 !important;
    aspect-ratio: 3/4 !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05) !important;
}

/* عنوان محصول در آرشیو */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    padding: 15px 15px 5px 15px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* قیمت در آرشیو */
.woocommerce ul.products li.product .price {
    padding: 0 15px 15px 15px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--ak-primary) !important;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: var(--ak-gold) !important;
    font-weight: 800 !important;
}

/* دکمه افزودن به سبد در آرشیو */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    background: var(--ak-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 0 0 var(--ak-radius) var(--ak-radius) !important;
    margin: 0 !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--ak-primary-hover) !important;
}

/* برچسب تخفیف */
.woocommerce span.onsale {
    background: #ef4444 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
}

/* ==========================================
   ۳. بهینه‌سازی موبایل
   ========================================== */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .single-product h1.product_title {
        font-size: 1.4rem !important;
    }

    .single-product .summary .price {
        font-size: 1.2rem !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        padding: 10px 10px 5px 10px !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.9rem !important;
        padding: 0 10px 10px 10px !important;
    }
}

/* ==========================================
   بازنگری کامل و حرفه‌ای فروشگاه اروند کتاب
   رفع تداخلات، چیدمان صحیح و زیبایی بصری بالا
   ========================================== */

/* ۱. شبکه محصولات: چیدمان گرید تمیز و بدون فاصله اضافی */
.woocommerce ul.products,
.products-grid,
.elementor-widget-woocommerce-products .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(16.666666%, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* ۲. کارت محصول: ریست کامل و استایل دهی از صفر */
.woocommerce ul.products li.product,
.product-grid-item,
.elementor-product-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    /* کلید هم‌تراز شدن عناصر */
    height: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
    border-color: #b8862a !important;
    box-shadow: 0 12px 24px -8px rgba(184, 134, 42, 0.15) !important;
    transform: translateY(-4px) !important;
}

/* ۳. تصویر محصول: جلوگیری مطلق از کشیدگی یا برش جلد کتاب */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a img,
.product-grid-item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/4 !important;
    /* نسبت استاندارد جلد کتاب */
    object-fit: contain !important;
    /* نمایش کامل جلد بدون برش */
    background-color: #f9fafb !important;
    /* پس‌زمینه ملایم برای کتاب‌های با حاشیه سفید */
    border-radius: 16px 16px 0 0 !important;
    padding: 20px !important;
    /* فاصله از لبه‌ها برای زیبایی */
    box-sizing: border-box !important;
    transition: transform 0.4s ease !important;
    margin: 0 !important;
    display: block !important;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03) !important;
}

/* ۴. عنوان محصول: محدود به ۲ خط و هم‌تراز */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-grid-item .product-title,
.elementor-product-card .elementor-product-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.6 !important;
    padding: 16px 16px 8px 16px !important;
    margin: 0 !important;
    text-align: right !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    /* حداکثر ۲ خط */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 48px !important;
    /* هم‌تراز کردن ارتفاع کارت‌ها */
}

/* ۵. قیمت محصول: هل دادن به پایین برای هم‌تراز شدن دکمه‌ها */
.woocommerce ul.products li.product .price,
.product-grid-item .price,
.elementor-product-card .price {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #175338 !important;
    /* سبز یشمی */
    padding: 0 16px 16px 16px !important;
    margin: 0 !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex-grow: 1 !important;
    /* این خط دکمه را به پایین‌ترین نقطه کارت هل می‌دهد */
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
    opacity: 0.8 !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: #b8862a !important;
    /* طلایی */
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-right: 2px !important;
}

/* ۶. دکمه افزودن به سبد خرید */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.product-grid-item .add_to_cart_button {
    display: block !important;
    width: calc(100% - 32px) !important;
    margin: 0 16px 16px 16px !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #175338 0%, #0f3d28 100%) !important;
    color: #ffffff !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 10px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(23, 83, 56, 0.2) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: linear-gradient(135deg, #0f3d28 0%, #0a2e1c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 12px -2px rgba(23, 83, 56, 0.3) !important;
}

/* ۷. برچسب تخفیف (Sale Badge) */
.woocommerce span.onsale,
.product-grid-item .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3) !important;
    z-index: 10 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
/* ==========================================
   CSS اختصاصی هماهنگ با فایل content-single-product.php
   ========================================== */

:root {
    --ak-primary: #175338;
    --ak-primary-hover: #0f3d28;
    --ak-gold: #b8862a;
    --ak-gold-light: #f7f3e9;
    --ak-text: #1f2937;
    --ak-text-light: #6b7280;
    --ak-border: #e5e7eb;
    --ak-bg-light: #f9fafb;
    --ak-radius: 16px;
}

/* ۱. چیدمان اصلی دو ستونه */
.ak-custom-single-product-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ak-product-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
}

@media (max-width: 768px) {
    .ak-product-main-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

/* ۲. ستون تصاویر و حل مشکل دکمه زوم */
.ak-product-images-column {
    position: relative;
    width: 100%;
}

/* کنترل کامل دکمه زوم (ذره‌بین) */
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 20 !important;
    border: 1px solid var(--ak-border) !important;
    transition: all 0.3s ease !important;
}

.woocommerce-product-gallery__trigger:hover {
    background: #fff !important;
    border-color: var(--ak-gold) !important;
    transform: scale(1.1) !important;
}

.woocommerce-product-gallery__trigger img.emoji,
.woocommerce-product-gallery__trigger span {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    margin: 0 !important;
}

/* قاب تصویر اصلی */
.woocommerce-product-gallery__wrapper {
    border-radius: var(--ak-radius) !important;
    overflow: hidden !important;
    background: var(--ak-bg-light) !important;
    border: 1px solid var(--ak-border) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

.woocommerce-product-gallery__image img,
.wp-post-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/4 !important; /* نسبت استاندارد جلد کتاب */
    object-fit: contain !important;
    padding: 32px !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* ۳. ستون اطلاعات محصول */
.ak-single-product-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--ak-primary) !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.4 !important;
}

.ak-single-product-price {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--ak-gold) !important;
    margin-bottom: 20px !important;
    padding: 16px 20px !important;
    background: var(--ak-gold-light) !important;
    border-radius: 12px !important;
    border-right: 4px solid var(--ak-gold) !important;
    display: inline-block !important;
}

.ak-single-product-price del {
    color: var(--ak-text-light) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    margin-left: 12px !important;
    opacity: 0.7 !important;
}

.ak-single-product-excerpt {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: var(--ak-text) !important;
    margin-bottom: 24px !important;
    padding: 16px 20px !important;
    background: var(--ak-bg-light) !important;
    border-radius: 12px !important;
    border-right: 3px solid var(--ak-primary) !important;
}

/* ۴. فرم سبد خرید (بسیار مهم) */
.ak-stock-status {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.ak-stock-status.in-stock { color: #16a34a !important; }
.ak-stock-status.out-of-stock { color: #dc2626 !important; }

/* هم‌تراز کردن باکس تعداد و دکمه خرید */
.ak-cart-form-wrapper form.cart {
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-top: 20px !important;
}

.ak-cart-form-wrapper .quantity {
    flex: 0 0 110px !important;
}

.ak-cart-form-wrapper .quantity input.qty {
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    border: 2px solid var(--ak-border) !important;
    border-radius: 10px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--ak-primary) !important;
}

.ak-cart-form-wrapper .single_add_to_cart_button {
    flex: 1 !important;
    background: linear-gradient(135deg, var(--ak-primary) 0%, var(--ak-primary-hover) 100%) !important;
    color: #ffffff !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(23, 83, 56, 0.25) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ak-cart-form-wrapper .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(23, 83, 56, 0.35) !important;
}

/* ۵. متا اطلاعات */
.ak-single-product-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-top: 32px !important;
    padding: 16px 20px !important;
    background: var(--ak-bg-light) !important;
    border-radius: 12px !important;
    border: 1px solid var(--ak-border) !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.9rem !important;
    color: var(--ak-text-light) !important;
}

.ak-single-product-meta strong {
    color: var(--ak-primary) !important;
}

/* ۶. تب‌ها و محصولات مرتبط */
.ak-product-bottom-section {
    margin-top: 64px !important;
    border-top: 1px solid var(--ak-border) !important;
    padding-top: 32px !important;
}

/* استایل ساده‌سازی شده تب‌ها */
.woocommerce-tabs .wc-tabs {
    display: flex !important;
    border-bottom: 2px solid var(--ak-border) !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 8px !important;
}

.woocommerce-tabs .wc-tabs li a {
    display: block !important;
    padding: 12px 24px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 700 !important;
    color: var(--ak-text-light) !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.woocommerce-tabs .wc-tabs li.active a,
.woocommerce-tabs .wc-tabs li a:hover {
    color: var(--ak-primary) !important;
    border-bottom-color: var(--ak-primary) !important;
}

/* ریسپانسیو موبایل برای فرم خرید */
@media (max-width: 480px) {
    .ak-cart-form-wrapper form.cart {
        flex-direction: column !important;
    }
    .ak-cart-form-wrapper .quantity {
        flex: 1 !important;
        width: 100% !important;
    }
    .ak-single-product-title {
        font-size: 1.4rem !important;
    }
}
@media(min-width:768px){
    html .woocommerce div.product {
    display: inline-block !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
    align-items: start !important;
    }
    html div.product div.images {
    margin-bottom: 2rem;
    display: inline-block;
    width: 39%;
    margin: 0px;
    height: 600px;
    overflow: hidden;
    }
    html .summary.entry-summary {
    display: inline-block;
    width: 59%;
    padding: 15px;
    margin: 0px;
    height: 600px;
    overflow: hidden;
    }
}
.ak-onsale-badge{
    position: absolute;
    left: 10px;
    top:10px;
    background-color: var(--brand-900);
    color:#FFF;
    padding: 5px;
    border-radius: 5px;
    font-size: 11px;
}
/* ==========================================
   منوی اصلی حرفه‌ای اروند کتاب (با پشتیبانی از زیرمنو)
   ========================================== */

:root {
    --ak-menu-bg: #ffffff;
    --ak-menu-text: #374151;
    --ak-menu-hover-bg: #f7f3e9; /* کرم روشن */
    --ak-menu-hover-text: #175338; /* سبز یشمی */
    --ak-menu-active: #b8862a; /* طلایی */
    --ak-menu-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ۱. کانتینر اصلی منو */
ul.flex.items-center.gap-1,
#menu-منوی-اصلی {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important; /* فاصله بین آیتم‌ها */
}

/* ۲. آیتم‌های سطح اول */
.menu-item {
    position: relative !important; /* ضروری برای موقعیت‌دهی زیرمنو */
}

.menu-item > a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 16px !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--ak-menu-text) !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
}

/* حالت هاور و آیتم فعال */
.menu-item > a:hover,
.menu-item.current-menu-item > a,
.menu-item.current_page_item > a {
    background-color: var(--ak-menu-hover-bg) !important;
    color: var(--ak-menu-hover-text) !important;
}

.menu-item.current-menu-item > a {
    color: var(--ak-menu-active) !important;
    font-weight: 700 !important;
}

/* ۳. آیکون فلش برای آیتم‌های دارای زیرمنو */
.menu-item-has-children > a::after {
    content: '▼' !important;
    font-size: 0.6em !important;
    margin-right: 4px !important;
    transition: transform 0.3s ease !important;
    opacity: 0.6;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
    opacity: 1;
}

/* ۴. استایل زیرمنو (Dropdown) */
.sub-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important; /* تراز راست برای زبان فارسی */
    min-width: 220px !important;
    background: var(--ak-menu-bg) !important;
    border-radius: 12px !important;
    box-shadow: var(--ak-menu-shadow) !important;
    border: 1px solid rgba(184, 134, 42, 0.15) !important; /* حاشیه طلایی بسیار محو */
    padding: 8px !important;
    margin: 8px 0 0 0 !important;
    list-style: none !important;
    
    /* انیمیشن مخفی/ظاهر شدن */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 9999 !important;
}

/* نمایش زیرمنو هنگام هاور روی آیتم والد */
.menu-item-has-children:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* ۵. آیتم‌های داخل زیرمنو */
.sub-menu .menu-item {
    width: 100% !important;
    margin: 0 !important;
}

.sub-menu .menu-item a {
    display: block !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--ak-menu-text) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.sub-menu .menu-item a:hover,
.sub-menu .menu-item.current-menu-item a {
    background-color: var(--ak-menu-hover-bg) !important;
    color: var(--ak-menu-hover-text) !important;
    padding-right: 20px !important; /* افکت حرکت جزئی به چپ هنگام هاور */
}

/* ۶. زیرمنوهای تو در تو (سطح ۳ به بعد) */
.sub-menu .menu-item-has-children > .sub-menu {
    top: 0 !important;
    right: 100% !important; /* باز شدن به سمت چپ در حالت RTL */
    margin-right: 8px !important;
}

.sub-menu .menu-item-has-children > a::after {
    content: '◀' !important; /* فلش به سمت چپ برای زیرمنوی عمقی */
    float: left !important;
    margin-right: 0 !important;
    margin-top: 4px !important;
}

/* ==========================================
   ۷. بهینه‌سازی برای موبایل (Responsive)
   ========================================== */
@media (max-width: 768px) {
    ul.flex.items-center.gap-1,
    #menu-منوی-اصلی {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        width: 100% !important;
    }
    
    .menu-item > a {
        justify-content: space-between !important;
        width: 100% !important;
        padding: 12px 16px !important;
    }

    /* در موبایل، زیرمنوها به‌صورت آکاردئونی و ثابت نمایش داده می‌شوند */
    .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(247, 243, 233, 0.4) !important;
        margin-top: 4px !important;
        padding-right: 16px !important; /* تورفتگی برای سلسله‌مراتب */
        display: none; /* پیش‌فرض مخفی */
    }
    
    /* نمایش با هاور یا فوکوس (برای سازگاری لمسی) */
    .menu-item-has-children:hover > .sub-menu,
    .menu-item-has-children:focus-within > .sub-menu {
        display: block !important;
    }
    
    .sub-menu .menu-item-has-children > .sub-menu {
        right: 0 !important;
        margin-right: 0 !important;
        padding-right: 16px !important;
    }
}
.front-page .product-card {
    background: #ffffff !important;
    border-radius: var(--ak-radius) !important;
    border: 1px solid rgba(184, 134, 42, 0.15) !important;
    box-shadow: var(--ak-shadow) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

.fornt-page .product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--ak-shadow-hover) !important;
    border-color: var(--ak-gold) !important;
}

/* ۳. تصویر محصول (بهینه‌شده برای جلد کتاب) */
.fornt-page .product-card img.ak-product-img{
    border-radius: var(--ak-radius) var(--ak-radius) 0 0 !important;
    transition: transform 0.5s ease !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 3/4 !important; /* نسبت استاندارد جلد کتاب */
    border-radius: 0!important;
}

.fornt-page .product-card:hover img {
    transform: scale(1.05) !important;
}

/* ۴. عنوان محصول */
.fornt-page .product-card .product-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--ak-text) !important;
    padding: 16px 16px 8px 16px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    transition: color 0.3s ease !important;
    /* محدود کردن به ۲ خط برای نظم بیشتر */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
/* ۵. قیمت محصول */
.fornt-page .product-card .price{
    padding: 0 16px 16px 16px !important;
    font-size: 0.95rem !important;
    color: var(--ak-primary) !important;
    font-weight: 800 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.ak-product-title-link{
    padding: 10px;
    display: block;
    text-align: center;
    font-size: 11px;
}
.ak-product-price-wrapper{
    text-align: center;
    font-size: 11px;
    padding: 5px;
}
.button.product_type_simple.add_to_cart_button.ajax_add_to_cart{
    margin:0px!important;
    border-radius: 0!important;
}
.ak-product-title-link h3{
    height: 32px;
    line-height: 16px;
    overflow:hidden;
}
.hero-slider::before{
    content:'';
    position: absolute;
    width:100%;
    height: 100%;
    left:0;
    top:0;
    background: url('../images/book.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
}