/*
Theme Name: Hosein Dehnamaki Beaver builder Child Theme
Theme URI: https://hoseindehnamaki.ir
Version: 1.0
Description: Hosein Dehnamaki child theme to develop custom codes based on beaver theme.
Author: Hosein Dehnamaki
Author URI: https://hoseindehnamaki.ir
template: bb-theme
*/

/* Add your custom styles here... */ 
@import url(css/fontiran.css); /* مسیر فراخوانی فونت */

/* * 1. تنظیمات عمومی (فونت، RTL و پس‌زمینه)
*/
body {
	/* توجه: کاراکتر اضافی در IRANYekanXFaNum حذف شد */
	font-family: IRANYekanXFaNum !important;
	direction: rtl;
	background-color: #cdcdcd;
	margin: 0;
}

/* اعمال فونت بر روی عناوین و فیلدهای ورودی */
h1, h2, h3, h4, h5, h6, input, textarea, p {
	font-family: IRANYekanXFaNum !important;
}

/* وزن‌دهی به H1 */
h1 {
	font-weight: bold;
}

/* کلاس‌های اندازه متن */
.text-small {
	font-size: 0.8em;
}

p {
    font-size: 15px;
    line-height: 1.8;
}



/* ایجاد فاصله برای جلوگیری از رفتن محتوا زیر هدر */
.fl-page-content {
    padding-top: 70px; /* این عدد را با ارتفاع هدر خود تنظیم کنید */
}

/* اگر هدر در موبایل کوتاه‌تر است، اینجا تنظیم کنید */
@media (max-width: 768px) {
    .fl-page-content {
        padding-top: 50px; /* ارتفاع هدر در موبایل */
    }
}

/*پیام افزودن به سبد خرید*/
.woocommerce-message {
    background-color: transparent !important;
    border: none !important;
    border-right: 2px solid #fe7551 !important;
    color: #333 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 25px;
    pointer-events: auto;
    animation: slideUpFade 0.5s ease forwards;
}

/* =========================================
   استایل تب سفارشات (Orders) - هویت بصری
   ========================================= */

.custom-orders-wrapper {
    font-family: IRANYekanXFaNum, sans-serif !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- 1. هدر لیست (طبق هویت بصری: باکس اطلاعاتی) --- */
.orders-header-row {
    display: flex;
    align-items: center;
    background-color: #edece3; /* کرم ثانویه */
    border-radius: 12px;
    padding: 15px 20px;
    color: #777;
    font-size: 14px;
    font-weight: normal;
}

/* ستون‌بندی */
.col-id { flex: 0 0 15%; }
.col-date { flex: 0 0 20%; }
.col-status { flex: 0 0 20%; text-align: center; }
.col-total { flex: 0 0 25%; }
.col-actions { flex: 0 0 20%; text-align: left; }

/* --- 2. کارت سفارش (طبق هویت بصری: تعاملی) --- */
.order-card {
    background-color: #fff; /* سفید */
    border: 1px solid #e1e1e1; /* بوردر ظریف */
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

/* هاور: بوردر نارنجی */
.order-card:hover {
    border-color: none;
}

/* ردیف اطلاعات بالا */
.order-info-row {
    display: flex;
    align-items: center;
    width: 100%;
}

/* استایل داده‌ها */
.col-id a {
    font-weight: 800;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.col-date {
    color: #555;
    font-size: 14px;
}

.col-total .woocommerce-Price-amount {
    color: #fe7551; /* نارنجی برای قیمت */
    font-weight: 800;
    font-size: 15px;
}

/* بج وضعیت (Flat & Clean) */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* رنگ‌بندی وضعیت‌ها (فلت) */
.status-completed { background-color: rgba(40, 167, 69, 0.1); color: #28a745; } /* سبز ملایم */
.status-processing { background-color: rgba(254, 117, 81, 0.1); color: #fe7551; } /* نارنجی ملایم */
.status-cancelled, .status-failed { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; } /* قرمز ملایم */
.status-on-hold { background-color: rgba(255, 193, 7, 0.15); color: #d39e00; } /* زرد */

/* دکمه جزئیات (Outline Orange) */
.btn-order-details {
    display: inline-block;
    background: #fff;
    color: #fe7551;
    border: 1px solid #fe7551;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.3s;
}

.btn-order-details:hover {
    background: #fe7551;
    color: #fff;
}

/* --- 3. ردیف تصاویر (تامنیل‌ها) --- */
.order-thumbs-row {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9; /* خط خیلی محو */
}

.mini-thumb img {
    width: 45px;
    height: 45px;
    border-radius: 8px; /* گردی طبق هویت بصری */
    object-fit: cover;
    border: 1px solid #eee;
}

/* مخفی کردن لیبل موبایل در دسکتاپ */
.mobile-label { display: none; }

/* --- 4. ریسپانسیو (موبایل) --- */
@media (max-width: 768px) {
    /* مخفی کردن هدر در موبایل */
    .orders-header-row { display: none; }

    .order-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-info-row > div {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* نمایش لیبل‌ها در موبایل */
    .mobile-label {
        display: inline-block;
        color: #999;
        font-size: 13px;
    }

    .col-actions {
        margin-top: 10px;
        justify-content: flex-end !important;
    }
    
    .btn-order-details {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* =========================================
   استایل صفحه جزئیات سفارش (View Order)
   ========================================= */

.custom-view-order-wrapper {
    font-family: IRANYekanXFaNum, sans-serif !important;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- 1. پنل اطلاعات کلی (Layer 2: Cream) --- */
.order-info-panel {
    background-color: #edece3; /* کرم ثانویه */
    border-radius: 15px;
    padding: 0;
    border: none;
}

.order-info-panel .panel-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.order-info-panel .panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* بج وضعیت */
.status-badge {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.status-completed { background: rgba(40,167,69,0.1); color: #28a745; }
.status-processing { background: rgba(254,117,81,0.1); color: #fe7551; }
.status-on-hold { background: rgba(255,193,7,0.15); color: #d39e00; }
.status-failed { background: rgba(220,53,69,0.1); color: #dc3545; }

.order-info-panel .panel-body {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-col {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-col .label { font-size: 13px; color: #777; }
.info-col .value { font-size: 14px; font-weight: 500; color: #333; }
.info-col .price-accent { color: #fe7551; font-size: 17px; font-weight: 900; }


/* --- 2. باکس اقلام سفارش (Layer 3: White) --- */
.order-items-card, .order-downloads-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    padding: 25px;
    transition: border-color 0.3s;
}

.order-items-card:hover {
    border-color: none; /* هاور نارنجی */
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f9f9f9;
}

/* جدول اقلام */
.custom-order-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-order-table th {
    text-align: right;
    color: #777;
    font-weight: normal;
    padding-bottom: 15px;
    font-size: 14px;
}

.custom-order-table td {
    padding: 15px 0;
    border-top: 1px solid #f9f9f9;
    vertical-align: middle;
}

/* استایل آیتم محصول */
.item-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-thumb img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.item-details .name {
    font-weight: 700;
    color: #333;
    font-size: 15px;
    display: block;
}

.qty-badge {
    display: inline-block;
    background: #f5f5f5;
    color: #777;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 5px;
}

.product-total {
    text-align: left;
    font-weight: 700;
    color: #555;
}

/* بخش جمع کل (Footer Table) */
.custom-order-table tfoot th {
    text-align: right;
    border-top: 1px solid #eee;
    padding: 15px 0;
    font-weight: normal;
}

.custom-order-table tfoot td {
    text-align: left;
    border-top: 1px solid #eee;
    font-weight: bold;
    color: #333;
}

.total-row.order-total td {
    color: #fe7551; /* نارنجی برای توتال نهایی */
    font-size: 18px;
    font-weight: 900;
}


/* --- 3. آدرس‌ها --- */
.order-addresses-row {
    display: flex;
    gap: 20px;
}

.address-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    padding: 25px;
}

.address-card address {
    font-style: normal;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
}

/* --- دکمه‌های دانلود (اگر باشد) --- */
.woocommerce-MyAccount-downloads .button {
    background-color: #fe7551 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .order-info-panel .panel-body {
        flex-direction: column;
    }
    
    .order-addresses-row {
        flex-direction: column;
    }
    
    .custom-order-table thead {
        display: none; /* مخفی کردن هدر جدول در موبایل */
    }
    
    .item-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-total {
        text-align: right;
        padding-top: 5px;
        color: #fe7551;
    }
}

/* =========================================
   استایل صفحه ویرایش حساب (Edit Account)
   ========================================= */

.custom-edit-account-wrapper {
    font-family: IRANYekanXFaNum, sans-serif !important;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- 1. کارت‌های فرم (Layer 3: White Cards) --- */
.edit-account-card {
    background-color: #fff;
    border: 1px solid #e1e1e1; /* بوردر ظریف طبق سند */
    border-radius: 15px;
    padding: 0; /* پدینگ داخلی جدا داده می‌شود */
    overflow: hidden;
}

/* هدر کارت */
.edit-account-card .card-header {
    background-color: #fcfcfc; /* کمی متفاوت از سفید برای تفکیک */
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.edit-account-card .card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.edit-account-card .card-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    display: block;
}

/* بدنه کارت */
.edit-account-card .card-body {
    padding: 25px;
}

/* --- 2. استایل فیلدها (Inputs) --- */
/* لیبل‌ها */
.woocommerce-EditAccountForm label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

/* اینپوت‌ها */
.woocommerce-EditAccountForm input.input-text {
    background-color: #fff !important;
    border: 1px solid #e1e1e1 !important; /* بوردر ظریف */
    border-radius: 12px !important;
    padding: 12px 15px !important;
    color: #333 !important;
    font-family: IRANYekanXFaNum !important;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}

/* هاور و فوکوس اینپوت */
.woocommerce-EditAccountForm input.input-text:focus {
    border-color: #fe7551 !important; /* نارنجی */
    outline: none !important;
}

.woocommerce-EditAccountForm em {
    font-size: 12px;
    color: #999;
    font-style: normal;
    margin-top: 5px;
    display: block;
}

/* گروپ کردن دو فیلد کنار هم (نام و نام خانوادگی) */
.form-row-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-group .form-row {
    flex: 1;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* فاصله بین فیلدها */
.woocommerce-EditAccountForm .form-row {
    margin-bottom: 20px;
}

/* حذف فیلدست پیش‌فرض ووکامرس */
.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.woocommerce-EditAccountForm fieldset legend {
    display: none; /* مخفی کردن لجند قدیمی */
}

/* --- 3. دکمه ذخیره (Standard Button: Orange) --- */
.form-actions {
    margin-top: 10px;
}

.btn-save-changes {
    background-color: #fe7551 !important; /* نارنجی برند */
    color: #fff !important;
    border: 1px solid #fe7551 !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s;
    float: none !important; /* حذف شناوری پیش‌فرض */
    display: inline-block;
}

.btn-save-changes:hover {
    background-color: #e06040 !important;
    border-color: #e06040 !important;
}

/* --- ریسپانسیو --- */
@media (max-width: 768px) {
    .form-row-group {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row-group .form-row {
        margin-bottom: 20px !important;
    }
    
    .btn-save-changes {
        width: 100%; /* دکمه تمام عرض در موبایل */
        text-align: center;
    }
}


/* =========================================
   استایل صفحه اختصاصی داشبوردها (/dashboards/)
   ========================================= */

.custom-dashboards-page-wrapper {
    font-family: IRANYekanXFaNum, sans-serif !important;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- 1. هدر صفحه (باکس کرم #edece3) --- */
.dashboards-header-box {
    background-color: #edece3; /* کرم ثانویه */
    border-radius: 15px;
    padding: 25px 30px;
    border: none;
    /* حذف سایه طبق درخواست */
}

.dashboards-header-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 800;
    color: #333;
}

.dashboards-header-box p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* --- 2. گرید محصولات (3 ستونه) --- */
.dashboards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* کارت محصول (سفید + بوردر) */
.dashboard-card {
    background-color: #fff;
    border: 1px solid #e1e1e1; /* بوردر ظریف */
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

/* افکت هاور: بوردر نارنجی */
.dashboard-card:hover {
    border-color: #fe7551;
    transform: translateY(-3px); /* حرکت ریز به بالا */
}

/* تصویر محصول */
.dashboard-card .card-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

/* بدنه کارت */
.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 15px;
}

.dashboard-card .product-title a {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.dashboard-card:hover .product-title a {
    color: #fe7551;
}

/* دکمه مشاهده (نارنجی توخالی -> توپر در هاور) */
.btn-go-dashboard {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #fff;
    color: #fe7551 !important;
    border: 1px solid #fe7551; /* بوردر نارنجی */
    padding: 10px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s;
}

.btn-go-dashboard:hover {
    background-color: #fe7551;
    color: #fff !important;
}

/* --- 3. حالت خالی (Empty State) --- */
.no-dashboards-found {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.empty-icon {
    font-size: 40px;
    opacity: 0.5;
}

.btn-go-shop {
    background-color: #fe7551;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
    .dashboards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dashboards-grid { grid-template-columns: 1fr; }
    
    .dashboards-header-box {
        text-align: center;
        padding: 20px;
    }
}

/* =========================================
   استایل صفحه دانلودها (Downloads)
   ========================================= */

.custom-downloads-wrapper {
    font-family: IRANYekanXFaNum, sans-serif !important;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- 1. هدر صفحه (کرم #edece3) --- */
.downloads-header-box {
    background-color: #edece3;
    border-radius: 15px;
    padding: 25px 30px;
    border: none;
}

.downloads-header-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 800;
    color: #333;
}

.downloads-header-box p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* --- 2. گرید دانلودها --- */
.downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* کارت دانلود */
.download-card {
    background-color: #fff;
    border: 1px solid #e1e1e1; /* بوردر ظریف */
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

/* هاور: بوردر نارنجی */
.download-card:hover {
    border-color: #fe7551;
}

/* تصویر/آیکون */
.download-icon {
    flex-shrink: 0;
}

.download-icon img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.file-icon {
    font-size: 30px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
}

/* اطلاعات */
.download-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.download-info .product-name a {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.download-info .file-name {
    font-size: 13px;
    color: #777;
}

.download-info .expiry-date {
    font-size: 12px;
    color: #999;
}
.download-info .expiry-date.permanent {
    color: #28a745; /* سبز برای دسترسی دائمی */
}

/* دکمه دانلود */
.download-action {
    flex-shrink: 0;
}

.btn-download-orange {
    display: inline-block;
    background-color: #fff;
    color: #fe7551 !important;
    border: 1px solid #fe7551;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-download-orange:hover {
    background-color: #fe7551;
    color: #fff !important;
    transform: translateY(-2px);
}

/* --- 3. حالت خالی --- */
.no-downloads-found {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.empty-icon {
    font-size: 40px;
    opacity: 0.5;
}

.btn-go-shop {
    background-color: #fe7551;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
        gap: 15px;
    }
    
    .download-action {
        width: 100%;
    }
    
    .btn-download-orange {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .download-icon img {
        width: 50px;
        height: 50px;
    }
}

/* =========================================
   استایل صفحه فروشگاه (Shop Archive)
   ========================================= */

.custom-shop-wrapper {
    font-family: IRANYekanXFaNum, sans-serif !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- 1. هدر فروشگاه (Layer 2: Cream) --- */
.shop-header-box {
    background-color: #edece3; /* کرم ثانویه */
    border-radius: 15px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: none;
}

.shop-title {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    margin: 0;
}

.shop-header-box p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* مسیر (Breadcrumb) */
.shop-breadcrumb {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}
.shop-breadcrumb a {
    color: #555;
    text-decoration: none;
}

/* --- 2. تولبار (مرتب‌سازی) --- */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.woocommerce-ordering select {
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    background: #fff;
    font-family: inherit;
    color: #555;
}

/* --- 3. گرید محصولات (Layer 3: White Cards) --- */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 ستون برای دسکتاپ */
    gap: 25px;
}

.custom-product-card {
    background-color: #fff;
    border: 1px solid #e1e1e1; /* بوردر ظریف */
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
}

/* هاور کارت: بوردر نارنجی */
.custom-product-card:hover {
    border-color: #fe7551;
    transform: translateY(-5px);
}

/* تصویر */
.product-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.product-thumbnail img {
    width: 100%;
    height: 200px; /* ارتفاع ثابت */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-product-card:hover .product-thumbnail img {
    transform: scale(1.05); /* زوم ملایم */
}

/* بج حراج */
.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fe7551;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
}

/* بدنه محصول */
.product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 10px;
}

.product-cat {
    font-size: 11px;
    color: #999;
}
.product-cat a { color: #999; text-decoration: none; }

.product-title {
    font-size: 15px;
    font-weight: 800;
    color: #333;
    line-height: 1.4;
    margin: 0;
}
.product-title a {
    color: #333;
    text-decoration: none;
}
.custom-product-card:hover .product-title a {
    color: #fe7551;
}

/* فوتر کارت (قیمت و دکمه) */
.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-price {
    font-size: 16px;
    font-weight: 900;
    color: #fe7551; /* نارنجی */
}
.product-price del {
    color: #ccc;
    font-size: 13px;
    margin-left: 5px;
    font-weight: normal;
}

/* --- دکمه افزودن به سبد (Premium CTA: Golden) --- */
.product-action .button {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #fccb63 0%, #ffe5a3 100%); /* گرادینت طلایی */
    color: #000 !important; /* متن مشکی */
    padding: 10px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid #fff; /* خط نازک سفید دورش */
    box-shadow: 0 4px 10px rgba(252, 203, 99, 0.3); /* سایه طلایی */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* افکت هاور دکمه طلایی */
.product-action .button:hover {
    background: linear-gradient(135deg, #ffe5a3 0%, #fccb63 100%); /* معکوس کردن گرادینت */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(252, 203, 99, 0.4);
}

/* --- صفحه‌بندی (Pagination) --- */
.shop-pagination .page-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.shop-pagination .page-numbers li span, 
.shop-pagination .page-numbers li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e1e1e1;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.shop-pagination .page-numbers li span.current,
.shop-pagination .page-numbers li a:hover {
    background: #fe7551; /* نارنجی */
    color: #fff;
    border-color: #fe7551;
}

/* --- ریسپانسیو --- */
@media (max-width: 1024px) {
    .shop-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .shop-products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .shop-header-box { padding: 20px; }
    .product-thumbnail img { height: 150px; }
}

@media (max-width: 480px) {
    .shop-products-grid { grid-template-columns: 1fr; } /* موبایل تک ستونه */
}