/* ===========================================
   WOOCOMMERCE — Hawksbury Timber
   Clean, professional product pages
   v3.2.0 — 2026-02-07  (checkout polish)
   =========================================== */

/* ---- Tokens ---- */
/* Fonts: --wc-font and --wc-font-heading inherit from Customizer via
   --font-primary and --font-heading. No hardcoded font families here. */
:root {
    --wc-navy: #2D3748;
    --wc-charcoal: #3C3C3B;
    --wc-gold: #C8A96E;
    --wc-sage: #A8B39B;
    --wc-sand: #C79A7F;
    --wc-cream: #F7F2E8;
    --wc-bg: #ffffff;
    --wc-white: #ffffff;
    --wc-text: #4A5568;
    --wc-text-light: #718096;
    --wc-border: #e2e8f0;
    --wc-font: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --wc-font-heading: var(--font-heading, var(--wc-font));
    --wc-mono: "IBM Plex Mono", "Courier New", monospace;
}

/* =============================================
   BASE — WooCommerce essentials (replaces wc defaults)
   ============================================= */
.woocommerce,
.woocommerce-page {
    font-family: var(--wc-font);
    color: var(--wc-navy);
    box-sizing: border-box;
}

.woocommerce *,
.woocommerce *::before,
.woocommerce *::after {
    box-sizing: border-box;
}

.woocommerce img {
    max-width: 100%;
    height: auto;
}

.woocommerce .clear::after,
.woocommerce .clear::before {
    content: "";
    display: table;
    clear: both;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    padding: 1rem 1.5rem !important;
    margin: 0 0 1.5rem !important;
    font-family: var(--wc-font) !important;
    font-size: 0.9rem !important;
    border: none !important;
    list-style: none !important;
    background: var(--wc-cream) !important;
    color: var(--wc-navy) !important;
    border-left: 4px solid var(--wc-navy) !important;
}

.woocommerce .woocommerce-error {
    border-left-color: #dc2626 !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.woocommerce .woocommerce-info {
    border-left-color: var(--wc-navy) !important;
}

.woocommerce .woocommerce-message {
    border-left-color: var(--wc-sage) !important;
}

/* Buttons inside notices — small, proportional, NOT floated */
.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-info a.button,
.woocommerce .woocommerce-error a.button,
.woocommerce .woocommerce-message a.woocommerce-Button,
.woocommerce .woocommerce-info a.woocommerce-Button,
.woocommerce .woocommerce-error a.woocommerce-Button {
    float: none !important;
    order: 2;
    margin: 0 !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.75rem !important;
    background: var(--wc-navy) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    border-radius: 0 !important;
    transition: background 0.15s ease;
    white-space: nowrap;
    line-height: 1.4 !important;
    display: inline-block !important;
}

.woocommerce .woocommerce-message a.button:hover,
.woocommerce .woocommerce-info a.button:hover,
.woocommerce .woocommerce-error a.button:hover,
.woocommerce .woocommerce-message a.woocommerce-Button:hover,
.woocommerce .woocommerce-info a.woocommerce-Button:hover,
.woocommerce .woocommerce-error a.woocommerce-Button:hover {
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
}

/* Hide WooCommerce default icons in notices */
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
    display: none !important;
}

.woocommerce .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Override theme's .entry-content ul { list-style-type: disc !important } for all WC lists */
.entry-content .woocommerce ul,
.entry-content .woocommerce ol,
.entry-content .woocommerce-MyAccount-navigation ul,
.entry-content .woocommerce-order-overview,
.entry-content .woocommerce-thankyou-order-details,
.entry-content .woocommerce-mini-cart,
.entry-content ul.woocommerce-error,
.entry-content .wc-proceed-to-checkout,
.entry-content #shipping_method {
    list-style: none !important;
    list-style-type: none !important;
}

.entry-content .woocommerce ul li::marker,
.entry-content .woocommerce-order-overview li::marker,
.entry-content .woocommerce-mini-cart li::marker,
.entry-content ul.woocommerce-error li::marker,
.entry-content #shipping_method li::marker {
    content: none !important;
    display: none !important;
}

/* =============================================
   LAYOUT — Containers
   ============================================= */
.wc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Cart & Checkout pages — constrain width */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

@media (min-width: 900px) {

    .woocommerce-cart .site-main,
    .woocommerce-checkout .site-main,
    .woocommerce-account .site-main {
        padding: 3rem 2rem 5rem;
    }
}

/* Page titles on cart/checkout/account — hide default (progress bar replaces) */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title {
    display: none !important;
}

.woocommerce-account .entry-title {
    font-family: var(--wc-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--wc-navy);
    margin: 0 0 2rem;
    padding: 0 0 1rem;
    border-bottom: 3px solid var(--wc-gold);
}

/* =============================================
   PROGRESS BAR — Shopping Cart → Checkout → Order Complete
   ============================================= */
.wc-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0 3rem;
    max-width: 720px;
    margin: 0 auto;
}

.wc-progress-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.wc-progress-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    font-family: var(--wc-font);
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.wc-progress-step__label {
    font-family: var(--wc-font);
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    font-weight: 600;
    color: #c0c0c0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

a.wc-progress-step__label:hover {
    color: var(--wc-navy);
}

/* Active step */
.wc-progress-step--active .wc-progress-step__number {
    background: var(--wc-sage);
    color: #ffffff;
}

.wc-progress-step--active .wc-progress-step__label {
    color: var(--wc-navy);
    font-weight: 800;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Done step */
.wc-progress-step--done .wc-progress-step__number {
    background: var(--wc-sage);
    color: #ffffff;
}

.wc-progress-step--done .wc-progress-step__label {
    color: #a0aec0;
}

/* Arrow between steps */
.wc-progress-arrow {
    color: #d0d0d0;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin: 0 0.25rem;
}

/* Mobile — horizontal scroll so steps don’t go off screen */
@media (max-width: 575px) {
    .wc-progress-bar {
        gap: 0.5rem;
        padding: 1.5rem 1rem 2rem;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .wc-progress-step {
        flex-shrink: 0;
    }

    .wc-progress-step__label {
        font-size: 0.75rem !important;
    }

    .wc-progress-step--active .wc-progress-step__label {
        font-size: 0.9rem !important;
    }

    .wc-progress-arrow {
        font-size: 0.85rem;
    }
}

/* =============================================
   CUSTOM CART LAYOUT
   ============================================= */
.wc-cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .wc-cart-layout {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* Cart item list */
.wc-cart-list {
    border-top: 1px solid #eee;
}

/* Single cart item row */
.wc-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 0 1.25rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.wc-cart-item__image {
    width: 80px;
}

.wc-cart-item__image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    border: 1px solid #eee;
}

.wc-cart-item__image a {
    display: block;
    line-height: 0;
}

/* Details column: name, price, remove */
.wc-cart-item__details {
    min-width: 0;
}

.wc-cart-item__name {
    font-family: var(--wc-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wc-navy);
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.wc-cart-item__name a {
    color: var(--wc-navy);
    text-decoration: none;
}

.wc-cart-item__name a:hover {
    color: var(--wc-gold);
}

.wc-cart-item__price {
    font-family: var(--wc-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wc-text);
    margin-bottom: 0.3rem;
}

.wc-cart-item__remove {
    font-size: 0;
}

.wc-cart-item__remove a.wc-remove-link,
.wc-cart-item__remove a.remove {
    font-size: 0.8rem !important;
    color: #b0b0b0 !important;
    text-decoration: none !important;
    font-family: var(--wc-font);
    font-weight: 500;
    display: inline;
    background: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
}

.wc-cart-item__remove a.wc-remove-link:hover,
.wc-cart-item__remove a.remove:hover {
    color: #dc2626 !important;
    background: none !important;
}

/* Quantity column */
.wc-cart-item__qty {
    text-align: center;
    min-width: 50px;
}

.wc-cart-item__qty .quantity {
    display: inline-flex;
    align-items: center;
}

.wc-cart-item__qty .qty {
    width: 48px !important;
    height: 36px;
    text-align: center;
    border: 1px solid #e2e8f0 !important;
    font-family: var(--wc-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--wc-navy);
    background: var(--wc-bg) !important;
    padding: 0 !important;
    -moz-appearance: textfield;
}

/* Subtotal column */
.wc-cart-item__subtotal {
    text-align: right;
    font-family: var(--wc-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--wc-navy);
    white-space: nowrap;
}

/* Actions row (coupon + update) */
.wc-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.wc-cart-coupon {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wc-cart-coupon input.input-text {
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-family: var(--wc-font);
    width: 180px;
}

.wc-cart-coupon .button,
.wc-update-cart {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: var(--wc-navy) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease;
}

.wc-cart-coupon .button:hover,
.wc-update-cart:hover {
    background: var(--wc-charcoal) !important;
}

/* Cart sidebar */
.wc-cart-sidebar .cart_totals {
    background: #f9f9f9;
    padding: 2rem;
}

/* Mobile: stack cart items */
@media (max-width: 575px) {
    .wc-cart-item {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
    }

    .wc-cart-item__image {
        grid-row: 1 / 3;
        width: 64px;
    }

    .wc-cart-item__image img {
        width: 56px;
        height: 56px;
    }

    .wc-cart-item__qty {
        justify-self: start;
    }

    .wc-cart-item__subtotal {
        text-align: left;
    }

    .wc-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-cart-coupon {
        width: 100%;
    }

    .wc-cart-coupon input.input-text {
        flex: 1;
    }
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.woocommerce .woocommerce-breadcrumb {
    font-family: var(--wc-font);
    font-size: 0.85rem;
    color: var(--wc-text);
    margin: 0 0 2rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--wc-navy);
    text-decoration: none;
    font-weight: 600;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--wc-gold);
}

/* =============================================
   SINGLE PRODUCT — Two-Column Grid
   ============================================= */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 55fr 45fr;
        gap: 3.5rem;
        align-items: start;
    }
}

/* ---- Gallery ---- */
.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    margin: 0;
    transition: all cubic-bezier(0.795, -0.035, 0, 1) 0.5s;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
    display: block;
}

/* FlexSlider direction nav (prev/next arrows inside gallery) */
.woocommerce div.product .woocommerce-product-gallery .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce div.product .woocommerce-product-gallery .flex-direction-nav li {
    list-style: none;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.woocommerce div.product .woocommerce-product-gallery>.woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image>a>img {
    width: 100% !important;
    height: auto !important;
    display: block;
    background: #f8f8f8;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--wc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    /* hide WC's default text content */
    line-height: 0;
    border: 2px solid var(--wc-navy);
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Replace WC's font-icon with an SVG magnifying glass */
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
    content: '' !important;
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    background: var(--wc-navy);
    color: #ffffff;
}

.woocommerce div.product .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.75rem !important;
    margin: 1rem 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.woocommerce div.product .flex-control-thumbs li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

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

.woocommerce div.product .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

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

/* Active thumbnail — WooCommerce uses .flex-active on the img */
.woocommerce div.product .flex-control-thumbs li:has(img.flex-active) {
    border-color: var(--wc-navy);
}

.woocommerce div.product .flex-control-thumbs li:has(img.flex-active) img {
    opacity: 1;
}

/* ---- Summary ---- */
.woocommerce div.product .summary {
    padding: 0;
    float: none !important;
    width: 100% !important;
}

.woocommerce div.product .product_title {
    font-family: var(--wc-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--wc-navy);
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    border: none;
    border-bottom: 3px solid var(--wc-gold);
}

.woocommerce div.product .summary .price {
    font-family: var(--wc-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wc-navy);
    margin: 0 0 1.25rem;
    padding: 0.75rem 0;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    display: block;
}

.woocommerce div.product .summary .price del {
    opacity: 0.45;
    font-size: 0.85em;
    margin-right: 0.75rem;
    font-weight: 400;
}

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

/* Star rating inline with price or standalone */
.woocommerce div.product .summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.woocommerce .star-rating {
    color: var(--wc-gold);
    font-size: 0.9rem;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: var(--wc-font);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--wc-text);
    margin: 0 0 1.5rem;
}

/* =============================================
   ADD TO CART FORM
   ============================================= */
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    flex-wrap: wrap;
}

.woocommerce div.product form.cart .quantity {
    display: inline-flex;
    align-items: center;
    margin: 0;
    border: 2px solid #d1d5db;
    background: var(--wc-bg);
    height: 56px;
}

.woocommerce div.product form.cart .quantity .qty {
    width: 70px !important;
    height: 52px;
    text-align: center;
    border: none !important;
    font-family: var(--wc-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--wc-navy);
    background: transparent !important;
    padding: 0 !important;
    -moz-appearance: textfield;
}

.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce div.product form.cart .quantity .qty:focus {
    outline: none;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button[type="submit"] {
    flex: 1 1 auto;
    min-width: 200px;
    height: 56px;
    padding: 0 2rem !important;
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
    border: 2px solid var(--wc-gold) !important;
    border-radius: 0 !important;
    font-family: var(--wc-font) !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    line-height: 1 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart button[type="submit"]:hover {
    background: var(--wc-navy) !important;
    color: #ffffff !important;
    border-color: var(--wc-navy) !important;
    transform: none;
    box-shadow: none !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Variations */
.woocommerce div.product form.cart .variations {
    width: 100%;
    margin-bottom: 0.5rem;
}

.woocommerce div.product form.cart .variations td {
    padding: 0.5rem 0;
    vertical-align: middle;
    display: block;
}

.woocommerce div.product form.cart .variations td.label {
    padding-bottom: 0.25rem;
}

.woocommerce div.product form.cart .variations label {
    font-family: var(--wc-font);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wc-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--wc-navy);
    font-family: var(--wc-font);
    font-size: 0.95rem;
    color: var(--wc-navy);
    background: var(--wc-bg);
    cursor: pointer;
}

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

.woocommerce div.product form.cart .variations .reset_variations {
    font-size: 0.8rem;
    color: var(--wc-text);
    text-decoration: underline;
}

/* ---- Product Meta (SKU, Categories, Tags) ---- */
.woocommerce div.product .product_meta {
    font-family: var(--wc-font);
    font-size: 0.85rem;
    color: var(--wc-text);
    margin: 1.5rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid #e2e8f0;
}

.woocommerce div.product .product_meta>span {
    display: block;
    margin-bottom: 0.4rem;
}

.woocommerce div.product .product_meta>span:last-child {
    margin-bottom: 0;
}

.woocommerce div.product .product_meta a {
    color: var(--wc-navy);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
    color: var(--wc-gold);
}

/* ---- Stock Status ---- */
.woocommerce div.product .stock {
    font-family: var(--wc-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.75rem;
    display: inline-block;
    margin: 0.5rem 0 1rem;
}

.woocommerce div.product .stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.woocommerce div.product .stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* =============================================
   PRODUCT TABS — Span full width below grid
   ============================================= */
/* ── Vertical Product Tabs ─────────────────────────────────────── */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin: 2rem 0 0;
    clear: both;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    border: 1px solid #e0e0e0;
}

/* Left-hand tab navigation */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid #e0e0e0;
    background: #f9f9f9;
    overflow: visible;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:last-child {
    border-bottom: none !important;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.9rem 1.25rem;
    font-family: var(--wc-font);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wc-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--wc-navy);
    background: #fff;
    border-left-color: var(--wc-gold);
    font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--wc-navy);
    background: #fff;
}

/* Right-hand content panel */
.woocommerce div.product .woocommerce-tabs .wc-tab {
    padding: 2rem 2.5rem;
    font-family: var(--wc-font);
    color: var(--wc-text);
    line-height: 1.75;
}

/* Hide WooCommerce's auto-generated tab heading (e.g. "Description")
   because we write our own headings in the product editor. */
.woocommerce div.product .woocommerce-tabs .wc-tab>h2:first-child {
    display: none !important;
}

/* Style all content headings inside tabs consistently */
.woocommerce div.product .woocommerce-tabs .wc-tab h2 {
    font-family: var(--wc-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wc-navy);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wc-gold);
}

.woocommerce div.product .woocommerce-tabs .wc-tab p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Additional info table */
.woocommerce div.product .woocommerce-tabs .wc-tab table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce div.product .woocommerce-tabs .wc-tab table.shop_attributes th {
    width: 30%;
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--wc-cream);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.woocommerce div.product .woocommerce-tabs .wc-tab table.shop_attributes td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* =============================================
   RELATED PRODUCTS
   ============================================= */
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products,
.woocommerce div.product section.related,
.woocommerce div.product section.upsells {
    grid-column: 1 / -1 !important;
    margin: 2.5rem 0 0 !important;
    padding: 2rem 0 0 !important;
    border-top: 2px solid var(--wc-navy) !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

.woocommerce div.product .related.products>h2,
.woocommerce div.product .upsells.products>h2,
.woocommerce div.product section.related>h2,
.woocommerce div.product section.upsells>h2 {
    font-family: var(--wc-font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--wc-navy) !important;
    margin: 0 0 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--wc-gold) !important;
}

/* Related / Upsell product grid
   auto-fill + minmax = cards grow to fill space when few items,
   max 3 cols when many items. Single product gets ~50% width min. */
.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products,
.woocommerce div.product section.related ul.products,
.woocommerce div.product section.upsells ul.products,
section.related.products ul.products,
section.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce div.product .related.products ul.products li.product,
.woocommerce div.product .upsells.products ul.products li.product,
.woocommerce div.product section.related ul.products li.product,
.woocommerce div.product section.upsells ul.products li.product,
section.related.products ul.products li.product,
section.upsells.products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: left;
}

.woocommerce div.product .related.products ul.products li.product img,
.woocommerce div.product .upsells.products ul.products li.product img,
section.related.products ul.products li.product img,
section.upsells.products ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.woocommerce div.product .related.products ul.products li.product h2,
.woocommerce div.product .upsells.products ul.products li.product h2,
section.related.products ul.products li.product h2,
section.upsells.products ul.products li.product h2 {
    font-family: var(--wc-font-heading) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--wc-navy) !important;
    margin: 0.75rem 0 0.35rem !important;
    line-height: 1.3 !important;
}

.woocommerce div.product .related.products ul.products li.product .price,
.woocommerce div.product .upsells.products ul.products li.product .price,
section.related.products ul.products li.product .price,
section.upsells.products ul.products li.product .price {
    font-size: 0.95rem !important;
    color: var(--wc-navy) !important;
    margin: 0 0 0.75rem !important;
    display: block !important;
}

.woocommerce div.product .related.products ul.products li.product .price .wc-price-suffix,
.woocommerce div.product .upsells.products ul.products li.product .price .wc-price-suffix,
section.related.products ul.products li.product .price .wc-price-suffix,
section.upsells.products ul.products li.product .price .wc-price-suffix {
    font-size: 0.8rem !important;
    display: inline !important;
}

.woocommerce div.product .related.products ul.products li.product .button,
.woocommerce div.product .upsells.products ul.products li.product .button,
.woocommerce div.product .related.products ul.products li.product a.add_to_cart_button,
.woocommerce div.product .upsells.products ul.products li.product a.add_to_cart_button,
section.related.products ul.products li.product .button,
section.related.products ul.products li.product a.add_to_cart_button {
    display: inline-block !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
    border: none !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.woocommerce div.product .related.products ul.products li.product .button:hover,
.woocommerce div.product .upsells.products ul.products li.product .button:hover,
.woocommerce div.product .related.products ul.products li.product a.add_to_cart_button:hover,
.woocommerce div.product .upsells.products ul.products li.product a.add_to_cart_button:hover,
section.related.products ul.products li.product .button:hover,
section.related.products ul.products li.product a.add_to_cart_button:hover {
    background: var(--wc-navy) !important;
    color: var(--wc-white) !important;
}

/* =============================================
   SALE BADGE
   ============================================= */
.woocommerce span.onsale {
    background: var(--wc-navy);
    color: var(--wc-gold);
    border-radius: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--wc-mono);
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    min-width: auto;
    min-height: auto;
    line-height: 1.4;
}

/* =============================================
   SHOP ARCHIVE / PRODUCT GRID
   ============================================= */
.wc-archive-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--wc-gold);
}

.wc-archive-title {
    font-family: var(--wc-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--wc-navy);
    margin: 0;
}

/* Result count + ordering bar */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-result-count {
    font-family: var(--wc-font);
    color: var(--wc-text);
    font-size: 0.85rem;
}

.woocommerce .woocommerce-ordering select {
    border: 2px solid var(--wc-navy);
    padding: 0.6rem 1rem;
    font-family: var(--wc-font);
    font-size: 0.85rem;
    color: var(--wc-navy);
    background: var(--wc-bg);
    cursor: pointer;
}

/* Product Grid – ONLY target the <ul>, never the <section class="related products"> */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Ensure section.related / section.upsells stays block (not grid) */
.woocommerce div.product section.related,
.woocommerce div.product section.upsells,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
    display: block !important;
}

@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Product Card */
.woocommerce ul.products li.product,
.woocommerce .products .product {
    list-style: none !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--wc-bg);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--wc-navy);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Image — aspect ratio for consistent cards */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: auto !important;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-family: var(--wc-font-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--wc-navy) !important;
    margin: 0 !important;
    padding: 1.25rem 1.25rem 0.5rem !important;
    line-height: 1.35 !important;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    font-family: var(--wc-mono) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--wc-navy) !important;
    padding: 0 1.25rem 1rem !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.45;
    font-size: 0.85em;
    margin-right: 0.5rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Price Unit Suffix (/ lm, / m², / board, / pack) */
.wc-price-suffix {
    font-weight: 400;
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
}

/* Archive Add to Basket Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
    display: block !important;
    margin: auto 1.25rem 1.25rem !important;
    padding: 0.875rem 1.5rem !important;
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--wc-font) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: var(--wc-navy) !important;
    color: #ffffff !important;
}

/* =============================================
   BUTTONS — Global
   ============================================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--wc-navy) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem !important;
    font-family: var(--wc-font) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
    transform: none;
    box-shadow: none !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
    border: 2px solid var(--wc-gold) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--wc-navy) !important;
    color: #ffffff !important;
    border-color: var(--wc-navy) !important;
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce input.button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* (Notices consolidated into base rules at top of file) */

/* =============================================
   CART PAGE
   ============================================= */

/* ---- Generic shop_table base ---- */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    border-radius: 0;
    background: var(--wc-bg);
    margin: 0;
    font-family: var(--wc-font);
    font-size: 0.9rem;
}

/* Fallback: style the default WooCommerce cart table if custom template isn't loaded */
.woocommerce table.shop_table.cart thead {
    display: none;
}

.woocommerce table.shop_table.cart {
    border-spacing: 0;
}

.woocommerce table.shop_table.cart td {
    padding: 1.25rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--wc-navy);
    vertical-align: middle;
}

.woocommerce table.shop_table.cart .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #eee;
}

.woocommerce table.shop_table.cart .product-name a {
    color: var(--wc-navy);
    text-decoration: none;
    font-weight: 700;
}

.woocommerce table.shop_table.cart .product-name a:hover {
    color: var(--wc-gold);
}

.woocommerce table.shop_table.cart .product-subtotal {
    font-weight: 700;
    color: var(--wc-navy);
}

.woocommerce table.shop_table.cart .product-remove a {
    color: #ccc !important;
    font-size: 1.2rem;
}

.woocommerce table.shop_table.cart .product-remove a:hover {
    color: #dc2626 !important;
    background: transparent !important;
}

.woocommerce table.shop_table.cart .product-quantity .qty {
    width: 50px;
    text-align: center;
    border: 1px solid #e2e8f0;
    padding: 0.4rem;
    font-family: var(--wc-mono);
}

/* ---- Cart Totals Sidebar ---- */
.woocommerce .cart-collaterals {
    margin-top: 0;
}

.woocommerce .cart_totals {
    background: #f9f9f9;
    padding: 2rem;
    border: none;
    width: 100%;
    max-width: none;
    margin: 0;
}

.woocommerce .cart_totals h2 {
    font-family: var(--wc-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--wc-navy);
    margin: 0 0 1.5rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce .cart_totals table.shop_table {
    border: none;
    margin: 0;
    background: transparent;
}

.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
    padding: 0.875rem 0;
    border-bottom: 1px solid #e8e8e8;
    background: transparent;
    font-size: 0.9rem;
}

.woocommerce .cart_totals table.shop_table th {
    font-weight: 600;
    color: var(--wc-navy);
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: var(--wc-font);
    font-size: 0.9rem !important;
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: transparent !important;
    padding: 0.875rem 0 !important;
}

.woocommerce .cart_totals table.shop_table td {
    text-align: right;
    font-family: var(--wc-font);
    color: var(--wc-navy);
    border-bottom: 1px solid #e8e8e8 !important;
}

/* Shipping options — remove bullets, clean layout */
.woocommerce .cart_totals .woocommerce-shipping-methods,
.woocommerce .cart_totals #shipping_method {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .cart_totals .woocommerce-shipping-methods li,
.woocommerce .cart_totals #shipping_method li {
    list-style: none !important;
    margin: 0 0 0.4rem !important;
    padding: 0 !important;
    font-size: 0.9rem;
}

.woocommerce .cart_totals .woocommerce-shipping-methods li::before,
.woocommerce .cart_totals #shipping_method li::before {
    display: none !important;
    content: none !important;
}

.woocommerce .cart_totals .woocommerce-shipping-methods li label,
.woocommerce .cart_totals #shipping_method li label {
    font-weight: 500;
    cursor: pointer;
    color: var(--wc-navy);
}

.woocommerce .cart_totals .woocommerce-shipping-methods li input[type="radio"],
.woocommerce .cart_totals #shipping_method li input[type="radio"] {
    margin-right: 0.4rem;
    accent-color: var(--wc-navy);
}

.woocommerce .cart_totals .woocommerce-shipping-destination {
    font-size: 0.8rem;
    color: var(--wc-text);
    margin-top: 0.5rem;
}

.woocommerce .cart_totals .shipping-calculator-button {
    font-size: 0.8rem;
    color: var(--wc-text);
    text-decoration: underline;
}

.woocommerce .cart_totals table.shop_table tr.order-total th,
.woocommerce .cart_totals table.shop_table tr.order-total td {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
}

.woocommerce .cart_totals table.shop_table tfoot th,
.woocommerce .cart_totals table.shop_table tfoot td {
    background: transparent !important;
    border-top: none !important;
}

/* Proceed to Checkout — prominent CTA */
.woocommerce .wc-proceed-to-checkout {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: none;
}

.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.button.checkout-button,
.woocommerce .wc-proceed-to-checkout a.button.alt.checkout-button,
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 1.1rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    background: var(--wc-navy) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    text-decoration: none !important;
    font-family: var(--wc-font) !important;
    box-sizing: border-box !important;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.button.alt.checkout-button:hover,
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--wc-charcoal) !important;
    color: #ffffff !important;
}

/* ---- Generic shop_table (non-cart, e.g. order details) ---- */
.woocommerce table.shop_table thead {
    background: var(--wc-cream);
}

/* Generic shop_table th — for order details, NOT cart totals */
.woocommerce table.shop_table:not(.cart) th {
    padding: 0.875rem 1rem;
    font-weight: 700;
    color: var(--wc-navy);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--wc-navy);
    text-align: left;
}

/* Override: cart_totals th should NOT get the heavy generic styles */
.woocommerce .cart_totals table.shop_table thead {
    background: transparent !important;
}

.woocommerce table.shop_table:not(.cart) td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--wc-navy);
    vertical-align: middle;
}

.woocommerce table.shop_table:not(.cart) tfoot th,
.woocommerce table.shop_table:not(.cart) tfoot td {
    font-weight: 700;
    background: var(--wc-cream);
    border-top: 2px solid var(--wc-navy);
}

/* =============================================
   FORMS — Uncode-style: subtle, minimal, uncluttered
   ============================================= */
.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

/* Labels — subtle, readable */
.woocommerce form .form-row label {
    font-family: var(--wc-font);
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.4rem;
    display: block;
    font-size: 0.9rem;
}

.woocommerce form .form-row label .required {
    color: #dc2626;
}

/* Inputs — very light background, no heavy border (Uncode-like) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout #billing_email,
.woocommerce-checkout #billing_phone,
.woocommerce-checkout .input-text {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0.85rem 1rem;
    font-family: var(--wc-font);
    font-size: 0.95rem;
    color: #1a202c;
    background: #f8f8f8;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.woocommerce form .form-row textarea {
    min-height: 100px;
    resize: vertical;
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */

/*
 * Classic WooCommerce checkout structure:
 *   .woocommerce  (wrapper — must be block, NOT grid)
 *     .wc-progress-bar
 *     <form.checkout.woocommerce-checkout>
 *       #customer_details (.col2-set)  — billing + shipping
 *       .woocommerce-additional-fields — order notes
 *       #order_review_heading
 *       #order_review                  — order table + payment
 *
 * The TWO-COLUMN grid goes on the <form>, not the wrapper.
 */

/* Wrapper must NOT be grid — just a block container */
.woocommerce-checkout .woocommerce {
    display: block !important;
}

/* The checkout form gets the two-column grid on desktop */
.woocommerce-checkout form.checkout,
.woocommerce form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {

    .woocommerce-checkout form.checkout,
    .woocommerce form.checkout.woocommerce-checkout {
        grid-template-columns: 1.2fr 1fr;
        gap: 0 2.5rem;
        align-items: start;
    }

    /* Left column: billing/shipping + additional fields */
    .woocommerce-checkout form.checkout #customer_details,
    .woocommerce-checkout form.checkout .woocommerce-additional-fields {
        grid-column: 1;
    }

    /* Right column: order review heading + order review */
    .woocommerce-checkout form.checkout #order_review_heading {
        grid-column: 2;
        grid-row: 1;
    }

    .woocommerce-checkout form.checkout #order_review,
    .woocommerce-checkout form.checkout .woocommerce-checkout-review-order {
        grid-column: 2;
        grid-row: 2 / 5;
    }
}

/* Billing / Shipping / Additional — no cards, just section title + divider (Uncode-style) */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    background: transparent;
    padding: 0 0 1.5rem;
    margin-bottom: 0;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
    font-family: var(--wc-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid #eee;
}

/* Two-column form fields for first/last name etc. */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.woocommerce-checkout .form-row-wide {
    grid-column: 1 / -1;
}

.woocommerce-checkout .form-row-first {
    grid-column: 1;
}

.woocommerce-checkout .form-row-last {
    grid-column: 2;
}

@media (max-width: 575px) {

    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        grid-column: 1;
    }
}

/* col2-set: STACK billing above shipping (single column) —
   the overall form grid already provides left/right split with order review */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #customer_details.col2-set {
    display: block !important;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Order review heading */
.woocommerce-checkout #order_review_heading {
    font-family: var(--wc-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--wc-navy);
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Order review (right column) — sticky on desktop, minimal box */
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout #order_review {
    background: transparent;
    padding: 1.25rem 0;
}

@media (min-width: 900px) {
    .woocommerce-checkout #order_review {
        position: sticky;
        top: 2rem;
    }
}

/* Order review table — override ALL generic shop_table styles */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    margin-bottom: 1.5rem;
    border: none !important;
    width: 100%;
    background: transparent !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead {
    display: none !important;
    background: transparent !important;
}

/* All cells: remove heavy borders and cream backgrounds */
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 0.875rem 0 !important;
    vertical-align: middle;
    font-size: 0.9rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
    color: var(--wc-navy);
    font-size: 0.9rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-family: var(--wc-mono);
    font-weight: 700;
    color: var(--wc-navy);
}

/* Tfoot rows — clean, no cream, no heavy borders */
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    padding: 0.875rem 0 !important;
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: transparent !important;
    font-family: var(--wc-font);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.9rem !important;
    color: var(--wc-navy);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    padding-top: 1.25rem !important;
    border-top: 2px solid var(--wc-navy) !important;
    border-bottom: none !important;
}

/* Shipping methods inside order review — remove bullets */
.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-methods,
.woocommerce-checkout .woocommerce-checkout-review-order-table #shipping_method,
.woocommerce-checkout #order_review .woocommerce-shipping-methods,
.woocommerce-checkout #order_review #shipping_method {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-methods li,
.woocommerce-checkout .woocommerce-checkout-review-order-table #shipping_method li,
.woocommerce-checkout #order_review .woocommerce-shipping-methods li,
.woocommerce-checkout #order_review #shipping_method li {
    list-style: none !important;
    margin: 0 0 0.3rem !important;
    padding: 0 !important;
    font-size: 0.9rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-methods li::before,
.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-methods li::marker,
.woocommerce-checkout .woocommerce-checkout-review-order-table #shipping_method li::before,
.woocommerce-checkout .woocommerce-checkout-review-order-table #shipping_method li::marker,
.woocommerce-checkout #order_review .woocommerce-shipping-methods li::before,
.woocommerce-checkout #order_review .woocommerce-shipping-methods li::marker,
.woocommerce-checkout #order_review #shipping_method li::before,
.woocommerce-checkout #order_review #shipping_method li::marker {
    display: none !important;
    content: none !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-methods li label,
.woocommerce-checkout #order_review .woocommerce-shipping-methods li label,
.woocommerce-checkout #order_review #shipping_method li label {
    font-weight: 500;
    cursor: pointer;
    color: var(--wc-navy);
    display: inline !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-methods li input[type="radio"],
.woocommerce-checkout #order_review .woocommerce-shipping-methods li input[type="radio"],
.woocommerce-checkout #order_review #shipping_method li input[type="radio"] {
    margin-right: 0.4rem;
    accent-color: var(--wc-navy);
}

/* Nuclear: kill ALL list bullets inside #order_review and #payment */
.woocommerce-checkout #order_review ul,
.woocommerce-checkout #order_review ol,
.woocommerce-checkout #payment ul,
.woocommerce-checkout #payment ol {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.woocommerce-checkout #order_review li,
.woocommerce-checkout #payment li {
    list-style: none !important;
}

.woocommerce-checkout #order_review li::before,
.woocommerce-checkout #order_review li::marker,
.woocommerce-checkout #payment li::before,
.woocommerce-checkout #payment li::marker {
    display: none !important;
    content: none !important;
    font-size: 0 !important;
}

/* Payment section — flattened, fewer boxes */
.woocommerce #payment,
.woocommerce-checkout #payment {
    background: transparent;
    padding: 1.25rem 0 0;
    border: none;
    border-top: 1px solid #e8e8e8;
    margin-top: 1rem;
}

.woocommerce #payment .payment_methods,
.woocommerce-checkout #payment .payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.woocommerce #payment .payment_methods li,
.woocommerce-checkout #payment .payment_methods li {
    list-style: none !important;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    transition: border-color 0.15s ease;
}

.woocommerce #payment .payment_methods li::before,
.woocommerce #payment .payment_methods li::marker,
.woocommerce-checkout #payment .payment_methods li::before,
.woocommerce-checkout #payment .payment_methods li::marker {
    display: none !important;
    content: none !important;
}

.woocommerce #payment .payment_methods li:hover {
    border-bottom-color: #ddd;
}

.woocommerce #payment .payment_methods li:last-child {
    border-bottom: none;
}

.woocommerce #payment .payment_methods li input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: var(--wc-navy);
}

.woocommerce #payment .payment_methods li label {
    font-weight: 600;
    color: var(--wc-navy);
    cursor: pointer;
    font-size: 0.9rem;
    display: inline !important;
}

/* Card details — no nested box, flows with content */
.woocommerce #payment .payment_box {
    background: transparent;
    padding: 0.5rem 0 0;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--wc-text);
    line-height: 1.6;
    border: none;
}

.woocommerce #payment .payment_box::before {
    display: none;
    /* Remove the default WC arrow */
}

/* Place Order — same prominent CTA style */
.woocommerce #payment #place_order {
    width: 100% !important;
    display: block !important;
    padding: 1.1rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    background: var(--wc-navy) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: var(--wc-font) !important;
    box-sizing: border-box !important;
}

.woocommerce #payment #place_order:hover {
    background: var(--wc-charcoal) !important;
}

/* Create account checkbox area */
.woocommerce-checkout .woocommerce-account-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.woocommerce-checkout .woocommerce-account-fields label {
    display: inline !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wc-navy);
}

/* Terms and conditions */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 0.5rem;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
    display: inline !important;
    font-size: 0.85rem;
}

/* Login/coupon notices at top of checkout */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-form-login-toggle+.woocommerce-form-login,
.woocommerce-checkout .woocommerce-form-coupon-toggle+.checkout_coupon {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border: none;
    border-top: 1px solid #eee;
}

/* Ensure full-width elements that appear before the form in .woocommerce wrapper */
.woocommerce-checkout .woocommerce>.wc-progress-bar,
.woocommerce-checkout .woocommerce>.woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce>.woocommerce-info,
.woocommerce-checkout .woocommerce>.woocommerce-message,
.woocommerce-checkout .woocommerce>.woocommerce-error,
.woocommerce-checkout .woocommerce>.woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce>.woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce>.checkout_coupon {
    width: 100%;
}

/* =============================================
   MY ACCOUNT
   ============================================= */

/* Grid layout for account page */
@media (min-width: 768px) {
    .woocommerce-account .woocommerce {
        display: grid !important;
        grid-template-columns: 240px 1fr !important;
        gap: 3rem !important;
        align-items: start !important;
    }
}

/* --- Navigation sidebar --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    padding: 0.5rem 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul,
.entry-content .woocommerce-MyAccount-navigation ul,
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li,
.entry-content .woocommerce-MyAccount-navigation ul li,
.woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li::marker,
.entry-content .woocommerce-MyAccount-navigation ul li::before,
.entry-content .woocommerce-MyAccount-navigation ul li::marker {
    content: none !important;
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--wc-text);
    text-decoration: none;
    font-family: var(--wc-font);
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--wc-navy);
    background: #fff;
    border-left-color: var(--wc-gold);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--payment-methods.is-active a {
    color: var(--wc-navy);
    background: #fff;
    border-left-color: var(--wc-gold);
    font-weight: 700;
}

/* --- Content area --- */
.woocommerce-account .woocommerce-MyAccount-content {
    padding: 0;
    min-width: 0;
    /* Prevent grid blowout */
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-family: var(--wc-font-heading);
    font-weight: 800;
    color: var(--wc-navy);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wc-gold);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* --- Fieldsets (Password change, etc.) --- */
.woocommerce-account fieldset {
    border: none !important;
    margin: 1.5rem 0 0 !important;
    padding: 0 !important;
}

.woocommerce-account fieldset legend {
    font-family: var(--wc-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--wc-navy);
    padding: 0 0 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
    width: 100%;
    display: block;
}

/* --- All form rows in My Account --- */
.woocommerce-account .woocommerce-MyAccount-content p.woocommerce-form-row,
.woocommerce-account .woocommerce-MyAccount-content .form-row,
.woocommerce-account .woocommerce-EditAccountForm p.woocommerce-form-row {
    margin-bottom: 1rem !important;
    padding: 0 !important;
}

/* Labels */
.woocommerce-account .woocommerce-MyAccount-content label,
.woocommerce-account .woocommerce-EditAccountForm label,
.woocommerce-account .woocommerce form.login label,
.woocommerce-account .woocommerce form.register label,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row label {
    display: block !important;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--wc-text);
    margin-bottom: 0.35rem;
}

/* All inputs in My Account */
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-EditAccountForm input[type="password"],
.woocommerce-account .woocommerce form.login input[type="text"],
.woocommerce-account .woocommerce form.login input[type="password"],
.woocommerce-account .woocommerce form.register input[type="text"],
.woocommerce-account .woocommerce form.register input[type="email"],
.woocommerce-account .woocommerce form.register input[type="password"],
.woocommerce-account .woocommerce-address-fields input[type="text"],
.woocommerce-account .woocommerce-address-fields input[type="tel"],
.woocommerce-account .woocommerce-address-fields input[type="email"],
.woocommerce-account .woocommerce-address-fields select {
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    font-size: 0.9rem !important;
    font-family: var(--wc-font) !important;
    background: #fff !important;
    color: var(--wc-navy) !important;
    transition: border-color 0.15s ease;
    box-sizing: border-box !important;
    -webkit-appearance: none;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-EditAccountForm input:focus,
.woocommerce-account .woocommerce form.login input:focus,
.woocommerce-account .woocommerce form.register input:focus,
.woocommerce-account .woocommerce-address-fields input:focus,
.woocommerce-account .woocommerce-address-fields select:focus {
    border-color: var(--wc-navy) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Submit buttons in My Account */
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"],
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-account .woocommerce form.login button[type="submit"],
.woocommerce-account .woocommerce form.register button[type="submit"],
.woocommerce-account .woocommerce-address-fields button[type="submit"] {
    display: inline-block;
    background: var(--wc-navy) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    font-family: var(--wc-font) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 0 !important;
    margin-top: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-account .woocommerce form.login button[type="submit"]:hover,
.woocommerce-account .woocommerce-address-fields button[type="submit"]:hover {
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
}

/* Login/Register page (when not logged in) */
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
    border: 1px solid #e8e8e8;
    padding: 2rem;
    margin-bottom: 2rem;
    background: #fff;
}

/* Remember me checkbox */
.woocommerce-account .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.woocommerce-account .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

/* Lost password link */
.woocommerce-account .woocommerce-LostPassword a {
    color: var(--wc-gold);
    font-size: 0.85rem;
    text-decoration: none;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
    color: var(--wc-navy);
}

.woocommerce-account .woocommerce form.login h2,
.woocommerce-account .woocommerce form.register h2 {
    font-family: var(--wc-font-heading);
    font-weight: 800;
    color: var(--wc-navy);
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wc-gold);
    margin-bottom: 1.5rem;
}

/* Addresses grid */
.woocommerce-account .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
    border: 1px solid #e8e8e8;
    padding: 1.5rem;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title h3 {
    margin-top: 0;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title a {
    color: var(--wc-gold);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title a:hover {
    color: var(--wc-navy);
}

/* Orders table */
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-account .woocommerce-orders-table th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--wc-text-light);
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--wc-navy);
    text-align: left;
}

.woocommerce-account .woocommerce-orders-table td {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: var(--wc-navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: var(--wc-gold);
    color: var(--wc-navy);
}

/* Mobile: single-column nav, more spacing and tap area */
@media (max-width: 767px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 1.5rem;
        padding: 0.75rem 0;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul,
    .entry-content .woocommerce-MyAccount-navigation ul {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
        padding: 0 0.5rem !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.85rem 1rem;
        font-size: 0.9375rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        border-bottom-color: var(--wc-gold);
        border-left-color: transparent;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
        border-left-color: transparent;
    }
}

/* =============================================
   DASHBOARD — Welcome message
   ============================================= */
.woocommerce-account .woocommerce-MyAccount-content>p:first-of-type {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--wc-text);
}

.woocommerce-account .woocommerce-MyAccount-content>p a {
    color: var(--wc-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content>p a:hover {
    color: var(--wc-navy);
    border-bottom-color: var(--wc-navy);
}

/* =============================================
   EMPTY STATES — Return to shop, no orders, etc.
   ============================================= */

/* "Return to Shop" button on empty cart */
.woocommerce .return-to-shop,
.woocommerce-cart .return-to-shop {
    margin-top: 1.5rem;
}

.woocommerce .return-to-shop a.button,
.woocommerce-cart .return-to-shop a.button {
    background: var(--wc-navy) !important;
    color: #fff !important;
    padding: 0.85rem 2rem !important;
    font-size: 0.85rem !important;
}

.woocommerce .return-to-shop a.button:hover,
.woocommerce-cart .return-to-shop a.button:hover {
    background: var(--wc-gold) !important;
    color: var(--wc-navy) !important;
}

/* "Cart is currently empty" — centre nicely */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1rem;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
}

/* =============================================
   DOWNLOADS TABLE
   ============================================= */
.woocommerce-account .woocommerce-table--order-downloads,
.woocommerce-account table.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-table--order-downloads th,
.woocommerce-account table.woocommerce-table th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--wc-text-light);
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--wc-navy);
    text-align: left;
    background: transparent;
}

.woocommerce-account .woocommerce-table--order-downloads td,
.woocommerce-account table.woocommerce-table td {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--wc-border);
    vertical-align: middle;
}

/* =============================================
   ORDER VIEW — Individual order detail
   ============================================= */
.woocommerce-account .woocommerce-order-details {
    margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-order-details .shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-account .woocommerce-order-details .shop_table th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--wc-text-light);
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--wc-navy);
    text-align: left;
    background: transparent !important;
}

.woocommerce-account .woocommerce-order-details .shop_table td {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--wc-border);
}

.woocommerce-account .woocommerce-order-details .shop_table tfoot th,
.woocommerce-account .woocommerce-order-details .shop_table tfoot td {
    border-bottom: 1px solid var(--wc-border);
    font-size: 0.9rem;
    background: transparent !important;
}

.woocommerce-account .woocommerce-order-details .shop_table tfoot tr:last-child th,
.woocommerce-account .woocommerce-order-details .shop_table tfoot tr:last-child td {
    border-top: 2px solid var(--wc-navy);
    font-weight: 700;
    font-size: 1rem;
}

/* Order status badge */
.woocommerce-account mark.order-status {
    background: var(--wc-cream) !important;
    color: var(--wc-navy);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
}

/* Customer details on order view */
.woocommerce-account .woocommerce-customer-details {
    margin-top: 2rem;
}

.woocommerce-account .woocommerce-customer-details address {
    border: 1px solid var(--wc-border);
    padding: 1.5rem;
    font-style: normal;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.woocommerce .woocommerce-breadcrumb {
    font-family: var(--wc-font);
    font-size: 0.8rem;
    color: var(--wc-text-light);
    margin-bottom: 1.5rem;
    padding: 0;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--wc-text-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--wc-navy);
}

/* =============================================
   RESULT COUNT & ORDERING
   ============================================= */
.woocommerce .woocommerce-result-count {
    font-family: var(--wc-font);
    font-size: 0.85rem;
    color: var(--wc-text-light);
    margin-bottom: 1rem;
}

.woocommerce .woocommerce-ordering select {
    font-family: var(--wc-font);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--wc-border);
    border-radius: 0;
    background: #fff;
    color: var(--wc-navy);
    cursor: pointer;
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--wc-navy);
}

/* =============================================
   SALE FLASH / BADGES
   ============================================= */
.woocommerce span.onsale {
    background: var(--wc-navy) !important;
    color: var(--wc-gold) !important;
    font-family: var(--wc-font);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0 !important;
    padding: 0.35rem 0.75rem !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
}

/* =============================================
   OUT OF STOCK
   ============================================= */
.woocommerce div.product .stock.out-of-stock {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.85rem;
}

.woocommerce div.product .stock.in-stock {
    color: var(--wc-sage);
    font-weight: 700;
    font-size: 0.85rem;
}

/* RELATED / UPSELL heading — see main rules above around line ~1084 */

/* =============================================
   COUPON CODE (cart/checkout)
   ============================================= */
.woocommerce .woocommerce-form-coupon {
    border: 1px solid var(--wc-border) !important;
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    background: var(--wc-bg) !important;
    border-radius: 0 !important;
}

.woocommerce .woocommerce-form-coupon label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--wc-navy);
    display: block;
    margin-bottom: 0.35rem;
}

.woocommerce .woocommerce-form-coupon .input-text {
    border: 1px solid var(--wc-border) !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem;
    border-radius: 0 !important;
}

/* =============================================
   WIDGET — Cart Widget, Price Filter, etc.
   ============================================= */
.widget_shopping_cart .woocommerce-mini-cart {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.widget_shopping_cart .woocommerce-mini-cart li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--wc-border);
    list-style: none !important;
}

.widget_shopping_cart .woocommerce-mini-cart li::before {
    display: none !important;
}

/* =============================================
   THANK YOU PAGE / ORDER RECEIVED
   ============================================= */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    font-family: var(--wc-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wc-navy);
    padding: 1.25rem 1.5rem;
    background: #f0f4ed;
    border-left: 4px solid var(--wc-sage);
    margin-bottom: 2rem;
}

.woocommerce-order-received .woocommerce-order-overview {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.woocommerce-order-received .woocommerce-order-overview li {
    list-style: none !important;
    padding: 1rem !important;
    background: var(--wc-cream);
    text-align: center;
}

.woocommerce-order-received .woocommerce-order-overview li::before,
.woocommerce-order-received .woocommerce-order-overview li::marker {
    display: none !important;
    content: none !important;
}

.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    color: var(--wc-navy);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

/* =============================================
   REVIEWS
   ============================================= */
.woocommerce #reviews #comments ol.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce #reviews #comments ol.commentlist li:last-child {
    border-bottom: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: none;
    padding: 0;
    margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li .meta {
    font-family: var(--wc-font);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wc-navy);
    margin-bottom: 0.5rem;
}

.woocommerce #reviews #comments ol.commentlist li .description {
    color: var(--wc-text);
    line-height: 1.65;
    font-size: 0.9rem;
}

.woocommerce #review_form #respond {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--wc-cream);
    border: 1px solid #e2e8f0;
}

.woocommerce #review_form #respond h3 {
    font-family: var(--wc-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--wc-navy);
    margin: 0 0 1.25rem;
}

/* =============================================
   SELECT2 — WooCommerce country/state dropdowns
   ============================================= */
.woocommerce .select2-container .select2-selection--single {
    height: auto !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: var(--wc-bg) !important;
    font-family: var(--wc-font) !important;
    font-size: 0.9rem !important;
    color: var(--wc-navy) !important;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    color: var(--wc-navy) !important;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 0.75rem !important;
}

.woocommerce .select2-container--focus .select2-selection--single {
    border-color: var(--wc-navy) !important;
    outline: none !important;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    font-family: var(--wc-font) !important;
}

.select2-results__option {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.select2-results__option--highlighted {
    background: var(--wc-navy) !important;
    color: #ffffff !important;
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.woocommerce .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 767px) {
    .wc-container {
        padding: 1.25rem 1rem 3rem;
    }

    .woocommerce div.product {
        gap: 1.5rem;
    }

    .woocommerce div.product form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce div.product form.cart .quantity {
        justify-content: center;
        width: 100%;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Mobile: stack tabs above content */
    .woocommerce div.product .woocommerce-tabs {
        grid-template-columns: 1fr !important;
        border: none;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-direction: row !important;
        flex-wrap: wrap;
        border-right: none !important;
        border-bottom: 2px solid var(--wc-navy) !important;
        background: transparent !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        border-bottom: none !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 0.65rem 0.9rem;
        font-size: 0.72rem;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
        border-left-color: transparent !important;
        border-bottom-color: var(--wc-gold) !important;
        background: transparent !important;
    }

    .woocommerce div.product .woocommerce-tabs .wc-tab {
        padding: 1.5rem 0;
    }

    /* Related / Upsell grid: auto-fill handles this, just lower the min */
    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product .upsells.products ul.products,
    section.related.products ul.products,
    section.upsells.products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }

    .woocommerce table.shop_table {
        font-size: 0.8rem;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 0.6rem 0.5rem;
    }

    /* Orders table — stack on mobile */
    .woocommerce-account .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-account .woocommerce-orders-table tr {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--wc-border);
    }

    .woocommerce-account .woocommerce-orders-table td {
        display: block;
        padding: 0.25rem 0;
        border: none;
        font-size: 0.85rem;
    }

    .woocommerce-account .woocommerce-orders-table td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: var(--wc-navy);
    }

    /* Addresses — single column */
    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    /* Order overview grid — stack */
    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Notices — stack button below text */
    .woocommerce .woocommerce-error,
    .woocommerce .woocommerce-info,
    .woocommerce .woocommerce-message {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* =============================================
   PAGINATION
   ============================================= */
.woocommerce nav.woocommerce-pagination {
    margin: 2rem 0;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--wc-navy);
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
    border-right: 1px solid var(--wc-navy);
    list-style: none !important;
}

.woocommerce nav.woocommerce-pagination ul li::before,
.woocommerce nav.woocommerce-pagination ul li::marker {
    display: none !important;
    content: none !important;
}

.woocommerce nav.woocommerce-pagination ul li:last-child {
    border-right: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 0.6rem 1rem;
    font-family: var(--wc-font);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wc-navy);
    text-decoration: none;
    transition: all 0.15s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--wc-cream);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--wc-navy);
    color: #ffffff;
}

/* ================================================================
   INLINE PRODUCT CALCULATOR — "How Much Do I Need?"
   Appears between variation selectors and Add to Cart button.
   ================================================================ */

/* Container — prominent inline widget */
.htc-product-calc--inline {
    margin: 1.5rem 0 1rem;
    border: 2px solid #2D3748;
    /* Slate Frame */
    border-radius: 0;
    overflow: hidden;
    background: #f4f1ea;
    /* Paper */
    box-shadow: 6px 6px 0 rgba(45, 55, 72, 0.1);
}

/* Clickable header bar */
.htc-product-calc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #2D3748;
    /* Slate */
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-bottom: 4px solid #E6C261;
    /* Gold Accent Line */
}

.htc-product-calc__header:hover {
    background: #3a3a3a;
}

.htc-product-calc__header-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.htc-product-calc__header-title {
    font-family: 'IBM Plex Mono', monospace;
    /* Technical font */
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.htc-product-calc__header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.htc-product-calc__header-hint {
    font-family: var(--wc-font);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.htc-product-calc__header-chevron {
    color: #E6C261;
    /* Gold */
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.htc-product-calc--open .htc-product-calc__header-chevron {
    transform: rotate(180deg);
}

/* Collapsible body */
.htc-product-calc__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 1.25rem;
}

.htc-product-calc--open .htc-product-calc__body {
    max-height: 1000px;
    padding: 1.5rem;
}

/* Input grid — compact 2-col */
.htc-product-calc__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(45, 55, 72, 0.1);
}

.htc-product-calc__field label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4A5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.htc-product-calc__field--full {
    grid-column: 1 / -1;
}

.htc-product-calc__input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #2D3748;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.htc-product-calc__input-wrap:focus-within {
    border-color: #E6C261;
}

.htc-product-calc__input-wrap input {
    flex: 1;
    border: none !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.95rem !important;
    font-family: var(--wc-font) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
    color: #2D3748;
}

.htc-product-calc__unit {
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2D3748;
    background: #fdfcf9;
    line-height: 2.4;
    white-space: nowrap;
    border-left: 1px solid rgba(45, 55, 72, 0.1);
}

/* Orientation */
.htc-product-calc__toggle {
    display: flex;
    gap: 1rem;
    padding-top: 0.25rem;
}

.htc-product-calc__radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--wc-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: #2D3748;
}

.htc-product-calc__radio input[type="radio"] {
    accent-color: #2D3748;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Results grid — compact with highlight for board count */
.htc-product-calc__results {
    margin-bottom: 0.85rem;
}

.htc-product-calc__result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.htc-product-calc__result-card {
    background: #fdfcf9;
    padding: 16px;
}

/* Highlight card — boards needed */
.htc-product-calc__result-card--highlight {
    background: #2D3748 !important;
    /* Slate Highlight */
    grid-column: 1 / -1;
}

.htc-product-calc__result-card--highlight .htc-product-calc__result-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.htc-product-calc__result-card--highlight .htc-product-calc__result-value {
    color: #ffffff !important;
    font-size: 1.5rem !important;
}

.htc-product-calc__result-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4A5568;
    margin-bottom: 8px;
    font-weight: 700;
}

.htc-product-calc__result-value {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D3748;
}

/* Small Verified Badge in results */
.htc-product-calc__value-wrap .htc-verified-badge {
    background: #E6C261;
    color: #2D3748;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Quantity auto-fill hint */
.htc-product-calc__qty-hint {
    font-family: var(--wc-font);
    font-size: 0.82rem;
    color: #2d6a4f;
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.75rem;
    background: rgba(45, 106, 79, 0.08);
    border-radius: 4px;
    border-left: 3px solid #2d6a4f;
}

/* Add to basket button */
.htc-product-calc__action {
    margin-bottom: 1rem;
}

.htc-product-calc__add-btn {
    display: block;
    width: 100%;
    background: #E6C261;
    /* Gold */
    color: #2D3748;
    /* Slate */
    border: 2px solid #2D3748;
    padding: 14px 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(45, 55, 72, 0.2);
}

.htc-product-calc__add-btn:hover {
    background: #2D3748;
    color: #E6C261;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 rgba(45, 55, 72, 0.25);
}

.htc-product-calc__add-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.htc-product-calc__add-btn.htc-pc-btn--success {
    background: #2d6a4f;
    color: #fff;
}

/* Message */
.htc-product-calc__message {
    margin-top: 0.5rem;
    font-family: var(--wc-font);
    font-size: 0.82rem;
    line-height: 1.5;
}

.htc-product-calc__message--success {
    color: #2d6a4f;
}

.htc-product-calc__message--success a {
    color: var(--wc-gold);
    font-weight: 700;
    text-decoration: underline;
}

.htc-product-calc__message--error {
    color: #b00020;
}

/* Weight note */
.htc-product-calc__weight-note {
    display: block;
    font-family: var(--wc-font);
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
}

.htc-product-calc__weight-note--ok {
    color: #2d6a4f;
}

.htc-product-calc__weight-note--warn {
    color: #b8860b;
}

.htc-product-calc__weight-note--heavy {
    color: #b00020;
}

/* Disclaimer Note */
.htc-product-calc__note {
    font-family: var(--wc-font);
    font-size: 0.75rem;
    color: #718096;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 575px) {
    .htc-product-calc--inline {
        margin: 1rem 0 0.75rem;
    }

    .htc-product-calc__header-hint {
        display: none;
    }

    .htc-product-calc__grid {
        grid-template-columns: 1fr;
    }

    .htc-product-calc__result-grid {
        grid-template-columns: 1fr;
    }

    .htc-product-calc__result-card--highlight {
        grid-column: auto;
    }
}