/* Milad Watch — حالت شب (همان سبزها، روی پس‌زمینه‌ی تیره) */
.milad-dark-toggle{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid var(--tw-line);background:var(--tw-soft);color:var(--tw-green-dark);cursor:pointer;transition:background .2s,transform .2s}
.milad-dark-toggle:hover{transform:rotate(12deg);background:var(--tw-soft-2)}
.milad-dark-toggle .i-sun{display:none}
html[data-theme=dark] .milad-dark-toggle .i-sun{display:inline-grid}
html[data-theme=dark] .milad-dark-toggle .i-moon{display:none}
html.mw-theme-anim,html.mw-theme-anim *{transition:background-color .35s ease,color .35s ease,border-color .35s ease!important}

html[data-theme=dark]{
  color-scheme:dark;
  --tw-cream:#0c1713;--tw-top:#0f1d17;--tw-ink:#e6f1ea;--tw-muted:#9bb3a5;--tw-line:#25392f;
  --tw-soft:#13261d;--tw-soft-2:#183025;--tw-soft-3:#1f3d2d;--tw-mint:#13261d;--tw-surface:#12211a;
  --tw-green:#2f9e6a;--tw-green-dark:#46bd88;--tw-green-deep:#b4ecce;
  --tw-shadow:0 8px 24px rgba(0,0,0,.4)
}
html[data-theme=dark] body{background:linear-gradient(180deg,var(--tw-top) 0,var(--tw-cream) 520px);color:var(--tw-ink)}
html[data-theme=dark] ::selection{background:var(--tw-green);color:#fff}

/* سطوح و کارت‌ها */
html[data-theme=dark] .site-header{background:rgba(13,24,19,.96);border-bottom-color:var(--tw-line)}
html[data-theme=dark] .site-footer{background:var(--tw-soft);border-top-color:var(--tw-line)}
html[data-theme=dark] .category,html[data-theme=dark] .category:nth-child(2n){background:linear-gradient(145deg,var(--tw-surface),var(--tw-soft));border-color:var(--tw-line)}
html[data-theme=dark] .product-card,
html[data-theme=dark] .benefit,
html[data-theme=dark] .content-area,
html[data-theme=dark] .woocommerce ul.products li.product,
html[data-theme=dark] .woocommerce div.product,
html[data-theme=dark] .woocommerce .cart-collaterals .cart_totals,
html[data-theme=dark] .woocommerce-page .cart-collaterals .cart_totals,
html[data-theme=dark] .woocommerce #payment div.payment_box,
html[data-theme=dark] .nav-list .sub-menu,
html[data-theme=dark] .bnpl-item,
html[data-theme=dark] .milad-otp,
html[data-theme=dark] .woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--tw-surface)!important;border-color:var(--tw-line)}
html[data-theme=dark] .woocommerce #payment,
html[data-theme=dark] .woocommerce-checkout #payment{background:var(--tw-soft)}

/* فرم‌ها */
html[data-theme=dark] .header-search input,
html[data-theme=dark] .woocommerce form .form-row input.input-text,
html[data-theme=dark] .woocommerce form .form-row textarea,
html[data-theme=dark] .woocommerce select,
html[data-theme=dark] .select2-container--default .select2-selection--single,
html[data-theme=dark] .woocommerce .quantity .qty,
html[data-theme=dark] .milad-contact-form input,
html[data-theme=dark] .milad-contact-form textarea,
html[data-theme=dark] .milad-otp input,
html[data-theme=dark] .milad-msearch input{background:var(--tw-soft);color:var(--tw-ink);border-color:var(--tw-line)}
html[data-theme=dark] .select2-dropdown{background:var(--tw-surface);color:var(--tw-ink);border-color:var(--tw-line)}
html[data-theme=dark] .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--tw-ink)}
html[data-theme=dark] ::placeholder{color:var(--tw-muted);opacity:1}

/* پیام‌ها، جدول‌ها */
html[data-theme=dark] .woocommerce-message,
html[data-theme=dark] .woocommerce-info,
html[data-theme=dark] .woocommerce-error{background:var(--tw-soft);color:var(--tw-ink)}
html[data-theme=dark] .woocommerce table.shop_table,
html[data-theme=dark] .woocommerce table.shop_table td,
html[data-theme=dark] .woocommerce table.shop_table th{border-color:var(--tw-line);color:var(--tw-ink)}
html[data-theme=dark] .woocommerce table.shop_table th{background:var(--tw-soft);color:var(--tw-green-deep)}
html[data-theme=dark] .milad-notice{background:#2b2512;border-color:#6d5a1f;color:#f2e2a8}
html[data-theme=dark] .milad-msg.is-err{background:#2c1513;border-color:#7a2a24;color:#f3b8b3}
html[data-theme=dark] .milad-msg.is-ok{color:var(--tw-green-deep)}

/* دکمه‌ها: روی تیره، هاور روشن‌تر با متن تیره */
html[data-theme=dark] .tw-btn:hover,
html[data-theme=dark] .button:hover,
html[data-theme=dark] .woocommerce a.button:hover,
html[data-theme=dark] .woocommerce button.button:hover,
html[data-theme=dark] .woocommerce input.button:hover,
html[data-theme=dark] .milad-editable-home .wp-block-button__link:hover,
html[data-theme=dark] .entry-content .wp-block-button__link:hover{background:var(--tw-green-dark)!important;color:#06120d!important}

/* بقیه */
html[data-theme=dark] .pl-ring{fill:var(--tw-surface)}
html[data-theme=dark] .skip-link:focus{background:var(--tw-surface)}
html[data-theme=dark] .wp-block-image img,
html[data-theme=dark] .woocommerce ul.products li.product img,
html[data-theme=dark] .woocommerce div.product div.images img{filter:brightness(.94)}
html[data-theme=dark] .milad-bg.is-glow i{opacity:1}
html[data-theme=dark] hr{border-color:var(--tw-line)}
html[data-theme=dark] .nav a,html[data-theme=dark] .nav-list a{color:var(--tw-ink)}
html[data-theme=dark] .nav-list .current-menu-item>a,html[data-theme=dark] .nav-list .current_page_item>a,html[data-theme=dark] .nav a:hover{color:var(--tw-green-dark)}
