/* Inherit the active NYI theme's colors and licensed typefaces. */
body.woocommerce,
body.woocommerce-page {
    --wc-primary: var(--primary, #ff931c);
    --wc-primary-text: var(--primary-foreground, #232323);
    --wc-content-bg: var(--background, #232323);
    --wc-subtext: var(--muted, #bdbdbd);
}

body.woocommerce-page main,
body.woocommerce #primary,
body.woocommerce #container {
    width: min(100%, 1260px);
    margin-inline: auto;
    padding: clamp(40px, 6vw, 80px) 24px clamp(64px, 8vw, 100px);
}

body.woocommerce-page main main,
body.woocommerce #container #content,
body.woocommerce-page main #primary {
    width: 100%;
    padding: 0;
}

body.woocommerce-page .content-title,
body.woocommerce-page .entry-title,
.woocommerce-products-header__title {
    margin: 0 0 36px;
    color: var(--foreground, #fff);
    font-family: var(--display-font, sans-serif);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.woocommerce,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-order-confirmation-status {
    color: var(--foreground, #fff);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    accent-color: var(--primary, #ff931c);
    caret-color: var(--primary, #ff931c);
}

.woocommerce h2,
.woocommerce h3,
.wc-block-components-title,
.wc-block-components-checkout-step__title {
    margin: 0 0 20px;
    color: var(--foreground, #fff);
    font-family: var(--display-font, sans-serif);
    font-size: clamp(23px, 2.5vw, 32px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

body.woocommerce-page main article p,
.woocommerce .woocommerce-privacy-policy-text p,
.wc-block-components-checkout-step__description {
    color: var(--muted, #bdbdbd);
    font-size: 16px;
    line-height: 1.65;
}

body.woocommerce-page main a:not(.button),
.wc-block-components-product-name,
.wc-block-components-totals-coupon-link {
    color: var(--primary, #ff931c);
    text-underline-offset: 4px;
}

body.woocommerce-page main a:not(.button):hover,
.wc-block-components-product-name:hover {
    color: var(--accent, #ffdb00);
}

.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 20px;
}

.woocommerce form .form-row label,
.woocommerce form label {
    display: block;
    margin-bottom: 8px;
    color: var(--foreground, #fff);
    font-size: 16px;
    line-height: 1.4;
}

.woocommerce form .form-row .required {
    color: var(--primary, #ff931c);
}

.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea,
.woocommerce .quantity .qty,
.woocommerce .select2-container--default .select2-selection--single,
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__container {
    color: var(--foreground, #fff);
    background: #1a1a1a;
    border: 2px solid var(--border, #525252);
    border-radius: 0;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    min-height: 52px;
}

.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea,
.woocommerce .quantity .qty {
    width: 100%;
    padding: 14px 16px;
}

.woocommerce form textarea { min-height: 120px; }
.woocommerce form select { color-scheme: dark; }
.woocommerce input::placeholder,
.woocommerce textarea::placeholder { color: var(--muted, #bdbdbd); opacity: 1; }

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 10px 16px;
    color: var(--foreground, #fff);
    line-height: 28px;
}

.woocommerce .select2-container .select2-selection__arrow { top: 13px; right: 10px; }
.woocommerce .select2-container { max-width: 100%; }
body.woocommerce-page .select2-dropdown,
body.woocommerce-page .select2-search__field {
    color: var(--foreground, #fff);
    background: #1a1a1a;
    border-color: var(--border, #525252);
    border-radius: 0;
}
body.woocommerce-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary, #ff931c);
    color: var(--background, #232323);
}

.woocommerce :is(input, select, textarea, button, a):focus-visible,
.woocommerce .select2-container--focus .select2-selection,
.wc-block-components-form :is(input, select, textarea, button, a):focus-visible,
.wp-block-woocommerce-cart :is(button, a):focus-visible {
    outline: 3px solid var(--accent, #ffdb00);
    outline-offset: 3px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 16px 24px;
    color: var(--primary-foreground, #232323);
    background: var(--primary, #ff931c);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: var(--display-font, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover {
    background: var(--accent, #ffdb00);
    color: var(--primary-foreground, #232323);
    transform: none;
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt.disabled:hover,
.wc-block-components-button:disabled,
.wc-block-components-button[aria-disabled="true"] {
    background: var(--border, #525252);
    color: var(--foreground, #fff);
    opacity: .7;
    cursor: not-allowed;
}

.woocommerce form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr);
    column-gap: clamp(28px, 5vw, 72px);
    align-items: start;
}
.woocommerce form.checkout > * { min-width: 0; }
.woocommerce form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.woocommerce form.checkout #order_review_heading { grid-column: 2; }
.woocommerce form.checkout #order_review { grid-column: 2; }
.woocommerce form.checkout > .woocommerce-NoticeGroup,
.woocommerce form.checkout > .woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; grid-row: auto; }
.woocommerce form.checkout .col2-set .col-1,
.woocommerce form.checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce .woocommerce-shipping-fields { margin-top: 32px; }
.woocommerce .woocommerce-additional-fields { margin-top: 36px; }
.woocommerce #ship-to-different-address { font-size: 19px; }
.woocommerce #ship-to-different-address label { display: flex; align-items: center; gap: 10px; }
.woocommerce form .form-row .woocommerce-form__label-for-checkbox { display: inline; }
.woocommerce input[type="checkbox"],
.woocommerce input[type="radio"] { accent-color: var(--primary, #ff931c); }

.woocommerce table.shop_table {
    width: 100%;
    margin: 0 0 28px;
    border: 1px solid var(--border, #525252);
    border-collapse: collapse;
    border-radius: 0;
    color: var(--foreground, #fff);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 18px 16px;
    border-color: var(--border, #525252);
    text-align: left;
    overflow-wrap: anywhere;
}
.woocommerce table.shop_table thead,
.woocommerce table.shop_table tfoot { background: #1a1a1a; }
.woocommerce table.shop_table .order-total { font-size: 20px; }
.woocommerce .woocommerce-checkout-review-order-table th:first-child { width: 60%; }
.woocommerce .woocommerce-checkout-review-order-table td:last-child { text-align: right; }
.woocommerce table.shop_table .product-thumbnail img { width: 80px; height: 100px; object-fit: contain; background: #fff; }
.woocommerce .quantity .qty { min-width: 70px; max-width: 100px; }
.woocommerce .cart_totals { margin-top: 40px; }
.woocommerce .cart-collaterals .cart_totals { width: min(100%, 480px); }
.woocommerce .wc-proceed-to-checkout .checkout-button { display: flex; }
.woocommerce .cart .coupon { display: flex; gap: 12px; flex-wrap: wrap; }
.woocommerce .cart .coupon #coupon_code { min-width: 180px; width: auto; }

.woocommerce #payment,
.woocommerce-checkout #payment {
    background: #1a1a1a;
    color: var(--foreground, #fff);
    border-radius: 0;
}
.woocommerce #payment ul.payment_methods {
    padding: 24px;
    border-bottom: 1px solid var(--border, #525252);
}
.woocommerce #payment ul.payment_methods li { padding: 8px 0; }
.woocommerce #payment ul.payment_methods li label { display: inline; font-weight: 700; }
.woocommerce #payment div.payment_box { background: var(--background, #232323); color: var(--foreground, #fff); border-radius: 0; }
.woocommerce #payment div.payment_box::before { border-bottom-color: var(--background, #232323); }
.woocommerce #payment div.form-row { padding: 24px; margin: 0; }
.woocommerce #payment #place_order { float: none; width: 100%; margin-top: 20px; }
.woocommerce #payment .woocommerce-privacy-policy-text p { margin-top: 0; }
.woocommerce #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 16px; }
.woocommerce ul#shipping_method li { padding: 6px 0; }
.woocommerce ul#shipping_method li label { display: inline; font-weight: 400; }

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
    margin: 0 0 28px;
    padding: 20px 24px;
    background: #1a1a1a;
    color: var(--foreground, #fff);
    border: 1px solid var(--border, #525252);
    border-top: 3px solid var(--primary, #ff931c);
    border-radius: 0;
}
.woocommerce .woocommerce-error { border-top-color: #ffaaa3; }
.woocommerce .woocommerce-error li { color: var(--foreground, #fff); }
.woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before { display: none; }
.woocommerce .woocommerce-invalid input { border-color: #ffaaa3; }
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register { border-color: var(--border, #525252); border-radius: 0; padding: 24px; }

.woocommerce .woocommerce-breadcrumb { color: var(--muted, #bdbdbd); font-size: 14px; margin-bottom: 28px; }
body.woocommerce-page main .woocommerce-breadcrumb { display: block; font-family: Arial, Helvetica, sans-serif; }
.woocommerce div.product { min-width: 0; }
.woocommerce div.product .product_title { margin: 0 0 24px; font-family: var(--display-font, sans-serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--foreground, #fff); font-size: 26px; }
.woocommerce div.product div.images img { background: #fff; object-fit: contain; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0; }
.woocommerce div.product form.variations_form { display: block; }
.woocommerce .variations { width: 100%; margin-bottom: 24px; }
.woocommerce .variations select { width: 100%; }
.woocommerce .variations td { padding-bottom: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; background: #1a1a1a; border-color: var(--border, #525252); color: var(--foreground, #fff); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--background, #232323); color: var(--foreground, #fff); }
.woocommerce ul.products li.product .price { color: var(--foreground, #fff); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 22px; }
.woocommerce .woocommerce-MyAccount-navigation { font-family: Arial, Helvetica, sans-serif; }
.woocommerce .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--border, #525252); }
.woocommerce .woocommerce-MyAccount-navigation a { display: block; padding: 14px 0; }
.woocommerce .woocommerce-MyAccount-navigation .is-active a { color: var(--foreground, #fff); font-weight: 700; }
.woocommerce .woocommerce-order-overview { padding: 0; margin: 32px 0; }
.woocommerce ul.order_details li { margin-bottom: 20px; border-color: var(--border, #525252); }
.woocommerce .woocommerce-customer-details address { border: 1px solid var(--border, #525252); border-radius: 0; padding: 24px; }

/* The native WooCommerce blocks retain their own validation and interactions. */
.wc-block-components-sidebar-layout { column-gap: clamp(28px, 4vw, 56px); }
.wc-block-components-sidebar-layout .wc-block-components-main { flex: 1; min-width: 0; }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 38%; padding: 24px; background: #1a1a1a; }
.wc-block-components-order-summary,
.wc-block-components-order-summary-item,
.wc-block-components-panel,
.wc-block-components-totals-wrapper,
.wc-block-cart-items,
.wc-block-cart-items__row,
.wc-block-components-checkout-step { border-color: var(--border, #525252); }
.wc-block-components-order-summary-item__description,
.wc-block-components-totals-item,
.wc-block-components-product-price { color: var(--foreground, #fff); font-variant-numeric: tabular-nums; }
.wc-block-components-product-metadata,
.wc-block-components-order-summary-item__individual-prices { color: var(--muted, #bdbdbd); }
.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-blocks-components-select .wc-blocks-components-select__label { color: var(--muted, #bdbdbd); }
.wc-blocks-components-select .wc-blocks-components-select__select { color: var(--foreground, #fff); background: transparent; color-scheme: dark; }
.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option,
.wc-block-components-payment-methods__saved-cards { background: #1a1a1a; color: var(--foreground, #fff); border-color: var(--border, #525252); border-radius: 0; }
.wc-block-components-radio-control__description,
.wc-block-components-radio-control__secondary-description { color: var(--muted, #bdbdbd); }
.wc-block-components-checkout-order-summary__title { margin-bottom: 24px; }
.wc-block-components-quantity-selector { border-color: var(--border, #525252); border-radius: 0; }
.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector button { color: var(--foreground, #fff); }
.wc-block-components-checkout-place-order-button { width: 100%; }

/* Woo's typed-input selectors are more specific than its general form rules. */
body.woocommerce-page .wc-block-components-form .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]),
body.woocommerce-page .wc-block-components-form .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]):focus-within,
body.woocommerce-page .wc-block-components-textarea {
    color: var(--foreground, #fff);
    background: #1a1a1a;
    border: 2px solid var(--border, #525252);
    border-radius: 0;
    box-shadow: none;
    min-height: 54px;
}
body.woocommerce-page .wc-block-components-form .wc-block-components-text-input input:focus-within,
body.woocommerce-page .wc-block-components-textarea:focus {
    border-color: var(--primary, #ff931c);
    outline: 2px solid var(--accent, #ffdb00);
    outline-offset: 3px;
}
body.woocommerce-page .wc-block-components-checkout-order-summary__title-text,
body.woocommerce-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: var(--display-font, sans-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
body.woocommerce-page .wp-block-woocommerce-checkout-order-summary-block {
    border: 0;
    border-radius: 0;
}

@media (max-width: 800px) {
    .woocommerce form.checkout { display: block; }
    .woocommerce form.checkout #order_review_heading { margin-top: 40px; }
    .wc-block-components-sidebar-layout { display: flex; flex-direction: column; }
    .wc-block-components-sidebar-layout .wc-block-components-main,
    .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 100%; margin: 0; }
    .wc-block-components-sidebar-layout .wc-block-components-sidebar { margin-top: 32px; padding: 20px; }
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary { float: none; width: 100%; }
    .woocommerce .woocommerce-MyAccount-navigation,
    .woocommerce .woocommerce-MyAccount-content { float: none; width: 100%; }
    .woocommerce .woocommerce-MyAccount-content { margin-top: 32px; }
}

@media (max-width: 480px) {
    body.woocommerce-page main,
    body.woocommerce #primary,
    body.woocommerce #container { padding-inline: 20px; }
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last { float: none; width: 100%; }
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td { padding: 14px 10px; }
    .woocommerce #payment ul.payment_methods,
    .woocommerce #payment div.form-row { padding: 20px; }
    .woocommerce ul.order_details { display: grid; gap: 20px; }
    .woocommerce ul.order_details li { float: none; margin: 0; padding: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce .button,
    .wc-block-components-button { transition: none; }
}
