/*
Theme Name: AVAN
Theme URI: https://avan.example
Author: AVAN
Author URI: https://avan.example
Description: پوسته فروشگاهی و معرفی محصولات AVAN با طراحی الهام‌گرفته از فروشگاه‌های حرفه‌ای فرهای فضای باز. سازگار با Elementor و WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: avan
*/
:root{
 --avan-orange:#e85b2a;--avan-dark:#111111;--avan-light:#f5f3ef;--avan-text:#202020;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Tahoma,sans-serif;color:var(--avan-text);background:#fff;line-height:1.7}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.avan-topbar{background-color:#B71C1C ;color:#fff;text-align:center;padding:8px 15px;font-size:16px}
.avan-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:99}

.avan-nav{display:flex;gap:28px;align-items:center;font-weight:600}
.avan-nav a:hover{color:var(--avan-orange)}
.avan-menu-toggle{display:none;background:none;border:0;font-size:25px}
.avan-hero{min-height:650px;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;background:linear-gradient(120deg,#151515,#3b3b3b);padding:80px 20px}
.avan-hero-inner{max-width:850px}
.avan-eyebrow{color:var(--avan-orange);font-size:13px;font-weight:800;letter-spacing:2px;text-transform:uppercase}
.avan-hero h1{font-size:clamp(45px,7vw,84px);line-height:1.02;margin:18px 0;font-weight:900}
.avan-hero p{font-size:19px;color:#eee;max-width:700px;margin:0 auto 28px}
.avan-btn{display:inline-block;background:var(--avan-orange);color:#fff;padding:13px 27px;font-weight:800;margin:5px;border-radius:2px}
.avan-btn-outline{display:inline-block;border:1px solid #fff;color:#fff;padding:12px 27px;font-weight:800;margin:5px;border-radius:2px}
.avan-section{padding:85px 20px}
.avan-container{max-width:1180px;margin:auto}
.avan-title{text-align:center;font-size:40px;line-height:1.15;margin:0 0 12px;font-weight:900}
.avan-subtitle{text-align:center;color:#666;margin:0 0 35px}
.avan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.avan-grid.four{grid-template-columns:repeat(4,1fr)}
.avan-card{border:1px solid #e5e2dd;background:#fff;padding:24px;transition:.25s}
.avan-card:hover{transform:translateY(-4px);box-shadow:0 15px 35px #00000012}
.avan-placeholder{height:240px;background:linear-gradient(135deg,#dedbd4,#999791);display:flex;align-items:center;justify-content:center;color:#fff;font-size:30px;font-weight:900;letter-spacing:4px;margin-bottom:20px}
.avan-feature-product{background:var(--avan-light)}
.avan-two{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.avan-feature-product ul{padding-right:22px}
.avan-product-price{font-size:19px;font-weight:800}
.avan-feature{padding:25px;background:#fff;border:1px solid #e4e1dc;text-align:center}
.avan-feature h3{margin:5px 0}
.avan-dark-section{background:#111;color:#fff}
.avan-lifestyle{min-height:470px;background:linear-gradient(#0007,#0009),linear-gradient(120deg,#272727,#555);display:flex;align-items:center;text-align:center}
.avan-lifestyle p{color:#ddd}
.avan-cta{text-align:center;background:#111;color:#fff}
.avan-footer{background:#111;color:#fff;padding:60px 20px 25px}
.avan-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:35px;max-width:1180px;margin:auto}
.avan-footer h3{margin-top:0}
.avan-footer p,.avan-footer a{color:#aaa}
.avan-copy{text-align:center;color:#777;border-top:1px solid #333;margin-top:35px;padding-top:20px}
@media(max-width:800px){
 .avan-nav{display:none;position:absolute;top:76px;left:0;right:0;background:#fff;flex-direction:column;gap:0;padding:10px 20px;border-bottom:1px solid #ddd}
 .avan-nav.open{display:flex}
 .avan-nav a{padding:12px;width:100%}
 .avan-menu-toggle{display:block}
 .avan-header{padding:0 18px}
 .avan-grid,.avan-grid.four,.avan-two,.avan-footer-grid{grid-template-columns:1fr}
 .avan-section{padding:60px 18px}
 .avan-hero{min-height:570px}
}

/* AVAN HERO BANNER - DESKTOP */

.avan-hero {
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    overflow: hidden;
}

.avan-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.avan-hero h1,
.avan-hero p,
.avan-hero .avan-eyebrow {
    color: #ffffff;
}

/* AVAN HERO BANNER - MOBILE */

@media (max-width: 768px) {

    .avan-hero {
        min-height: 430px;
        background-size: cover !important;
        background-position: center center !important;
    }

    .avan-hero-inner {
        padding: 40px 20px;
    }
}
/* ===== AVAN HEADER ===== */

.avan-header {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    direction: rtl;
    background: #ffffff;
    box-sizing: border-box;
    gap: 25px;
}

/* ===== AVAN HEADER ===== */

.avan-header {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    direction: rtl;
    background: #ffffff;
    box-sizing: border-box;
    gap: 25px;
}

/* لوگو در سمت راست */

.avan-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    text-decoration: none;
}

.avan-logo-img {
    display: block;
    width: 50px;
    height: 20px;
    object-fit: contain;
}

/* منوی اصلی */

.avan-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    flex: 1;
}

.avan-nav a {
    color: #252525;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.avan-nav a:hover {
    color: #b58a50;
}

/* نوار بالای سایت */

.avan-topbar {
    background: #B71C1C;
    color: #E81123;
    text-align: center;
    padding: 9px 12px;
    font-size: 13px;
    direction: rtl;
}

/* دکمه منوی موبایل */

.avan-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 27px;
    cursor: pointer;
}

/* نمایش موبایل و تبلت */

@media (max-width: 768px) {

    .avan-header {
        min-height: 75px;
        padding: 8px 15px;
        gap: 10px;
    }

    .avan-logo-img {
        width: 115px;
        height: 55px;
    }

    .avan-menu-toggle {
        display: block;
        order: 2;
    }

    .avan-nav {
        display: none;
    }

}


.avan-product-photo {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.avan-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* چیدمان تصویر و متن محصول آوان */
.avan-feature-product .avan-two {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    direction: rtl;
}

/* تصویر محصول */
.avan-feature-product .avan-product-photo {
    flex: 1;
    min-width: 0;
}

.avan-feature-product .avan-product-photo img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    display: block;
}

/* متن محصول */
.avan-feature-product .avan-product-info {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.avan-feature-product .avan-product-info ul {
    padding-right: 22px;
    padding-left: 0;
    line-height: 2.2;
}

/* نمایش در موبایل */
@media (max-width: 768px) {
    .avan-feature-product .avan-two {
        flex-direction: column;
        gap: 20px;
    }

    .avan-feature-product .avan-product-photo,
    .avan-feature-product .avan-product-info {
        width: 100%;
    }

    .avan-feature-product .avan-product-photo img {
        height: auto;
        max-height: 350px;
    }
}
.avan-topbar {
    background-color: #B71C1C !important;
    color: #FFFFFF !important;
}

.avan-topbar a {
    color: #FFFFFF !important;
}
