/*
Theme Name: ÉLORA Beauty | الورا بیوتی
Theme URI: https://example.com/elora-beauty
Author: ÉLORA
Description: قالب فارسی و راست‌چین فروشگاهی با پس‌زمینه روشن، سازگار با ووکامرس. رنگ‌ها، اطلاعات تماس، اسلایدر و بنرها از بخش «سفارشی‌سازی» قابل ویرایش است.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: elora-beauty
Tags: rtl-language-support, e-commerce, custom-colors, custom-logo, translation-ready
*/
:root{--pink:#C58F96;--pinkd:#a9727a;--bg:#FBF6F0;--card:#fff;--ink:#51433F;--mut:#8a7a74;--line:#eadfd3;--soft:#F5E9E6}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Vazirmatn,Tahoma,"Segoe UI",sans-serif;line-height:1.8;overflow-x:hidden}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit;color:inherit}
.wrap{max-width:1240px;margin:auto;padding:0 clamp(14px,3vw,32px)}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bar{background:var(--soft);text-align:center;font-size:.82rem;padding:6px 12px}
.site-header{position:sticky;top:0;z-index:30;background:var(--bg);border-bottom:1px solid var(--line)}
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
.hb{display:flex;align-items:center;gap:10px;min-height:64px}
.logo{display:flex;flex-direction:column;line-height:1.1;margin-inline-end:auto}
.logo b{font-weight:800;letter-spacing:.28em;font-size:1.25rem;color:var(--pinkd)}.logo small{font-size:.72rem;color:var(--mut)}
.custom-logo{max-height:52px;width:auto}
.main-nav{margin-inline-end:auto}.main-nav ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}
.main-nav a{display:block;padding:8px 12px;border-radius:99px;font-size:.92rem}
.main-nav a:hover,.main-nav .current-menu-item>a{background:var(--soft)}
.ib{position:relative;width:44px;height:44px;border:0;background:none;border-radius:50%;display:grid;place-items:center;cursor:pointer}
.ib:hover{background:var(--soft)}.ib svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6}
.bd{position:absolute;top:2px;inset-inline-start:2px;min-width:18px;height:18px;border-radius:9px;background:var(--pinkd);color:#fff;font-size:.68rem;display:grid;place-items:center;padding:0 4px}
.bd:empty{display:none}.burger{display:none}
.sbar{display:none;padding:8px 0 12px}.sbar.open{display:block}
.sbar input[type=search]{width:100%;padding:12px 18px;border-radius:99px;border:1px solid var(--line);background:var(--card)}
.drawer{position:fixed;inset:0;z-index:100;background:rgba(60,45,40,.35);display:none}.drawer.open{display:block}
.drawer nav{position:absolute;top:0;bottom:0;inset-inline-start:0;width:min(82vw,320px);background:var(--bg);padding:20px 16px;overflow:auto}
.drawer ul{list-style:none;margin:0;padding:0}.drawer a{display:block;padding:14px 12px;border-radius:12px}.drawer a:hover{background:var(--soft)}
.btn,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 24px;border-radius:99px;border:1px solid var(--pinkd);background:var(--pinkd);color:#fff;font-weight:600;font-family:inherit;line-height:1.4;cursor:pointer;transition:transform .2s,background .2s}
.btn:hover,.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--pink);color:#fff;transform:translateY(-2px)}
.btn.o{background:transparent;color:var(--ink);border-color:var(--ink)}.btn.o:hover{background:var(--soft);color:var(--ink)}
.hero{position:relative;margin-top:16px;border-radius:28px;overflow:hidden;background:var(--soft);min-height:clamp(380px,56vw,520px)}
.sl{position:absolute;inset:0;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:20px;padding:clamp(20px,5vw,64px);opacity:0;visibility:hidden;transition:opacity .9s,visibility .9s}
.sl.on{opacity:1;visibility:visible}
.sl h1{font-size:clamp(1.7rem,4.4vw,3.2rem);line-height:1.35;margin:0 0 12px;font-weight:800}.sl p{margin:0 0 22px;color:var(--mut);max-width:30em}
.sl .art{height:100%;min-height:200px;border-radius:22px;background:linear-gradient(135deg,#fff,var(--soft)) center/cover no-repeat}
.dots{position:absolute;bottom:12px;inset-inline:0;display:flex;justify-content:center;gap:4px}
.dots button{width:28px;height:28px;border:0;background:none;display:grid;place-items:center;cursor:pointer}
.dots button:after{content:"";width:9px;height:9px;border-radius:50%;background:var(--pinkd);opacity:.4;transition:.3s}.dots button.on:after{opacity:1;width:22px;border-radius:5px}
.sec{padding:clamp(36px,6vw,72px) 0 0}.sh{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:22px}
.sh h2{margin:0;font-size:clamp(1.3rem,2.6vw,1.9rem)}.sh a{color:var(--pinkd);font-size:.92rem;white-space:nowrap}
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cat{border-radius:22px;overflow:hidden;background:var(--card);border:1px solid var(--line);text-align:center;transition:transform .3s,box-shadow .3s}
.cat:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(81,67,63,.1)}
.cat .im{aspect-ratio:1/1;background:var(--soft);display:block}.cat .im img{width:100%;height:100%;object-fit:cover;display:block}.cat h3{margin:0;padding:12px 8px;font-size:1rem}
.bnr{border-radius:26px;background:var(--soft);padding:clamp(24px,5vw,56px);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.bnr h2{margin:0 0 6px;font-size:clamp(1.3rem,3vw,2rem)}.bnr p{margin:0;color:var(--mut)}
.about2{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}.about2 .im{border-radius:24px;overflow:hidden;aspect-ratio:4/3;background:var(--soft)}.about2 .im img{width:100%;height:100%;object-fit:cover}
.feat{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.feat div{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px}.feat b{display:block;color:var(--pinkd)}.feat span{font-size:.88rem;color:var(--mut)}
.site-footer{margin-top:clamp(40px,7vw,80px);background:var(--soft);padding:40px 0 20px}
.fg{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:28px}.site-footer h4{margin:0 0 10px}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer a{display:block;padding:2px 0;opacity:.85}.site-footer p{margin:0 0 4px;font-size:.9rem}
.cp{margin-top:24px;border-top:1px solid var(--line);padding-top:14px;font-size:.8rem;color:var(--mut)}
.pg{padding:28px 0 0}.pg h1.t{margin:0 0 16px;font-size:clamp(1.5rem,3vw,2.2rem)}.entry{max-width:820px}
.woocommerce .entry,.woocommerce-page .entry{max-width:none}
/* WooCommerce */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0 0 24px;padding:0;list-style:none}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}
.woocommerce ul.products[class*="columns-"] li.product,.woocommerce-page ul.products[class*="columns-"] li.product{width:auto;float:none;margin:0;position:relative;background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;padding:0 0 14px;display:flex;flex-direction:column}
.woocommerce ul.products li.product a img{margin:0 0 10px;aspect-ratio:1/1;object-fit:cover;width:100%;transition:transform .5s}
.woocommerce ul.products li.product:hover a img{transform:scale(1.05)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.98rem;font-weight:600;padding:0 14px;line-height:1.6}
.woocommerce ul.products li.product .price{display:block;padding:0 14px;color:var(--ink);font-weight:700;margin-bottom:4px}
.woocommerce ul.products li.product .price del{color:var(--mut);font-weight:400;font-size:.82rem}.woocommerce ul.products li.product .price ins{background:none}
.woocommerce ul.products li.product .button{margin:8px 14px 0;min-height:44px;padding:8px 12px;font-size:.9rem}
.elora-stock{padding:0 14px;font-size:.78rem;color:#4f7a52}.elora-stock.no{color:#b04a4a}
.woocommerce span.onsale{top:10px;inset-inline-end:10px;inset-inline-start:auto;left:auto;right:auto;min-height:0;min-width:0;line-height:1.7;padding:1px 12px;border-radius:99px;background:var(--pinkd);color:#fff;font-weight:400;font-size:.74rem}
.elora-fav{position:absolute;top:6px;inset-inline-start:6px;z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.elora-fav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.elora-fav[aria-pressed=true]{color:#c0495b}.elora-fav[aria-pressed=true] svg{fill:currentColor}
.single-product .elora-fav{position:static;width:auto;height:46px;border-radius:99px;border:1px solid var(--ink);background:none;padding:0 18px;display:inline-flex;gap:6px;margin-inline-start:8px;vertical-align:middle}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-weight:800}
.woocommerce div.product .product_title{font-size:clamp(1.4rem,3vw,2rem)}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:var(--soft);border-top-color:var(--pinkd);color:var(--ink);border-radius:12px}
.woocommerce-message:before,.woocommerce-info:before{color:var(--pinkd)}
.woocommerce table.shop_table{border-radius:14px;border-color:var(--line);background:var(--card)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.select2-container--default .select2-selection--single{border:1px solid var(--line);border-radius:12px;padding:10px 14px;min-height:46px;background:var(--card)}
.woocommerce .quantity .qty{min-height:46px;border:1px solid var(--line);border-radius:99px;background:var(--card)}
.woocommerce-checkout #payment{background:var(--soft);border-radius:14px}
.woocommerce-checkout #payment div.payment_box{background:var(--card);color:var(--ink)}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{padding:10px 14px}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--soft);color:var(--ink)}
.empty{text-align:center;padding:40px 16px;background:var(--card);border:1px dashed var(--line);border-radius:22px;color:var(--mut)}
.notice-admin{background:#fff6e5;border:1px solid #f0cf8a;border-radius:12px;padding:12px 16px;margin:16px 0}
.js .rv{opacity:0;transform:translateY(22px);transition:opacity .7s,transform .7s}.js .rv.in{opacity:1;transform:none}
@media(max-width:1023px){.main-nav{display:none}.burger{display:grid}.woocommerce ul.products,.woocommerce-page ul.products,.cats{grid-template-columns:repeat(3,1fr)}.cats{grid-template-columns:repeat(4,1fr)}.feat{grid-template-columns:repeat(2,1fr)}.fg{grid-template-columns:1fr 1fr}}
@media(max-width:767px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr);gap:10px}.cats{grid-template-columns:repeat(2,1fr);gap:10px}.sl{grid-template-columns:1fr;text-align:center;align-content:center;padding:24px 20px 48px}.sl .art{order:-1;height:150px;min-height:0}.sl p{margin-inline:auto}.about2,.fg{grid-template-columns:1fr}.hero{min-height:480px;border-radius:20px}.bnr .btn{width:100%}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.9rem}}
@media(max-width:380px){.feat{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.js .rv{opacity:1;transform:none}}
