/*
Theme Name: تسمه پارسه
Theme URI: https://tasmehparse.ir
Author: Tasmeh Parse
Description: قالب تسمه پارسه - نماینده رسمی SRB
Version: 6.1
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tasmeh-parse
Tags: right-to-left, rtl-language, e-commerce
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;900&display=swap');

:root {
  --blue:    #1B4F8A;
  --blue-dk: #133A67;
  --blue-lt: #EBF2FB;
  --yellow:  #F5C400;
  --red:     #C0392B;
  --white:   #FFFFFF;
  --off:     #F8FAFC;
  --g100:    #F1F5F9;
  --g200:    #E2E8F0;
  --g400:    #94A3B8;
  --g600:    #475569;
  --g800:    #1E293B;
  --sh:      0 4px 16px rgba(27,79,138,.12);
  --sh-lg:   0 12px 40px rgba(27,79,138,.18);
  --r:       10px;
  --r-lg:    16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--off); color: var(--g800);
  direction: rtl; line-height: 1.7; font-size: 15px;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1240px; margin: auto; padding: 0 22px; }

/* TOPBAR */
/* HEADER */
.site-header { background: var(--white); border-bottom: 3px solid var(--blue); position: sticky; top: 0; z-index: 300; box-shadow: var(--sh); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 0; min-height: 82px; }
.site-logo { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; justify-self: center; flex-direction: column; text-align: center; }
.logo-emblem-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; display: block; }
.logo-wm { text-align: center; line-height: 1.35; }
.logo-wm em { font-size: 8px; color: var(--red); font-style: normal; font-weight: 800; display: block; letter-spacing: .4px; }
.logo-wm strong { font-size: 16px; font-weight: 900; color: var(--blue); display: block; margin-top: 2px; }

/* منوی اصلی همیشه به‌صورت کشویی (off-canvas) است — در همه اندازه‌ها یکسان */
.nav-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 350; opacity: 0; pointer-events: none; transition: opacity .25s; }
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

.main-nav { display: flex; position: fixed; top: 0; bottom: 0; right: -86%; width: 86%; max-width: 340px; background: var(--white); flex-direction: column; gap: 0; padding: 0 0 20px; z-index: 400; box-shadow: -10px 0 30px rgba(0,0,0,.2); max-height: 100vh; overflow-y: auto; transition: right .28s ease; }
.main-nav.open { right: 0; }
.main-nav a { padding: 15px 22px; border-radius: 0; border-bottom: 1px solid var(--g100); width: 100%; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--g600); font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: var(--blue-lt); font-weight: 800; }
.main-nav .nav-shop { background: var(--red); color: var(--white) !important; }
.main-nav .nav-shop:hover { background: #922B21 !important; }

.main-nav-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--blue); color: var(--white); font-weight: 800; font-size: 16px; position: sticky; top: 0; z-index: 2; }
.nav-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; color: var(--white); font-size: 15px; cursor: pointer; }
.nav-ic { display: inline-flex; font-size: 17px; }
.main-nav-ft { display: block; padding: 16px 20px 4px; }
.main-nav-ft a { display: block; background: var(--yellow); color: var(--blue-dk); text-align: center; padding: 12px; border-radius: 10px; font-weight: 900; text-decoration: none; }

body.nav-open { overflow: hidden; }

.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; justify-self: start; }
.cart-link { position: relative; background: var(--blue-lt); border: none; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--blue); text-decoration: none; transition: transform .22s cubic-bezier(.2,.7,.3,1), background-color .22s ease, color .22s ease; margin-top: 4px; }
.cart-link:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.cart-badge { position: absolute; top: -3px; left: -3px; background: var(--red); color: var(--white); font-size: 9px; font-weight: 900; width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; justify-self: end; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: .3s; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: 8px; font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; border: none; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s cubic-bezier(.2,.7,.3,1), background-color .25s ease, color .25s ease; text-decoration: none; line-height: 1; will-change: transform; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(27,79,138,.18); }
.btn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(27,79,138,.15); transition-duration: .08s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dk); }
.btn-yellow { background: var(--yellow); color: var(--g800); }
.btn-yellow:hover { background: #E0AC00; box-shadow: 0 10px 22px rgba(245,196,0,.35); }
.btn-ow { background: transparent; border: 2px solid rgba(255,255,255,.4); color: var(--white); }
.btn-ow:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.btn-lg { padding: 14px 34px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--blue-dk), var(--blue)); padding: 52px 22px; border-bottom: 3px solid var(--yellow); color: var(--white); text-align: center; }
.page-hero h1 { font-size: clamp(22px, 2.8vw, 36px); font-weight: 900; margin-bottom: 10px; }
.page-hero h1 em { color: var(--yellow); font-style: normal; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 14px; }
.tp-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 14px; flex-wrap: wrap; }
.tp-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.tp-breadcrumb a:hover { color: var(--yellow); }
.tp-breadcrumb span:last-child { color: var(--yellow); font-weight: 700; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--blue-dk) 0%, var(--blue) 55%, #2563AE 100%); color: var(--white); position: relative; overflow: hidden; padding: 86px 22px 100px; }
.hero-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--yellow) 33%, var(--red) 33%, var(--red) 66%, var(--white) 66%); }
.hero-inner { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,196,0,.14); border: 1px solid rgba(245,196,0,.38); color: var(--yellow); font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 46px); font-weight: 900; line-height: 1.12; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 strong { color: var(--yellow); }
.hero-sub { display: block; font-size: clamp(14px, 1.6vw, 20px); font-weight: 400; color: rgba(255,255,255,.65); margin-top: 10px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.76); margin-bottom: 32px; max-width: 510px; line-height: 1.85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-divider { width: 1px; height: 32px; background: rgba(255,255,255,.2); }
.hero-hint { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 7px; }

/* STAT CARD */
.hero-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.hero-card-hd { background: linear-gradient(90deg, var(--blue-dk), var(--blue)); padding: 18px 22px; display: flex; align-items: center; gap: 12px; }
.hc-logo { background: var(--yellow); border-radius: 6px; padding: 5px 11px; font-size: 16px; font-weight: 900; color: var(--g800); font-style: italic; font-family: Georgia, serif; }
.hc-title { color: var(--white); font-weight: 700; font-size: 14px; }
.hc-sub { color: rgba(255,255,255,.6); font-size: 11px; display: block; margin-top: 2px; }
.belt-strip { height: 6px; background-size: 72px 100%; animation: bm 2.5s linear infinite; background-image: repeating-linear-gradient(90deg, var(--yellow) 0, var(--yellow) 28px, var(--blue-dk) 28px, var(--blue-dk) 36px, var(--red) 36px, var(--red) 64px, var(--blue-dk) 64px, var(--blue-dk) 72px); }
@keyframes bm { from { background-position: 0 0; } to { background-position: 72px 0; } }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat-cell { padding: 22px 20px; border-bottom: 1px solid var(--g200); border-left: 1px solid var(--g200); display: flex; flex-direction: column; align-items: center; text-align: center; transition: background .2s; }
.stat-cell:nth-child(odd) { border-left: none; }
.stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-bottom: none; }
.stat-cell:hover { background: var(--blue-lt); }
.stat-icon { font-size: 20px; margin-bottom: 6px; }
.stat-num { font-size: 30px; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-unit { font-size: 13px; font-weight: 700; color: var(--yellow); }
.stat-label { font-size: 11px; color: var(--g400); margin-top: 5px; }

/* TRUST BAR */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--g200); padding: 15px 0; }
.trust-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--g600); }
.trust-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-lt); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.trust-text b { display: block; font-size: 12px; color: var(--blue); }

/* SECTIONS */
.section { padding: 76px 22px; }
.sec-w { background: var(--white); }
.sec-lt { background: var(--off); }
.sec-blue { background: var(--blue); color: var(--white); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-eye { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); padding: 4px 14px; border-radius: 20px; background: var(--blue-lt); margin-bottom: 12px; }
.sec-blue .sec-eye { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.sec-head h2 { font-size: clamp(21px, 2.4vw, 34px); font-weight: 900; letter-spacing: -.5px; margin-bottom: 12px; color: var(--g800); }
.sec-blue .sec-head h2 { color: var(--white); }
.sec-head p { color: var(--g400); max-width: 560px; margin: auto; font-size: 14px; line-height: 1.7; }
.sec-blue .sec-head p { color: rgba(255,255,255,.65); }
.c-y { color: var(--yellow) !important; }
.c-b { color: var(--blue) !important; }
.c-r { color: var(--red) !important; }

/* CATS */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
.cat-card { background: var(--white); border: 2px solid var(--g200); border-radius: var(--r); padding: 22px 12px; text-align: center; cursor: pointer; transition: all .22s; text-decoration: none; display: block; color: var(--g800); }
.cat-card:hover { border-color: var(--yellow); transform: translateY(-4px); box-shadow: var(--sh); }
.cat-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-lt); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: background .2s; }
.cat-card:hover .cat-icon { background: var(--yellow); }
.cat-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 3px; color: var(--blue); }
.cat-card small { font-size: 11px; color: var(--g400); }
.cat-bdg { display: inline-block; background: var(--red); color: var(--white); font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 10px; margin-top: 5px; }

/* PRODUCT CARDS */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 21px; }
.prod-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--g200); box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: all .22s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--yellow); }
.prod-thumb { height: 188px; display: flex; align-items: center; justify-content: center; font-size: 54px; position: relative; background: var(--g100); overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-bdg { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 20px; }
.b-hot { background: var(--yellow); color: var(--g800); }
.b-new { background: #16A34A; color: var(--white); }
.b-sale { background: var(--red); color: var(--white); }
.b-rep { background: var(--blue); color: var(--white); }
.prod-body { padding: 17px; flex: 1; display: flex; flex-direction: column; }
.prod-brand { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.prod-brand span { background: var(--blue-lt); padding: 2px 8px; border-radius: 4px; }
.prod-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; color: var(--g800); }
.prod-stars { color: #F59E0B; font-size: 12px; margin-bottom: 8px; }
.prod-desc { font-size: 12px; color: var(--g400); line-height: 1.65; margin-bottom: 12px; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--g200); margin-top: auto; }
.prod-price .am { font-size: 18px; font-weight: 900; color: var(--blue); }
.prod-price small { font-size: 10px; color: var(--g400); display: block; }
.add-btn { background: var(--blue); color: var(--white); border: none; padding: 9px 15px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s cubic-bezier(.2,.7,.3,1), background-color .22s ease, color .22s ease; }
.add-btn:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(27,79,138,.25); }
.add-btn:active { transform: translateY(0); }

/* WHY */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.why-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 26px; transition: all .2s; text-align: center; display: flex; flex-direction: column; align-items: center; }
.why-card:hover { background: rgba(255,255,255,.12); border-color: var(--yellow); }
.why-ico { width: 52px; height: 52px; border-radius: 10px; background: rgba(245,196,0,.14); border: 1px solid rgba(245,196,0,.24); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 15px; }
.why-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--yellow); text-align: center; }
.why-card p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.75; text-align: center; max-width: 34ch; }

/* SEO GRID */
.seo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; }
.seo-txt h2 { font-size: 24px; font-weight: 900; margin-bottom: 15px; }
.seo-txt h3 { font-size: 15px; font-weight: 800; color: var(--blue); margin: 20px 0 7px; padding-inline-start: 11px; border-inline-start: 3px solid var(--yellow); }
.seo-txt p { color: var(--g600); margin-bottom: 12px; font-size: 14px; line-height: 1.9; }
.seo-txt ul { color: var(--g600); font-size: 14px; line-height: 2.1; padding-inline-start: 16px; }
.seo-txt ul li { position: relative; padding-inline-start: 14px; }
.seo-txt ul li::before { content: "▸"; position: absolute; inset-inline-start: 0; color: var(--red); font-weight: 700; }

/* FAQ */
.faq-box { background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--g200); }
.faq-hd { background: var(--blue); color: var(--white); padding: 16px 22px; font-size: 14px; font-weight: 800; }
.faq-item { border-bottom: 1px solid var(--g200); }
.faq-item:last-child { border-bottom: none; }
.faq-q { padding: 15px 22px; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: background .2s; user-select: none; color: var(--g800); }
.faq-q:hover { background: var(--g100); }
.faq-a { padding: 12px 22px 15px; font-size: 13px; color: var(--g600); line-height: 1.85; border-top: 1px solid var(--g200); display: none; background: var(--off); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: var(--blue-lt); color: var(--blue); }
.faq-arrow { font-size: 9px; color: var(--g400); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--blue); }

/* TESTIMONIALS */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.testi-card { background: var(--white); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--g200); position: relative; }
.testi-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--blue)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.testi-stars { color: #F59E0B; font-size: 15px; margin-bottom: 12px; }
.testi-txt { font-size: 13px; line-height: 1.85; color: var(--g600); font-style: italic; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 11px; }
.testi-av { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--yellow); font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: 14px; color: var(--g800); }
.testi-role { font-size: 11px; color: var(--g400); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--blue-dk), var(--blue)); padding: 70px 22px; text-align: center; position: relative; color: var(--white); }
.cta-section::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--yellow); }
.cta-section h2 { font-size: clamp(20px, 2.6vw, 32px); font-weight: 900; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-section p { font-size: 15px; color: rgba(255,255,255,.72); margin-bottom: 28px; position: relative; z-index: 1; }
.cta-acts { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* SPEC TABLE */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th { padding: 11px 14px; text-align: right; background: var(--blue-lt); color: var(--blue); font-weight: 800; border-bottom: 2px solid var(--g200); }
.spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--g200); color: var(--g800); }
.spec-table tbody tr:hover { background: var(--off); }

/* CONTACT FORM */
.cform { background: var(--g100); border-radius: var(--r-lg); padding: 26px; }
.cform h3 { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 11px; font-weight: 700; color: var(--g400); margin-bottom: 5px; letter-spacing: .5px; }
.fg input, .fg textarea, .fg select { width: 100%; padding: 10px 13px; border: 1px solid var(--g200); border-radius: 8px; font-family: inherit; font-size: 13px; background: var(--white); direction: inherit; transition: border-color .2s; }
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--yellow); }
.fg textarea { height: 110px; resize: vertical; }

/* SHOP */
.shop-header { background: linear-gradient(90deg, var(--blue-dk), var(--blue)); padding: 36px 22px; border-bottom: 3px solid var(--yellow); color: var(--white); }
.shop-header h1 { font-size: 24px; font-weight: 900; }
.shop-header h1 em { color: var(--yellow); font-style: normal; }
.shop-header p { color: rgba(255,255,255,.65); font-size: 13px; margin-top: 5px; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; max-width: 1240px; margin: auto; padding: 28px 22px; }
.sidebar-widget { background: var(--white); border-radius: var(--r); border: 1px solid var(--g200); overflow: hidden; margin-bottom: 16px; }
.sidebar-widget-head { background: var(--blue); color: var(--white); padding: 11px 16px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.sidebar-widget-body { padding: 14px 16px; }

/* FOOTER */
.site-footer { background: var(--blue-dk); color: var(--g400); padding: 44px 22px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 34px; }
.footer-col h4 { color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--yellow); display: inline-block; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a { font-size: 13px; color: var(--g400); transition: color .2s; }
.footer-col ul a:hover { color: var(--yellow); }
.footer-brand { font-size: 13px; line-height: 1.7; margin: 10px 0; max-width: 310px; }
.footer-ci { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13px; align-items: flex-start; }
.footer-ci a { color: var(--g400); transition: color .2s; }
.footer-ci a:hover { color: var(--yellow); }
.footer-nl input { width: 100%; padding: 11px 13px; border-radius: 7px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.05); color: var(--white); font-family: inherit; font-size: 13px; margin-bottom: 9px; direction: inherit; }
.footer-nl input::placeholder { color: rgba(255,255,255,.22); }
.footer-nl input:focus { outline: none; border-color: var(--yellow); }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.footer-sb { padding: 7px 13px; border-radius: 7px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; transition: opacity .2s; text-decoration: none; }
.footer-sb:hover { opacity: .85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 10px; }
.srb-badge { background: var(--red); color: var(--white); padding: 3px 9px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 1px; }

/* FLOAT BUTTONS */
.float-call { position: fixed; bottom: 76px; left: 20px; z-index: 999; background: var(--red); color: var(--white); border-radius: 50px; padding: 11px 18px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 7px; text-decoration: none; box-shadow: 0 5px 20px rgba(192,57,43,.45); animation: fp 2.5s infinite; }
.float-call:hover { color: var(--white); }
.float-wa { position: fixed; bottom: 20px; left: 20px; z-index: 999; background: #25D366; color: var(--white); border-radius: 50px; padding: 11px 18px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 7px; text-decoration: none; }
.float-wa:hover { color: var(--white); }
@keyframes fp { 0%, 100% { box-shadow: 0 5px 20px rgba(192,57,43,.45); } 50% { box-shadow: 0 8px 30px rgba(192,57,43,.7); } }

/* تایپوگرافی محتوای مقالات وبلاگ */
.tp-article h2 { font-size: 22px; font-weight: 900; margin: 34px 0 14px; color: var(--g800); }
.tp-article h3 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; color: var(--g800); }
.tp-article p { margin-bottom: 16px; }
.tp-article ul, .tp-article ol { margin: 0 0 16px 0; padding-inline-start: 22px; }
.tp-article li { margin-bottom: 6px; }
.tp-article img { border-radius: 12px; margin: 20px 0; }
.tp-article a { color: var(--blue); text-decoration: underline; }
.tp-article blockquote { border-inline-start: 4px solid var(--yellow); background: var(--off); padding: 14px 18px; margin: 20px 0; border-radius: 10px; color: var(--g600); }
.tp-article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.tp-article table th, .tp-article table td { padding: 10px 12px; border: 1px solid var(--g200); text-align: right; }
.tp-article table th { background: var(--blue-lt); color: var(--blue); }

/* نوار پایین چسبان موبایل (اپ‌مانند) با دکمه شناور وسط */
.mobile-tabbar { display: none; }
@media (max-width: 900px) {
  .mobile-tabbar { display: flex; position: fixed; bottom: 0; right: 0; left: 0; z-index: 320; background: var(--white); border-top: 1px solid var(--g200); box-shadow: 0 -4px 18px rgba(0,0,0,.08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--g600); text-decoration: none; font-weight: 700; padding: 4px 0; }
  .mobile-tabbar a span { font-size: 19px; }
  .mobile-tabbar a.active { color: var(--blue); }
  .mobile-tabbar a.tabbar-fab { position: relative; margin-top: -26px; }
  .mobile-tabbar a.tabbar-fab span { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--yellow), #E0AC00); color: var(--blue-dk); border-radius: 50%; font-size: 22px; box-shadow: 0 6px 16px rgba(245,196,0,.5), 0 0 0 5px var(--white); }
  body { padding-bottom: 68px; }
  .float-call { bottom: 148px; }
  .float-wa { bottom: 88px; }
}
@media (min-width: 901px) {
  .mobile-tabbar { display: none !important; }
}

.lang-switch-top { display: flex; gap: 4px; background: var(--g100); border-radius: 8px; padding: 3px; }
.lang-switch-top a { padding: 5px 10px; font-size: 11px; font-weight: 800; color: var(--g600); border-radius: 6px; text-decoration: none; }
.lang-switch-top a.active { background: var(--blue); color: var(--white); }
.nav-lang-switch { display: flex; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--g100); }
.nav-lang-switch a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: var(--g100); color: var(--g600); font-weight: 800; font-size: 12px; text-decoration: none; }
.nav-lang-switch a.active { background: var(--blue); color: var(--white); }

/* حالت انگلیسی (چپ‌به‌راست) — تنظیمات جهت */
[dir="ltr"] .main-nav { right: auto; left: -86%; box-shadow: 10px 0 30px rgba(0,0,0,.2); }
[dir="ltr"] .main-nav.open { left: 0; right: auto; }
[dir="ltr"] .main-nav a { border-bottom: 1px solid var(--g100); }
[dir="ltr"] body { font-family: 'Segoe UI', Vazirmatn, sans-serif; }
[dir="ltr"] .seo-txt, [dir="ltr"] .seo-txt p, [dir="ltr"] .seo-txt li,
[dir="ltr"] .hero-desc, [dir="ltr"] .prod-desc, [dir="ltr"] .testi-txt,
[dir="ltr"] .faq-a, [dir="ltr"] .footer-brand,
[dir="ltr"] .cform p, [dir="ltr"] .tp-article, [dir="ltr"] .tp-article p,
[dir="ltr"] .tp-article li {
  text-align: left;
}
[dir="ltr"] .footer-col, [dir="ltr"] .footer-ci, [dir="ltr"] .footer-ci span,
[dir="ltr"] .footer-col ul, [dir="ltr"] .footer-col ul li,
[dir="ltr"] .footer-nl p, [dir="ltr"] .site-footer h4 {
  text-align: left;
}
[dir="ltr"] .footer-bottom { justify-content: space-between; text-align: left; }
[dir="ltr"] .footer-col h4 { text-align: left; }
[dir="ltr"] .sec-head, [dir="ltr"] .page-hero, [dir="ltr"] .cta-section {
  text-align: center; /* عناوین وسط‌چین می‌مانند، فقط پاراگراف‌های طولانی چپ‌چین می‌شوند */
}

[dir="ltr"] .spec-table th, [dir="ltr"] .tp-article table th, [dir="ltr"] .tp-article table td {
  text-align: left;
}

/* WOOCOMMERCE */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--blue) !important; color: var(--white) !important; border-radius: 7px !important; font-family: inherit !important; font-weight: 700 !important; border: none !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit { background: var(--red) !important; color: var(--white) !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--blue) !important; font-size: 22px !important; font-weight: 900 !important; }
ul.products li.product { border-radius: 14px !important; overflow: hidden !important; border: 1px solid var(--g200) !important; background: var(--white) !important; transition: all .2s !important; }
ul.products li.product:hover { transform: translateY(-4px) !important; box-shadow: var(--sh) !important; border-color: var(--yellow) !important; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — دسکتاپ / تبلت / موبایل
═══════════════════════════════════════════════ */

/* لپ‌تاپ کوچک و تبلت landscape */
@media (max-width: 1180px) {
  .container { padding: 0 18px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seo-grid { gap: 32px; }
}

/* تبلت portrait (آی‌پد و مشابه) */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .seo-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; padding: 20px; }
  .site-header { position: sticky; }
  .hero-stats { gap: 18px; }
  .why-grid, .testi-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* تبلت کوچک / فبلت */
@media (max-width: 768px) {
  .section { padding: 56px 18px; }
  .page-hero { padding: 40px 18px; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .faq-hd { font-size: 13px; padding: 13px 16px; }
  .spec-table { font-size: 12px; }
  .spec-table th, .spec-table td { padding: 8px 10px; }
}

/* موبایل بزرگ */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .hero { padding: 44px 16px 52px; }
  .section { padding: 44px 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; text-align: center; }
  .cta-acts { flex-direction: column; align-items: center; }
  .cta-acts a { width: 100%; text-align: center; }
  .trust-bar .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .cat-icon { width: 42px; height: 42px; font-size: 18px; }
  .prod-grid, .why-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  [style*="font-size:100px"] { font-size: 64px !important; }
  [style*="height:260px"] { height: 170px !important; }
  .footer-links li a, .footer-links li { word-break: break-word; }
}

/* موبایل معمولی و کوچک */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }
  .section { padding: 36px 14px; }
  .sec-head h2 { font-size: 22px; }
  .hero h1 { font-size: 26px; }
  .page-hero h1 { font-size: 22px; }
  .prod-grid, .why-grid, .testi-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .cat-card h3 { font-size: 12px; }
  .cat-card small { font-size: 10px; }
  .stat-num { font-size: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .spec-table { font-size: 11px; }
  .spec-table th, .spec-table td { padding: 7px 8px; white-space: nowrap; }
  [style*="font-size:100px"] { font-size: 48px !important; }
  [style*="height:260px"] { height: 130px !important; }
}

/* موبایل خیلی کوچک */
@media (max-width: 360px) {
  .hero h1 { font-size: 22px; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
  .btn-lg { padding: 12px 18px; font-size: 13px; }
}

/* دسکتاپ خیلی بزرگ */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
}
