/* Infinity Wrench store theme: details theme.json cannot express.
   Look rules shared with the 3D page: flat dark panels, red only for the main button and accents,
   red separator lines that fade out at both ends with a soft glow. */

:root {
	--iw-glow-line: linear-gradient(90deg, transparent 0%, #e3131f 18%, #ff2b3a 50%, #e3131f 82%, transparent 100%);
	--iw-input-bg: #111112;
	--iw-input-border: #3a3a3f;
}

/* Header: fading red rule with LED glow under it */
.iw-header { position: relative; z-index: 20; }
.iw-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--iw-glow-line); box-shadow: 0 0 10px #e3131f99, 0 0 22px #e3131f44;
}
.iw-header .wp-block-site-title a { text-decoration: none; }
.iw-header .wp-block-navigation a { color: #f3f3f4; text-decoration: none; }
.iw-header .wp-block-navigation a:hover,
.iw-header .wp-block-navigation .current-menu-item > a { color: #ff2b3a; }
.iw-secure::before { content: "🔒 "; filter: grayscale(1); }

.iw-footer { border-top: 1px solid #2f2f33; }
.iw-footer .wp-block-navigation a { color: #a2a4ac; text-decoration: none; }
.iw-footer .wp-block-navigation a:hover { color: #f3f3f4; }

.iw-kicker { color: #ff2b3a; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; margin-bottom: .25rem; }
.iw-red { color: #e3131f; }
.iw-card + .iw-card { border-top: 1px solid #2f2f33; }

/* Form fields everywhere (classic and block) */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"],
select, textarea {
	background: var(--iw-input-bg); color: #f3f3f4; border: 1px solid var(--iw-input-border); border-radius: 4px; padding: .7rem .8rem; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #ff2b3a; outline-offset: 1px; border-color: #e3131f; }
::placeholder { color: #7d7f86; }

/* ---------- WooCommerce blocks: cart, checkout, mini-cart, account, order confirmation ---------- */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	background-color: var(--iw-input-bg) !important; color: #f3f3f4 !important; border-color: var(--iw-input-border) !important;
}
.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-blocks-components-select__label { color: #a2a4ac !important; }
.wc-block-components-text-input.is-active label { color: #c9cad0 !important; }

.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar { color: #f3f3f4; }
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-components-order-summary {
	border-color: #2f2f33 !important;
}
.wp-block-woocommerce-checkout-order-summary-block { background: #1d1d1f; border-radius: 6px; }
.wc-block-components-totals-item__label, .wc-block-components-product-metadata { color: #c9cad0; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: #f3f3f4; font-weight: 700; }

.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: #2f2f33 !important; }
.wc-block-components-radio-control__input { background: var(--iw-input-bg); border-color: #6b6d75; }
.wc-block-components-radio-control__input:checked::before { background: #e3131f; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { background: var(--iw-input-bg); border-color: #6b6d75; }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #ff2b3a; }

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: #e3131f !important; color: #fff !important; border: 1px solid #ff8a93 !important; border-radius: 6px !important;
	font-family: var(--wp--preset--font-family--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	box-shadow: 0 0 22px #ef394855;
}
.wc-block-components-button:not(.is-link):hover { background: #ff2b3a !important; }
.wc-block-components-button.is-link, .wc-block-components-totals-coupon-link { color: #ff2b3a !important; }

.wc-block-components-notice-banner { background: #1d1d1f; color: #f3f3f4; border-color: #3a3a3f; }
.wc-block-components-notice-banner.is-error { border-color: #e3131f; }
.wc-block-components-notice-banner.is-success { border-color: #5ccf84; }
.wc-block-components-notice-banner > svg { fill: currentColor; }

.wc-block-components-quantity-selector { border-color: #3a3a3f !important; }
.wc-block-components-quantity-selector input { background: transparent !important; color: #f3f3f4 !important; }
.wc-block-components-quantity-selector button { color: #f3f3f4 !important; }
.wc-block-components-product-name { color: #f3f3f4 !important; text-decoration: none; font-weight: 600; }

/* Mini-cart drawer */
.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-mini-cart__drawer .wc-block-components-drawer__content { background: #161616; color: #f3f3f4; }
.wc-block-mini-cart__badge { background: #e3131f !important; color: #fff !important; }
.wc-block-mini-cart__button, .wc-block-customer-account a { color: #f3f3f4; }

/* Order confirmation */
.wc-block-order-confirmation-status { border-bottom: 1px solid #2f2f33; padding-bottom: 1rem; }
.wc-block-order-confirmation-summary { background: #1d1d1f; border-radius: 6px; padding: 1rem 1.25rem; }
.wc-block-order-confirmation-totals table, .wc-block-order-confirmation-totals th, .wc-block-order-confirmation-totals td { border-color: #2f2f33 !important; }

/* ---------- Classic WooCommerce pages (shortcodes, My Account) ---------- */
.woocommerce table.shop_table, .woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: #2f2f33; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	background: #e3131f; color: #fff; border-radius: 6px; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .06em;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #ff2b3a; color: #fff; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid #2f2f33; border-radius: 6px; overflow: hidden; }
.woocommerce-MyAccount-navigation li a { display: block; padding: .7rem 1rem; color: #f3f3f4; text-decoration: none; border-bottom: 1px solid #2f2f33; }
.woocommerce-MyAccount-navigation li.is-active a { background: #f4f4f4; color: #e3131f; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { background: #1d1d1f; color: #f3f3f4; border-top-color: #e3131f; }
.woocommerce form .form-row label { color: #a2a4ac; }

/* Tables and policy text */
.wp-block-table td, .wp-block-table th { border-color: #2f2f33; }
.wp-block-post-content { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Footer sits at the bottom on short pages */
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }

/* Classic WooCommerce forms (My Account login/register, address forms): WooCommerce's own
   stylesheet uses higher specificity and paints these white, so match it. */
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row .input-text,
.woocommerce-page form .form-row select,
.woocommerce-page form .form-row textarea,
.woocommerce form.login .input-text,
.woocommerce form.register .input-text,
.woocommerce .woocommerce-form-login .input-text,
.woocommerce-account .woocommerce-form .input-text {
	background-color: var(--iw-input-bg) !important; color: #f3f3f4 !important;
	border: 1px solid var(--iw-input-border) !important; border-radius: 4px; padding: .7rem .8rem;
}
.woocommerce .show-password-input, .woocommerce-page .show-password-input { filter: invert(1); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border-color: #2f2f33 !important; background: #1d1d1f; }

/* Policy summary table: label column + value column */
.iw-summary table { border-collapse: collapse; width: 100%; }
.iw-summary td { padding: .75rem 1rem; border: 1px solid #2f2f33; vertical-align: top; }
.iw-summary td:first-child { width: 42%; background: #1d1d1f; }
.iw-summary td strong { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
