/*
    Theme Name: Frozen Arctic Services Network WooCommerce styles override
*/

/* ==========================================================================
      GLOBAL THEME VARIABLES REDECLARED FOR WOOCOMMERCE
   ========================================================================== */
:root {
    --fas-script-blue: #1d4ed8;
    --fas-button-purple: #4c1d95;
    --fas-button-gradient: linear-gradient(135deg, #4c1d95 0%, #312e81 100%);
    --fas-text-slate: #1e293b;
    --fas-fuchsia: #c71585;
}

/* ==========================================================================
      LAYER 1: FORCE GLOBAL UNIVERSE FRAMEWORK (Starfield Grid Canvas)
   ========================================================================== */
html, body.woocommerce, body.woocommerce-page {
    background: linear-gradient(135deg, #030b24 0%, #151a4f 25%, #421a71 50%, #7d126f 75%, #b40a6b 100%) fixed !important;
}

body.woocommerce::before, body.woocommerce-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.8) 100%, transparent),
                radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.9) 100%, transparent),
                radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.7) 100%, transparent),
                radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.6) 100%, transparent),
                radial-gradient(2.5px 2.5px at 50% 80%, rgba(255,200,255,0.8) 100%, transparent) !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

/* Aggressive clean strike to remove WooCommerce core container background colors */
.woocommerce .site, .woocommerce .site-content, .woocommerce #content, .woocommerce .wp-site-blocks, 
.woocommerce main, .woocommerce article, .woocommerce .has-background, .woocommerce .wp-block-group, 
.woocommerce #primary, .woocommerce #main, .woocommerce .site-main, .woocommerce .content-area, 
.woocommerce-page, .woocommerce div.product, .woocommerce .summary, .woocommerce .entry-content, 
.woocommerce .woocommerce-tabs, .woocommerce .panel, .woocommerce .entry-summary, 
.woocommerce .fas-clean-template-container {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

/* Ensure the Master Frosted Layout Stage Remains Intact */
body.woocommerce #page, body.woocommerce-page #page {
    background: rgba(225, 230, 240, 0.45) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
      HEADER ACTIONS PROTECTION (SEARCH & ACCOUNT IMMUNITY)
   ========================================================================== */
.fas-site-header-navigation .fas-header-search-submit,
.fas-site-header-navigation .fas-account-gateway-anchor {
    background: #ffffff !important;
    color: var(--fas-text-slate) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 1.4rem !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

.fas-site-header-navigation .fas-header-search-submit:hover,
.fas-site-header-navigation .fas-account-gateway-anchor:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
      AUTHENTICATION & LOGIN LAYOUT
   ========================================================================== */
.fas-auth-columns-split {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    width: 100% !important;
}

.fas-auth-feature-card {
    flex: 1 1 300px !important;
    padding: 40px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.fas-auth-feature-card h2 {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

/* Shop tables */
table.shop_table_responsive thead { display: none; }
table.shop_table_responsive tbody th { display: none; }
table.shop_table_responsive tr td { display: block; text-align: right; clear: both; }
table.shop_table_responsive tr td::before { content: attr(data-title) ": "; float: left; }
table.shop_table_responsive tr td.product-remove a { text-align: left; }
table.shop_table_responsive tr td.product-remove::before { display: none; }
table.shop_table_responsive tr td.actions::before, table.shop_table_responsive tr td.download-actions::before { display: none; }
table.shop_table_responsive tr td.download-actions .button { display: block; text-align: center; }

@media screen and (min-width: 48em) {
    table.shop_table_responsive thead { display: table-header-group; }
    table.shop_table_responsive tbody th { display: table-cell; }
    table.shop_table_responsive tr th,
    table.shop_table_responsive tr td { text-align: left; }
    table.shop_table_responsive tr td { display: table-cell; }
    table.shop_table_responsive tr td::before { display: none; }
}

/* ==========================================================================
      WOOCOMMERCE SINGLE PRODUCT LAYOUT (FROSTED GLASS & FLEXBOX)
   ========================================================================== */
/* Outer wrapper */
.single-product div.product {
    width: 100% !important;
    margin-bottom: 40px !important;
    background: transparent !important; 
    border: none !important;
}

/* Hardcoded frosted glass layer site-wide fallback */
.fas-top-glass-pane {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    margin-bottom: 40px !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
}

/* Product Overview / Feature Cards */
.fas-product-overview-card {
    padding: 40px !important;
    margin-bottom: 40px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Flexbox Row to place Image and Summary Side-by-Side */
.fas-single-product-top-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5% !important;
    width: 100% !important;
    align-items: flex-start !important;
}

/* Left Column: Images */
.fas-single-product-gallery-col {
    flex: 1 1 45% !important;
    width: 45% !important;
    max-width: 45% !important;
    min-width: 300px !important;
}

/* Right Column: Title, Price, Description, Cart */
.fas-single-product-summary-col {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 300px !important;
}

/* Mall Showcase Box Adjustments */
.sub-app-showcase-purchase-card {
    background: rgba(225, 230, 240, 0.45) !important;
    border: 2px solid var(--fas-script-blue) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.mall-showcase-welcome-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--fas-text-slate) !important;
    margin: 0 0 15px 0 !important;
    text-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mall-showcase-welcome-text {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
}

.mall-brand-highlight-text {
    color: var(--fas-script-blue) !important;
    font-weight: 800 !important;
}

.mall-showcase-visit-btn {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Reset default WooCommerce floats that break flexbox */
.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product .summary.entry-summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
}

.product_title {
    font-family: 'Dancing Script', cursive !important;
    color: var(--fas-script-blue) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
    text-transform: none !important;
    font-variant: normal !important;
}

/* Hard kill all meta (categories, tags, etc) */
.product_meta, .posted_in, .tagged_as {
    display: none !important;
}

/* Gallery tweaks */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 2em;
    right: 1em;
    display: block;
    z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 1em;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    margin: 0;
    padding: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    list-style: none;
    cursor: pointer;
    float: left;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    opacity: 0.5;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
    opacity: 1;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li { width: 48.1%; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) { margin-right: 0; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) { clear: both; }

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li { width: 30.79667%; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) { margin-right: 0; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) { clear: both; }

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li { width: 22.15%; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) { margin-right: 0; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) { clear: both; }

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li { width: 16.96%; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) { margin-right: 0; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) { clear: both; }

.stock:empty::before { display: none; }
.stock.in-stock { color: #0f834d; }
.stock.out-of-stock { color: #e2401c; }

/* Checkout */
@media screen and (min-width: 768px) {
    .col2-set .form-row-first { float: left; margin-right: 3.8%; }
    .col2-set .form-row-last { float: right; margin-right: 0; }
    .col2-set .form-row-first, .col2-set .form-row-last { width: 48.1%; }
}

/* Header cart */
.site-header-cart { position: relative; margin: 0; padding: 0; }
.site-header-cart .cart-contents { text-decoration: none; }
.site-header-cart .widget_shopping_cart { display: none; }
.site-header-cart .product_list_widget { margin: 0; padding: 0; }

/* Star rating */
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1.618em;
    line-height: 1.618;
    width: 5.3em;
    font-family: star;
    font-weight: 400;
}

.star-rating::before {
    content: "\53\53\53\53\53";
    opacity: 0.25;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
    color: var(--fas-script-blue);
}

p.stars a {
    position: relative;
    height: 1em;
    width: 1em;
    text-indent: -999em;
    display: inline-block;
    text-decoration: none;
    margin-right: 1px;
    font-weight: 400;
}

p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: star;
    content: "\53";
    color: var(--fas-text-slate);
    text-indent: 0;
    opacity: 0.25;
}

p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before {
    content: "\53";
    color: var(--fas-text-slate);
    opacity: 0.25;
}

p.stars:hover a::before, p.stars.selected a.active::before, p.stars.selected a:not(.active)::before {
    content: "\53";
    color: var(--fas-script-blue);
    opacity: 1;
}

/* Tabs */
.woocommerce-tabs ul.tabs { list-style: none; margin: 0; padding: 0; text-align: left; }
.woocommerce-tabs ul.tabs li { display: block; margin: 0; position: relative; }
.woocommerce-tabs ul.tabs li a { padding: 1em 0; display: block; }
.woocommerce-tabs .panel h2:first-of-type { margin-bottom: 1em; }

/* Password strength meter */
.woocommerce-password-strength { text-align: right; }
.woocommerce-password-strength.strong { color: #0f834d; }
.woocommerce-password-strength.short, .woocommerce-password-strength.bad { color: #e2401c; }
.woocommerce-password-strength.good { color: var(--fas-script-blue); }

/* Forms */
.form-row.woocommerce-validated input.input-text { box-shadow: inset 2px 0 0 #0f834d; }
.form-row.woocommerce-invalid input.input-text { box-shadow: inset 2px 0 0 #e2401c; }
.required { color: var(--fas-fuchsia); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
    background-color: var(--fas-script-blue);
    color: white;
    clear: both;
}
.woocommerce-info, .woocommerce-noreviews, p.no-comments { background-color: var(--fas-script-blue); }
.woocommerce-error { background-color: var(--fas-fuchsia); }

.demo_store {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 1em;
    background-color: var(--fas-script-blue);
    z-index: 9999;
}

/* WooCommerce Price Filter */
.widget_price_filter .price_slider { margin-bottom: 1.5em; }
.widget_price_filter .price_slider_amount { text-align: right; line-height: 2.4; }
.widget_price_filter .price_slider_amount .button { float: left; }
.widget_price_filter .ui-slider { position: relative; text-align: left; }
.widget_price_filter .ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 1em;
    height: 1em;
    cursor: ew-resize;
    outline: none;
    background: var(--fas-script-blue);
    box-sizing: border-box;
    margin-top: -0.25em;
    opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child { margin-left: -1em; }
.widget_price_filter .ui-slider .ui-slider-handle:hover, .widget_price_filter .ui-slider .ui-slider-handle.ui-state-active { box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1); }
.widget_price_filter .ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    display: block;
    border: 0;
    background: var(--fas-script-blue);
}

.widget_price_filter .price_slider_wrapper .ui-widget-content { background: rgba(0, 0, 0, 0.1); }
.widget_price_filter .ui-slider-horizontal { height: 0.5em; }
.widget_price_filter .ui-slider-horizontal .ui-slider-range { height: 100%; }

/* Buttons */
.single-product div.product .single_add_to_cart_button {
    background: var(--fas-button-gradient) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 22px !important;
    font-family: 'Dancing Script', cursive !important;
    font-size: 1.3rem !important;
    text-decoration: none !important;
    border: none !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.4) !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-align: center;
}

.single-product div.product .single_add_to_cart_button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

/* ==========================================================================
      SUBSCRIPTION HUB PRICING GRID OVERRIDES
   ========================================================================== */
/* Outer frosted stage */
.sub-pricing-grid-stage {
    background: rgba(225, 230, 240, 0.45) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    margin-top: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
    width: 100%;
}

/* Toggle controls */
.sub-billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fas-text-slate);
}

.sub-pricing-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.sub-pricing-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sub-pricing-slider-rail {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #fff;
    transition: .4s;
    border-radius: 30px;
    border: 1px solid #ccc;
}

.sub-pricing-slider-rail:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background: var(--fas-button-gradient);
    transition: .4s;
    border-radius: 50%;
}

.sub-pricing-toggle-switch input:checked + .sub-pricing-slider-rail {
    background-color: #fff;
}

.sub-pricing-toggle-switch input:checked + .sub-pricing-slider-rail:before {
    transform: translateX(30px);
}

.fas-discount-badge {
    background: var(--fas-button-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 5px;
}

/* Flexbox Layout for the 3 Tiers */
.sub-features-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center;
    width: 100%;
}

.sub-feature-card {
    flex: 1 1 calc(33.333% - 20px) !important;
    min-width: 280px !important;
    box-sizing: border-box;
}

/* Individual White Boxes */
.sub-tier-box-inner {
    background: #ffffff !important;
    border: 1px solid var(--fas-script-blue) !important;
    border-radius: 8px !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* Typography Inside Tier Boxes */
.sub-tier-main-title {
    font-family: 'Dancing Script', cursive !important;
    color: var(--fas-script-blue) !important;
    font-size: 2.5rem !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
}

.sub-tier-sub-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    color: var(--fas-text-slate) !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    min-height: 45px !important;
}

.sub-tier-price-display-viewport {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.sub-numeric-price-text {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: var(--fas-text-slate) !important;
    line-height: 1 !important;
}

.sub-price-period-subtext {
    font-size: 0.85rem !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Feature List Inside Tier Box */
.sub-tier-features-list {
    margin-bottom: 30px !important;
    flex-grow: 1 !important;
}

.sub-tier-features-list ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Strip SVG Checkmark and Replace with Spool Emoji */
.woocommerce .sub-tier-features-list li {
    position: relative !important;
    padding-left: 30px !important;
    margin-bottom: 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    color: var(--fas-text-slate) !important;
    line-height: 1.4 !important;
}

.woocommerce .sub-tier-features-list li::before {
    content: " " !important;
    position: absolute !important;
    left: 0 !important;
    top: -2px !important;
    font-size: 1.2rem !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
}

/* Full Width Button */
.sub-grid-subscribe-btn {
    width: 100% !important;
    display: block !important;
    background: var(--fas-button-gradient) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 15px 20px !important;
    font-family: 'Dancing Script', cursive !important;
    font-size: 1.6rem !important;
    text-decoration: none !important;
    border: none !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.4) !important;
    cursor: pointer;
    text-align: center !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sub-grid-subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.sub-price-block-yearly {
    display: none;
}

/* ==========================================================================
      MY ACCOUNT NAVIGATION MENU STYLING
   ========================================================================== */
.woocommerce-account-navigation-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    width: 100% !important;
}

.fas-account-sidebar-col {
    flex: 1 1 250px !important;
    max-width: 300px !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
    background: transparent !important; 
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Override WooCommerce Native Float and Width Constraints */
.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
}

.fas-account-main-workspace-pane {
    flex: 2 1 calc(100% - 340px) !important;
    min-width: 300px !important;
    box-sizing: border-box !important;
    padding: 40px !important; 
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important; 
    width: 100% !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    background: var(--fas-button-gradient) !important;
    color: white !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-family: 'Dancing Script', cursive !important;
    font-size: 1.5rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.4) !important;
    line-height: 1.2 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25) !important;
}

/* ==========================================================================
      WOOCOMMERCE ARCHIVE & SEARCH RESULT GRIDS OVERRIDES
   ========================================================================== */

/* Apply Frosted Pane to WooCommerce Archives & Search Results by beating CSS specificity */
html body #page #primary.fas-archive-frosted-pane,
html body.archive.woocommerce #page #primary.site-main, 
html body.search.woocommerce #page #primary.site-main,
html body.tax-product_cat #page #primary.site-main,
html body.tax-product_brand #page #primary.site-main,
html body.tax-product_tag #page #primary.site-main,
html body.post-type-archive-product #page #primary.site-main {
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    margin-top: 0 !important;
    margin-bottom: 50px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Eliminate aggressive spacing above headers and tighten breadcrumbs */
.woocommerce-products-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    padding-top: 0 !important;
    text-align: center !important;
    width: 100% !important;
    color: var(--fas-text-slate) !important;
}

.woocommerce .woocommerce-breadcrumb a,
.woocommerce-page .woocommerce-breadcrumb a {
    color: var(--fas-script-blue) !important;
    text-decoration: none !important;
}

.woocommerce-products-header__title.page-title {
    font-family: 'Dancing Script', cursive !important;
    color: var(--fas-script-blue) !important;
    font-size: 2.5rem !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    float: left;
    color: var(--fas-text-slate);
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 20px 0;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    float: right;
    margin: 0 0 20px 0;
}

.woocommerce .woocommerce-ordering select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.6);
    font-family: 'Montserrat', sans-serif;
    color: var(--fas-text-slate);
    outline: none;
}

/* Kill pseudo-elements that act as empty grid cells */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after {
    display: none !important;
}

ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

li.product.faa-universal-card, .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    padding: 20px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
}

.fas-loop-product-link, .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none !important;
    color: inherit !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.fas-loop-image-wrap img, .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
    margin-bottom: 20px !important;
    height: 200px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

.woocommerce-loop-product__title {
    font-family: 'Dancing Script', cursive !important;
    color: var(--fas-script-blue) !important;
    font-size: 1.6rem !important;
    margin: 10px 0 !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-transform: none !important;
    font-variant: normal !important;
}

.faa-loop-short-description {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    color: var(--fas-text-slate) !important;
    margin-bottom: 25px !important;
    line-height: 1.5 !important;
    flex-grow: 1 !important;
}

/* ==========================================================================
      SINGLE POST WOOCOMMERCE MINI WIDGET OVERRIDES
   ========================================================================== */
.fas-woo-mini-section .fas-mini-section-title {
    font-family: 'Dancing Script', cursive !important;
    color: var(--fas-script-blue) !important;
    font-size: 2rem !important;
}

.fas-woo-mini-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.fas-woo-mini-card {
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
}

.fas-woo-mini-card .fas-mini-card-title {
    font-family: 'Dancing Script', cursive !important;
    color: var(--fas-script-blue) !important;
    font-size: 1.4rem !important;
}

.fas-woo-mini-card .fas-mini-card-excerpt {
    color: var(--fas-text-slate) !important;
}

.fas-woo-mini-card .fas-mini-btn {
    background: var(--fas-button-gradient) !important;
    color: white !important;
}

/* ==========================================================================
      RELATED PRODUCTS WOOCOMMERCE OVERRIDES
   ========================================================================== */
.fas-related-carousel-row ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.fas-related-carousel-row .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
}

.fas-related-carousel-row .faa-loop-short-description {
    font-size: 0.75rem !important;
}

/* ==========================================================================
      WOOCOMMERCE RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    .fas-single-product-top-row {
        flex-direction: column !important;
    }
    
    .fas-single-product-gallery-col,
    .fas-single-product-summary-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }

    ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .fas-related-carousel-row ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .fas-woo-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 768px) {
    .sub-features-section {
        flex-direction: column !important;
    }
    .sub-feature-card {
        width: 100% !important;
        min-width: 100% !important;
    }
    .fas-account-sidebar-col, .fas-account-main-workspace-pane {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .fas-related-carousel-row ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .fas-woo-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 480px) {
    ul.products { grid-template-columns: 1fr !important; }
    .fas-related-carousel-row ul.products { grid-template-columns: 1fr !important; }
    .fas-woo-mini-grid { grid-template-columns: 1fr !important; }
}