/* =========================================================================
   RC Vault Shop — WooCommerce overrides
   -------------------------------------------------------------------------
   We disable WooCommerce's stylesheet entirely (see functions.php). This
   file restores only the layout primitives we still need and re-skins
   every native WC component (notices, cart, checkout, forms, gallery)
   to the RC Vault design system.

   Conventions (from DESIGN.md):
     - No 1px solid dark borders. Ghost borders only at outline-variant/20%.
     - Buttons are pill-shaped (rounded-full).
     - Depth via tonal background shifts, not box-shadows.
     - Manrope for headlines, Inter for body.

   Color tokens used below are the literal hex values so this file works
   without Tailwind's @apply (Play CDN doesn't process imported CSS).
   ========================================================================= */

:root {
    --fa-primary:                  #0e0f10;
    --fa-primary-container:        #1c1e20;
    --fa-secondary:                #f01e2c;
    --fa-on-primary:               #ffffff;
    --fa-on-secondary:             #ffffff;
    --fa-surface:                  #ffffff;
    --fa-surface-container-low:    #f4f5f6;
    --fa-surface-container-lowest: #ffffff;
    --fa-surface-container-high:   #e4e6e9;
    --fa-surface-container-highest:#dcdfe2;
    --fa-on-surface:               #161616;
    --fa-on-surface-variant:       #3f3f3f;
    --fa-outline:                  #6b6b6b;
    --fa-outline-variant:          #cdd2d6;
    --fa-error-container:          #ffdad6;
    --fa-on-error-container:       #7a0007;
    --fa-energy:                   #b3121d;
    --fa-energy-soft:              #ffeceb;
    --fa-volt:                     #0aa6b4;
    --fa-volt-deep:                #0a7f96;
    --fa-grad-signal:              linear-gradient(135deg, #f01e2c 0%, #b3121d 100%);
    --fa-glow:                     0 0 0 1px rgba(240,30,44,.35), 0 12px 30px -10px rgba(240,30,44,.5);
}

/* =========================================================================
   1. Reset WooCommerce defaults we don't want
   ========================================================================= */
.woocommerce ul.products,
.woocommerce-page ul.products {
    /* Loop start replaces this with a div.grid; this rule is for safety
       in case any third-party WC template falls back to the <ul> form. */
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    /* Native WC adds float + width % — we use grid, so reset both. */
    float: none;
    width: auto;
    margin: 0;
}

/* WC injects a `.woocommerce` wrapper div around almost everything.
   Strip its default block layout so our Tailwind sections breathe naturally. */
.woocommerce, .woocommerce-page {
    color: var(--fa-on-surface);
}

/* =========================================================================
   2. Notices (success / error / info banners)
   -------------------------------------------------------------------------
   Replace WC's default green/red banners with the brand's tonal version.
   ========================================================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 1rem 1.25rem 1rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--fa-surface-container-low);
    color: var(--fa-on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: none;
    box-shadow: none;
    overflow: hidden;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--fa-primary);
}
.woocommerce-message::before { background: var(--fa-secondary); }
.woocommerce-error {
    background: var(--fa-error-container);
    color: var(--fa-on-error-container);
}
.woocommerce-error::before { background: var(--fa-on-error-container); }
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
    float: right;
    margin-left: 1rem;
}

/* =========================================================================
   3. Buttons — pill shape, primary near-black, scale on hover
   ========================================================================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #place_order,
.woocommerce-page button.button,
.fa-shop-summary button.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--fa-primary);
    color: var(--fa-on-primary);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
    box-shadow: none;
    text-shadow: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #place_order:hover,
.woocommerce-page button.button:hover,
.fa-shop-summary button.single_add_to_cart_button:hover {
    background: var(--fa-primary-container);
    color: var(--fa-on-primary);
    transform: scale(1.02);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--fa-secondary);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--fa-primary);
}

/* Secondary/outline button variant */
.woocommerce a.button.wc-backward,
.woocommerce-cart .return-to-shop a {
    background: var(--fa-surface-container-lowest);
    color: var(--fa-primary);
    border: 1px solid rgba(198, 198, 198, 0.2);
}
.woocommerce a.button.wc-backward:hover,
.woocommerce-cart .return-to-shop a:hover {
    background: var(--fa-surface-container-highest);
    color: var(--fa-primary);
}

/* Purchase actions (add-to-cart / checkout / place order) — the red "go" signal
   with a glow, matching the home-page primary CTA. Red is rationed to these. */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order,
.woocommerce .checkout-button,
.fa-shop-summary button.single_add_to_cart_button {
    background: var(--fa-grad-signal);
    color: #fff;
    box-shadow: var(--fa-glow);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover,
.fa-shop-summary button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #f01e2c 0%, #8e0e17 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
}

/* =========================================================================
   4. Form fields — ghost borders, secondary focus ring
   ========================================================================= */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select,
.select2-container--default .select2-selection--single,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="search"] {
    width: 100%;
    background: var(--fa-surface-container-lowest);
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--fa-on-surface);
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    outline: none;
    border-color: var(--fa-secondary);
    box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.15);
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fa-primary);
    margin-bottom: 0.5rem;
}
.woocommerce form .form-row .required {
    color: var(--fa-secondary);
    text-decoration: none;
    font-weight: 700;
}

/* select2 (used by WC for country / state dropdowns) */
.select2-container--default .select2-selection--single {
    height: auto;
    padding: 0.75rem 1rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--fa-on-surface);
    line-height: 1.4;
    padding: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.75rem;
}
.select2-dropdown {
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 0.5rem;
    background: var(--fa-surface-container-lowest);
    box-shadow: 0 12px 32px -12px rgba(22, 22, 22, 0.08);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--fa-secondary);
    color: var(--fa-on-secondary);
}

/* Quantity input */
.woocommerce .quantity input.qty {
    width: 4rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--fa-surface-container-lowest);
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.woocommerce .quantity input.qty:focus {
    outline: none;
    border-color: var(--fa-secondary);
    box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.15);
}

/* =========================================================================
   5. Toolbar (sort dropdown + result count) on shop archive
   ========================================================================= */
.fa-shop-toolbar .woocommerce-result-count {
    margin: 0;
    color: var(--fa-on-surface-variant);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}
.fa-shop-toolbar .woocommerce-ordering {
    margin: 0;
}
.fa-shop-toolbar .woocommerce-ordering select {
    background: var(--fa-surface-container-lowest);
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 9999px;
    padding: 0.625rem 2.5rem 0.625rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fa-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e0f10' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* =========================================================================
   6. Pagination
   ========================================================================= */
.fa-shop-pagination .woocommerce-pagination {
    text-align: center;
}
.fa-shop-pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 0.5rem;
}
.fa-shop-pagination .page-numbers li { display: inline-block; }
.fa-shop-pagination .page-numbers a,
.fa-shop-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 9999px;
    background: var(--fa-surface-container-low);
    color: var(--fa-primary);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.fa-shop-pagination .page-numbers a:hover {
    background: var(--fa-surface-container-highest);
}
.fa-shop-pagination .page-numbers .current {
    background: var(--fa-grad-signal);
    color: #fff;
    box-shadow: var(--fa-glow);
}

/* =========================================================================
   7. Single product page
   ========================================================================= */
/* Reset WC's default float layout so our grid takes over */
.fa-shop-single-product.product .images,
.fa-shop-single-product.product .summary,
.fa-shop-single-product.product .woocommerce-product-gallery {
    float: none !important;
    width: auto !important;
}

/* WC product gallery — restore the layout primitives the disabled stylesheet was providing */
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}
.woocommerce-product-gallery .flex-control-thumbs {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.woocommerce-product-gallery .flex-control-thumbs li {
    width: calc(20% - 0.4rem);
    cursor: pointer;
}
.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
}
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 9;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    color: var(--fa-primary);
    text-align: center;
    line-height: 2.5rem;
    text-decoration: none;
    font-size: 1.25rem;
}

/* Sale flash badge inside gallery */
.fa-shop-gallery-wrap .onsale {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 5;
    background: var(--fa-secondary);
    color: var(--fa-on-secondary);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    margin: 0;
    min-height: 0;
    min-width: 0;
}

/* Summary content (title/rating/price/excerpt produced by WC hooks) */
.fa-shop-summary .product_title {
    font-family: 'Manrope', sans-serif;
    color: var(--fa-primary);
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem 0;
}
@media (min-width: 1024px) {
    .fa-shop-summary .product_title { font-size: 3rem; }
}
.fa-shop-summary .price {
    font-family: 'Manrope', sans-serif;
    color: var(--fa-primary);
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    display: block;
}
.fa-shop-summary .price del {
    color: var(--fa-on-surface-variant);
    opacity: 0.5;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}
.fa-shop-summary .price ins {
    text-decoration: none;
    color: var(--fa-secondary);
}
.fa-shop-summary .woocommerce-product-details__short-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--fa-on-surface-variant);
    margin: 0 0 2rem 0;
}
.fa-shop-summary .woocommerce-product-details__short-description p { margin: 0 0 1rem 0; }

/* Add to cart row inside summary */
.fa-shop-summary form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0 0 2rem 0;
}
.fa-shop-summary form.cart .quantity { margin: 0; }
.fa-shop-summary form.cart .single_add_to_cart_button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    flex-grow: 1;
}
@media (min-width: 640px) {
    .fa-shop-summary form.cart .single_add_to_cart_button { flex-grow: 0; }
}

/* Variations table */
.fa-shop-summary table.variations {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem 0;
}
.fa-shop-summary table.variations th,
.fa-shop-summary table.variations td {
    padding: 0.5rem 0.75rem 0.5rem 0;
    vertical-align: middle;
    text-align: left;
    border: none;
}
.fa-shop-summary table.variations th {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--fa-primary);
    width: 8rem;
}
.fa-shop-summary .reset_variations {
    color: var(--fa-secondary);
    font-size: 0.875rem;
}

/* Colour variation swatches — actual colour buttons instead of a dropdown.
   Mirrors the home-page featured selector (.rcv-fpsw). Injected by
   rcv-variation-swatches.js; the native <select> is kept but visually hidden. */
.rcv-vsw-hidden-select {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.rcv-vsw-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 2px 0;
}
.rcv-vsw-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.rcv-vsw {
    width: 36px; height: 36px;
    border: 0; padding: 0;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(14, 15, 16, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rcv-vsw:hover { transform: scale(1.12); }
.rcv-vsw:focus-visible,
.rcv-vsw[aria-pressed="true"] {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fa-primary);
}
.rcv-vsw.rcv-vsw-disabled {
    cursor: not-allowed;
    opacity: 0.4;
    box-shadow: inset 0 0 0 1px rgba(14, 15, 16, 0.14);
    transform: none;
}
.rcv-vsw.rcv-vsw-disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top left, transparent calc(50% - 1px), rgba(14, 15, 16, 0.55) 50%, transparent calc(50% + 1px));
}
.rcv-vsw-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--fa-on-surface);
}
.rcv-vsw-name:empty { display: none; }

/* Meta block (SKU, categories, tags) */
.fa-shop-summary .product_meta {
    border-top: 1px solid rgba(198, 198, 198, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--fa-on-surface-variant);
}
.fa-shop-summary .product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}
.fa-shop-summary .product_meta a {
    color: var(--fa-primary);
    text-decoration: none;
    font-weight: 600;
}
.fa-shop-summary .product_meta a:hover { color: var(--fa-secondary); }

/* Star rating */
.woocommerce .star-rating {
    font-family: 'star';
    font-size: 1rem;
    width: 5.4em;
    height: 1.2em;
    line-height: 1;
    position: relative;
    color: var(--fa-secondary);
    overflow: hidden;
}
.woocommerce .star-rating::before {
    content: '\73\73\73\73\73';
    color: var(--fa-outline-variant);
    float: left;
    top: 0; left: 0;
    position: absolute;
}
.woocommerce .star-rating span {
    overflow: hidden;
    float: left;
    top: 0; left: 0;
    position: absolute;
    padding-top: 1.5em;
}
.woocommerce .star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0; left: 0;
    position: absolute;
    color: var(--fa-secondary);
}

/* =========================================================================
   8. Product tabs (description / reviews / additional information)
   ========================================================================= */
.woocommerce-tabs .wc-tabs {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: none;
}
.woocommerce-tabs .wc-tabs li {
    background: transparent;
    border: none;
    border-radius: 9999px;
    padding: 0;
    margin: 0;
}
.woocommerce-tabs .wc-tabs li a {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    background: var(--fa-surface-container-lowest);
    color: var(--fa-on-surface-variant);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.woocommerce-tabs .wc-tabs li.active a {
    background: var(--fa-primary);
    color: var(--fa-on-primary);
}
.woocommerce-tabs .panel,
.woocommerce-tabs .wc-tab {
    background: var(--fa-surface-container-lowest);
    padding: 2rem;
    border-radius: 0.75rem;
    color: var(--fa-on-surface);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}
.woocommerce-tabs .panel h2,
.woocommerce-tabs .wc-tab h2 {
    font-family: 'Manrope', sans-serif;
    color: var(--fa-primary);
    font-weight: 700;
    margin-top: 0;
}
.woocommerce-Tabs-panel--additional_information table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-Tabs-panel--additional_information th,
.woocommerce-Tabs-panel--additional_information td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
}
.woocommerce-Tabs-panel--additional_information tr:nth-child(odd) {
    background: var(--fa-surface-container-low);
}

/* Related / upsell section header */
.fa-shop-after-summary .related > h2,
.fa-shop-after-summary .upsells > h2 {
    font-family: 'Manrope', sans-serif;
    color: var(--fa-primary);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 2rem 0;
}
/* The related products grid — they use the same loop templates so the grid
   classes from loop-start.php apply automatically. */

/* =========================================================================
   9. Cart page
   ========================================================================= */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart-form,
.woocommerce-cart article {
    font-family: 'Inter', sans-serif;
}
.woocommerce-cart .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 2rem 0;
    border: none;
    background: transparent;
}
.woocommerce-cart .shop_table thead th {
    background: var(--fa-primary);
    color: var(--fa-on-primary);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 1rem 1.25rem;
    text-align: left;
    border: none;
}
.woocommerce-cart .shop_table thead th:first-child { border-radius: 0.75rem 0 0 0.75rem; }
.woocommerce-cart .shop_table thead th:last-child  { border-radius: 0 0.75rem 0.75rem 0; }
.woocommerce-cart .shop_table tbody td {
    padding: 1.25rem;
    border: none;
    background: transparent;
    vertical-align: middle;
}
.woocommerce-cart .shop_table tbody tr:nth-child(odd) td {
    background: var(--fa-surface-container-low);
}
.woocommerce-cart .shop_table tbody tr:nth-child(odd) td:first-child { border-radius: 0.75rem 0 0 0.75rem; }
.woocommerce-cart .shop_table tbody tr:nth-child(odd) td:last-child  { border-radius: 0 0.75rem 0.75rem 0; }
.woocommerce-cart .shop_table tfoot td {
    padding: 1rem 1.25rem;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--fa-primary);
}
.woocommerce-cart .product-thumbnail img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: var(--fa-surface-container-lowest);
    padding: 0.5rem;
    mix-blend-mode: multiply;
}
.woocommerce-cart .product-name a {
    color: var(--fa-primary);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    text-decoration: none;
}
.woocommerce-cart .product-name a:hover { color: var(--fa-secondary); }
.woocommerce-cart .product-remove a.remove {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: var(--fa-surface-container-highest);
    color: var(--fa-primary) !important;
    text-align: center;
    line-height: 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}
.woocommerce-cart .product-remove a.remove:hover {
    background: var(--fa-error-container) !important;
    color: var(--fa-on-error-container) !important;
}

/* Cart sidebar (totals) */
.cart_totals {
    background: var(--fa-surface-container-low);
    padding: 2rem;
    border-radius: 0.75rem;
}
.cart_totals h2 {
    font-family: 'Manrope', sans-serif;
    color: var(--fa-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
}
.cart_totals .shop_table tbody tr:nth-child(odd) td { background: transparent; }
.cart_totals .shop_table tbody td {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(198, 198, 198, 0.2);
}
.cart_totals .order-total td { font-size: 1.25rem; }
.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* Coupon */
.woocommerce-cart .coupon { display: flex; gap: 0.5rem; }
.woocommerce-cart .coupon input.input-text { flex: 1; }

/* =========================================================================
   10. Checkout page
   ========================================================================= */
.woocommerce-checkout form.checkout {
    display: block;
}
.woocommerce-checkout form.checkout::after {
    content: "";
    display: table;
    clear: both;
}
@media (min-width: 1024px) {
    /* Two-column: billing (left) + order review & payment (right). Floats keep
       each column independent-height and top-aligned; CSS grid auto-placement
       was pushing the order-review panel to the bottom of the right column. */
    .woocommerce-checkout form.checkout #customer_details {
        float: left;
        width: 56%;
        margin: 0;
    }
    .woocommerce-checkout form.checkout .woocommerce-additional-fields {
        float: left;
        clear: left;
        width: 56%;
    }
    .woocommerce-checkout form.checkout #order_review_heading,
    .woocommerce-checkout form.checkout #order_review {
        float: right;
        clear: right;
        width: 40%;
    }
}
.woocommerce-checkout h3 {
    font-family: 'Manrope', sans-serif;
    color: var(--fa-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
}
.woocommerce-checkout #order_review {
    background: var(--fa-surface-container-low);
    padding: 2rem;
    border-radius: 0.75rem;
    align-self: start;
    position: sticky;
    top: 6rem;
}
.woocommerce-checkout #order_review_heading {
    font-family: 'Manrope', sans-serif;
    color: var(--fa-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.woocommerce-checkout #order_review .shop_table thead th {
    background: transparent;
    color: var(--fa-primary);
    border-bottom: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 0;
}
.woocommerce-checkout #order_review .shop_table tbody td {
    background: transparent;
    border-bottom: 1px solid rgba(198, 198, 198, 0.2);
}
.woocommerce-checkout #payment {
    background: transparent;
    margin-top: 1.5rem;
    border-radius: 0;
}
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: none;
}
.woocommerce-checkout #payment ul.payment_methods li {
    background: var(--fa-surface-container-lowest);
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--fa-primary);
    cursor: pointer;
    display: inline-block;
    margin-left: 0.5rem;
}
.woocommerce-checkout #payment div.payment_box {
    background: var(--fa-surface-container-low);
    color: var(--fa-on-surface-variant);
    margin: 1rem 0 0 0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #place_order { width: 100%; }

/* =========================================================================
   11. My Account page
   ========================================================================= */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
}
@media (min-width: 768px) {
    .woocommerce-account .woocommerce {
        display: grid;
        grid-template-columns: 16rem 1fr;
        gap: 3rem;
    }
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--fa-surface-container-low);
    border-radius: 0.75rem;
    overflow: hidden;
}
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.875rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--fa-on-surface-variant);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--fa-primary);
    color: var(--fa-on-primary);
}

/* ----- 11a. Sign In / Create Account (logged-out state) -----------------
   Editorial layout: ambient blur decoration, intro hero, two accent-
   distinguished cards (Sign In = red accent, Create Account = energy
   green). Card accents are a vertical stripe on the left edge — no
   outline borders, in line with the RC Vault rule.
   ----------------------------------------------------------------------- */

.fa-shop-auth-wrapper {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 0.5rem;
    isolation: isolate;
}

/* Ambient blurs echo the dual brand colors behind the cards. */
.fa-shop-auth-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.fa-shop-auth-decor__blur {
    position: absolute;
    width: 32rem;
    height: 32rem;
    border-radius: 9999px;
    filter: blur(96px);
    opacity: 0.35;
}
.fa-shop-auth-decor__blur--blue {
    top: -8rem;
    left: -8rem;
    background: radial-gradient(circle, rgba(225, 29, 42, 0.45) 0%, rgba(225, 29, 42, 0) 70%);
}
.fa-shop-auth-decor__blur--green {
    bottom: -10rem;
    right: -8rem;
    background: radial-gradient(circle, rgba(200, 16, 32, 0.35) 0%, rgba(200, 16, 32, 0) 70%);
}

/* Intro hero above the cards. */
.fa-shop-auth-intro {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem auto;
}
.fa-shop-auth-intro__eyebrow {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fa-secondary);
    margin-bottom: 1rem;
}
.fa-shop-auth-intro__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--fa-primary);
    margin: 0 0 1rem 0;
}
.fa-shop-auth-intro__title-accent {
    background: linear-gradient(120deg, var(--fa-secondary) 0%, var(--fa-energy) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
}
.fa-shop-auth-intro__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--fa-on-surface-variant);
    margin: 0;
}

/* Cards grid. */
.fa-shop-auth {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 900px) {
    .fa-shop-auth--split { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.fa-shop-auth--single { max-width: 34rem; margin: 0 auto; }

.fa-shop-auth__card {
    position: relative;
    overflow: hidden;
    background: var(--fa-surface-container-lowest);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow:
        0 24px 48px -28px rgba(22, 22, 22, 0.18),
        0 4px 12px -6px rgba(22, 22, 22, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .fa-shop-auth__card { padding: 3rem 2.75rem; }
}

/* Accent stripe on the left edge — swaps color based on card type. */
.fa-shop-auth__card-accent {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--fa-secondary);
}
.fa-shop-auth__card-accent--green {
    background: var(--fa-energy);
}

/* Subtle tint behind each card type to reinforce the color split. */
.fa-shop-auth__card--signin {
    background:
        linear-gradient(180deg, rgba(225, 29, 42, 0.035) 0%, rgba(225, 29, 42, 0) 55%),
        var(--fa-surface-container-lowest);
}
.fa-shop-auth__card--register {
    background:
        linear-gradient(180deg, rgba(200, 16, 32, 0.045) 0%, rgba(200, 16, 32, 0) 55%),
        var(--fa-surface-container-lowest);
}

/* Card header: icon chip + eyebrow + title stacked next to it. */
.fa-shop-auth__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.fa-shop-auth__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    color: var(--fa-on-primary);
}
.fa-shop-auth__icon--signin { background: var(--fa-secondary); }
.fa-shop-auth__icon--register { background: var(--fa-energy); }
.fa-shop-auth__icon .material-symbols-outlined { font-size: 1.5rem; }

.fa-shop-auth__eyebrow {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fa-secondary);
    margin-bottom: 0.25rem;
}
.fa-shop-auth__eyebrow--green { color: var(--fa-energy); }

.fa-shop-auth__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fa-primary);
    margin: 0;
}
.fa-shop-auth__subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--fa-on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* Perks list on the Create Account card. */
.fa-shop-auth__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.fa-shop-auth__perks li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--fa-on-surface);
}
.fa-shop-auth__perks .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--fa-energy);
    flex: 0 0 auto;
}

/* Form rows. */
.fa-shop-auth .woocommerce-form { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.fa-shop-auth .form-row { margin: 0 0 1rem 0; padding: 0; }
.fa-shop-auth .form-row:last-child { margin-bottom: 0; }

.fa-shop-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 0.75rem 0;
}
.fa-shop-auth__row .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--fa-on-surface-variant);
    margin: 0;
    cursor: pointer;
}
.fa-shop-auth__row input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--fa-secondary);
    margin: 0;
}
.fa-shop-auth__lost {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fa-secondary);
    text-decoration: none;
}
.fa-shop-auth__lost:hover { text-decoration: underline; }

/* Inline hint with material icon (generated-password branch). */
.fa-shop-auth__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--fa-on-surface-variant);
    background: var(--fa-surface-container-low);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}
.fa-shop-auth__hint .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--fa-secondary);
    flex: 0 0 auto;
}

/* Submit row: full-width button with trailing icon. */
.fa-shop-auth__submit-row { margin-top: 0.5rem; }
.fa-shop-auth__submit-row button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.fa-shop-auth__submit-row button .material-symbols-outlined {
    font-size: 1.125rem;
}

/* Green variant for the Create Account submit — overrides the primary
   near-black button so the two cards have clearly different CTAs. */
.fa-shop-auth__register-btn {
    background: var(--fa-energy) !important;
    color: var(--fa-on-primary) !important;
}
.fa-shop-auth__register-btn:hover {
    background: #9b0f16 !important;
}

/* Privacy policy hint that WC injects via woocommerce_register_form action */
.fa-shop-auth .woocommerce-privacy-policy-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: var(--fa-on-surface-variant);
    line-height: 1.55;
    margin: 0.25rem 0 1rem 0;
}
.fa-shop-auth .woocommerce-privacy-policy-text a {
    color: var(--fa-secondary);
    text-decoration: none;
    font-weight: 600;
}
.fa-shop-auth .woocommerce-privacy-policy-text a:hover { text-decoration: underline; }

/* =========================================================================
   12. Search form
   ========================================================================= */
.woocommerce-product-search,
form.search-form {
    display: flex;
    gap: 0.5rem;
}
.woocommerce-product-search input[type="search"],
form.search-form input[type="search"] {
    flex: 1;
    background: var(--fa-surface-container-lowest);
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 9999px;
    padding: 0.875rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--fa-on-surface);
}
.woocommerce-product-search button,
form.search-form button {
    background: var(--fa-primary);
    color: var(--fa-on-primary);
    border: none;
    border-radius: 9999px;
    padding: 0.875rem 1.75rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.woocommerce-product-search button:hover,
form.search-form button:hover { transform: scale(1.02); }

/* =========================================================================
   13. Misc utility
   ========================================================================= */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Loading state on AJAX add-to-cart */
.fa-shop-add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}
.fa-shop-add-to-cart.added::after {
    /* WC adds an "added" class to the button when item is in cart;
       we swap the icon visually via :after to give feedback without DOM churn. */
    content: "✓";
    position: absolute;
    font-size: 1rem;
}

/* =========================================================================
   14. Interactive Light — paired with assets/js/interactive-light.js
   ========================================================================= */
[data-interactive-light] { contain: layout paint; }

.fa-il-lamp {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--fa-il-lamp, #fff);
    border-radius: 9999px;
    opacity: 0; /* JS fades to 1 during intro */
    will-change: transform, box-shadow, opacity;
    /* Default transition; JS overrides per intro keyframe. */
    transition: transform 500ms ease-out, opacity 600ms ease-in;
}

/* Default direction = bottom-right: glow plumes down + right toward the
   product image and headline body (anchor sits at H1 upper-left corner). */
.fa-il-lamp[data-direction="bottom-right"] {
    box-shadow:
         80px  80px 200px 40px var(--fa-il-shine),
        160px 160px 400px 80px var(--fa-il-shine-fade);
}
.fa-il-lamp[data-direction="center"] {
    box-shadow:
        0 0 120px 30px var(--fa-il-shine),
        0 0 280px 80px var(--fa-il-shine-fade);
}
.fa-il-lamp[data-direction="bottom"] {
    box-shadow:
        0 120px 200px 40px var(--fa-il-shine),
        0 240px 400px 80px var(--fa-il-shine-fade);
}

.fa-il-highlight {
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: background 800ms ease-out, opacity 800ms ease-in;
    /* Multiply blend renders amber as warm sunlight tint on the off-white
       hero, instead of washing it out. */
    mix-blend-mode: multiply;
    opacity: 0; /* JS fades up after intro starts. */
}

@media (prefers-reduced-motion: reduce) {
    .fa-il-lamp,
    .fa-il-highlight {
        transition: none;
        opacity: 1;
    }
}

/* =========================================================================
   15. Shop archive — breadcrumb, faceted filter sidebar, chips, mobile drawer
   ========================================================================= */

/* Breadcrumb — ancestor crumbs are <a>; make them read as clickable. */
.fa-shop-breadcrumb a {
    color: var(--fa-on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}
.fa-shop-breadcrumb a:hover { color: var(--fa-secondary); }

/* Toolbar: mobile "Filters" toggle (shown only with JS on small screens). */
.fa-shop-filters-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: var(--fa-primary);
    color: var(--fa-on-primary);
    border: 0;
    border-radius: 9999px;
    padding: 0.55rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.fa-shop-filters-toggle .material-symbols-outlined { font-size: 1.1rem; }
.fa-shop-filters-toggle:hover { background: var(--fa-primary-container); }

/* Active-filter chips row. */
.fa-shop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.fa-shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--fa-surface-container-high);
    color: var(--fa-primary);
    border-radius: 9999px;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.fa-shop-chip .material-symbols-outlined { font-size: 1rem; }
.fa-shop-chip:hover { background: var(--fa-secondary); color: var(--fa-on-secondary); }
.fa-shop-chip--clear { background: transparent; color: var(--fa-on-surface-variant); padding-left: 0.5rem; }
.fa-shop-chip--clear:hover { background: transparent; color: var(--fa-secondary); }

/* Filter sidebar column + form. */
.fa-shop-filters-col { align-self: start; }
.fa-shop-filters-backdrop { display: none; }
.fa-shop-filters-head { display: none; }
.fa-shop-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Facet accordions — tonal background, no 1px borders. */
.fa-shop-facet {
    background: var(--fa-surface-container-low);
    border-radius: 0.85rem;
    padding: 0.15rem 0.95rem;
}
.fa-shop-facet[open] { padding-bottom: 0.85rem; }
.fa-shop-facet--sort { padding: 0.85rem 0.95rem; }
.fa-shop-facet-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    padding: 0.7rem 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--fa-primary);
}
.fa-shop-facet-summary::-webkit-details-marker { display: none; }
.fa-shop-facet-chevron {
    font-size: 1.2rem;
    color: var(--fa-on-surface-variant);
    transition: transform 0.2s ease;
}
.fa-shop-facet[open] .fa-shop-facet-chevron { transform: rotate(180deg); }
.fa-shop-facet-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--fa-primary);
    margin-bottom: 0.5rem;
}

.fa-shop-facet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-height: 15rem;
    overflow-y: auto;
}
.fa-shop-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--fa-on-surface);
}
.fa-shop-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.fa-shop-check-box {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.35rem;
    background: var(--fa-surface-container-high);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.fa-shop-check-box--radio { border-radius: 9999px; }
.fa-shop-check input:checked + .fa-shop-check-box { background: var(--fa-secondary); }
.fa-shop-check input:checked + .fa-shop-check-box::after {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 0.12rem;
    background: #fff;
}
.fa-shop-check-box--radio::after { border-radius: 9999px !important; }
.fa-shop-check input:focus-visible + .fa-shop-check-box { box-shadow: 0 0 0 3px rgba(240, 30, 44, 0.25); }
.fa-shop-check-label { line-height: 1.2; }
.fa-shop-check:hover .fa-shop-check-label { color: var(--fa-secondary); }

/* Sort select inside the filter form. */
.fa-shop-select {
    width: 100%;
    background: var(--fa-surface-container-lowest);
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 9999px;
    padding: 0.55rem 2.25rem 0.55rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fa-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e0f10' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
}
.fa-shop-select:focus { outline: none; border-color: var(--fa-secondary); box-shadow: 0 0 0 3px rgba(240, 30, 44, 0.15); }

/* Price band — mono tabular-nums inputs. */
.fa-shop-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.25rem;
}
.fa-shop-price-field { flex: 1; min-width: 0; }
.fa-shop-price-field input {
    width: 100%;
    background: var(--fa-surface-container-lowest);
    border: 1px solid rgba(198, 198, 198, 0.2);
    border-radius: 9999px;
    padding: 0.55rem 0.9rem;
    font-family: ui-monospace, Menlo, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    color: var(--fa-on-surface);
}
.fa-shop-price-field input:focus { outline: none; border-color: var(--fa-secondary); box-shadow: 0 0 0 3px rgba(240, 30, 44, 0.15); }
.fa-shop-price-sep { color: var(--fa-on-surface-variant); }

/* Apply / Clear. */
.fa-shop-filters-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.fa-shop-apply {
    flex: 1;
    background: var(--fa-grad-signal);
    color: #fff;
    border: 0;
    border-radius: 9999px;
    padding: 0.8rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--fa-glow);
    transition: transform 0.2s ease;
}
.fa-shop-apply:hover { transform: translateY(-1px) scale(1.01); }
.fa-shop-clear {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fa-on-surface-variant);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: color 0.2s ease;
}
.fa-shop-clear:hover { color: var(--fa-secondary); }

/* Desktop: sticky sidebar so filters stay in view while the grid scrolls. */
@media (min-width: 1024px) {
    .fa-shop-filters-panel { position: sticky; top: 6rem; }
}

/* Mobile: slide-over drawer (only with JS — .rcv-js). Without JS the sidebar
   stays inline above the grid so filtering still works on reload. */
@media (max-width: 1023px) {
    .rcv-js .fa-shop-filters-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }
    .fa-shop-filters-title {
        font-family: 'Manrope', sans-serif;
        font-weight: 800;
        font-size: 1.25rem;
        color: var(--fa-primary);
    }
    .fa-shop-filters-close {
        background: var(--fa-surface-container-high);
        color: var(--fa-primary);
        border: 0;
        border-radius: 9999px;
        width: 2.25rem;
        height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .rcv-js .fa-shop-filters-toggle { display: inline-flex; }
    .rcv-js .fa-shop-filters-col {
        position: fixed;
        inset: 0;
        z-index: 60;
        visibility: hidden;
    }
    .rcv-js .fa-shop-filters-col.is-open { visibility: visible; }
    .rcv-js .fa-shop-filters-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(14, 15, 16, 0.45);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .rcv-js .fa-shop-filters-col.is-open .fa-shop-filters-backdrop { opacity: 1; }
    .rcv-js .fa-shop-filters-panel {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: min(86%, 340px);
        background: var(--fa-surface);
        padding: 1.25rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        box-shadow: 0 24px 60px -20px rgba(14, 15, 16, 0.5);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .rcv-js .fa-shop-filters-col.is-open .fa-shop-filters-panel { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .fa-shop-filters-backdrop,
    .fa-shop-filters-panel { transition: none !important; }
}

/* =========================================================================
   16. Order summary tables (checkout review + order received) + thank-you page
   -------------------------------------------------------------------------
   Right-align the money column and footer totals; tidy the product row.
   Scoped with #order_review / .woocommerce-order-details so these win over the
   generic table rules above.
   ========================================================================= */
.woocommerce-checkout #order_review table.shop_table,
.woocommerce-order-details table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
}
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td,
.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td {
    padding: 0.7rem 0;
    border: none;
    border-bottom: 1px solid rgba(198, 198, 198, 0.25);
    vertical-align: top;
    text-align: left;
    background: transparent;
}
.woocommerce-checkout #order_review table.shop_table thead th,
.woocommerce-order-details table.shop_table thead th {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--fa-primary);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
/* Right-align the amount column + all footer amounts. */
.woocommerce-checkout #order_review table.shop_table thead th.product-total,
.woocommerce-checkout #order_review table.shop_table td.product-total,
.woocommerce-checkout #order_review table.shop_table tfoot td,
.woocommerce-order-details table.shop_table thead th.woocommerce-table__product-total,
.woocommerce-order-details table.shop_table td.product-total,
.woocommerce-order-details table.shop_table td.woocommerce-table__product-total,
.woocommerce-order-details table.shop_table tfoot td {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
/* Footer labels (Subtotal / Total …) left, primary colour. */
.woocommerce-checkout #order_review table.shop_table tfoot th,
.woocommerce-order-details table.shop_table tfoot th {
    text-align: left;
    font-weight: 700;
    color: var(--fa-primary);
}
/* Emphasise the Total row. */
.woocommerce-checkout #order_review table.shop_table tfoot .order-total th,
.woocommerce-checkout #order_review table.shop_table tfoot .order-total td,
.woocommerce-order-details table.shop_table tfoot .order-total th,
.woocommerce-order-details table.shop_table tfoot .order-total td {
    font-size: 1.15rem;
    padding-top: 1rem;
    border-bottom: none;
}
/* Product name + quantity. */
.woocommerce-checkout #order_review table.shop_table td.product-name,
.woocommerce-order-details table.shop_table td.product-name {
    font-weight: 600;
    color: var(--fa-primary);
    line-height: 1.4;
    padding-right: 1rem;
}
.woocommerce-checkout #order_review table.shop_table .product-quantity,
.woocommerce-order-details table.shop_table .product-quantity {
    color: var(--fa-on-surface-variant);
    font-weight: 400;
}

/* ----- Order received (thank you) page ----------------------------------- */
.woocommerce-order p.woocommerce-notice,
.woocommerce-order p.woocommerce-thankyou-order-received {
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--fa-primary);
    margin: 0 0 1.5rem 0;
}
.woocommerce-order ul.woocommerce-order-overview {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 1.5rem;
    background: var(--fa-surface-container-low);
    border-radius: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    border: none;
}
.woocommerce-order ul.woocommerce-order-overview li {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fa-on-surface-variant);
    border: none;
    padding: 0;
    margin: 0;
}
.woocommerce-order ul.woocommerce-order-overview li strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--fa-primary);
    margin-top: 0.35rem;
}
.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-column__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--fa-primary);
    font-size: 1.35rem;
    margin: 2rem 0 1rem 0;
}
.woocommerce-order .woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.6;
    color: var(--fa-on-surface-variant);
    background: var(--fa-surface-container-low);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
}
.rcvault-thankyou-actions {
    margin-top: 2.5rem;
    text-align: center;
}
.rcvault-thankyou-actions .rcvault-shop-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 12rem;
}
