﻿/* ========================================
   WooCommerce — Flatley Brothers Boxing
   Brand skin for WooCommerce output (shop, cart, checkout, my account).
   Uses brand tokens from assets/css/fbb-css-overide.css.
   Assumes the dark brand background used across the site.
   ======================================== */

/* ---- Typography base ----
   Non-Elementor pages get no font-family from the Elementor kit,
   so Woo wrappers set the brand fonts themselves. */
.woocommerce,
.woocommerce-page,
.woocommerce-MyAccount-content,
.woocommerce form,
.woocommerce table,
.woocommerce p,
.woocommerce address {
    font-family: var(--font-body);
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.woocommerce-page h4,
.woocommerce table th,
.woocommerce legend {
    font-family: var(--font-heading);
}

/* ---- Buttons ---- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.wc-block-components-button {
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 12px 26px;
    border: none;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover,
.wc-block-components-button:hover {
    background: var(--primary-light);
    color: var(--white);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order {
    background: var(--gold);
    color: var(--dark);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover {
    background: var(--gold-dark);
    color: var(--dark);
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
    opacity: 0.5;
}

/* ---- Prices, sale badge, ratings ---- */
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 600;
}

.woocommerce .price del {
    color: var(--grey);
    opacity: 0.7;
    font-weight: 400;
}

.woocommerce .price ins {
    color: var(--gold);
    text-decoration: none;
}

.woocommerce span.onsale {
    background: var(--gold);
    color: var(--dark);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 0;
    min-height: auto;
    min-width: auto;
    padding: 6px 12px;
    line-height: 1;
}

.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
    color: var(--gold);
}

/* ---- Notices ---- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
    padding: 16px 32px 16px 64px;
    background: var(--card-bg);
    color: var(--white);
    border: none !important;
    border-radius: 0;
    list-style: none;
}

/* WooCommerce's icon sits at left:24px against a 32px right padding —
   an uneven inset. Match it to the right side for a symmetric margin. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before {
    left: 32px !important;
}

/* justify-content:space-between would split the gap across the notice's
   trailing whitespace text node too (a 3rd, invisible flex item),
   stranding the button short of the edge. margin-left:auto on the
   button pushes it flush right regardless of that stray whitespace.
   !important guards against WooCommerce core's float:right on this
   same selector (floats are void on flex items, but no reason to rely
   on that alone given it's the same specificity as this rule). */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: none !important;
    margin-left: auto !important;
}

/* WooCommerce positions this icon with a fixed top offset, which only
   lines up with single-line text; centre it regardless of height. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before {
    top: 50% !important;
    transform: translateY(-50%);
}

.woocommerce-message::before {
    color: var(--success);
}

.woocommerce-info::before {
    color: var(--info);
}

.woocommerce-error::before {
    color: var(--error);
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: var(--gold);
}

/* Elementor Pro prints WooCommerce notices as a raw child of <body>
   (between the header and the Elementor single-product section) on
   the single-product page, rather than inside a themed section — the
   site has no global page background, so that gap showed through as
   white. Give this specific case its own dark background. */
body > .woocommerce-notices-wrapper {
    background: var(--dark);
    padding: 24px;
}

body > .woocommerce-notices-wrapper .woocommerce-message {
    margin-bottom: 0;
}

/* ---- Shop wrapper (woocommerce.php template) ---- */
.fbb-woo-main {
    padding: 120px 24px 80px;
    min-height: 60vh;
}

/* No max-width here — container width is controlled via Elementor. */
.fbb-woo-container {
    margin: 0 auto;
}

/* ---- Shop header + filter tabs ---- */
.fbb-shop-header {
    text-align: left;
    margin-bottom: 40px;
}

.fbb-shop-header h1 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 3px;
    color: var(--white);
    margin: 0 0 15px;
    line-height: 1.1;
}

.fbb-shop-header p {
    color: var(--grey);
    margin: 0;
    max-width: 620px;
}

/* Container rule is global (fbb-css-overide.css); tab links here. */
.fbb-filter-tabs a {
    padding: 12px 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--grey);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fbb-filter-tabs a:hover,
.fbb-filter-tabs a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.fbb-back-link {
    color: var(--grey);
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
}

.fbb-back-link:hover {
    color: var(--gold);
}

/* Category/label pill — mirrored from fbb-members.css so it stays
   styled on Woo pages, where the member bundle isn't enqueued. */
.woocommerce .fbb-tag,
.woocommerce-page .fbb-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(27, 58, 140, 0.15);
    border-left: 3px solid var(--gold);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 18px;
}

.fbb-shop-page-header {
    margin-bottom: 30px;
}

/* ---- Shop product grid ----
   WooCommerce's default columns-N grid is float-based (fixed % widths,
   needs nth-child clearing, rows don't equalise height). Replaced with
   a real CSS grid: consistent gutters, equal-height cards, and it
   reflows on its own instead of needing the shortcode's columns="N". */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

/* WooCommerce's float-grid clearfix (content:" "; display:table) — a
   grid container still treats these as real items, so they silently
   ate the first grid cell(s) and pushed products along by one column. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding-bottom: 20px;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* The whole card (image, title, rating, price) is one link; clip it
   so the hover zoom below doesn't spill past the image's own box. */
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    overflow: hidden;
}

.woocommerce ul.products li.product a img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 16px;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    font-size: 1rem;
    padding: 0 18px;
    margin: 0 0 8px;
}

.woocommerce ul.products li.product .price {
    display: block;
    padding: 0 18px;
}

/* WooCommerce gives .star-rating a fixed width (5.4em) with
   overflow:hidden for its two-layer star-glyph trick, so padding
   (border-box) shrinks its usable content area and clips the last
   stars. Position it with margin instead — the box moves, and the
   glyphs (pinned at left:0 inside it) move correctly along with it. */
.woocommerce ul.products li.product .star-rating {
    display: block;
    margin: 0 18px 10px !important;
}

.woocommerce ul.products li.product .price {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin: 0 0 14px;
}

.woocommerce ul.products li.product .price del {
    color: var(--grey);
    font-size: 0.9rem;
    opacity: 1;
}

.woocommerce ul.products li.product .button {
    display: block;
    margin: 4px 18px 0;
    text-align: center;
}

/* Gold corner badge, like the mockup's "Best Seller" — inset from the
   edges so it reads as sitting on the photo, not pinned to the card's
   raw corner. !important on the position/margin: WooCommerce core ships
   ".woocommerce ul.products li.product .onsale{top:0;right:0;margin:...}"
   which out-specifies this plain ".woocommerce span.onsale" selector. */
.woocommerce span.onsale {
    background: var(--gold);
    color: var(--dark);
    border-radius: 0;
    padding: 6px 14px;
    min-height: 0;
    min-width: 0;
    line-height: 1.4;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    font-weight: 700;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* ---- Single product ----
   Two-column layout (gallery | summary) with tabs, related and
   upsells spanning full width beneath. Works whether rendered by
   the theme template or the [product_page] shortcode in Elementor.
   Scoped with :not(.elementor) so it never targets the Elementor
   single-product location wrapper, which also carries a `product`
   class via post_class(). */
.woocommerce div.product:not(.elementor) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 50px;
    row-gap: 60px;
    align-items: start;
}

.woocommerce div.product:not(.elementor)::before,
.woocommerce div.product:not(.elementor)::after {
    content: none;
}

/* Neutralise WooCommerce's default float widths so the grid controls layout */
.woocommerce div.product:not(.elementor) > .woocommerce-product-gallery,
.woocommerce div.product:not(.elementor) > div.images,
.woocommerce div.product:not(.elementor) > .summary,
.woocommerce div.product:not(.elementor) > .entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
}

/* Flex column so summary children can be reordered below (e.g. Brand
   moved up under the title) without touching the PHP hook order. */
.woocommerce div.product:not(.elementor) > .summary,
.woocommerce div.product:not(.elementor) > .entry-summary {
    display: flex;
    flex-direction: column;
}

.woocommerce div.product .summary > .fbb-tag {
    order: 1;
    align-self: flex-start;
}

.woocommerce div.product .summary > .product_title {
    order: 2;
}

.woocommerce div.product .summary > .product_meta {
    order: 3;
}

.woocommerce div.product .summary > .woocommerce-product-rating {
    order: 4;
}

.woocommerce div.product .summary > p.price,
.woocommerce div.product .summary > span.price {
    order: 5;
}

.woocommerce div.product .summary > .woocommerce-product-details__short-description {
    order: 6;
}

.woocommerce div.product .summary > form.cart {
    order: 7;
}

.woocommerce div.product:not(.elementor) > .woocommerce-tabs,
.woocommerce div.product:not(.elementor) > .related.products,
.woocommerce div.product:not(.elementor) > .upsells.products,
.woocommerce div.product:not(.elementor) > .woocommerce-product-gallery + .clear,
.woocommerce div.product:not(.elementor) > .up-sells,
.woocommerce div.product:not(.elementor) > .cross-sells {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
}

@media (max-width: 768px) {
    .woocommerce div.product:not(.elementor) {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

/* Sale badge sits on the gallery's top-left corner */
.woocommerce div.product:not(.elementor) {
    position: relative;
}

.woocommerce div.product:not(.elementor) > span.onsale {
    position: absolute;
    top: 14px;
    left: 14px;
    right: auto;
    margin: 0;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ---- Gallery ---- */
.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border: 1px solid var(--border);
}

.woocommerce div.product .woocommerce-product-gallery__trigger {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    top: 1rem;
    right: 1rem;
}

/* Thumbnail strip: fixed number of columns visible, horizontal scroll
   for the rest. --thumb-cols drives how many show per breakpoint.
   Uses div.images to match WooCommerce core's specificity (which sets
   li width:25% + float, causing the 4th to wrap against the gap). */
.woocommerce div.product div.images .flex-control-thumbs {
    --thumb-cols: 4;
    --thumb-gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--thumb-gap);
    margin: 12px 0 0;
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    flex: 0 0 calc((100% - (var(--thumb-cols) - 1) * var(--thumb-gap)) / var(--thumb-cols));
    width: auto;
    float: none;
    margin: 0;
    scroll-snap-align: start;
}

.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
    height: 6px;
}

.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Tablet (stacked, full-width gallery) — room for more */
@media (max-width: 768px) {
    .woocommerce div.product div.images .flex-control-thumbs {
        --thumb-cols: 6;
    }
}

/* Mobile — larger, fewer thumbs */
@media (max-width: 480px) {
    .woocommerce div.product div.images .flex-control-thumbs {
        --thumb-cols: 4;
    }
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border: 2px solid var(--border);
    opacity: 1;
    transition: border-color 0.2s;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
    border-color: var(--gold);
}

/* ---- Summary ---- */
.woocommerce div.product .summary > .fbb-tag {
    margin-bottom: 12px;
}

.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    line-height: 1.1;
    margin: 0 0 10px;
}

/* Rating row + review link (kill the default blue link) */
.woocommerce div.product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

/* Drop WooCommerce's clearfix pseudo so it isn't a phantom flex item
   (it was pushing the stars 10px to the right of the title). */
.woocommerce div.product .woocommerce-product-rating::before,
.woocommerce div.product .woocommerce-product-rating::after {
    display: none;
}

.woocommerce div.product .woocommerce-product-rating .star-rating {
    margin: 0;
}

.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link {
    color: var(--grey);
    font-size: 0.85rem;
    text-decoration: none;
}

.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link:hover {
    color: var(--gold);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0 0 22px;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: var(--grey);
    opacity: 1;
    font-size: 1.1rem;
}

.woocommerce div.product p.price ins {
    text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.woocommerce div.product p.stock {
    color: var(--grey);
    font-size: 0.85rem;
}

.woocommerce div.product p.stock.out-of-stock {
    color: var(--error);
}

/* ---- Variations ---- */
.woocommerce div.product form.cart .variations {
    margin-bottom: 10px;
    border: none;
}

.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr {
    display: block;
}

.woocommerce div.product form.cart .variations tr {
    margin-bottom: 20px;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
    display: block;
    padding: 0;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.woocommerce div.product form.cart .variations th.label {
    margin-bottom: 12px;
}

.woocommerce div.product form.cart .variations label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
}

/* Live readout of the selected value, printed after the label */
.fbb-variation-value {
    margin-left: 10px;
    color: var(--gold);
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.fbb-variation-value:empty::before {
    content: '';
}

/* Native <select> kept for WooCommerce logic + no-JS fallback */
.woocommerce div.product form.cart .variations select {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 12px 14px;
    border-radius: 0;
}

.woocommerce div.product form.cart .variations select:focus {
    border-color: var(--gold);
    outline: none;
}

/* Once enhanced to swatches, visually hide the select (stays accessible to WC).
   !important guards against the Elementor kit's global <select> width rule,
   which otherwise left this absolutely-positioned select ~850px wide and
   pushed the page into horizontal overflow. */
.woocommerce div.product form.cart .variations select.fbb-native-select {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    max-width: 1px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden !important;
    white-space: nowrap;
}

/* ---- Swatches ---- */
.fbb-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fbb-swatch {
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--white);
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.fbb-swatch:hover {
    border-color: var(--gold);
}

/* Pill swatches (size, style, etc.) */
.fbb-swatches--pill .fbb-swatch {
    min-width: 58px;
    padding: 12px 18px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    text-align: left;
}

.fbb-swatches--pill .fbb-swatch.is-selected {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
}

/* Colour swatches (square) */
.fbb-swatches--colour .fbb-swatch {
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--fbb-swatch-colour, var(--card-bg));
    border: 2px solid var(--border);
}

.fbb-swatches--colour .fbb-swatch.is-selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--dark), 0 0 0 4px var(--gold);
    transform: scale(1.05);
}

/* Unavailable option for the current combination */
.fbb-swatch.is-disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.fbb-swatches--pill .fbb-swatch.is-disabled {
    text-decoration: line-through;
}

.fbb-swatches--colour .fbb-swatch.is-disabled {
    position: relative;
}

.fbb-swatches--colour .fbb-swatch.is-disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top left, transparent calc(50% - 1px), var(--grey) 50%, transparent calc(50% + 1px));
}

/* Deliberate "Clear" chip rather than a stray link */
.woocommerce div.product form.cart .reset_variations {
    display: inline-block;
    margin: 12px 0 0;
    padding: 5px 12px;
    border: 1px solid var(--border);
    color: var(--grey);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.62rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.woocommerce div.product form.cart .reset_variations:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Collapse the reset chip while no option is chosen so it doesn't
   reserve a gap above the add-to-basket row. */
.woocommerce div.product form.cart .reset_variations[style*="hidden"] {
    display: none;
}

/* Variation price/availability shown after choosing options */
.woocommerce div.product .single_variation .price {
    display: block;
    margin-bottom: 18px;
}

.woocommerce div.product .woocommerce-variation-description {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ---- Quantity + add to cart row ---- */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 28px;
}

.woocommerce div.product form.cart.variations_form {
    display: block;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
    margin-top: 6px;
}

.woocommerce div.product form.cart div.quantity {
    display: flex;
    margin: 0;
    float: none;
}

.woocommerce div.product form.cart .quantity .qty {
    width: 76px;
    text-align: center;
    height: auto;
    align-self: stretch;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    margin: 0;
    padding: 14px 34px;
    flex: 0 1 auto;
}

.woocommerce div.product form.cart .single_add_to_cart_button.disabled {
    background: var(--card-bg);
    color: var(--grey);
    border: 1px solid var(--border);
}

/* Grouped products: table of child items */
.woocommerce div.product form.cart.grouped_form {
    display: block;
}

.woocommerce div.product form.cart .group_table td {
    border: none;
    padding: 10px 8px;
    vertical-align: middle;
    color: var(--grey);
}

.woocommerce div.product form.cart .group_table td.label a {
    color: var(--white);
}

/* ---- Product meta ----
   Moved (via flex order above) to sit right under the title as a
   compact subtitle line, so styled lighter than a bottom-of-summary
   footer: no divider, small label, gold brand name. */
.woocommerce div.product .product_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin: 0 0 18px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    color: var(--grey);
}

.woocommerce div.product .product_meta > span {
    display: block;
}

.woocommerce div.product .product_meta a {
    color: var(--gold);
    text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
    text-decoration: underline;
}

.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 35px;
}

.woocommerce div.product .woocommerce-tabs {
    padding-top: 10px;
}

/* Flat underline tabs — matches the pattern most storefronts use
   (Amazon, ASOS, Nike, Shopify themes) and sidesteps WooCommerce
   core's boxed-tab "folded corner" notch entirely, since there's no
   box to fold. */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 36px;
    border-bottom: 1px solid var(--border);
    padding: 0;
    margin: 0 0 36px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    content: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    content: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    color: var(--grey);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    padding: 0 0 16px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--white);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Defensive: guard against any WooCommerce-core rule re-asserting a
   background on the active tab (the boxed-tab default it replaces). */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: var(--grey);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    position: relative;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    font-size: 1rem;
}

/* WooCommerce repeats the active tab's own label as an <h2> inside the
   panel ("Description", "Additional information") — redundant with the
   tab bar above. Hide visually only; kept in the DOM for a11y/SEO. */
.woocommerce div.product .woocommerce-Tabs-panel--description > h2:first-child,
.woocommerce div.product .woocommerce-Tabs-panel--additional_information > h2:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Additional information / attribute table */
.woocommerce div.product .woocommerce-tabs table.shop_attributes {
    width: 100%;
    border: 1px solid var(--border);
    border-collapse: collapse;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes tr {
    border-bottom: 1px solid var(--border);
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes tr:last-child {
    border-bottom: none;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes th,
.woocommerce div.product .woocommerce-tabs table.shop_attributes td {
    padding: 10px 20px;
    border-right: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes th {
    width: 200px;
    color: var(--white);
    background: var(--card-bg);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes td {
    color: var(--grey);
    font-style: normal;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes td p {
    margin: 0;
}

/* Reviews tab — name+text on the left, star rating and a dd/mm/yy
   date (stacked) on the right. Matches the markup in the
   woocommerce/single-product/review.php template override, which
   drops the avatar and prints author/time as direct children instead
   of wrapping them in a <p class="meta">. */
.woocommerce #reviews #comments ol.commentlist {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

.woocommerce #reviews #comments ol.commentlist li {
    margin-bottom: 20px;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "name  stars"
        "text  date";
    column-gap: 24px;
    row-gap: 8px;
    align-items: start;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    /* WooCommerce core reserves this margin for the avatar gutter;
       the review.php override removes the avatar, so zero it out. */
    margin: 0;
    padding: 20px 22px;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .woocommerce-review__author {
    grid-area: name;
    align-self: end;
    font-style: normal;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--white);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating {
    grid-area: stars;
    justify-self: end;
    margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .woocommerce-review__published-date {
    grid-area: date;
    justify-self: end;
    color: var(--grey);
    font-size: 0.78rem;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description {
    grid-area: text;
    color: var(--grey);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .woocommerce #reviews #comments ol.commentlist li .comment-text {
        grid-template-columns: 1fr;
        grid-template-areas:
            "name"
            "stars"
            "text"
            "date";
    }

    .woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating,
    .woocommerce #reviews #comments ol.commentlist li .comment-text .woocommerce-review__published-date {
        justify-self: start;
    }
}

.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 0;
    padding: 12px 14px;
}

.woocommerce #review_form #respond textarea:focus,
.woocommerce #review_form #respond input[type="text"]:focus,
.woocommerce #review_form #respond input[type="email"]:focus {
    border-color: var(--gold);
    outline: none;
}

/* Every field's label was plain unstyled body copy, and Name/Email
   used the browser's default 30-character input width sitting inline
   with the label -- tiny boxes unrelated to the rest of the form.
   Give every label the same treatment as the site's other form labels,
   and let Name/Email sit in a proper two-column row. */
.woocommerce #review_form #respond label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
    color: var(--grey);
}

.woocommerce #review_form #respond #commentform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
}

.woocommerce #review_form #respond #commentform > * {
    grid-column: 1 / -1;
}

/* More specific than the reset above (extra #commentform on the
   selector) so these two win and sit side by side. */
.woocommerce #review_form #respond #commentform > .comment-form-author,
.woocommerce #review_form #respond #commentform > .comment-form-email {
    grid-column: span 1;
    margin: 0;
}

@media (max-width: 600px) {
    .woocommerce #review_form #respond #commentform > .comment-form-author,
    .woocommerce #review_form #respond #commentform > .comment-form-email {
        grid-column: 1 / -1;
    }
}

/* Checkbox row reads as a sentence, not a form field -- keep it inline
   and undo the block/uppercase label treatment above. */
.woocommerce #review_form #respond .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.woocommerce #review_form #respond .comment-form-cookies-consent label {
    display: inline;
    margin: 0;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
    color: var(--grey);
}

/* Native checkbox ("save my details") -- recolour to match the brand
   instead of the browser's default blue. */
.woocommerce #review_form #respond input[type="checkbox"] {
    accent-color: var(--gold);
    margin-top: 4px;
}

/* "Add a review" isn't a real heading tag (WooCommerce renders a
   <span role="heading">), so it inherits plain body copy by default. */
.woocommerce span.comment-reply-title {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    font-size: 1rem;
}

.woocommerce span.comment-reply-title small a {
    margin-left: 12px;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    color: var(--grey);
    font-size: 0.8rem;
    text-decoration: none;
}

.woocommerce span.comment-reply-title small a:hover {
    color: var(--gold);
}

/* Separate the existing reviews from the "leave a review" form */
.woocommerce #review_form_wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* Related & upsell product grids inherit the shop grid card styling */
.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 0;
}

.woocommerce div.product .related.products ul.products::before,
.woocommerce div.product .related.products ul.products::after,
.woocommerce div.product .upsells.products ul.products::before,
.woocommerce div.product .upsells.products ul.products::after {
    content: none;
}

.woocommerce div.product .related.products ul.products li.product,
.woocommerce div.product .upsells.products ul.products li.product {
    width: 100%;
    margin: 0;
    float: none;
}

/* ---- Cart layout ---- */
.woocommerce-cart .woocommerce table.shop_table {
    background: var(--card-bg);
}

.woocommerce-cart table.cart td.product-name a {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.woocommerce-cart table.cart .product-remove a {
    color: var(--grey) !important;
    background: transparent;
    font-size: 1.3rem;
}

.woocommerce-cart table.cart .product-remove a:hover {
    color: var(--gold) !important;
    background: transparent;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    background: var(--secondary);
    width: auto;
}

/* Totals box = sticky order-summary card */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 28px;
    position: sticky;
    top: 100px;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
    border: none;
    background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals .order-total .amount {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: var(--primary);
    width: 100%;
    border-radius: 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--primary-light);
}

/* ---- Checkout layout ---- */
.woocommerce-checkout form.checkout .col2-set {
    float: none;
    width: 100%;
}

.woocommerce-checkout form.checkout .col2-set .col-1,
.woocommerce-checkout form.checkout .col2-set .col-2 {
    float: none;
    width: 100%;
}

/* Billing/shipping sections rendered as cards */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 25px;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    font-size: 1.05rem;
}

/* Order review + payment = summary card */
.woocommerce-checkout #order_review {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 28px;
}

.woocommerce-checkout #order_review table.shop_table {
    border: none;
    background: transparent;
}

.woocommerce-checkout #order_review .order-total .amount {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

/* Payment methods styled like the mockup's selectable rows */
.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
    border: 1px solid var(--border);
    padding: 16px 18px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: var(--primary);
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--white);
}

.woocommerce-checkout #payment div.payment_box {
    background: var(--secondary);
    color: var(--grey);
    border-radius: 0;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--secondary);
}

.woocommerce-checkout #payment #place_order {
    background: var(--primary);
    width: 100%;
    border-radius: 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px;
}

.woocommerce-checkout #payment #place_order:hover {
    background: var(--primary-light);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    color: var(--grey);
    font-size: 0.85rem;
}

/* Two-column checkout on desktop, like the mockup */
@media (min-width: 993px) {
    .woocommerce-checkout form.checkout.woocommerce-checkout {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 30px;
        align-items: start;
    }

    .woocommerce-checkout form.checkout #customer_details {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .woocommerce-checkout form.checkout #order_review_heading,
    .woocommerce-checkout form.checkout #order_review {
        grid-column: 2;
    }

    .woocommerce-checkout form.checkout #order_review_heading {
        grid-row: 1;
        margin: 0 0 12px;
    }

    .woocommerce-checkout form.checkout #order_review {
        grid-row: 2;
        position: sticky;
        top: 100px;
    }
}

/* ---- Quantity ---- */
.woocommerce .quantity .qty {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 0;
    padding: 10px 8px;
}

/* ---- Form fields ---- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce input.input-text,
.woocommerce-page input.input-text,
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce table.cart td.actions .coupon .input-text {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 0;
    padding: 12px 14px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce input.input-text:focus {
    border-color: var(--gold);
    outline: none;
}

.woocommerce form .form-row label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: var(--grey);
}

.woocommerce input.input-text::placeholder,
.woocommerce textarea::placeholder {
    color: var(--grey);
}

/* ---- Cart & checkout tables ---- */
.woocommerce table.shop_table {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--white);
}

.woocommerce table.shop_table th {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78rem;
    color: var(--white);
}

.woocommerce table.shop_table td {
    border-top: 1px solid var(--border);
    color: var(--grey);
}

.woocommerce table.shop_table td a,
.woocommerce table.shop_table td .product-name a {
    color: var(--white);
}

.woocommerce table.shop_table .amount {
    color: var(--gold);
    font-family: var(--font-heading);
}

.woocommerce-cart table.cart img {
    max-width: 64px;
}

.woocommerce .cart-collaterals .cart_totals > h2,
.woocommerce-checkout #order_review_heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
}

/* ---- My Account (theme-owned, nav-less) ---- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.8;
}

.fbb-account-header {
    margin-bottom: 30px;
}

.fbb-account-header .dash-subtitle a {
    color: var(--gold);
    text-decoration: none;
}

/* Gold links everywhere in the account area (kills default purple/blue) */
.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--gold);
    text-decoration: none;
}

/* Keep .btn links gold-free inside account content (suite is global) */
.woocommerce-account .woocommerce-MyAccount-content a.btn {
    color: var(--white);
}

.woocommerce-account .woocommerce-MyAccount-content a.btn-gold {
    color: var(--dark);
}

.woocommerce-account .woocommerce-MyAccount-content a.btn-ghost {
    color: var(--grey);
}

.woocommerce-account .woocommerce-MyAccount-content a.btn-ghost:hover,
.woocommerce-account .woocommerce-MyAccount-content a.btn-secondary:hover {
    color: var(--gold);
}

/* Native Woo buttons on account pages (notices, orders table)
   match the brand secondary button. */
.woocommerce-account a.button,
.woocommerce-account button.button,
.woocommerce-account .woocommerce-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 0;
    font-size: 0.72rem;
    padding: 9px 18px;
}

.woocommerce-account a.button:hover,
.woocommerce-account button.button:hover,
.woocommerce-account .woocommerce-button:hover {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

/* Account-page notices: plain cards, not gold-topped banners */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    color: var(--grey);
}

.fbb-account-intro {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0 0 16px;
}

.fbb-account-intro strong {
    color: var(--white);
}

.fbb-account-intro a,
.fbb-card-link,
.woocommerce-account .woocommerce-MyAccount-content > p a {
    color: var(--gold);
    text-decoration: none;
}

.fbb-card-link {
    font-size: 0.8rem;
}

.fbb-account-stats .stat-change a {
    color: var(--gold);
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    font-size: 1.1rem;
}

/* ---- Overview: address cards ---- */
.fbb-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.fbb-address-card {
    border: 1px solid var(--border);
    padding: 22px;
}

.fbb-address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.fbb-address-card-header strong {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
}

.fbb-address-card-header a {
    color: var(--grey);
    font-size: 0.78rem;
    text-decoration: none;
}

.fbb-address-card-header a:hover {
    color: var(--gold);
}

.fbb-address-card address {
    color: var(--grey);
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.9;
}

/* ---- Native endpoint: orders table ---- */
.woocommerce-account table.woocommerce-orders-table th,
.woocommerce-account table.woocommerce-orders-table td {
    padding: 14px 16px;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    color: var(--white);
    font-weight: 600;
}

.woocommerce-account .woocommerce-orders-table__cell-order-status {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
}

.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status {
    color: var(--success, #2ECC71);
}

.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status {
    color: var(--gold);
}

.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status {
    color: #E74C3C;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-button {
    padding: 8px 18px;
    font-size: 0.72rem;
}

/* ---- Native endpoint: addresses ---- */
.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .woocommerce-customer-details address {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 24px;
    text-align: left;
}

/* Flatten the header so the title, address and edit button stack left */
.woocommerce-account .woocommerce-Address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce-account .woocommerce-Address-title {
    display: contents;
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
    order: 1;
    margin: 0 0 14px;
    font-size: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    text-align: left;
}

.woocommerce-account .woocommerce-Address address {
    order: 2;
    color: var(--grey);
    font-style: normal;
    line-height: 1.9;
    border: none;
    padding: 0;
    background: none;
}

.woocommerce-account .woocommerce-Address-title .edit {
    order: 3;
    margin-top: 18px;
    display: inline-block;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    padding: 9px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-account .woocommerce-Address-title .edit:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ---- Native endpoint: account details form ---- */
.woocommerce-account .woocommerce-EditAccountForm fieldset {
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin: 24px 0;
}

.woocommerce-account .woocommerce-EditAccountForm legend {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    font-size: 0.85rem;
    padding: 0 10px;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input::after {
    color: var(--grey);
}

.woocommerce-account em {
    color: var(--grey);
    font-size: 0.8rem;
}

/* ---- Pagination ---- */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
    border-color: var(--border);
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    color: var(--white);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    color: var(--white);
}
