/*
Theme Name: FAFEE — Luxury Accessories
Theme URI: https://example.com/fafee
Author: FAFEE
Description: قالب فروشگاهی فارسی، راست‌چین و واکنش‌گرا برای برند FAFEE؛ سازگار با WooCommerce.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fafee
*/
:root{--cream:#f7f2e9;--paper:#fffdf9;--brown:#443326;--brown2:#5b4431;--tan:#c8b49a;--muted:#817364;--line:#e6dbcd;--soft:#efe5d8;--radius:9px;--shadow:0 8px 24px rgba(68,51,38,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--brown);font-family:Tahoma,Arial,sans-serif;line-height:1.9;font-size:14px}body,button,input,select,textarea{font-family:Tahoma,Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:#967653}img{max-width:100%;height:auto;display:block}button,input,select,textarea{font-size:inherit}.container{width:min(1240px,94%);margin-inline:auto}.announcement{background:var(--brown);color:#f8f1e7;font-size:11px;padding:5px 0}.announcement .container{display:flex;justify-content:space-between;gap:12px}.site-header{background:rgba(255,253,249,.97);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(10px)}.header-inner{min-height:82px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}.brand{font-family:Georgia,'Times New Roman',serif;letter-spacing:4px;text-align:center;font-size:25px;line-height:1.1;color:var(--brown);white-space:nowrap}.brand small{display:block;font-family:Tahoma,sans-serif;letter-spacing:1.8px;font-size:8px;margin-top:5px}.custom-logo{max-height:58px;width:auto;margin:auto}.main-nav{display:flex;align-items:center;gap:20px;font-size:12px;white-space:nowrap}.main-nav ul{list-style:none;display:flex;align-items:center;gap:20px;margin:0;padding:0}.main-nav a{display:block;padding:8px 0}.main-nav a:hover,.main-nav .current-menu-item>a{border-bottom:1px solid var(--brown)}.header-actions{display:flex;align-items:center;gap:12px}.search-form{display:flex;background:#f0e8dd;border-radius:30px;padding:4px 12px;align-items:center}.search-form input[type=search]{background:transparent;border:0;outline:0;width:125px;font-size:11px;color:var(--brown)}.search-form button{background:none;border:0;cursor:pointer}.icon-link{font-size:19px;line-height:1}.menu-toggle{display:none;border:0;background:none;color:var(--brown);font-size:24px;cursor:pointer}.hero{min-height:340px;background:linear-gradient(90deg,rgba(231,215,194,.97) 0%,rgba(231,215,194,.8) 45%,rgba(188,158,128,.58) 100%);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;inset:0 48% 0 0;background:linear-gradient(110deg,rgba(255,250,241,.22),transparent);pointer-events:none}.hero-inner{display:grid;grid-template-columns:1.03fr .97fr;align-items:center;min-height:340px;position:relative;z-index:1}.hero-copy{padding:30px 3% 30px 0}.eyebrow{font-family:Georgia,serif;letter-spacing:2px;font-size:10px;direction:ltr;text-align:right}.hero h1{font-size:clamp(30px,3.4vw,46px);line-height:1.55;margin:7px 0;color:#38291e;font-weight:700}.hero p{font-size:15px;max-width:440px;margin:0 0 18px}.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wp-block-button__link{background:var(--brown)!important;color:#fff!important;border:1px solid var(--brown)!important;border-radius:28px!important;padding:10px 22px!important;display:inline-block;font-size:12px!important;line-height:1.5!important;cursor:pointer;transition:transform .2s,background .2s}.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--brown2)!important;color:white!important;transform:translateY(-1px)}.hero-visual{height:340px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 75%,rgba(108,76,50,.28),transparent 57%)}.hero-visual img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}.hero-bag{font-size:128px;filter:drop-shadow(0 20px 15px rgba(65,42,22,.18));transform:rotate(-7deg)}.section{padding:27px 0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-heading h2{font-size:20px;margin:0}.section-heading>a{font-size:12px;color:var(--muted)}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.category-card{min-height:135px;background:linear-gradient(135deg,#e9ddce,#f9f1e6);border-radius:var(--radius);padding:14px 17px;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid #eee2d4;position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s}.category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.category-card .emoji{font-size:49px;align-self:center;margin:auto;filter:drop-shadow(0 7px 5px rgba(68,51,38,.12))}.category-card strong{font-size:15px}.category-card span:last-child{font-size:11px;color:var(--muted)}.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.product-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;position:relative;min-width:0;transition:box-shadow .2s,transform .2s}.product-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.product-card .product-image{aspect-ratio:1/1;background:linear-gradient(135deg,#f0e4d6,#e6d5c2);display:flex;align-items:center;justify-content:center;font-size:74px;overflow:hidden;position:relative}.product-card .product-image img{width:100%;height:100%;object-fit:cover;margin:0}.product-info{padding:10px 11px 12px}.product-info h3{font-size:12px;margin:0 0 4px;line-height:1.8;min-height:22px}.price{font-weight:bold;font-size:12px}.price del{color:#9d9184;font-weight:normal}.price ins{text-decoration:none}.product-info .button,.product-info .add_to_cart_button{display:block;text-align:center;margin-top:9px;border-radius:5px!important;padding:8px 5px!important;font-size:11px!important}.badge{position:absolute;top:9px;right:9px;background:#6d4d35;color:white;border-radius:20px;padding:2px 9px;font-size:10px;z-index:2}.favorite{position:absolute;left:10px;top:8px;font-size:19px;color:var(--brown);z-index:2}.brand-story{display:grid;grid-template-columns:1fr 1fr;background:#eee1d1;border-radius:var(--radius);overflow:hidden}.story-art{min-height:210px;background:radial-gradient(ellipse at 50% 65%,#c4a98b,#e7d5c1 55%,#f1e6d9);display:flex;align-items:center;justify-content:center;font-size:92px}.story-copy{padding:25px 30px}.story-copy h2{margin:0 0 8px;font-size:23px}.story-copy p{margin:0 0 14px}.benefits{display:grid;grid-template-columns:repeat(4,1fr);background:#f0e7dc;border-radius:var(--radius);margin:20px auto;padding:15px 10px;gap:8px}.benefit{text-align:center;border-left:1px solid #ddcdbb;padding:0 5px}.benefit:last-child{border:0}.benefit strong{display:block;font-size:13px}.benefit span{font-size:10px;color:var(--muted)}.benefit .benefit-icon{font-size:24px;display:block;line-height:1.4}.footer{background:var(--brown);color:#f8f0e6;padding:30px 0 12px;margin-top:22px}.footer-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr 1.2fr;gap:25px}.footer h3{font-size:14px;margin:0 0 8px}.footer p,.footer a{font-size:11px;color:#e5d8c9}.footer .brand{color:#f8f0e6;text-align:right}.footer .brand small{color:#e5d8c9}.newsletter-form{display:flex;gap:5px;margin-top:10px}.newsletter-form input{min-width:0;width:100%;border:0;border-radius:4px;padding:8px;background:#fff9f1;color:var(--brown);font-size:11px}.newsletter-form button{border:0;border-radius:4px;background:#d2b99c;color:var(--brown);padding:7px 12px;cursor:pointer}.footer-bottom{border-top:1px solid #77604c;margin-top:22px;padding-top:10px;font-size:10px;text-align:center;color:#d9c9b8}.site-main{padding:30px 0;min-height:35vh}.page-title{font-size:25px}.entry-content{line-height:2}.woocommerce .site-main{padding:30px 0}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:10px;overflow:hidden}.woocommerce ul.products li.product a img{border-radius:7px}.woocommerce div.product div.images img{border-radius:10px}.woocommerce div.product .product_title{font-size:25px}.woocommerce span.onsale{background:#6d4d35;min-height:2.5em;min-width:2.5em;line-height:2.5em}.woocommerce-message{border-top-color:var(--brown)}.woocommerce-message:before{color:var(--brown)}.woocommerce .quantity .qty{min-height:40px;border:1px solid var(--line);border-radius:5px}.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{border:1px solid var(--line);border-radius:5px;padding:10px;background:#fffdf9}.woocommerce table.shop_table{border-color:var(--line);border-radius:8px}.woocommerce #payment #place_order{float:none;width:100%;margin-top:12px}.mobile-bottom{display:none}.no-products{background:var(--paper);padding:25px;border:1px solid var(--line);border-radius:var(--radius)}
@media(max-width:980px){.main-nav,.main-nav ul{gap:11px}.main-nav{font-size:11px}.header-inner{gap:12px}.search-form input[type=search]{width:90px}.products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-visual{height:310px}.hero-inner,.hero{min-height:310px}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body{font-size:13px;padding-bottom:62px}.announcement .container{justify-content:center}.announcement .container span:first-child{display:none}.header-inner{min-height:66px;display:flex;justify-content:space-between;gap:10px}.brand{font-size:20px;letter-spacing:3px;order:2}.brand small{font-size:7px}.custom-logo{max-height:46px}.header-actions{gap:9px;order:1}.search-form{display:none}.menu-toggle{display:block;order:3}.main-nav{display:none;position:absolute;top:66px;right:0;left:0;background:var(--paper);padding:12px 5%;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;box-shadow:var(--shadow)}.main-nav.open{display:flex}.main-nav ul{flex-direction:column;align-items:stretch;gap:0}.main-nav a{padding:10px 0;border-bottom:1px solid #f0e7dc}.hero,.hero-inner{min-height:250px}.hero-inner{grid-template-columns:1fr}.hero-copy{padding:24px 2%;position:relative;z-index:2}.hero h1{font-size:28px;margin:5px 0}.hero p{font-size:12px;max-width:260px}.hero-visual{display:none}.section{padding:18px 0}.section-heading h2{font-size:16px}.categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-card{min-height:112px;padding:10px}.category-card .emoji{font-size:36px}.category-card strong{font-size:13px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card .product-image{font-size:54px}.product-info{padding:8px}.product-info h3{font-size:11px}.product-info .button,.product-info .add_to_cart_button{font-size:10px!important}.brand-story{grid-template-columns:1fr}.story-art{min-height:110px;font-size:62px}.story-copy{padding:16px}.story-copy h2{font-size:19px}.benefits{grid-template-columns:repeat(2,1fr);padding:10px;margin:14px auto}.benefit{border:0;padding:8px 3px}.footer-grid{grid-template-columns:1fr 1fr;gap:15px}.footer-grid>div:first-child{grid-column:1/-1}.footer .brand{text-align:right}.mobile-bottom{display:flex;position:fixed;z-index:60;bottom:0;right:0;left:0;background:var(--paper);border-top:1px solid var(--line);justify-content:space-around;padding:7px 3px calc(7px + env(safe-area-inset-bottom));font-size:9px}.mobile-bottom a{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:50px}.mobile-bottom b{font-size:17px;font-weight:normal}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:48%!important;margin:0 0 12px!important}.woocommerce ul.products{display:flex;flex-wrap:wrap;justify-content:space-between}.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%;float:none}.woocommerce div.product .product_title{font-size:21px}.woocommerce table.shop_table{font-size:11px}}


/* FAFEE v1.2 — complete homepage and responsive image slider */
.hero-slider{height:clamp(300px,27vw,390px);position:relative;overflow:hidden;background:#ddc8b2;direction:rtl}
.hero-slides,.hero-slide{position:absolute;inset:0}
.hero-slide{opacity:0;visibility:hidden;transition:opacity .65s ease;display:flex;align-items:center;background:linear-gradient(90deg,#d9c2aa,#f1e5d6 52%,#c5a98b)}
.hero-slide.is-active{opacity:1;visibility:visible;z-index:1}
.hero-backdrop{position:absolute;inset:0;background:linear-gradient(270deg,rgba(238,224,207,.97) 0%,rgba(238,224,207,.91) 37%,rgba(238,224,207,.28) 66%,rgba(65,44,29,.04) 100%);z-index:1}
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 43%;}
.hero-slide-inner{position:relative;z-index:2;width:min(1240px,94%);margin:auto;display:flex;justify-content:flex-start;align-items:center;height:100%}
.hero-copy{width:min(52%,570px);padding:20px 0 35px;}
.hero-copy .eyebrow{font-size:11px;letter-spacing:2.5px;margin-bottom:8px}
.hero-copy h1{font-size:clamp(30px,3.4vw,48px);line-height:1.45;margin:0 0 8px;color:#38291e}
.hero-copy p{font-size:15px;line-height:2;max-width:440px;margin:0 0 18px}
.hero-copy .button{min-width:145px;text-align:center}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,251,245,.88);color:var(--brown);font-size:23px;cursor:pointer;display:grid;place-items:center;transition:background .2s,transform .2s}
.slider-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.05)}.slider-prev{left:24px}.slider-next{right:24px}
.slider-dots{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);z-index:5;display:flex;gap:8px;direction:ltr}
.slider-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(68,51,38,.35);cursor:pointer;transition:width .2s,background .2s}.slider-dot.is-active{width:20px;border-radius:10px;background:var(--brown)}
.category-card{padding:0;min-height:132px;justify-content:flex-end}.category-card .category-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s}.category-card:hover .category-photo{transform:scale(1.04)}.category-card:after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(0deg,rgba(242,231,217,.98),rgba(242,231,217,.08));z-index:1}.category-card .emoji{position:absolute;inset:0;display:grid;place-items:center;font-size:46px}.category-caption{position:relative;z-index:2;padding:10px 15px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px}.category-caption strong{font-size:15px}.category-caption span{font-size:10px;white-space:nowrap;color:#796650}
.best-sellers .products-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.product-card .product-image{aspect-ratio:1.12/1}.product-placeholder{font-size:60px}.product-info .button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-art{position:relative;overflow:hidden;min-height:230px;background:linear-gradient(130deg,#cbb399,#f0e5d7)}.story-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.story-art-placeholder{width:100%;height:100%;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#d8c2a8,#f1e5d8 70%);font-family:Georgia,serif;letter-spacing:5px;font-size:35px}.story-art-placeholder small{font:9px Tahoma,sans-serif;letter-spacing:2px}.story-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.story-copy .eyebrow{letter-spacing:2px}.benefits{margin-top:0}.search-toggle{display:none;border:0;background:transparent;color:var(--brown);font-size:22px;cursor:pointer}.newsletter-note{font-size:11px;color:#e5d8c9}
@media(max-width:980px){.hero-slider{height:320px}.hero-copy{width:58%}.best-sellers .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-card{min-height:120px}}
@media(max-width:700px){.hero-slider{height:300px}.hero-slide{align-items:flex-end}.hero-photo{object-position:58% center}.hero-backdrop{background:linear-gradient(0deg,rgba(238,224,207,.97) 0%,rgba(238,224,207,.87) 48%,rgba(238,224,207,.08) 100%)}.hero-slide-inner{align-items:flex-end;padding-bottom:42px}.hero-copy{width:100%;padding:15px 2% 10px}.hero-copy .eyebrow{font-size:8px;margin-bottom:2px}.hero-copy h1{font-size:26px;max-width:90%;line-height:1.45}.hero-copy p{font-size:11px;line-height:1.8;max-width:75%;margin-bottom:9px}.hero-copy .button{font-size:10px!important;padding:7px 14px!important}.slider-arrow{width:31px;height:31px;font-size:17px;top:40%}.slider-prev{left:10px}.slider-next{right:10px}.slider-dots{bottom:12px}.category-card{min-height:105px}.category-caption{padding:7px 9px;display:block}.category-caption strong{display:block;font-size:12px}.category-caption span{display:block;font-size:9px}.best-sellers .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card .product-image{aspect-ratio:1/1}.story-art,.story-art-placeholder{min-height:130px}.story-copy{padding:15px}.story-copy h2{font-size:19px}.search-toggle{display:block;order:0}.header-actions{gap:7px}.search-form.search-open{display:flex;position:absolute;top:66px;right:3%;left:3%;z-index:55;padding:10px 13px;box-shadow:var(--shadow);border:1px solid var(--line)}.search-form.search-open input[type=search]{width:100%;font-size:13px}.header-actions .icon-link:first-child{font-size:17px}}
@media(prefers-reduced-motion:reduce){.hero-slide,.category-photo,.slider-arrow{transition:none!important}}

/* FAFEE brand logo update: use the supplied official badge logo */
.brand-logo{display:flex;align-items:center;justify-content:center;letter-spacing:0;width:auto;min-width:0}
.brand-logo img{display:block;width:76px;height:76px;max-height:76px;object-fit:contain;margin:auto;border-radius:50%}
.brand-logo .custom-logo-link{display:flex;align-items:center;justify-content:center}
.brand-logo .custom-logo{width:76px;height:76px;max-height:76px;object-fit:contain}
.slider-arrow{display:none!important}
@media(max-width:700px){.brand-logo img,.brand-logo .custom-logo{width:58px;height:58px;max-height:58px}.header-inner{min-height:66px}}

/* FAFEE v1.4: fixed compact transparent PNG logo; prevent custom-logo sizing from breaking header */
.site-header .header-inner{min-height:82px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.site-header .brand-logo{display:flex!important;align-items:center;justify-content:center;width:68px!important;height:68px!important;min-width:68px!important;max-width:68px!important;overflow:hidden;justify-self:center;line-height:0}
.site-header .brand-logo img{display:block!important;width:68px!important;height:68px!important;max-width:68px!important;max-height:68px!important;object-fit:contain!important;border-radius:0!important;margin:0!important}
.site-header .brand-logo .custom-logo-link{display:none!important}
@media(max-width:700px){.site-header .header-inner{min-height:66px;display:flex;justify-content:space-between;gap:10px}.site-header .brand-logo{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;order:2}.site-header .brand-logo img{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important}.site-header .header-actions{order:1}.site-header .menu-toggle{order:3}}


/* FAFEE v1.5: Yekan-first Persian typography */
:root{--fafee-persian-font:"Yekan","B Yekan","BYekan","Yekan Bakh",Tahoma,Arial,sans-serif}
html,body,button,input,select,textarea,.main-nav,.announcement,.hero-copy,.section-heading,.category-caption,.product-info,.story-copy,.benefits,.footer,.site-main,.woocommerce, .woocommerce button.button,.woocommerce input.button,.woocommerce a.button{font-family:var(--fafee-persian-font)!important}
/* Keep the English wordmark elegant */
.brand:not(.brand-logo),.eyebrow,.story-art-placeholder{font-family:Georgia,"Times New Roman",serif}
