/* All changes are scoped; the default SAS storefront is unaffected. */
.sas-event-header[hidden], .sas-event-footer[hidden] { display: none !important; }
html[data-sas-storefront="scarecastle"] body {
    --ast-global-color-0: #ff7a18; --ast-global-color-1: #ffad66;
    --ast-global-color-2: #fff2dc; --ast-global-color-3: #e8dff0;
    --ast-global-color-4: #100a16; --ast-global-color-5: #1a1023;
    --sas-navy: #fff2dc; --sas-blue: #ff9b45; --sas-text: #e8dff0;
    --sas-muted: #cbbdd4; --sas-border: #68407c; --sas-surface: #1a1023;
    background: #100a16; color: #e8dff0;
}
html[data-sas-storefront="scarecastle"] #masthead,
html[data-sas-storefront="scarecastle"] #colophon { display: none !important; }
html[data-sas-storefront="scarecastle"] :is(#page,.site-content,.site-main,.ast-article-single,.ast-woocommerce-container) { background: #100a16; color: #e8dff0; }
html[data-sas-storefront="scarecastle"] :is(h1,h2,h3,h4,h5,h6,.entry-title,.woocommerce-product-details__short-description) { color: #fff2dc; }
html[data-sas-storefront="scarecastle"] a { color: #ffad66; }
html[data-sas-storefront="scarecastle"] a:hover { color: #ffd0a6; }
html[data-sas-storefront="scarecastle"] :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #ffad66; outline-offset: 3px; }
html[data-sas-storefront="scarecastle"] :is(.button,button[type=submit],input[type=submit],.wc-block-components-button:not(.is-link)) { background: #ff7a18 !important; color: #160d1d !important; border-color: #ff7a18 !important; }
html[data-sas-storefront="scarecastle"] :is(.button,button[type=submit],.wc-block-components-button):hover { background: #ffad66 !important; color: #160d1d !important; }
html[data-sas-storefront="scarecastle"] :is(.woocommerce-info,.woocommerce-message,.woocommerce-error,.wc-block-components-notice-banner) { background: #251731; color: #fff2dc; }
html[data-sas-storefront="scarecastle"] :is(.cart_totals,#order_review,.woocommerce-checkout-payment,.woocommerce-checkout #payment,.woocommerce-tabs .panel,.wc-block-components-sidebar,.wc-block-components-order-summary,.woocommerce-MyAccount-content) { background: #1a1023; color: #e8dff0; border-color: #68407c; }
html[data-sas-storefront="scarecastle"] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea,.select2-selection,.select2-dropdown) { background: #fffaf4; color: #24132e; border-color: #68407c; }
html[data-sas-storefront="scarecastle"] .wc-block-components-text-input label { color: #51425a; }
html[data-sas-storefront="scarecastle"] :is(.wc-block-components-radio-control__option,.wc-block-components-radio-control-accordion-content,.payment_box) { background: #251731 !important; color: #fff2dc !important; }
html[data-sas-storefront="scarecastle"] :is(table.shop_table,table.shop_table th,table.shop_table td,.wc-block-components-totals-wrapper) { border-color: #68407c; }
html[data-sas-storefront="scarecastle"] .stock { color: #a6e8b2 !important; }
html[data-sas-storefront="scarecastle"] .sas-event-header { background: #0a060e; border-bottom: 2px solid #ff7a18; color: #fff2dc; }
.sas-event-header__inner { max-width: 1200px; margin: auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
html[data-sas-storefront="scarecastle"] .sas-event-brand { color: #ff9b45; font: bold clamp(32px,5vw,48px)/1.1 Georgia,serif; text-decoration: none; }
.sas-event-header p { margin: 8px 0 0; font-size: 14px; }
.sas-event-header nav,.sas-event-footer nav { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.sas-event-header nav a { font-weight: 700; padding: 10px 0; }
.sas-event-footer { background: #09050c; border-top: 1px solid #68407c; color: #cbbdd4; padding: 32px 24px; text-align: center; }
.sas-event-footer nav { justify-content: center; }
.sas-event-footer p { margin: 10px 0 18px; }
@media(max-width:600px) { .sas-event-header__inner { padding: 20px; gap: 12px; } .sas-event-header nav { width: 100%; } }
/* Override existing bridge rules with fixed white cards and high-specificity buttons. */
html[data-sas-storefront="scarecastle"] body.single-product .related.products li.product,
html[data-sas-storefront="scarecastle"] body.woocommerce-cart .wc-block-product { background: #1a1023; }
html[data-sas-storefront="scarecastle"] body.single-product form.cart .single_add_to_cart_button,
html[data-sas-storefront="scarecastle"] body.woocommerce-cart .sas-cart-primary-action,
html[data-sas-storefront="scarecastle"] body.woocommerce-cart .wc-block-cart__submit-button,
html[data-sas-storefront="scarecastle"] body.single-product .related.products li.product .button {
    background: #ff7a18 !important; color: #160d1d !important;
}
html[data-sas-storefront="scarecastle"] body.single-product form.cart .single_add_to_cart_button:hover,
html[data-sas-storefront="scarecastle"] body.woocommerce-cart .sas-cart-primary-action:hover,
html[data-sas-storefront="scarecastle"] body.woocommerce-cart .wc-block-cart__submit-button:hover { background: #ffad66 !important; }
/* WooCommerce country controls use a separate floating-label component. */
html[data-sas-storefront="scarecastle"] :is(.wc-block-components-combobox,.wc-block-components-country-input,.wc-block-components-state-input,.wc-block-components-select) label { color: #51425a !important; }
/* Use the original Scarecastle Store title treatment as the site-wide banner. */
html[data-sas-storefront="scarecastle"] .sas-event-header__inner {
    max-width: none; padding: 0; display: block; text-align: center;
}
html[data-sas-storefront="scarecastle"] .sas-event-header__inner > div {
    padding: clamp(28px, 5vw, 64px) 24px;
    background: radial-gradient(ellipse at 15% 35%, rgba(255,122,24,.12), transparent 55%), linear-gradient(115deg,#100a16,#1a1023);
}
html[data-sas-storefront="scarecastle"] .sas-event-brand {
    display: inline-block; color: #ff9b45;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 6vw, 68px); font-weight: 700; line-height: 1.15;
    letter-spacing: .015em;
    text-shadow: 0 3px 0 #4b1e64, 0 0 26px rgba(255,122,24,.2);
}
html[data-sas-storefront="scarecastle"] .sas-event-header nav {
    justify-content: center; gap: 8px 28px; padding: 10px 20px;
    border-top: 1px solid #68407c; background: #160d1d;
}
html[data-sas-storefront="scarecastle"] body.sas-exclusive-catalog .ast-archive-description { display: none; }
html[data-sas-storefront="scarecastle"] body.sas-exclusive-catalog .sas-shop-intro { padding-top: 32px; }
