/*
Theme Name: قالب سجاد
Description: قالب سبک و راست‌چین فارسی با فونت وزیرمتن و پشتیبانی ووکامرس؛ حالت روشن «سفید» و حالت تیره «سرمه‌ای»؛ همراه افزونه «داشبورد سجاد».
Version: 1.1.0
Text Domain: sajjad-theme
Requires PHP: 7.4
*/

/* ---------- رنگ‌ها: روشن = سفید ، دارک = سرمه‌ای ---------- */
:root{
	color-scheme:light;
	--bg:#ffffff;
	--bg2:#f4f7fe;
	--card:#ffffff;
	--tx:#0b1f4b;
	--st:#4a5b82;
	--ac:#12307a;
	--ac2:#0b1f4b;
	--on-ac:#ffffff;
	--bd:rgba(11,31,75,.12);
	--gl:rgba(255,255,255,.82);
	--sh:rgba(11,31,75,.08);
	--ok:#0f8a5f;
}
html[data-theme="dark"]{
	color-scheme:dark;
	--bg:#0a1730;
	--bg2:#0d1d3d;
	--card:#10244b;
	--tx:#eaf0ff;
	--st:#a3b1d6;
	--ac:#6d93ff;
	--ac2:#8fadff;
	--on-ac:#0a1730;
	--bd:rgba(255,255,255,.14);
	--gl:rgba(10,23,48,.82);
	--sh:rgba(0,0,0,.45);
	--ok:#4ade9c;
}

*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--tx);font-family:'Vazirmatn',Tahoma,sans-serif;line-height:1.9;direction:rtl;transition:background .25s,color .25s}
a{color:var(--ac);text-decoration:none}
a:hover{color:var(--ac2)}
img{max-width:100%;height:auto}
.sj-container{max-width:1160px;margin:0 auto;padding:0 20px}

/* هدر */
.sj-header{background:var(--gl);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--bd);position:sticky;top:0;z-index:50}
.sj-header .sj-container{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.sj-brand{font-weight:700;font-size:20px;color:var(--tx)}
.sj-brand:hover{color:var(--tx)}
.sj-nav{margin-inline-start:auto}
.sj-nav ul{display:flex;gap:6px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.sj-nav a{display:block;padding:8px 14px;border-radius:12px;color:var(--st)}
.sj-nav .current-menu-item>a,.sj-nav a:hover{background:var(--ac);color:var(--on-ac)}

/* کلید روشن/تیره */
.sj-mode{width:42px;height:42px;border-radius:14px;border:1px solid var(--bd);background:var(--card);color:var(--tx);cursor:pointer;display:grid;place-items:center;padding:0;box-shadow:0 4px 14px var(--sh);transition:.2s}
.sj-mode:hover{border-color:var(--ac)}
.sj-mode svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sj-mode .i-moon{display:block}.sj-mode .i-sun{display:none}
html[data-theme="dark"] .sj-mode .i-moon{display:none}
html[data-theme="dark"] .sj-mode .i-sun{display:block}

/* محتوا */
.sj-main{padding:32px 0;min-height:60vh}
.sj-card{background:var(--card);border:1px solid var(--bd);border-radius:22px;padding:22px;margin-bottom:20px;box-shadow:0 8px 24px var(--sh)}
.sj-card h2{margin-top:0}
.sj-footer{padding:24px 0;color:var(--st);font-size:13px;border-top:1px solid var(--bd);background:var(--bg2)}

/* فرم‌ها */
input[type=text],input[type=email],input[type=tel],input[type=url],input[type=password],input[type=search],input[type=number],textarea,select{background:var(--card);color:var(--tx);border:1px solid var(--bd);border-radius:12px;padding:.6em 1em;font-family:inherit;max-width:100%}
input:focus,textarea:focus,select:focus{outline:2px solid var(--ac);outline-offset:1px}
button,input[type=submit]{font-family:inherit}

/* ووکامرس */
.woocommerce a.button,.woocommerce button.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button{background:var(--ac);color:var(--on-ac);border-radius:999px;padding:.7em 1.6em;font-family:inherit;font-weight:500}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--ac2);color:var(--on-ac)}
.woocommerce ul.products li.product,.woocommerce div.product,.woocommerce-cart-form,.woocommerce-checkout #customer_details,.woocommerce table.shop_table{color:var(--tx)}
.woocommerce table.shop_table,.woocommerce table.shop_table td,.woocommerce table.shop_table th{border-color:var(--bd)}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:var(--card);color:var(--tx);border-top-color:var(--ac)}
.woocommerce .price,.woocommerce ul.products li.product .price{color:var(--ac)}
@media(max-width:700px){.sj-header .sj-container{flex-wrap:wrap;padding-block:10px}.sj-nav{order:3;width:100%}}
