/*
Theme Name: FIDAVON
Theme URI: https://example.com/fidaun/
Author: FIDAVON Development Team
Description: قالب اختصاصی سبک و ماژولار FIDAVON برای WordPress و WooCommerce، تبدیل‌شده از تمپلیت اجرایی HTML بدون وابستگی به صفحه‌ساز؛ شامل تجربه کامل سبد خرید، تسویه‌حساب و پرداخت ووکامرس.
Version: 0.9.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fidaun
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu, featured-images, woocommerce
*/


/* Product purchase benefits + metered-product plugin extension point */
.fidaun-purchase-benefits{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:12px;
    margin-top:0;
    margin-bottom:28px;
}
.fidaun-benefit-item{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:76px;
    padding:14px 16px;
    border:1px solid var(--border,#e6e8eb);
    border-radius:14px;
    background:var(--surface,#fff);
}
.fidaun-benefit-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:var(--surface-soft,#f4f7f8);
    font-size:18px;
    line-height:1;
}
.fidaun-benefit-item strong,
.fidaun-benefit-item small{display:block;}
.fidaun-benefit-item strong{font-size:14px;line-height:1.6;}
.fidaun-benefit-item small{margin-top:2px;font-size:12px;line-height:1.6;color:var(--text-muted,#6b7280);}
.fidaun-metered-purchase{
    margin:18px 0;
    padding:16px;
    border:1px solid var(--border,#e6e8eb);
    border-radius:14px;
    background:var(--surface-soft,#f8fafb);
}
@media (max-width:1100px){
    .fidaun-purchase-benefits{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:720px){
    .fidaun-purchase-benefits{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
        margin-bottom:20px;
    }
    .fidaun-benefit-item{min-height:68px;padding:10px 12px;gap:8px;}
    .fidaun-benefit-icon{width:34px;height:34px;flex-basis:34px;font-size:16px;}
    .fidaun-benefit-item strong{font-size:13px;}
    .fidaun-benefit-item small{font-size:11px;}
}
@media (max-width:420px){
    .fidaun-purchase-benefits{grid-template-columns:1fr;}
}


/* -------------------------------------------------------------------------
 * Price rendering
 * wc_price() outputs <span class="woocommerce-Price-amount amount"><bdi>…</bdi></span>
 * The previous CSS targeted `.price strong`, which never matched, so prices in
 * product cards inherited body typography and looked broken next to the
 * currency label. These rules style the real WooCommerce markup and keep the
 * number + currency correctly isolated in an RTL document.
 * ---------------------------------------------------------------------- */
.woocommerce-Price-amount{
    display:inline-flex;
    align-items:baseline;
    gap:4px;
    direction:rtl;
    unicode-bidi:isolate;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
    font-feature-settings:"tnum" 1;
}
.woocommerce-Price-amount bdi{display:inline-flex;align-items:baseline;gap:4px;direction:rtl;unicode-bidi:isolate}
.woocommerce-Price-currencySymbol{font-size:.72em;font-weight:600;color:var(--muted,#647681)}

.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;line-height:1.6}
.price .woocommerce-Price-amount{font-size:18px;font-weight:800;color:var(--navy,#071B2B)}
.price ins,
.product-price ins{text-decoration:none;background:transparent}
.price del,
.product-price del{opacity:.65;text-decoration:line-through}
.price del .woocommerce-Price-amount,
.product-price del .woocommerce-Price-amount{font-size:.72em;font-weight:600;color:#9caab2}
.price .woocommerce-Price-amount + .woocommerce-Price-amount{margin-inline-start:4px}

.product-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.product-price .woocommerce-Price-amount{font-size:clamp(24px,3vw,34px);font-weight:800;color:var(--navy,#071B2B)}
.product-price small{font-size:14px;font-weight:500;color:var(--muted,#647681)}

/* Shop layout without a filter provider should not leave an empty column. */
.shop-layout.no-filters{grid-template-columns:1fr}

.skip-link:focus-visible{
    position:fixed;
    inset-block-start:12px;
    inset-inline-start:12px;
    width:auto;height:auto;
    clip:auto;clip-path:none;
    padding:10px 16px;
    background:#fff;
    border-radius:10px;
    z-index:1000;
}
