/* ============================================================
   Yekta Leather Modern - Main Stylesheet
   نسخه: ۲.۰
   تم: سفید + طوسی زغالی مدرن
   ============================================================ */

/* -------------------- Variables -------------------- */
:root {
    --yl-charcoal:    #2C2E33;   /* طوسی زغالی اصلی (رنگ عکس) */
    --yl-charcoal-2:  #3A3D42;   /* روشن‌تر */
    --yl-charcoal-3:  #1A1C1F;   /* تیره‌تر */
    --yl-white:       #FFFFFF;
    --yl-off-white:   #FAFAFA;
    --yl-light-gray:  #F5F5F7;
    --yl-border:      #E8E8EA;
    --yl-text:        #1A1C1F;
    --yl-muted:       #6B7280;
    --yl-accent:      #A67C52;   /* رنگ لهجه چرمی */

    --yl-radius:      12px;
    --yl-radius-sm:   8px;
    --yl-radius-lg:   20px;

    --yl-shadow-sm:   0 1px 3px rgba(0,0,0,.06);
    --yl-shadow:      0 4px 20px rgba(0,0,0,.06);
    --yl-shadow-lg:   0 12px 40px rgba(0,0,0,.12);

    --yl-trans:       .3s cubic-bezier(.4, 0, .2, 1);
    --yl-font-fa:     'Vazirmatn', 'Vazir', sans-serif;
    --yl-font-en:     'Inter', 'Vazirmatn', sans-serif;
    --yl-font-serif:  'Playfair Display', serif;
}

/* -------------------- Reset & Base -------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--yl-font-fa);
    font-size: 15px;
    line-height: 1.75;
    color: var(--yl-text);
    background: var(--yl-white);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--yl-charcoal); text-decoration: none; transition: color var(--yl-trans); }
a:hover { color: var(--yl-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--yl-font-fa); border: 0; background: transparent; }
input, textarea, select { font-family: var(--yl-font-fa); }

.yl-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* -------------------- Buttons -------------------- */
.yl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--yl-font-fa);
    transition: all var(--yl-trans);
    cursor: pointer;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.yl-btn-dark {
    background: var(--yl-charcoal);
    color: var(--yl-white) !important;
    border-color: var(--yl-charcoal);
}
.yl-btn-dark:hover {
    background: var(--yl-charcoal-3);
    color: var(--yl-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--yl-shadow-lg);
}
.yl-btn-outline {
    background: transparent;
    color: var(--yl-charcoal) !important;
    border-color: var(--yl-charcoal);
}
.yl-btn-outline:hover {
    background: var(--yl-charcoal);
    color: var(--yl-white) !important;
}
.yl-btn-white {
    background: var(--yl-white);
    color: var(--yl-charcoal) !important;
    border-color: var(--yl-white);
}
.yl-btn-white:hover {
    background: transparent;
    color: var(--yl-white) !important;
    border-color: var(--yl-white);
}

/* ============================================================
   TOP STRIP
   ============================================================ */
.yl-topstrip {
    background: var(--yl-charcoal);
    color: rgba(255,255,255,.85);
    padding: 8px 0;
    font-size: 12.5px;
    font-weight: 500;
}
.yl-topstrip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.yl-topstrip-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 18px;
}
.yl-topstrip-info i { color: var(--yl-accent); font-size: 12px; }
.yl-topstrip-links a {
    color: rgba(255,255,255,.85) !important;
    margin-right: 15px;
}
.yl-topstrip-links a:hover { color: var(--yl-white) !important; }

/* ============================================================
   HEADER
   ============================================================ */
.yl-header {
    background: var(--yl-white);
    border-bottom: 1px solid var(--yl-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--yl-shadow-sm);
}
.yl-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    min-height: 80px;
}

/* منوی اصلی (سمت راست) */
.yl-nav-primary { justify-self: start; }
.yl-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
.yl-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    color: var(--yl-text) !important;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all var(--yl-trans);
    position: relative;
}
.yl-menu > li > a i { font-size: 14px; color: var(--yl-muted); }
.yl-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--yl-charcoal);
    transition: width var(--yl-trans);
}
.yl-menu > li > a:hover {
    color: var(--yl-charcoal) !important;
    background: var(--yl-light-gray);
}
.yl-menu > li > a:hover::after { width: 20px; }
.yl-menu > li > a:hover i { color: var(--yl-charcoal); }

.yl-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}
.yl-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--yl-charcoal);
    transition: var(--yl-trans);
}

/* برند (وسط) */
.yl-brand {
    justify-self: center;
    text-align: center;
}
.yl-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--yl-charcoal) !important;
}
.yl-brand-icon {
    width: 48px;
    height: 48px;
    background: var(--yl-charcoal);
    color: var(--yl-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.yl-brand-icon svg { width: 100%; height: 100%; }
.yl-brand-logo img { max-height: 55px; width: auto; }
.yl-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: right;
}
.yl-brand-fa {
    font-size: 22px;
    font-weight: 800;
    color: var(--yl-charcoal);
    font-family: var(--yl-font-fa);
    letter-spacing: -0.5px;
}
.yl-brand-en {
    font-size: 11px;
    font-weight: 600;
    color: var(--yl-muted);
    letter-spacing: 3px;
    font-family: var(--yl-font-en);
    margin-top: 2px;
}

/* اکشن‌ها (سمت چپ) */
.yl-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}
.yl-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yl-light-gray);
    color: var(--yl-charcoal) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--yl-trans);
    position: relative;
}
.yl-action-btn:hover {
    background: var(--yl-charcoal);
    color: var(--yl-white) !important;
    transform: translateY(-2px);
}

/* شمارنده سبد */
.yl-cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--yl-charcoal);
    color: var(--yl-white);
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--yl-white);
}
.yl-cart:hover .yl-cart-count {
    background: var(--yl-accent);
}

/* جستجو */
.yl-search { position: relative; }
.yl-search-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yl-light-gray);
    color: var(--yl-charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--yl-trans);
}
.yl-search-toggle:hover {
    background: var(--yl-charcoal);
    color: var(--yl-white);
}
.yl-search-form {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    background: var(--yl-white);
    border-radius: var(--yl-radius);
    padding: 8px;
    box-shadow: var(--yl-shadow-lg);
    display: none;
    align-items: center;
    gap: 4px;
    width: 380px;
    border: 1px solid var(--yl-border);
    z-index: 200;
}
.yl-search.open .yl-search-form {
    display: flex;
    animation: ylFadeDown .25s ease;
}
.yl-search-form input {
    flex: 1;
    border: 0;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    background: transparent;
    min-width: 0;
}
.yl-search-form button[type="submit"] {
    width: 40px;
    height: 40px;
    background: var(--yl-charcoal);
    color: var(--yl-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yl-search-close {
    color: var(--yl-muted);
    padding: 8px;
}
@keyframes ylFadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO
   ============================================================ */
.yl-hero {
    background: var(--yl-charcoal);  /* رنگ پیش‌فرض اگه تصویر لود نشد */
    color: var(--yl-white);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.yl-hero::before {
    display: none;  /* حذف افکت گرادیانت رنگی پیش‌فرض */
}
.yl-hero-inner {
    max-width: 700px;
    position: relative;
    z-index: 2;
}
.yl-hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,.1);
    color: var(--yl-white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
}
.yl-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.yl-hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,.8);
    margin-bottom: 32px;
    max-width: 550px;
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.yl-section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}
.yl-section-head h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--yl-charcoal);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.yl-section-head h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--yl-charcoal);
    margin: 12px auto 0;
    border-radius: 3px;
}
.yl-section-head p {
    color: var(--yl-muted);
    font-size: 16px;
}

/* ============================================================
   CATEGORY CARDS (۴ کارت اصلی)
   ============================================================ */
.yl-categories { padding: 90px 0; background: var(--yl-white); }

.yl-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.yl-cat-card {
    position: relative;
    border-radius: var(--yl-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    color: var(--yl-white) !important;
    display: block;
    box-shadow: var(--yl-shadow);
    transition: all var(--yl-trans);
    cursor: pointer;
}
.yl-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--yl-shadow-lg);
}

.yl-cat-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.yl-cat-card:hover .yl-cat-image {
    transform: scale(1.08);
}

.yl-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26,28,31,.85) 0%,
        rgba(26,28,31,.4) 45%,
        rgba(26,28,31,.15) 100%
    );
    transition: background var(--yl-trans);
}
.yl-cat-card:hover .yl-cat-overlay {
    background: linear-gradient(
        to top,
        rgba(26,28,31,.9) 0%,
        rgba(26,28,31,.55) 45%,
        rgba(26,28,31,.3) 100%
    );
}

.yl-cat-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 32px;
    color: var(--yl-white);
    z-index: 2;
}
.yl-cat-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--yl-font-en);
    margin-bottom: 12px;
}
.yl-cat-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--yl-white);
    letter-spacing: -0.5px;
}
.yl-cat-content p {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin-bottom: 20px;
}

/* دکمه شفاف روی کارت */
.yl-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,.35);
    color: var(--yl-white);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--yl-trans);
}
.yl-cat-card:hover .yl-cat-btn {
    background: var(--yl-white);
    color: var(--yl-charcoal);
    border-color: var(--yl-white);
    gap: 14px;
}
.yl-cat-btn i { font-size: 12px; transition: transform var(--yl-trans); }
.yl-cat-card:hover .yl-cat-btn i {
    transform: translateX(-4px);
}

/* ============================================================
   USPs (ویژگی‌ها)
   ============================================================ */
.yl-usps {
    padding: 70px 0;
    background: var(--yl-light-gray);
    border-top: 1px solid var(--yl-border);
    border-bottom: 1px solid var(--yl-border);
}
.yl-usps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.yl-usp {
    background: var(--yl-white);
    padding: 24px;
    border-radius: var(--yl-radius);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--yl-trans);
    border: 1px solid var(--yl-border);
}
.yl-usp:hover {
    transform: translateY(-3px);
    box-shadow: var(--yl-shadow);
    border-color: var(--yl-charcoal);
}
.yl-usp-icon {
    width: 50px;
    height: 50px;
    background: var(--yl-charcoal);
    color: var(--yl-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.yl-usp h4 {
    font-size: 15px;
    color: var(--yl-charcoal);
    margin-bottom: 2px;
    font-weight: 700;
}
.yl-usp p {
    font-size: 12.5px;
    color: var(--yl-muted);
    line-height: 1.4;
}

/* ============================================================
   محصولات (لوپ ووکامرس)
   ============================================================ */
.yl-latest { padding: 90px 0; background: var(--yl-white); }

ul.products {
    list-style: none;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
}
ul.products li.product {
    background: var(--yl-white);
    border-radius: var(--yl-radius);
    overflow: hidden;
    border: 1px solid var(--yl-border);
    transition: all var(--yl-trans);
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: right;
    position: relative;
}
ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--yl-shadow-lg);
    border-color: var(--yl-charcoal);
}
ul.products li.product a {
    color: var(--yl-text);
    display: block;
}
ul.products li.product img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin: 0 !important;
    background: var(--yl-light-gray);
    transition: transform .5s ease;
}
ul.products li.product:hover img { transform: scale(1.03); }

ul.products li.product .woocommerce-loop-product__title {
    padding: 16px 16px 6px !important;
    font-size: 15px !important;
    color: var(--yl-charcoal) !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}
ul.products li.product .price {
    padding: 0 16px 12px !important;
    color: var(--yl-charcoal) !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    display: block;
}
ul.products li.product .price del {
    color: var(--yl-muted) !important;
    font-size: 13px !important;
    margin-left: 8px;
    opacity: .6;
}
ul.products li.product .price ins {
    background: none !important;
    text-decoration: none;
}
ul.products li.product .button {
    display: block !important;
    margin: 0 16px 16px !important;
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-radius: 999px !important;
    padding: 10px !important;
    font-family: var(--yl-font-fa) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center;
    transition: background var(--yl-trans) !important;
    border: 0 !important;
}
ul.products li.product .button:hover {
    background: var(--yl-charcoal-3) !important;
}
ul.products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
    z-index: 3;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.yl-page-section { padding: 60px 0 90px; }
.yl-page-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--yl-white);
}
.yl-page-header h1 {
    font-size: 36px;
    color: var(--yl-charcoal);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--yl-light-gray);
}
.yl-page-content {
    font-size: 15.5px;
    line-height: 2;
    color: var(--yl-text);
}
.yl-page-content h2 {
    font-size: 26px;
    color: var(--yl-charcoal);
    margin: 30px 0 15px;
    font-weight: 700;
}
.yl-page-content h3 {
    font-size: 20px;
    color: var(--yl-charcoal);
    margin: 24px 0 12px;
    font-weight: 700;
}
.yl-page-content ul, .yl-page-content ol {
    padding-right: 24px;
    line-height: 2.2;
}
.yl-page-content ul { list-style: '✔ '; }
.yl-page-content a { color: var(--yl-accent); }
.yl-page-content hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yl-border), transparent);
    margin: 40px 0;
}
.yl-page-thumb img {
    border-radius: var(--yl-radius);
    margin-bottom: 25px;
}

/* Search page */
.yl-search-header {
    text-align: center;
    padding: 30px 0 40px;
    border-bottom: 1px solid var(--yl-border);
    margin-bottom: 40px;
}
.yl-search-header h1 {
    font-size: 32px;
    color: var(--yl-charcoal);
    margin-bottom: 10px;
    font-weight: 800;
}
.yl-count-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--yl-charcoal);
    color: var(--yl-white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}
.yl-search-heading {
    font-size: 22px;
    color: var(--yl-charcoal);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yl-light-gray);
}

/* Empty state / 404 */
.yl-empty, .yl-404 {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}
.yl-empty-icon { font-size: 60px; margin-bottom: 20px; opacity: .5; }
.yl-empty h2, .yl-404 h1 {
    font-size: 28px;
    color: var(--yl-charcoal);
    margin-bottom: 12px;
}
.yl-empty p, .yl-404 p { color: var(--yl-muted); margin-bottom: 24px; }
.yl-404-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--yl-charcoal);
    line-height: 1;
    letter-spacing: -4px;
}

/* Post cards */
.yl-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.yl-post-card {
    background: var(--yl-white);
    border-radius: var(--yl-radius);
    overflow: hidden;
    border: 1px solid var(--yl-border);
    transition: all var(--yl-trans);
}
.yl-post-card:hover {
    box-shadow: var(--yl-shadow-lg);
    transform: translateY(-3px);
}
.yl-post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.yl-post-body { padding: 20px; }
.yl-post-body h2 { font-size: 18px; margin-bottom: 10px; }
.yl-post-body h2 a { color: var(--yl-charcoal); }
.yl-post-meta { color: var(--yl-muted); font-size: 13px; margin-bottom: 12px; }
.yl-post-meta span { margin-left: 12px; }
.yl-post-excerpt { color: var(--yl-muted); font-size: 14px; margin-bottom: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.yl-footer {
    background: var(--yl-charcoal);
    color: rgba(255,255,255,.85);
    padding: 70px 0 0;
    margin-top: 0;
    position: relative;
}
.yl-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}
.yl-footer-title {
    color: var(--yl-white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    position: relative;
}
.yl-footer-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--yl-accent);
}

/* لینک‌ها */
.yl-footer-links li {
    padding: 6px 0;
}
.yl-footer-links li a {
    color: rgba(255,255,255,.7) !important;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--yl-trans);
}
.yl-footer-links li a i {
    font-size: 10px;
    color: var(--yl-accent);
    transition: transform var(--yl-trans);
}
.yl-footer-links li a:hover {
    color: var(--yl-white) !important;
    padding-right: 6px;
}
.yl-footer-links li a:hover i { transform: translateX(-3px); }

/* اطلاعات تماس */
.yl-footer-contact li {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    align-items: flex-start;
}
.yl-footer-contact li i {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.08);
    color: var(--yl-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all var(--yl-trans);
}
.yl-footer-contact li:hover i {
    background: var(--yl-accent);
    color: var(--yl-white);
}
.yl-contact-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    margin-bottom: 3px;
}
.yl-footer-contact li a, .yl-footer-contact li span {
    color: rgba(255,255,255,.9);
    font-size: 14.5px;
    font-weight: 500;
}
.yl-footer-contact li a:hover { color: var(--yl-accent); }

/* شبکه‌های اجتماعی */
.yl-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.yl-social {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: var(--yl-white) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--yl-trans);
    position: relative;
}
.yl-social:hover {
    transform: translateY(-4px);
    color: var(--yl-white) !important;
}
.yl-social-ig:hover   { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.yl-social-tg:hover   { background: #0088cc; }
.yl-social-wa:hover   { background: #25D366; }
.yl-social-eita:hover { background: #ff8000; }
.yl-eita-text { font-size: 13px; font-weight: 800; letter-spacing: -0.5px; }

/* نمادها */
.yl-trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.yl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85) !important;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.08);
    transition: all var(--yl-trans);
}
.yl-badge:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-2px);
}
.yl-badge i { color: var(--yl-accent); font-size: 14px; }

/* پایین فوتر */
.yl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}
.yl-footer-designed { font-size: 12.5px; }

/* ============================================================
   WooCommerce single product و archive
   ============================================================ */
.woocommerce-page .yl-main { padding: 40px 0 60px; }
.woocommerce div.product .product_title {
    color: var(--yl-charcoal) !important;
    font-weight: 800;
    font-size: 28px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--yl-charcoal) !important;
    font-weight: 800;
    font-size: 24px;
}
.woocommerce div.product .single_add_to_cart_button {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-radius: 999px !important;
    padding: 14px 32px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: 0 !important;
}
.woocommerce div.product .single_add_to_cart_button:hover {
    background: var(--yl-charcoal-3) !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 10px 15px !important;
    color: var(--yl-charcoal) !important;
    border-radius: 6px !important;
    border: 1px solid var(--yl-border) !important;
    margin: 0 3px !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-color: var(--yl-charcoal) !important;
}

/* حساب کاربری */
.woocommerce-account .woocommerce-MyAccount-navigation ul { padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    background: var(--yl-light-gray);
    margin-bottom: 6px;
    border-radius: 10px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 12px 20px;
    color: var(--yl-charcoal);
    display: block;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
    background: var(--yl-charcoal);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--yl-white); }

/* فرم ورود / ثبت‌نام */
.woocommerce form .form-row input.input-text {
    padding: 12px 14px !important;
    border: 1.5px solid var(--yl-border) !important;
    border-radius: 10px !important;
    font-family: var(--yl-font-fa) !important;
    outline: none;
    transition: border-color var(--yl-trans);
}
.woocommerce form .form-row input.input-text:focus {
    border-color: var(--yl-charcoal) !important;
}
.woocommerce button.button {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 600 !important;
}
.woocommerce button.button:hover {
    background: var(--yl-charcoal-3) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .yl-menu > li > a { padding: 8px 12px; font-size: 14px; }
    .yl-brand-fa { font-size: 20px; }
    .yl-hero-title { font-size: 44px; }
}

@media (max-width: 992px) {
    .yl-header-inner {
        grid-template-columns: auto 1fr auto;
    }
    .yl-menu-toggle { display: flex; }
    .yl-nav-primary { position: relative; }
    .yl-menu {
        position: absolute;
        top: calc(100% + 20px);
        right: -20px;
        background: var(--yl-white);
        flex-direction: column;
        min-width: 240px;
        padding: 12px;
        border-radius: var(--yl-radius);
        box-shadow: var(--yl-shadow-lg);
        border: 1px solid var(--yl-border);
        display: none;
        gap: 0;
    }
    .yl-menu.open { display: flex; }
    .yl-menu > li { width: 100%; }
    .yl-menu > li > a { width: 100%; }

    .yl-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .yl-usps-grid { grid-template-columns: repeat(2, 1fr); }
    ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .yl-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .yl-footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .yl-hero { padding: 60px 0; }
    .yl-hero-title { font-size: 36px; }
    .yl-section-head h2 { font-size: 28px; }
    .yl-search-form { width: 320px; }
}

@media (max-width: 720px) {
    .yl-topstrip { font-size: 11px; }
    .yl-topstrip .hide-mobile { display: none; }
    .yl-topstrip-inner { justify-content: center; }

    .yl-header-inner { padding: 12px 0; }
    .yl-brand-en { display: none; }
    .yl-brand-icon { width: 40px; height: 40px; }
    .yl-brand-fa { font-size: 18px; }

    .yl-actions { gap: 6px; }
    .yl-action-btn, .yl-search-toggle { width: 40px; height: 40px; font-size: 14px; }
    .yl-search-form { width: calc(100vw - 40px); left: auto; right: 0; }

    .yl-cat-grid { grid-template-columns: 1fr; gap: 16px; }
    .yl-cat-card { aspect-ratio: 4 / 3; }
    .yl-cat-content { padding: 24px; }
    .yl-cat-content h3 { font-size: 24px; }

    .yl-usps-grid { grid-template-columns: 1fr; }
    ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    ul.products li.product img { height: 200px; }
    .yl-posts-grid { grid-template-columns: 1fr; }
    .yl-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .yl-footer-bottom { justify-content: center; text-align: center; }
    .yl-categories, .yl-latest, .yl-usps { padding: 60px 0; }
    .yl-hero-title { font-size: 30px; }
    .yl-hero-subtitle { font-size: 15px; }
    .yl-page-header h1 { font-size: 26px; }
}

@media (max-width: 420px) {
    ul.products { grid-template-columns: 1fr !important; }
    .yl-container { padding: 0 16px; }
}

/* ============================================================
   Shop Header Bar
   ============================================================ */
.yl-shop-header-bar {
    background: var(--yl-light-gray);
    padding: 50px 0 45px;
    text-align: center;
    border-bottom: 1px solid var(--yl-border);
}
.yl-shop-header-bar h1 {
    font-size: 34px;
    color: var(--yl-charcoal);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.yl-shop-header-bar p { color: var(--yl-muted); font-size: 15px; }

/* Breadcrumb */
.yl-product-breadcrumb, .woocommerce-breadcrumb {
    padding: 15px 0;
    color: var(--yl-muted);
    font-size: 13px;
    margin-bottom: 25px;
}
.woocommerce-breadcrumb a { color: var(--yl-charcoal); font-weight: 500; }
.woocommerce-breadcrumb a:hover { color: var(--yl-accent); }

/* ============================================================
   Single Product
   ============================================================ */
.yl-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--yl-white);
    padding: 40px;
    border-radius: var(--yl-radius-lg);
    border: 1px solid var(--yl-border);
    margin-bottom: 40px;
}

.yl-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.yl-product-gallery .woocommerce-product-gallery__image img {
    border-radius: var(--yl-radius);
    background: var(--yl-light-gray);
}
.yl-product-gallery .flex-control-thumbs {
    display: flex !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 15px 0 0 !important;
    list-style: none !important;
    flex-wrap: wrap;
}
.yl-product-gallery .flex-control-thumbs li {
    width: 80px !important;
    margin: 0 !important;
    flex: 0 0 auto;
}
.yl-product-gallery .flex-control-thumbs li img {
    border-radius: 8px;
    border: 2px solid var(--yl-border);
    opacity: .65;
    cursor: pointer;
    transition: var(--yl-trans);
}
.yl-product-gallery .flex-control-thumbs li img.flex-active,
.yl-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--yl-charcoal);
}

.woocommerce-product-gallery__trigger {
    top: 15px !important; right: 15px !important; left: auto !important;
    background: var(--yl-charcoal) !important; color: var(--yl-white) !important;
    width: 40px !important; height: 40px !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none !important;
}

.yl-product-info .product_title {
    font-size: 30px !important;
    color: var(--yl-charcoal) !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    margin-bottom: 8px !important;
}
.yl-product-sku { color: var(--yl-muted); font-size: 13px; margin-bottom: 12px; }
.yl-product-sku strong { color: var(--yl-charcoal); }

.yl-product-price .price {
    color: var(--yl-charcoal) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    margin: 15px 0 !important;
}
.yl-product-price .price del {
    color: var(--yl-muted) !important;
    font-size: 18px !important;
    margin-left: 10px !important;
    opacity: .6;
}
.yl-product-price .price ins { background: none !important; text-decoration: none; }

.yl-product-excerpt {
    background: var(--yl-light-gray);
    padding: 16px 20px;
    border-radius: var(--yl-radius);
    color: var(--yl-text);
    line-height: 1.9;
    font-size: 14px;
    margin: 20px 0;
}

.yl-product-cart form.cart {
    display: flex !important;
    gap: 12px;
    align-items: stretch;
    margin: 25px 0 !important;
    flex-wrap: wrap;
}
.yl-product-cart .quantity {
    background: var(--yl-white);
    border: 1.5px solid var(--yl-border);
    border-radius: 999px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    margin: 0 !important;
}
.yl-product-cart .quantity input {
    width: 55px !important;
    text-align: center;
    border: 0 !important;
    background: transparent !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700;
    outline: none;
    padding: 10px 0 !important;
}
.yl-product-cart .single_add_to_cart_button {
    flex: 1;
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-radius: 999px !important;
    padding: 14px 30px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: 0 !important;
    transition: all var(--yl-trans) !important;
}
.yl-product-cart .single_add_to_cart_button:hover {
    background: var(--yl-charcoal-3) !important;
    transform: translateY(-2px);
}

.yl-product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--yl-light-gray);
    padding: 18px;
    border-radius: var(--yl-radius);
    margin: 25px 0;
}
.yl-pf { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.yl-pf i {
    background: var(--yl-charcoal);
    color: var(--yl-white);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}

.yl-product-info .product_meta {
    padding: 15px 0;
    border-top: 1px solid var(--yl-border);
    font-size: 13px;
    color: var(--yl-muted);
}
.yl-product-info .product_meta > span { display: block; padding: 4px 0; }
.yl-product-info .product_meta a { color: var(--yl-charcoal); font-weight: 500; }

.yl-product-info .stock {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0;
}
.yl-product-info .stock.in-stock { background: #d1fae5; color: #065f46; }
.yl-product-info .stock.out-of-stock { background: #fee2e2; color: #991b1b; }

/* Tabs */
.yl-product-tabs {
    background: var(--yl-white);
    border-radius: var(--yl-radius-lg);
    border: 1px solid var(--yl-border);
    overflow: hidden;
    margin-bottom: 40px;
}
.woocommerce-tabs .tabs.wc-tabs {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--yl-light-gray);
    border-bottom: 1px solid var(--yl-border);
    flex-wrap: wrap;
}
.woocommerce-tabs .tabs.wc-tabs::before,
.woocommerce-tabs .tabs.wc-tabs::after { display: none !important; }
.woocommerce-tabs .tabs li {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}
.woocommerce-tabs .tabs li a {
    padding: 16px 26px !important;
    color: var(--yl-muted) !important;
    font-weight: 600 !important;
    font-family: var(--yl-font-fa) !important;
    border: 0 !important;
    display: block !important;
}
.woocommerce-tabs .tabs li:hover a { color: var(--yl-charcoal) !important; }
.woocommerce-tabs .tabs li.active {
    background: var(--yl-white) !important;
}
.woocommerce-tabs .tabs li.active a {
    color: var(--yl-charcoal) !important;
    border-bottom: 3px solid var(--yl-charcoal) !important;
}
.woocommerce-tabs .tabs li::before, .woocommerce-tabs .tabs li::after { display: none !important; }
.woocommerce-tabs .panel, .woocommerce-tabs .wc-tab {
    padding: 30px !important;
    margin: 0 !important;
    line-height: 2 !important;
    color: var(--yl-text) !important;
}
.woocommerce-tabs .panel h2 {
    color: var(--yl-charcoal) !important;
    font-size: 22px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--yl-light-gray) !important;
    margin-bottom: 20px !important;
}

.woocommerce-product-attributes {
    width: 100% !important;
    border-collapse: collapse !important;
}
.woocommerce-product-attributes th, .woocommerce-product-attributes td {
    padding: 12px 15px !important;
    border: 1px solid var(--yl-border) !important;
    text-align: right !important;
}
.woocommerce-product-attributes th {
    background: var(--yl-light-gray) !important;
    color: var(--yl-charcoal) !important;
    font-weight: 700;
    width: 30%;
}

/* Reviews */
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .commentlist li {
    background: var(--yl-light-gray);
    padding: 20px !important;
    border-radius: var(--yl-radius);
    margin-bottom: 15px !important;
    border-right: 4px solid var(--yl-charcoal);
}
#reviews .commentlist li img.avatar {
    width: 50px !important; height: 50px !important;
    border-radius: 50% !important;
    border: 2px solid var(--yl-charcoal) !important;
    padding: 0 !important;
    position: static !important;
    float: right;
    margin-left: 15px;
}
#reviews .comment-text {
    background: transparent !important;
    border: 0 !important;
    padding: 0 70px 0 0 !important;
    margin: 0 !important;
}
#reviews #respond {
    background: var(--yl-light-gray);
    padding: 25px;
    border-radius: var(--yl-radius);
}
#respond input[type="text"], #respond input[type="email"], #respond textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--yl-border);
    border-radius: 10px;
    font-family: var(--yl-font-fa);
    background: var(--yl-white);
    outline: none;
    transition: border-color var(--yl-trans);
}
#respond input:focus, #respond textarea:focus { border-color: var(--yl-charcoal); }
#respond .submit, #respond input[type="submit"] {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    padding: 12px 30px !important;
    border-radius: 999px !important;
    border: 0 !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.star-rating { color: var(--yl-accent) !important; letter-spacing: 3px; }

/* Related */
.yl-product-related, .related.products {
    background: var(--yl-white);
    border-radius: var(--yl-radius-lg);
    border: 1px solid var(--yl-border);
    padding: 30px;
    margin-bottom: 30px;
}
.related.products > h2, .up-sells > h2 {
    color: var(--yl-charcoal) !important;
    font-size: 22px !important;
    margin: 0 0 25px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--yl-light-gray);
}

@media (max-width: 900px) {
    .yl-product-main { grid-template-columns: 1fr; padding: 24px; }
    .yl-product-info .product_title { font-size: 24px !important; }
    .yl-product-price .price { font-size: 24px !important; }
    .yl-product-features { grid-template-columns: 1fr; }
    .yl-shop-header-bar h1 { font-size: 26px; }
}


/* ============================================================
   اسلایدر محصولات جدید (v2.4)
   ============================================================ */
.yl-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.yl-slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yl-charcoal);
    color: var(--yl-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: var(--yl-shadow);
    transition: all var(--yl-trans);
}
.yl-slider-btn:hover:not(:disabled) {
    background: var(--yl-charcoal-3);
    transform: scale(1.1);
    box-shadow: var(--yl-shadow-lg);
}
.yl-slider-btn:disabled {
    opacity: .25;
    cursor: not-allowed;
    background: var(--yl-muted);
}

.yl-slider-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0; /* مهم برای flex */
    padding: 5px 0;
}

/* بازنویسی grid ووکامرس به flex اسلایدر */
.yl-slider .yl-slider-viewport ul.products {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.yl-slider .yl-slider-viewport ul.products li.product {
    flex: 0 0 calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
}

/* ریسپانسیو */
@media (max-width: 1100px) {
    .yl-slider .yl-slider-viewport ul.products li.product {
        flex: 0 0 calc(33.333% - 14px) !important;
        min-width: calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
    }
}
@media (max-width: 720px) {
    .yl-slider-btn { width: 42px; height: 42px; font-size: 14px; }
    .yl-slider { gap: 8px; }
    .yl-slider .yl-slider-viewport ul.products li.product {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}
@media (max-width: 480px) {
    .yl-slider .yl-slider-viewport ul.products li.product {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        max-width: 85% !important;
    }
}


/* ============================================================
   بخش خبرنامه فوتر (v2.6)
   ============================================================ */
.yl-newsletter {
    background: linear-gradient(135deg, var(--yl-light-gray) 0%, var(--yl-off-white) 100%);
    padding: 55px 0;
    border-top: 1px solid var(--yl-border);
    border-bottom: 1px solid var(--yl-border);
}

.yl-newsletter-box {
    background: var(--yl-white);
    border-radius: var(--yl-radius-lg);
    padding: 40px 50px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--yl-shadow);
    position: relative;
    overflow: hidden;
}

.yl-newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(166,124,82,.08) 0%, transparent 70%);
    pointer-events: none;
}

.yl-newsletter-text {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.yl-newsletter-icon {
    width: 70px;
    height: 70px;
    background: var(--yl-charcoal);
    color: var(--yl-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(44,46,51,.2);
}

.yl-newsletter-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--yl-charcoal);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.yl-newsletter-text p {
    color: var(--yl-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ---------- استایل‌دهی به فرم افزونه Newsletter ---------- */
.yl-newsletter-form { position: relative; z-index: 2; }

/* بازنویسی استایل‌های پیش‌فرض افزونه Newsletter */
.yl-newsletter-form form,
.yl-newsletter-form .tnp,
.yl-newsletter-form .tnp-subscription {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    max-width: 100% !important;
}

.yl-newsletter-form .tnp-field,
.yl-newsletter-form .tnp-field-email {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.yl-newsletter-form .tnp-field label,
.yl-newsletter-form label { display: none !important; }

.yl-newsletter-form input[type="email"],
.yl-newsletter-form input[type="text"] {
    width: 100% !important;
    padding: 14px 20px !important;
    border: 2px solid var(--yl-border) !important;
    border-radius: 999px !important;
    font-family: var(--yl-font-fa) !important;
    font-size: 14px !important;
    background: var(--yl-white) !important;
    color: var(--yl-charcoal) !important;
    outline: none !important;
    transition: all var(--yl-trans) !important;
    box-shadow: none !important;
    margin: 0 0 12px !important;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

.yl-newsletter-form input[type="email"]:focus,
.yl-newsletter-form input[type="text"]:focus {
    border-color: var(--yl-charcoal) !important;
    box-shadow: 0 0 0 4px rgba(44,46,51,.08) !important;
}

.yl-newsletter-form input[type="email"]::placeholder,
.yl-newsletter-form input[type="text"]::placeholder {
    color: var(--yl-muted) !important;
    font-family: var(--yl-font-fa) !important;
}

.yl-newsletter-form input[type="submit"],
.yl-newsletter-form button[type="submit"],
.yl-newsletter-form .tnp-submit {
    width: 100% !important;
    padding: 14px 28px !important;
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all var(--yl-trans) !important;
    box-shadow: 0 4px 15px rgba(44,46,51,.2) !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

.yl-newsletter-form input[type="submit"]:hover,
.yl-newsletter-form button[type="submit"]:hover,
.yl-newsletter-form .tnp-submit:hover {
    background: var(--yl-charcoal-3) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,46,51,.3) !important;
}

/* پاک کردن استایل‌های شرایط استفاده و متن‌های اضافی */
.yl-newsletter-form .tnp-privacy-field,
.yl-newsletter-form .tnp-field-privacy {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: var(--yl-muted) !important;
}

.yl-newsletter-form .tnp-privacy-field a { color: var(--yl-charcoal); text-decoration: underline; }

.yl-newsletter-form .tnp-field input[type="checkbox"] {
    margin-left: 6px !important;
    accent-color: var(--yl-charcoal);
}

/* پیام موفقیت */
.yl-newsletter-form .tnp-widget-message,
.yl-newsletter-form .tnp-subscription-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 10px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
    .yl-newsletter-box {
        grid-template-columns: 1fr;
        padding: 30px 25px;
        gap: 25px;
        text-align: center;
    }
    .yl-newsletter-text {
        flex-direction: column;
        text-align: center;
    }
    .yl-newsletter-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    .yl-newsletter-text h3 { font-size: 20px; }
}

@media (max-width: 480px) {
    .yl-newsletter { padding: 40px 0; }
    .yl-newsletter-box { padding: 25px 18px; }
}


/* ============================================================
   دکمه "مشاهده سبد خرید" بعد از افزودن محصول (v2.8)
   ============================================================ */

/* روی صفحه لیست محصولات */
ul.products li.product .added_to_cart,
.woocommerce .added_to_cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 16px 16px !important;
    padding: 10px 18px !important;
    background: var(--yl-white) !important;
    color: var(--yl-charcoal) !important;
    border: 1.5px solid var(--yl-charcoal) !important;
    border-radius: 999px !important;
    font-family: var(--yl-font-fa) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center;
    text-decoration: none !important;
    transition: all var(--yl-trans) !important;
    box-shadow: 0 2px 8px rgba(44,46,51,.08);
    position: relative;
    overflow: hidden;
}

/* آیکون سبد خرید قبل از متن */
ul.products li.product .added_to_cart::before,
.woocommerce .added_to_cart::before {
    content: "\f07a"; /* آیکون سبد خرید Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: var(--yl-charcoal);
    transition: color var(--yl-trans);
}

/* فلش کوچک بعد از متن */
ul.products li.product .added_to_cart::after,
.woocommerce .added_to_cart::after {
    content: "←";
    font-size: 15px;
    margin-right: 4px;
    transition: transform var(--yl-trans);
    color: var(--yl-accent);
}

/* هاور: معکوس می‌شه (پس‌زمینه پر) */
ul.products li.product .added_to_cart:hover,
.woocommerce .added_to_cart:hover {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,46,51,.25);
}

ul.products li.product .added_to_cart:hover::before,
.woocommerce .added_to_cart:hover::before {
    color: var(--yl-white);
}

ul.products li.product .added_to_cart:hover::after,
.woocommerce .added_to_cart:hover::after {
    color: var(--yl-white);
    transform: translateX(-4px);
}

/* پیام تایید ووکامرس (کل باکس مشاهده سبد خرید) */
.woocommerce-message,
.woocommerce-info {
    background: var(--yl-light-gray) !important;
    color: var(--yl-charcoal) !important;
    border: 0 !important;
    border-right: 4px solid var(--yl-charcoal) !important;
    border-radius: var(--yl-radius) !important;
    padding: 16px 20px !important;
    font-family: var(--yl-font-fa) !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--yl-shadow-sm);
    margin-bottom: 20px !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    content: "\f058" !important; /* آیکون تیک */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #10b981 !important;
    font-size: 18px !important;
    position: static !important;
    margin-left: 10px;
    top: auto !important;
    right: auto !important;
    left: auto !important;
}

/* دکمه "مشاهده سبد خرید" داخل پیام تایید */
.woocommerce-message .button,
.woocommerce-message .wc-forward {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border: 0 !important;
    text-decoration: none !important;
    transition: all var(--yl-trans) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    order: 2;
}

.woocommerce-message .button::before,
.woocommerce-message .wc-forward::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

.woocommerce-message .button:hover,
.woocommerce-message .wc-forward:hover {
    background: var(--yl-charcoal-3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44,46,51,.25);
}

/* در صفحه محصول تکی */
.single-product .woocommerce-message {
    max-width: 100%;
    margin-bottom: 30px !important;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .woocommerce-message,
    .woocommerce-info {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }
    .woocommerce-message .button,
    .woocommerce-message .wc-forward {
        width: 100%;
        justify-content: center;
    }
    ul.products li.product .added_to_cart,
    .woocommerce .added_to_cart {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }
}


/* ============================================================
   fix: جلوگیری از بلند شدن همه محصولات وقتی یکی دکمه‌ی
   "مشاهده سبد خرید" داره (v2.9)
   ============================================================ */

/* هر محصول ارتفاع مستقل داشته باشه، به بلندترین کش نیاد */
ul.products {
    align-items: start !important;
}

/* دکمه‌ی مشاهده سبد در پایین کارت بشینه (اختیاری - زیباتره) */
ul.products li.product {
    display: flex !important;
    flex-direction: column;
}

/* تصویر و متن‌ها در بالا */
ul.products li.product > a {
    display: block;
}

/* دکمه‌ها همیشه در پایین کارت */
ul.products li.product .button {
    margin-top: auto !important;
}


/* ============================================================
   بنر هدر دسته‌بندی (v2.15)
   ============================================================ */
.yl-cat-hero {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}

/* لایه‌ی گرادیانی روی تصویر — تیره در سمت راست (پشت متن)، شفاف در سمت چپ */
.yl-cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(26,28,31,.85) 0%,    /* سمت راست: تیره - پشت متن */
        rgba(26,28,31,.7) 25%,
        rgba(26,28,31,.4) 50%,
        rgba(26,28,31,.15) 75%,
        rgba(26,28,31,0) 100%     /* سمت چپ: کاملاً شفاف */
    );
    z-index: 1;
}

.yl-cat-hero-content {
    position: relative;
    z-index: 2;
    color: var(--yl-white);
    max-width: 600px;
    padding: 40px 0;
    animation: ylFadeUp .8s cubic-bezier(.4, 0, .2, 1);
}

.yl-cat-hero-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--yl-white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: var(--yl-font-en);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.yl-cat-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--yl-white);
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.yl-cat-hero-content p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.9);
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,.3);
    max-width: 500px;
}

/* انیمیشن ظاهر شدن */
@keyframes ylFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .yl-cat-hero { min-height: 320px; }
    .yl-cat-hero-content h1 { font-size: 44px; }
    .yl-cat-hero-content p { font-size: 15px; }
}

@media (max-width: 720px) {
    .yl-cat-hero { min-height: 260px; }
    .yl-cat-hero-content h1 { font-size: 32px; }
    .yl-cat-hero-content p { font-size: 14px; }
    .yl-cat-hero-tag { font-size: 11px; padding: 5px 14px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
    .yl-cat-hero { min-height: 220px; }
    .yl-cat-hero-content h1 { font-size: 26px; }
    /* روی موبایل: متن روی کل عرض هست، پس گرادیانت از پایین به بالا */
    .yl-cat-hero-overlay {
        background: linear-gradient(
            to top,
            rgba(26,28,31,.85) 0%,
            rgba(26,28,31,.5) 60%,
            rgba(26,28,31,.2) 100%
        );
    }
}

/* غیرفعال کردن بنر پیش‌فرض ساده که ممکن است باقی مانده باشد */
.yl-shop-header-bar { display: none !important; }


/* ============================================================
   fix: قرار دادن لوگو در کنار متن برند (نه بالای آن) (v2.17)
   ============================================================ */

/* بازنویسی تنظیمات ووکامرس/وردپرس که ممکنه لوگو رو تمام‌عرض کنن */
.yl-brand-link .custom-logo-link {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    flex-shrink: 0;
}

.yl-brand-link .custom-logo,
.yl-brand-logo img {
    max-height: 55px !important;
    height: 55px !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
}

/* مطمئن شو flex به درستی کار می‌کنه */
.yl-brand-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
}

.yl-brand-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    line-height: 1.2;
    flex-shrink: 0;
}

/* روی موبایل، لوگو کوچیک‌تر */
@media (max-width: 720px) {
    .yl-brand-link .custom-logo,
    .yl-brand-logo img {
        max-height: 42px !important;
        height: 42px !important;
    }
    .yl-brand-link { gap: 10px !important; }
}


/* ============================================================
   fix v2.18: لوگوی سفارشی کنار متن (رفع مشکل nested anchor)
   ============================================================ */

/* لوگوی سفارشی: بدون تگ a تودرتو، مستقیم img */
.yl-brand-link .yl-brand-logo-img {
    display: block !important;
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* اطمینان از flex در جهت افقی */
.yl-brand .yl-brand-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    text-decoration: none !important;
}

.yl-brand .yl-brand-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    flex-shrink: 0;
}

/* پنهان کردن لوگوی وردپرس اگر به هر دلیل باز هم نمایش داده شد */
.yl-brand .custom-logo-link {
    display: none !important;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .yl-brand-link .yl-brand-logo-img {
        height: 40px !important;
        max-width: 40px !important;
    }
}
@media (max-width: 720px) {
    .yl-brand-link .yl-brand-logo-img {
        height: 36px !important;
        max-width: 36px !important;
    }
    .yl-brand .yl-brand-link { gap: 8px !important; }
}


/* ============================================================
   Hero پس‌زمینه تصویری + لوگوی گوشه (v2.21)
   ============================================================ */

/* بازنویسی پس‌زمینه Hero: تصویر به‌جای گرادیانت مشکی */
.yl-hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
}

/* Overlay: گرادیانت افقی — سمت راست تیره، سمت چپ کاملاً شفاف */
.yl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(26,28,31,.9)  0%,     /* سمت راست: خیلی تیره (پشت متن) */
        rgba(26,28,31,.75) 25%,
        rgba(26,28,31,.45) 50%,
        rgba(26,28,31,.15) 75%,
        rgba(26,28,31,0)   100%    /* سمت چپ: کاملاً شفاف (تصویر واضح) */
    );
    z-index: 1;
    pointer-events: none;
}

/* حذف گرادیانت رنگی پیش‌فرض که قبلاً تعریف شده بود */
.yl-hero::before {
    display: none !important;
}

/* محتوای متن Hero روی overlay */
.yl-hero .yl-container {
    position: relative;
    z-index: 2;
}

/* لوگوی گوشه‌ی پایین سمت چپ */
.yl-hero-logo-badge {
    position: absolute;
    bottom: 30px;
    left: 40px;
    width: auto;
    height: 110px;
    max-width: 130px;
    object-fit: contain;
    z-index: 3;
    filter: brightness(0) invert(1);   /* لوگو رو سفید کن (چون بک‌گراند تیرست) */
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.yl-hero-logo-badge:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .yl-hero-logo-badge {
        height: 90px;
        max-width: 110px;
        bottom: 25px;
        left: 30px;
    }
}

@media (max-width: 720px) {
    .yl-hero-logo-badge {
        height: 70px;
        max-width: 85px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .yl-hero-logo-badge {
        height: 55px;
        max-width: 70px;
        bottom: 15px;
        left: 15px;
        opacity: 0.7;
    }
    /* روی موبایل overlay رو تیره‌تر کن که متن خوانا باشه */
    .yl-hero-overlay {
        background: linear-gradient(
            to top,
            rgba(26,28,31,.9) 0%,
            rgba(26,28,31,.6) 60%,
            rgba(26,28,31,.4) 100%
        );
    }
}


/* ============================================================
   استایل صفحه سبد خرید کلاسیک (v2.23)
   ============================================================ */

/* دکمه‌ی "ادامه به تسویه حساب" - از بنفش به زغالی تم سایت */
.woocommerce a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout a.button {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 15px 30px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-align: center;
    display: block;
    transition: all var(--yl-trans) !important;
    box-shadow: 0 4px 15px rgba(44,46,51,.2) !important;
    text-shadow: none !important;
    text-decoration: none !important;
}
.woocommerce a.checkout-button:hover,
.wc-proceed-to-checkout a.button:hover {
    background: var(--yl-charcoal-3) !important;
    color: var(--yl-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,46,51,.3) !important;
}

/* دکمه‌های سبد خرید کلاسیک */
.woocommerce table.cart .actions .button,
.woocommerce table.cart button[name="update_cart"],
.woocommerce table.cart .button,
.woocommerce #respond input#submit,
.woocommerce input[type="submit"].button {
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 15px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all var(--yl-trans) !important;
    text-shadow: none !important;
}
.woocommerce table.cart .actions .button:hover,
.woocommerce table.cart button[name="update_cart"]:hover,
.woocommerce input[type="submit"].button:hover {
    background: var(--yl-charcoal-3) !important;
    color: var(--yl-white) !important;
}

/* دکمه‌های "افزودن به سبد" - پدینگ و فونت 15 */
.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.product_type_simple,
.woocommerce a.button.product_type_variable,
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button,
.yl-product-cart .single_add_to_cart_button {
    padding: 15px !important;
    font-size: 15px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-radius: 999px !important;
    border: 0 !important;
    transition: all var(--yl-trans) !important;
    text-shadow: none !important;
    line-height: 1.2 !important;
}
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
    background: var(--yl-charcoal-3) !important;
    color: var(--yl-white) !important;
}

/* دکمه‌های سبد خرید در حالت خاکستری (به‌روزرسانی سبد) */
.woocommerce table.cart .actions .button[disabled],
.woocommerce table.cart button[name="update_cart"][disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* دکمه‌ی "اعمال کد تخفیف" */
.woocommerce table.cart .coupon .button {
    padding: 15px !important;
    font-size: 15px !important;
    background: var(--yl-charcoal) !important;
    color: var(--yl-white) !important;
    border-radius: 999px !important;
    font-family: var(--yl-font-fa) !important;
    font-weight: 700 !important;
    border: 0 !important;
}

/* input فیلد کد تخفیف */
.woocommerce table.cart .coupon input.input-text {
    border: 1.5px solid var(--yl-border) !important;
    border-radius: 999px !important;
    padding: 12px 18px !important;
    font-family: var(--yl-font-fa) !important;
    font-size: 14px !important;
    outline: none !important;
    background: var(--yl-white) !important;
}
.woocommerce table.cart .coupon input.input-text:focus {
    border-color: var(--yl-charcoal) !important;
}

/* جدول سبد خرید - استایل کلی */
.woocommerce table.shop_table {
    border: 1px solid var(--yl-border) !important;
    border-radius: var(--yl-radius) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    background: var(--yl-white);
}

.woocommerce table.shop_table th {
    background: var(--yl-light-gray) !important;
    color: var(--yl-charcoal) !important;
    font-weight: 700 !important;
    font-family: var(--yl-font-fa) !important;
    padding: 15px !important;
}

.woocommerce table.shop_table td {
    padding: 15px !important;
    border-top: 1px solid var(--yl-border) !important;
}

/* عنوان "سبد خرید" و "جمع کل سبد خرید" */
.woocommerce .cart_totals h2,
.woocommerce-cart-form h2 {
    color: var(--yl-charcoal) !important;
    font-weight: 800 !important;
    text-align: center;
}


/* ============================================================
   fix v2.24: بزرگ‌تر کردن فیلد کد تخفیف
   ============================================================ */
.woocommerce table.cart .coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: auto;
}

.woocommerce table.cart .coupon input.input-text,
.woocommerce table.cart .coupon input#coupon_code {
    min-width: 220px !important;
    width: 220px !important;
    padding: 12px 18px !important;
    box-sizing: border-box;
}

.woocommerce table.cart .coupon input.input-text::placeholder {
    font-size: 13px !important;
    color: var(--yl-muted);
    opacity: 0.7;
}

.woocommerce table.cart .coupon .button {
    white-space: nowrap;
    padding: 12px 20px !important;
    font-size: 14px !important;
}

/* ریسپانسیو - در موبایل فیلد کد تخفیف در یک خط جدا */
@media (max-width: 640px) {
    .woocommerce table.cart .coupon {
        flex-wrap: wrap;
    }
    .woocommerce table.cart .coupon input.input-text,
    .woocommerce table.cart .coupon input#coupon_code {
        min-width: 100% !important;
        width: 100% !important;
    }
    .woocommerce table.cart .coupon .button {
        width: 100%;
    }
}


/* ============================================================
   fix v2.30: بهبود ریسپانسیو منو و اسلایدر
   ============================================================ */

/* --- اسلایدر: در موبایل هر بار یک محصول کامل --- */
@media (max-width: 720px) {
    .yl-slider .yl-slider-viewport ul.products li.product {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .yl-slider .yl-slider-viewport ul.products {
        gap: 12px !important;
    }
    .yl-slider {
        gap: 6px;
    }
    .yl-slider-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .yl-slider .yl-slider-viewport ul.products li.product {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .yl-slider-btn {
        width: 34px !important;
        height: 34px !important;
    }
}

/* --- منوی موبایل: زیباتر و واضح‌تر --- */
@media (max-width: 992px) {
    /* آیکون همبرگر واضح‌تر */
    .yl-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--yl-light-gray);
        cursor: pointer;
        transition: background var(--yl-trans);
        padding: 0;
        border: 0;
    }
    .yl-menu-toggle:hover,
    .yl-menu-toggle:active {
        background: var(--yl-charcoal);
    }
    .yl-menu-toggle:hover span,
    .yl-menu-toggle:active span {
        background: var(--yl-white);
    }
    .yl-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--yl-charcoal);
        margin: 2px 0;
        transition: all var(--yl-trans);
        border-radius: 2px;
    }

    /* منو با انیمیشن نرم‌تر */
    .yl-menu {
        position: absolute;
        top: calc(100% + 15px);
        right: 0;
        background: var(--yl-white);
        flex-direction: column;
        min-width: 260px;
        padding: 10px;
        border-radius: var(--yl-radius);
        box-shadow: 0 10px 40px rgba(0,0,0,.15);
        border: 1px solid var(--yl-border);
        display: none;
        gap: 4px;
        z-index: 999;
    }
    .yl-menu.open {
        display: flex;
    }
    .yl-menu > li {
        width: 100%;
    }
    .yl-menu > li > a {
        width: 100%;
        justify-content: flex-start !important;
        padding: 12px 15px !important;
        border-radius: 8px;
        font-size: 15px !important;
    }
    .yl-menu > li > a:hover {
        background: var(--yl-light-gray);
    }

    /* آیکون + متن در ردیف */
    .yl-menu > li > a i {
        font-size: 15px !important;
        width: 20px;
        text-align: center;
        color: var(--yl-charcoal);
    }

    /* حذف زیرخط انیمیشن در موبایل */
    .yl-menu > li > a::after {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .yl-menu-toggle {
        width: 40px;
        height: 40px;
    }
    .yl-menu {
        min-width: 240px;
        right: -10px;
    }
}


/* ============================================================
   استایل ثبت‌نام و پیشخوان (v2.31)
   ============================================================ */

/* فرم ثبت‌نام و ورود - مدرن */
.woocommerce-account .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce-form-login,
.woocommerce-form-register {
    background: white;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e5e5e7;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    margin-bottom: 20px;
}

.woocommerce-form-login input,
.woocommerce-form-register input,
.woocommerce-form-register select {
    border: 1.5px solid #e5e5e7 !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    background: white !important;
    width: 100% !important;
    outline: none !important;
    transition: border-color .2s ease !important;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus,
.woocommerce-form-register select:focus {
    border-color: #2C2E33 !important;
}

.woocommerce-form-login button,
.woocommerce-form-register button {
    background: #2C2E33 !important;
    color: white !important;
    border: 0 !important;
    padding: 14px 30px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: background .2s ease !important;
    width: 100%;
}

.woocommerce-form-login button:hover,
.woocommerce-form-register button:hover {
    background: #1a1c1f !important;
}

/* بازنویسی برای فرم ثبت‌نام دو ستونی */
.woocommerce-form-register .form-row-first {
    width: 48% !important;
    display: inline-block !important;
    margin-left: 3% !important;
    vertical-align: top;
}
.woocommerce-form-register .form-row-last {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top;
}

/* دو ستونه login و register کنار هم روی حساب کاربری */
@media (min-width: 768px) {
    .woocommerce-account:not(.logged-in) .u-columns {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 25px;
    }
}

/* پیشخوان */
.woocommerce-MyAccount-navigation ul li {
    background: white;
    border: 1px solid #e5e5e7;
    margin-bottom: 6px;
    border-radius: 10px;
    overflow: hidden;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 18px;
    color: #2C2E33;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}
.woocommerce-MyAccount-navigation ul li:hover {
    border-color: #2C2E33;
}
.woocommerce-MyAccount-navigation ul li.is-active {
    background: #2C2E33;
    border-color: #2C2E33;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: white;
}

/* پیام‌های ووکامرس */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
}
