/*
Theme Name: MVORA
Author: Hamid Fathi
Description: MVORA — premium RTL WooCommerce theme for beauty, care and fragrance: store, blog, WhatsApp orders. Includes a separate personal resume page.
Version: 2.22.0
Text Domain: hamid-fathi
*/
:root{--bg:#fff8f7;--surface:#fff;--text:#2a2025;--muted:#776b72;--line:#eadde2;--accent:#c85c7a;--accent2:#d4a85c;--dark:#291c24;--pink-soft:#f8e4ea;--radius:20px;--shadow:0 14px 45px rgba(73,35,49,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Tahoma,Arial,sans-serif;line-height:1.8}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}.container{width:min(1180px,calc(100% - 32px));margin:auto}
.site-top{background:#291c24;color:#fff;font-size:12px;text-align:center;padding:7px 12px}.site-top span{color:var(--accent2);padding:0 8px}.site-header{background:rgba(255,248,247,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(14px)}.header-main{display:grid;grid-template-columns:190px 1fr 190px;gap:24px;align-items:center;padding:18px 0}.logo{font-size:24px;font-weight:900;letter-spacing:-1px}.logo span{color:var(--accent)}.search{position:relative}.search input{width:100%;height:46px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:0 48px 0 18px;outline:0}.search input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(200,92,122,.10)}.search button{position:absolute;right:7px;top:6px;width:34px;height:34px;border:0;border-radius:50%;background:var(--accent);color:#fff;cursor:pointer}.header-actions{display:flex;justify-content:flex-end;gap:10px}.icon-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff;cursor:pointer;transition:.2s}.icon-btn:hover{background:var(--pink-soft);border-color:var(--accent);transform:translateY(-2px)}.main-nav{border-top:1px solid var(--line)}.main-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:34px}.main-nav a{display:block;padding:11px 0;font-size:14px}.main-nav a:hover{color:var(--accent)}
.hero{margin:28px 0 48px}.hero-box{min-height:440px;border-radius:30px;overflow:hidden;background:#291c24;color:#fff;display:flex;align-items:center;position:relative;background-size:cover;background-position:center;box-shadow:var(--shadow)}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(31,18,26,.86),rgba(85,31,52,.20))}.hero-content{position:relative;z-index:1;padding:56px;max-width:620px}.eyebrow{font-size:12px;letter-spacing:2px;color:#f3d3dd;margin-bottom:10px}.hero h1{font-size:clamp(34px,5vw,64px);line-height:1.15;margin:0 0 18px}.hero p{color:#f8edf1;max-width:500px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:999px;border:1px solid var(--dark);background:var(--dark);color:#fff;cursor:pointer;transition:.2s}.btn:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(41,28,36,.18)}.btn-light{background:#fff;color:var(--dark);border-color:#fff}
.section{padding:22px 0 54px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}.section-title{margin:0;font-size:28px;line-height:1.3}.section-desc{margin:4px 0 0;color:var(--muted);font-size:14px}.text-link{font-size:13px;color:var(--accent);white-space:nowrap;font-weight:700}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.category-card{min-height:205px;border-radius:var(--radius);overflow:hidden;position:relative;background:linear-gradient(135deg,#eac5d0,#c85c7a);background-size:cover;background-position:center;box-shadow:0 8px 28px rgba(70,35,48,.10);transition:.25s}.category-fallback{position:absolute;inset:0;background:linear-gradient(transparent 20%,rgba(38,19,29,.75))}.category-card:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.25);border-radius:var(--radius)}.category-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.category-card div:last-child{position:absolute;z-index:1;bottom:16px;right:16px;color:#fff}.category-card strong{display:block;font-size:19px}.category-card small{opacity:.88}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;position:relative;transition:.2s;min-width:0}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.product-thumb{aspect-ratio:1;background:#f8e8ed;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.product-thumb img{width:100%;height:100%;padding:10px;box-sizing:border-box;object-fit:contain;transition:.35s}.product-card:hover .product-thumb img{transform:scale(1.04)}.no-image{height:100%;display:grid;place-items:center;color:var(--muted)}.badge{position:absolute;top:12px;right:12px;background:var(--accent);color:#fff;border-radius:999px;padding:3px 9px;font-size:10px}.product-info{padding:14px}.product-cat{color:var(--muted);font-size:11px}.product-name{margin:3px 0 8px;font-size:15px;line-height:1.5}.price{font-weight:800;color:var(--dark)}.old-price{color:#a39a95;text-decoration:line-through;font-weight:400;font-size:12px;margin-right:5px}.promo{border-radius:26px;background:#291c24;color:#fff;padding:38px 42px;display:flex;align-items:center;justify-content:space-between;gap:25px;box-shadow:var(--shadow)}.promo h2{margin:0 0 4px;font-size:30px}.promo p{margin:0;color:#f2dce3}.brand-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.brand{background:var(--surface);border:1px solid var(--line);min-height:78px;border-radius:15px;display:grid;place-items:center;font-weight:800;color:#66505a;transition:.2s}.brand:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-2px)}.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.benefit{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;position:relative;overflow:hidden}.benefit:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#291c24}.benefit-icon{color:var(--accent);font-size:18px;margin-bottom:6px}.benefit strong{display:block;margin-bottom:5px}.benefit span{font-size:12px;color:var(--muted)}
.site-footer{background:var(--dark);color:#fff;margin-top:50px;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:35px}.site-footer h3{margin-top:0}.site-footer p,.site-footer li{color:#cfc1c7;font-size:13px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin:6px 0}.copyright{border-top:1px solid rgba(255,255,255,.12);margin-top:35px;padding-top:18px;color:#aaa;font-size:11px}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:18px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px;overflow:hidden}.woocommerce ul.products li.product img{border-radius:12px}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:999px;background:var(--accent);color:#fff}.woocommerce div.product{background:var(--surface);padding:24px;border-radius:22px}
body.dark-mode{--bg:#171216;--surface:#241b21;--text:#f7edf1;--muted:#c4afb8;--line:#44323c}.dark-mode .site-header{background:rgba(23,18,22,.96)}body.dark-mode .search input,body.dark-mode .icon-btn{background:#241b21;color:#f7edf1}.dark-mode .product-card,.dark-mode .brand,.dark-mode .benefit,.dark-mode .woocommerce div.product,.dark-mode .woocommerce ul.products li.product{background:#241b21;color:#f7edf1}.dark-mode .price{color:#f7edf1}
@media(max-width:900px){.header-main{grid-template-columns:1fr auto}.search{grid-column:1/-1;grid-row:2}.main-nav{overflow:auto}.main-nav ul{justify-content:flex-start;gap:22px;white-space:nowrap}.category-grid{grid-template-columns:repeat(2,1fr)}.product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}.brand-row{grid-template-columns:repeat(3,1fr)}.benefits{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){
.container{width:min(100% - 22px,1180px)}
.header-main{padding:12px 0}.logo{font-size:20px}.hero-box{min-height:470px}.hero-content{padding:30px 24px}.hero h1{font-size:38px}
.category-grid{gap:10px}.category-card{min-height:150px}
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-card{border-radius:18px}
.product-thumb{aspect-ratio:1/1.05;background:#f8e8ed}
.product-thumb img{padding:12px;object-fit:contain}
.product-info{padding:10px 9px 12px}
.product-cat{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-name{margin:4px 0 7px;font-size:13px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px}
.product-card .price{font-size:14px;line-height:1.5}
.product-card .price ins{font-size:14px}
.product-card .price del{font-size:11px}
.product-card .badge{top:8px;right:8px;padding:3px 7px;font-size:9px}
.section-title{font-size:23px}.promo{padding:25px;display:block}.promo .btn{margin-top:18px}.brand-row{grid-template-columns:repeat(2,1fr)}.benefits{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}
}

/* متن مخصوص صفحه‌خوان‌ها («قیمت اصلی ... بود») فقط برای صفحه‌خوان؛ بصری مخفی */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}

/* قیمت کارت محصول در صفحه‌ی اصلی: قیمت جدید درشت، قیمت قبلی خط‌خورده و کوچک زیرش */
.product-card .price del,.product-card .price ins{display:block}
.product-card .price:has(del){display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.product-card .price ins{order:1;text-decoration:none;background:none;font-weight:900;font-size:16px;color:var(--accent)}
.product-card .price del{order:2;font-size:12px;font-weight:400;color:var(--muted);opacity:.85;text-decoration:line-through}
.product-card .price del .woocommerce-Price-amount{text-decoration:line-through}

/* Mobile product categories: horizontal swipe carousel */
@media (max-width:560px){
  .category-grid{
    display:flex!important;
    grid-template-columns:none!important;
    gap:12px!important;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 2px 10px;
    margin:0 -2px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }
  .category-grid::-webkit-scrollbar{display:none}
  .category-grid .category-card{
    flex:0 0 76%;
    width:76%;
    min-width:0;
    min-height:170px;
    scroll-snap-align:start;
  }
}

@media (max-width:360px){
  .category-grid{gap:10px}
  .category-grid .category-card{flex-basis:82%;width:82%;min-height:155px}
}

/* نماد اعتماد در فوتر (اینماد و مشابه) */
.footer-trust{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:center;margin-top:28px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14)}
.footer-trust a{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:6px 8px;line-height:0}
.footer-trust img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:90px!important;cursor:pointer}
