/*
Theme Name: Nafis Home
Description: قالب بلوکی و قابل ویرایش نفیس هوم برای ووکامرس.
Version: 0.2.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: nafis-shop
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, full-site-editing, block-patterns, rtl-language-support
*/
/* Low-specificity defaults allow visual editor settings to override them. */
*{box-sizing:border-box}body{margin:0}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b19335;outline-offset:4px}
:where(.wp-site-blocks)>:where(header,main,footer){margin-block-start:0}
:where(.nafis-header){padding:16px 5%;border-bottom:1px solid #e5e8dc;gap:24px}
:where(.nafis-header .wp-block-group){margin-block-start:0}
:where(.nafis-logo img){width:92px;border-radius:50%}
:where(.nafis-brand-name){font-size:22px;font-weight:700;color:#51331e;margin:0}
:where(.nafis-brand-en){font:11px/1.5 Georgia,serif;letter-spacing:2px;color:#7c6248;margin:3px 0;text-align:center}
:where(.nafis-header .wp-block-navigation){font-size:14px}
:where(.nafis-header-tools){gap:12px;max-width:420px}
:where(.nafis-header .wp-block-search){max-width:220px}
:where(.nafis-header .wp-block-search__inside-wrapper){background:#f0f1eb;border:0;border-radius:30px;padding:5px 10px}
:where(.nafis-header .wp-block-search__input){background:transparent;border:0;min-width:0;font-size:14px}
:where(.nafis-header .wp-block-search__button){background:none;color:#536d40;border:0;padding:5px}
:where(.nafis-hero){background:#f2eee3}
:where(.nafis-hero>.wp-block-columns){gap:0;margin-bottom:0;align-items:center}
:where(.nafis-hero-copy){padding:55px 14% 55px 10%}
:where(.nafis-hero h1){font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.65}
:where(.nafis-hero p){color:#69705e}
:where(.nafis-hero .wp-block-image){margin:0}
:where(.nafis-hero .wp-block-image img){display:block;width:100%;height:auto}
:where(.nafis-eyebrow){font-size:14px;color:#6e785c}
:where(.nafis-caption){font-size:13px;margin-top:36px}
:where(.nafis-intro){padding:20px 6%;border-bottom:1px solid #e5e8dc;gap:16px;color:#6c765d;font-size:14px}
:where(.nafis-intro p){margin:0}
:where(.nafis-section,.nafis-content){padding:48px 5%}
:where(.nafis-collections){gap:28px}
:where(.nafis-collections img){aspect-ratio:1;object-fit:cover}
:where(.nafis-collections h3){font-size:16px}
:where(.nafis-editorial){margin:35px auto 65px;max-width:1180px;background:#f0f2e9}
:where(.nafis-editorial>.wp-block-columns){align-items:center;margin:0;gap:0}
:where(.nafis-editorial .wp-block-image){margin:0;mix-blend-mode:multiply}
:where(.nafis-editorial-copy){padding:35px 12%}
:where(.nafis-footer){text-align:center;background:#f2f3ec;padding:35px 5%;border-top:1px solid #e5e8dc}
:where(.nafis-footer-logo img){width:112px;border-radius:50%}
:where(.nafis-footer h2){font-size:24px;color:#51331e}
:where(.nafis-footer p){color:#69755c}
:where(.wp-block-woocommerce-product-template>li){background:white;border:1px solid #e5e8dc;border-radius:7px;padding-bottom:18px;overflow:hidden}
:where(.wp-block-woocommerce-product-template .wp-block-post-title){font-size:16px;padding:0 12px}
:where(.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price){font-size:15px}
:where(.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button){padding:0 12px}
:where(.wp-block-woocommerce-product-button a,.woocommerce button.button.alt,.woocommerce a.button.alt){background:#536d40;color:white;border-radius:5px;min-height:44px;line-height:1.7;padding:10px 18px}
:where(.nafis-product-summary){padding:10px 3%}
:where(.nafis-product-summary h1){font-size:clamp(1.6rem,3vw,2.5rem)}
:where(.nafis-product-gallery .woocommerce-product-gallery){width:100%;float:none}
:where(.nafis-product-gallery .woocommerce-product-gallery__image img){width:100%;height:auto;object-fit:contain}
:where(.woocommerce .quantity .qty){min-height:44px;border:1px solid #bac4b0;border-radius:4px}
:where(.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select){padding:10px;border:1px solid #bac4b0;border-radius:4px;background:white;min-height:44px}
:where(.woocommerce table.shop_table){border-color:#e5e8dc}
@media(max-width:900px){:where(.nafis-header){gap:16px}:where(.nafis-header-tools){flex-grow:1;max-width:100%;justify-content:flex-end}:where(.nafis-hero-copy){padding:32px 8%}}
@media(max-width:600px){:where(.nafis-logo img){width:68px}:where(.nafis-brand-name){font-size:19px}:where(.nafis-header){padding:12px 5%}:where(.nafis-header-tools){width:100%;justify-content:space-between}:where(.nafis-section,.nafis-content){padding:30px 5%}:where(.nafis-hero-copy){padding:30px 7%}:where(.nafis-caption){display:none}:where(.nafis-collections){gap:24px}:where(.nafis-collections .wp-block-image){max-width:220px;margin-inline:auto}:where(.nafis-editorial){margin:20px 5% 40px}:where(.nafis-editorial-copy){padding:25px 7%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Native WooCommerce customer forms retain their validation and access controls. */
:where(.woocommerce-account .woocommerce-MyAccount-navigation){background:#f3f3eb;border:1px solid #e5e8dc;border-radius:12px;padding:16px;box-sizing:border-box}
:where(.woocommerce-MyAccount-navigation ul){list-style:none;margin:0;padding:0}
:where(.woocommerce-MyAccount-navigation li a){display:block;padding:12px 14px;border-radius:7px;text-decoration:none}
:where(.woocommerce-MyAccount-navigation li.is-active a){background:#536d40;color:#fff}
:where(.woocommerce-MyAccount-content){min-width:0;overflow-wrap:anywhere}
:where(.woocommerce-MyAccount-content .woocommerce-Address,.nafis-account-help){padding:20px;background:#faf9f4;border:1px solid #e5e8dc;border-radius:10px;box-sizing:border-box}
:where(.woocommerce-account .woocommerce form.login,.woocommerce-account .woocommerce form.register){border:1px solid #e5e8dc;border-radius:12px;background:#fff}
:where(.woocommerce-account a:focus-visible,.woocommerce-account button:focus-visible,.woocommerce-account input:focus-visible){outline:3px solid #536d40;outline-offset:3px}
@media(max-width:768px){:where(.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content){float:none;width:100%;margin-block-end:24px}:where(.woocommerce-MyAccount-navigation ul){display:flex;flex-wrap:wrap;gap:4px}:where(.woocommerce-MyAccount-navigation li a){padding:10px}}
