/* ILTYS dark skin for native pages (cart, checkout, my account, and any other
   non-React page). Visual only: no WooCommerce markup or behaviour is changed. */
:root {
  --bg: #060709; --card: #0d0f12; --border: #23272e; --accent: #7a1fff; --accent-text: #a970ff;
  --text: #c9cfd8; --heading: #f2f5ff; --muted: #9aa3b5;
  --font-head: 'Graen Metal', 'Anton', Impact, 'Arial Narrow', sans-serif; --font-mono: 'Space Mono', ui-monospace, monospace; --font-body: 'Inter', system-ui, sans-serif;
}

/* Astra's own header/footer are replaced by the React islands */
body.iltys #masthead, body.iltys .site-header, body.iltys footer.site-footer, body.iltys .site-footer, body.iltys .ast-mobile-header-wrap, body.iltys #ast-scroll-top { display: none !important; }

/* site texture on the body (same tile as the React pages); Astra's wrappers stay see-through so it shows */
html body.iltys { background: var(--bg) url('bg-texture.webp') repeat !important; background-size: 1024px 1024px !important; color: var(--text); }
body.iltys #page, body.iltys .site-content, body.iltys .ast-container, body.iltys .site, body.iltys #primary,
body.iltys .ast-separate-container, body.iltys .ast-separate-container .ast-article-single, body.iltys .ast-separate-container .ast-article-post,
body.iltys .ast-plain-container, body.iltys .entry-content, body.iltys .ast-woocommerce-container {
  background: transparent !important; color: var(--text);
}
body.iltys { font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.iltys .site-content > .ast-container { max-width: 1440px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { body.iltys .site-content > .ast-container { padding-left: 32px; padding-right: 32px; } }
body.iltys #primary { margin: 48px 0 0 !important; padding: 0 !important; }
body.iltys .ast-separate-container .ast-article-single, body.iltys .ast-separate-container .ast-article-post { padding: 0 !important; }
/* keep title and content on one left edge */
body.iltys .entry-content > *, body.iltys .entry-content .woocommerce { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }

body.iltys h1, body.iltys h2, body.iltys h3, body.iltys .entry-title {
  font-family: var(--font-head) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .14em; color: var(--heading) !important; line-height: 1.2;
}
body.iltys .entry-title { font-size: clamp(26px, 6vw, 52px) !important; margin-bottom: 40px; }
body.iltys h2 { font-size: 22px; } body.iltys h3 { font-size: 18px; }
body.iltys a { color: var(--accent-text); }
body.iltys a:hover { color: var(--heading); }
body.iltys :focus-visible { outline: 2px solid var(--accent-text) !important; outline-offset: 3px; }

/* Forms */
body.iltys input[type="text"], body.iltys input[type="email"], body.iltys input[type="tel"], body.iltys input[type="password"],
body.iltys input[type="number"], body.iltys input[type="search"], body.iltys input[type="url"], body.iltys textarea, body.iltys select,
body.iltys .select2-container--default .select2-selection--single, body.iltys .woocommerce .quantity .qty {
  background: var(--card) !important; color: var(--heading) !important; border: 1px solid var(--border) !important; border-radius: 2px !important;
  min-height: 48px; padding: 10px 14px !important; font-family: var(--font-body); font-size: 16px; box-shadow: none !important;
}
body.iltys input:focus, body.iltys textarea:focus, body.iltys select:focus { border-color: var(--accent) !important; }
body.iltys ::placeholder { color: var(--muted) !important; opacity: 1; }
body.iltys .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--heading); line-height: 26px; padding: 0; }
body.iltys .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
body.iltys .select2-dropdown { background: var(--card); border-color: var(--border); color: var(--text); }
body.iltys .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--accent); }
body.iltys .select2-search--dropdown .select2-search__field { background: var(--bg) !important; }
body.iltys label, body.iltys .woocommerce form .form-row label { color: var(--text); font-size: 16px; }
body.iltys .woocommerce form .form-row .required { color: var(--accent-text); }
body.iltys .woocommerce .quantity .qty { width: 64px; text-align: center; font-family: var(--font-mono); }

/* Buttons */
body.iltys .woocommerce a.button, body.iltys .woocommerce button.button, body.iltys .woocommerce input.button, body.iltys .woocommerce #respond input#submit,
body.iltys .woocommerce a.button.alt, body.iltys .woocommerce button.button.alt, body.iltys .site-content button, body.iltys .site-content .button, body.iltys .site-content input[type="submit"],
body.iltys .wc-proceed-to-checkout a.checkout-button, body.iltys #place_order {
  font-family: var(--font-mono) !important; font-weight: 700 !important; font-size: 15px !important; text-transform: uppercase; letter-spacing: .14em;
  color: var(--heading) !important; background: var(--accent) !important; border: 1px solid var(--accent) !important; border-radius: 2px !important;
  min-height: 48px; padding: 14px 28px !important; line-height: 1.2 !important; transition: box-shadow .25s ease;
}
body.iltys .woocommerce a.button:hover, body.iltys .woocommerce button.button:hover, body.iltys .site-content button:hover, body.iltys .site-content .button:hover,
body.iltys .site-content input[type="submit"]:hover, body.iltys #place_order:hover, body.iltys .wc-proceed-to-checkout a.checkout-button:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgba(122, 31, 255, .55) !important; color: var(--heading) !important;
}
body.iltys .woocommerce button.button:disabled, body.iltys .woocommerce button.button:disabled[disabled] { opacity: .5; box-shadow: none !important; }
body.iltys .woocommerce-cart-form button[name="update_cart"], body.iltys .coupon button, body.iltys .woocommerce a.button.wc-backward {
  background: transparent !important; border-color: var(--border) !important;
}

/* Tables (cart, order review, account orders) */
body.iltys .woocommerce table.shop_table, body.iltys table { background: transparent; border: 1px solid var(--border) !important; border-radius: 3px; border-collapse: separate; color: var(--text); }
body.iltys .woocommerce table.shop_table th, body.iltys .woocommerce table.shop_table td, body.iltys table th, body.iltys table td { border-color: var(--border) !important; background: transparent !important; padding: 16px; }
body.iltys .woocommerce table.shop_table th, body.iltys table thead th { font-family: var(--font-mono); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--muted) !important; }
body.iltys .woocommerce table.shop_table td, body.iltys .woocommerce table.shop_table th { font-size: 17px; }
body.iltys .woocommerce table.shop_table td.product-name a { color: var(--heading); font-weight: 600; font-size: 18px; }
body.iltys .woocommerce table.cart img, body.iltys .woocommerce-cart table.cart img { width: 72px; background: var(--card); border: 1px solid var(--border); padding: 6px; }
body.iltys .woocommerce .amount, body.iltys .woocommerce-Price-amount { font-family: var(--font-mono); color: var(--heading); font-size: 17px; font-weight: 700; }
body.iltys .woocommerce a.remove { color: var(--muted) !important; border: 1px solid var(--border); border-radius: 2px; }
body.iltys .woocommerce a.remove:hover { color: var(--heading) !important; background: var(--accent) !important; }
@media (max-width: 768px) {
  body.iltys .woocommerce table.shop_table_responsive tr, body.iltys .woocommerce-page table.shop_table_responsive tr { border-bottom: 1px solid var(--border); }
  body.iltys .woocommerce table.shop_table_responsive tr td::before { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
}

/* Totals, checkout review, payment box */
body.iltys .cart_totals, body.iltys .woocommerce-checkout-review-order, body.iltys #order_review, body.iltys .woocommerce-MyAccount-content,
body.iltys .woocommerce-checkout #payment, body.iltys .woocommerce-checkout #payment div.payment_box {
  background: var(--card) !important; border: 1px solid var(--border); border-radius: 3px; color: var(--text);
}
body.iltys .cart_totals, body.iltys #order_review { padding: 24px; }
body.iltys .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--card) !important; }
body.iltys .woocommerce-checkout #payment ul.payment_methods { border-color: var(--border) !important; }
body.iltys .woocommerce-checkout #payment ul.payment_methods li { color: var(--text); }
body.iltys #ship-to-different-address, body.iltys .woocommerce-shipping-methods label { color: var(--text); }
body.iltys .woocommerce-privacy-policy-text, body.iltys .woocommerce-terms-and-conditions-wrapper { color: var(--muted); font-size: 14px; }

/* Notices */
body.iltys .woocommerce-message, body.iltys .woocommerce-info, body.iltys .woocommerce-error, body.iltys .woocommerce-notices-wrapper > *,
body.iltys .wc-block-components-notice-banner {
  background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-left: 2px solid var(--accent) !important; border-radius: 2px; box-shadow: none;
}
body.iltys .woocommerce-error { border-left-color: #ff6b81 !important; }
body.iltys .woocommerce-message::before, body.iltys .woocommerce-info::before { color: var(--accent-text) !important; }
body.iltys .woocommerce-message a.button, body.iltys .woocommerce-info a.button { float: right; }
body.iltys .cart-empty { font-family: var(--font-mono); color: var(--muted); }

/* My account */
body.iltys .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
body.iltys .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--border); margin: 0; }
body.iltys .woocommerce-MyAccount-navigation li a { display: block; padding: 14px 4px; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--text); }
body.iltys .woocommerce-MyAccount-navigation li.is-active a, body.iltys .woocommerce-MyAccount-navigation li a:hover { color: var(--heading); box-shadow: inset 2px 0 0 var(--accent); padding-left: 14px; }
body.iltys .woocommerce-MyAccount-content { padding: 24px; }
body.iltys .woocommerce form.login, body.iltys .woocommerce form.register, body.iltys .woocommerce form.checkout_coupon, body.iltys .woocommerce form.lost_reset_password {
  background: var(--card); border: 1px solid var(--border) !important; border-radius: 3px; padding: 24px !important;
}
body.iltys .woocommerce-form-login__rememberme { color: var(--text); }

/* Generic blocks content on native pages */
body.iltys hr { border-color: var(--border); background: var(--border); }
body.iltys mark { background: rgba(122, 31, 255, .25); color: var(--heading); }
body.iltys #iltys-footer { margin-top: 96px; }

/* Astra's account nav: white active pill + boxed links -> flat dark list */
body.iltys .woocommerce-MyAccount-navigation ul, body.iltys .woocommerce-MyAccount-navigation ul li { border-left: 0 !important; border-right: 0 !important; }
body.iltys .woocommerce-MyAccount-navigation ul li { border-top: 0 !important; border-bottom: 1px solid var(--border) !important; }
body.iltys .woocommerce-MyAccount-navigation ul li a { background: transparent !important; border: 0 !important; color: var(--text) !important; }
body.iltys .woocommerce-MyAccount-navigation ul li.is-active a, body.iltys .woocommerce-MyAccount-navigation ul li a:hover { background: rgba(122, 31, 255, .10) !important; color: var(--heading) !important; }
@media (max-width: 921px) { body.iltys .woocommerce-MyAccount-navigation { margin-bottom: 24px; } }

/* Astra light leftovers on cart/checkout */
body.iltys .woocommerce table.shop_table thead, body.iltys .woocommerce table.shop_table thead tr, body.iltys .woocommerce table.shop_table thead th,
body.iltys .woocommerce-page table.shop_table thead th { background: var(--card) !important; }
body.iltys .cart_totals > h2, body.iltys .woocommerce .cart-collaterals .cart_totals > h2, body.iltys #order_review_heading, body.iltys .woocommerce-checkout #order_review_heading {
  background: transparent !important; color: var(--heading) !important; border: 0 !important; padding: 0 0 16px !important; margin: 0 !important; font-size: 15px !important;
}
body.iltys .cart-collaterals .cart_totals, body.iltys .woocommerce-checkout .ast-checkout-review-order-wrapper, body.iltys .woocommerce #order_review,
body.iltys .woocommerce-page.woocommerce-checkout form #order_review, body.iltys .woocommerce-checkout #order_review_heading, body.iltys #customer_details h3 {
  border-color: var(--border) !important;
}
body.iltys #customer_details h3 { border-bottom: 1px solid var(--border) !important; padding-bottom: 14px; font-size: 15px !important; }
body.iltys .woocommerce-checkout .woocommerce-checkout-review-order { border: 0 !important; background: transparent !important; }
body.iltys .woocommerce-checkout #order_review_heading { padding: 24px 24px 0 !important; }
@media (max-width: 480px) {
  body.iltys .woocommerce .coupon .button, body.iltys .coupon button { padding: 14px 14px !important; letter-spacing: .1em; white-space: nowrap; }
}
body.iltys .woocommerce .cart-collaterals .cart_totals { padding: 24px !important; }

/* chrome finish on page titles (matches the React pages) */
body.iltys .entry-title {
  background: linear-gradient(180deg, #ffffff 0%, #e6e9f2 34%, #8a91a3 50%, #eef1f8 62%, #a3abbd 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
