/*
Theme Name: Mirza Plugin Child
Theme URI: https://mirzaplugin.ir/
Author: Mirza Plugin
Author URI: https://mirzaplugin.ir/
Description: پوسته فرزند میرزا پلاگین؛ منوی محصولات، فوتر کامل با صفحات قانونی، هدرهای امنیتی و بهبودهای دسترس‌پذیری. پوسته اصلی دست نمی‌خورد.
Template: mirza-plugin-sync-v7
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mirza-plugin-child
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * The header/footer look comes from the mirza-home plugin (body.mzx, many
 * !important rules). These rules only add what is new — the products
 * dropdown, mobile menu groups and footer legal links — in the same style.
 */

/* ---------- Header: products dropdown ---------- */
body .mz-header .mzc-dd{position:relative}
body .mz-header .mzc-dd-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 14px;border:0;border-radius:12px;background:none;color:var(--ink,#20211f);font:700 15px/1.4 var(--font,inherit);cursor:pointer;white-space:nowrap;transition:background-color .2s}
body .mz-header .mzc-dd-btn:hover,body .mz-header .mzc-dd.is-open .mzc-dd-btn{background:var(--cream,#f4efe7)}
body .mz-header .mzc-dd-btn:focus-visible{outline:3px solid #b43e2e;outline-offset:2px}
body .mz-header .mzc-dd-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;transition:transform .2s}
body .mz-header .mzc-dd-btn[aria-expanded="true"] svg{transform:rotate(180deg)}

body .mz-header .mzc-dd-panel{position:absolute;top:calc(100% + 16px);inset-inline-start:0;width:min(640px,calc(100vw - 48px));display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;padding:18px;background:var(--paper,#fff);border:2px solid var(--ink,#20211f);border-radius:20px;box-shadow:0 5px 0 var(--ink,#20211f);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s,transform .18s,visibility .18s;z-index:95}
body .mz-header .mzc-dd-panel::before{content:"";position:absolute;inset-inline:0;top:-18px;height:18px}
body .mz-header .mzc-dd.is-open .mzc-dd-panel{opacity:1;visibility:visible;transform:none}
@media(hover:hover) and (min-width:1024px){body .mz-header .mzc-dd:hover .mzc-dd-panel{opacity:1;visibility:visible;transform:none}}
body .mz-header .mzc-dd-panel>div{min-width:0}
body .mz-header .mzc-dd-title{display:block;margin:2px 12px 8px;font-size:12px;font-weight:800;color:#975344}

body.mzx .mz-header .mz-nav .mzc-dd-panel a.mzc-dd-item{display:block!important;min-height:0;padding:10px 12px!important;border-radius:12px!important;white-space:normal;font:inherit!important;color:var(--ink,#20211f)!important}
body.mzx .mz-header .mz-nav .mzc-dd-panel a.mzc-dd-item:hover,body.mzx .mz-header .mz-nav .mzc-dd-panel a.mzc-dd-item:focus-visible{background:var(--cream,#f4efe7)!important}
body.mzx .mz-header .mz-nav .mzc-dd-panel a.mzc-dd-item[aria-current="page"]{background:var(--coral-soft,#ffe4dc)!important}
body.mzx .mz-header .mz-nav .mzc-dd-panel a::after{display:none!important}
body .mz-header .mzc-dd-item b{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800}
body .mz-header .mzc-dd-item small{display:block;margin-top:2px;font-size:13px;line-height:1.7;color:#5f6158}
body .mz-header .mzc-badge{padding:1px 8px;border:1px solid #b9d3bb;border-radius:999px;background:#dfebdf;color:#2c5a33;font-size:11px;font-weight:800}
body.mzx .mz-header .mz-nav .mzc-dd-panel a.mzc-dd-all{grid-column:1/-1;display:flex!important;justify-content:space-between;margin-top:8px;padding:12px!important;border-top:1px solid #e3ddd2;border-radius:0 0 12px 12px!important;color:#a8382a!important;font-weight:800!important}

/* ---------- Mobile menu groups ---------- */
body .mz-header .mz-mobile-menu .mzc-m-group{display:grid;gap:2px;padding:6px 0}
body .mz-header .mz-mobile-menu .mzc-m-group+.mzc-m-group{border-top:1px solid #e3ddd2}
body .mz-header .mz-mobile-menu .mzc-m-title{padding:6px 14px 2px;font-size:12px;font-weight:800;color:#975344}

/* ---------- Footer legal row ---------- */
body .mz-footer .mzc-legal{display:flex;flex-wrap:wrap;gap:6px 18px}
body .mz-footer .mzc-legal a{color:inherit;text-decoration:underline;text-underline-offset:3px}
body .mz-footer a:focus-visible{outline:3px solid #fa604e;outline-offset:3px;border-radius:4px}

/* ---------- Accessibility ---------- */
.skip-link.screen-reader-text:focus{position:fixed!important;top:12px;inset-inline-start:12px;z-index:1000;width:auto;height:auto;clip:auto;clip-path:none;padding:12px 18px;border-radius:10px;background:#20211f;color:#fff;font-weight:800}
@media(prefers-reduced-motion:reduce){body .mz-header .mzc-dd-panel,body .mz-header .mzc-dd-btn svg{transition:none}}
