/**
 * TLWP Theme - WooCommerce Styles
 *
 * Light theme with gold accents. Product cards, shop layouts, cart, checkout.
 */

/* ================================
   1. SHOP LAYOUT
   ================================ */

.woocommerce-page #primary,
.post-type-archive-product #primary,
.tax-product_cat #primary,
.tax-product_tag #primary {
    padding: 0 0 5rem;
}

/* Constrain shop loop content (toolbar, products, pagination, notices) to the
   container width. The shop-header is intentionally full-bleed with its own
   inner .container — leave it alone. */
.post-type-archive-product .tlwp-shop-toolbar,
.post-type-archive-product.woocommerce ul.products,
.post-type-archive-product .woocommerce-pagination,
.post-type-archive-product .woocommerce-notices-wrapper,
.post-type-archive-product .woocommerce-no-products-found,
.tax-product_cat .tlwp-shop-toolbar,
.tax-product_cat.woocommerce ul.products,
.tax-product_cat .woocommerce-pagination,
.tax-product_cat .woocommerce-notices-wrapper,
.tax-product_cat .woocommerce-no-products-found,
.tax-product_tag .tlwp-shop-toolbar,
.tax-product_tag.woocommerce ul.products,
.tax-product_tag .woocommerce-pagination,
.tax-product_tag .woocommerce-notices-wrapper,
.tax-product_tag .woocommerce-no-products-found {
    max-width: var(--tlwp-container-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tlwp-container-padding, 1.5rem);
    padding-right: var(--tlwp-container-padding, 1.5rem);
    box-sizing: border-box;
}

/* Hide the default WooCommerce products header — our render_shop_header() replaces it.
   Title is suppressed via woocommerce_show_page_title filter, but the wrapping <header>
   element still renders and can leave a hairline gap above our shop-header. */
.woocommerce-products-header {
    display: none;
}

/* Light-surface islands — re-scope text + border + input-bg vars so these
   components stay readable even when the Customizer flips body-level vars to
   the on-dark palette. Applies to any container that explicitly paints a light
   background (bg-secondary / bg-tertiary). */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#order_review,
.woocommerce-checkout-payment ul.payment_methods li,
.woocommerce-checkout-payment .payment_box,
.checkout_coupon,
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-cart table.cart thead,
.woocommerce-cart table.cart .actions,
.cart_totals,
.cart-empty,
.woocommerce-cart .cart-empty {
    --wp--preset--color--text-primary: #333333;
    --wp--preset--color--text-secondary: #666666;
    --wp--preset--color--text-muted: #6b6b6b;
    --wp--preset--color--border: #e0e0e0;
    --wp--preset--color--bg-primary: #ffffff;
    --wp--preset--color--bg-secondary: #f7f7f7;
    --wp--preset--color--bg-tertiary: #eeeeee;
    --wp--preset--color--bg-elevated: #e0e0e0;
    color: #333333;
}

/* Shop Header (page title + breadcrumbs + description) — sits on the dark
   page background, faint hairline divider for separation. */
.shop-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 0;
    margin-bottom: 3rem;
}

.shop-header__inner {
    text-align: center;
    max-width: 48rem;
}

.shop-header__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
    margin-bottom: 1rem;
}

.shop-header__breadcrumbs a {
    color: var(--wp--preset--color--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.shop-header__breadcrumbs a:hover {
    color: var(--wp--preset--color--accent);
}

.shop-header__crumb-sep {
    color: var(--wp--preset--color--text-muted);
}

.shop-header__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    color: var(--wp--preset--color--text-primary);
}

.shop-header__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wp--preset--color--text-secondary);
    max-width: 36rem;
    margin: 0 auto;
}

.shop-header__description p {
    margin: 0;
}

/* Legacy breadcrumbs (when they appear outside shop-header) */
.woocommerce-breadcrumb:not(.shop-header__breadcrumbs) {
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
}

.woocommerce-breadcrumb a {
    color: var(--wp--preset--color--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.woocommerce-breadcrumb a:hover {
    color: var(--wp--preset--color--accent);
}

/* Shop Toolbar */
.tlwp-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    row-gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.tlwp-shop-toolbar__left,
.tlwp-shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.woocommerce-result-count {
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-muted);
    margin: 0;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    background-color: var(--wp--preset--color--bg-primary);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    color: var(--wp--preset--color--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    transition: border-color var(--transition-fast);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent);
}

/* Empty shop state */
.woocommerce-info,
.woocommerce-no-products-found {
    padding: 3rem 1.5rem;
    text-align: center;
    background-color: var(--wp--preset--color--bg-secondary);
    border-radius: 4px;
    color: var(--wp--preset--color--text-secondary);
    font-size: 1rem;
}

/* ================================
   2. PRODUCT GRID
   ================================ */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================
   3. PRODUCT CARD (premium/clean)
   ================================ */

.woocommerce ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform var(--transition-base);
}

/* Push the Add to Cart button to the bottom so cards line up across rows */
.woocommerce ul.products li.product .button {
    margin-top: auto;
    align-self: flex-start;
}

/* Image container — clean framing, no hover scale (prevents overflow into title) */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    position: relative;
    text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--wp--preset--color--bg-secondary);
    margin-bottom: 1rem;
    transition: opacity var(--transition-base);
}

/* Subtle fade on hover in lieu of scale */
.woocommerce ul.products li.product:hover .woocommerce-loop-product__link img {
    opacity: 0.92;
}

/* On-sale badge */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #ffffff);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 3px;
    min-height: auto;
    min-width: auto;
    line-height: 1;
}

/* Out of stock badge — top-left so it doesn't collide with the quick-view button */
.woocommerce ul.products li.product.outofstock .woocommerce-loop-product__link::after {
    content: 'Sold Out';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 3px;
}

/* When a product is both out-of-stock and on-sale, hide the redundant sale badge */
.woocommerce ul.products li.product.outofstock .onsale {
    display: none;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--wp--preset--color--text-primary);
    margin: 0 0 0.375rem;
    transition: color var(--transition-fast);
}

.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
    color: var(--wp--preset--color--accent);
}

/* Category (small text above title) */
.woocommerce ul.products li.product .product-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 0.35rem;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-primary);
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del bdi {
    font-weight: 400;
    text-decoration: line-through;
    color: var(--wp--preset--color--text-muted);
    font-size: 0.875rem;
}

.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins bdi {
    text-decoration: none;
    color: var(--wp--preset--color--text-primary);
    font-weight: 700;
}

/* Star rating */
.woocommerce ul.products li.product .star-rating {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.75rem;
    width: 5.5em;
    height: 1em;
    line-height: 1;
    color: var(--wp--preset--color--accent);
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    display: inline-block;
    width: auto;
    padding: 0.625rem 1.25rem;
    background-color: var(--wp--preset--color--accent, #c2964a);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: all var(--transition-fast);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
    background-color: var(--wp--preset--color--accent-hover, #a87d3a);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    transform: none;
    box-shadow: none;
}

.woocommerce ul.products li.product .added_to_cart {
    background-color: var(--wp--preset--color--success, #22c55e);
    color: #1a1a1a;
    margin-left: 0.5rem;
}

/* Quick View Button — icon, top-right corner of card, visible on hover */
.tlwp-quick-view {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wp--preset--color--bg-primary);
    color: var(--wp--preset--color--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-base);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.woocommerce ul.products li.product:hover .tlwp-quick-view {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tlwp-quick-view:hover {
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #1a1a1a);
}

.tlwp-quick-view svg {
    display: block;
}

/* Hide screen-reader-only text visually */
.tlwp-quick-view .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* ================================
   3b. PAGINATION
   ================================ */

.woocommerce nav.woocommerce-pagination {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wp--preset--color--border);
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 3px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #1a1a1a);
}

/* ================================
   3c. QUICK VIEW MODAL
   ================================ */

#tlwp-quick-view-modal.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 1000);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#tlwp-quick-view-modal.quick-view-modal.active {
    display: flex;
}

.quick-view-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.quick-view-modal__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--wp--preset--color--bg-primary);
    border-radius: 6px;
    box-shadow: var(--shadow-xl);
}

.quick-view-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wp--preset--color--bg-primary);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--wp--preset--color--text-primary);
    font-size: 1.5rem;
    line-height: 1;
    transition: all var(--transition-fast);
}

.quick-view-modal__close:hover {
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    border-color: var(--wp--preset--color--accent);
}

.quick-view-modal__body {
    padding: 0;
}

.quick-view-modal.loading .quick-view-modal__body::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    border: 3px solid var(--wp--preset--color--border);
    border-top-color: var(--wp--preset--color--accent);
    border-radius: 50%;
    margin: 4rem auto;
    animation: tlwp-spin 0.8s linear infinite;
}

@keyframes tlwp-spin {
    to { transform: rotate(360deg); }
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .quick-view-product {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

.quick-view-product__gallery {
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--wp--preset--color--bg-secondary);
}

.quick-view-product__image {
    width: 100%;
    height: auto;
    display: block;
}

.quick-view-product__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: var(--wp--preset--color--text-primary);
}

.quick-view-product__price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--text-primary);
}

.quick-view-product__price ins {
    text-decoration: none;
    color: var(--wp--preset--color--text-primary);
}

.quick-view-product__description {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--wp--preset--color--text-secondary);
    margin-bottom: 1.5rem;
}

.quick-view-product__actions {
    margin-bottom: 1.5rem;
}

.quick-view-product__actions .cart {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.quick-view-product__meta {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--wp--preset--color--border);
}

.quick-view-product__link {
    display: inline-flex;
    align-items: center;
    color: var(--wp--preset--color--accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.quick-view-product__link:hover {
    color: var(--wp--preset--color--accent-hover);
}

.quick-view-product__stock {
    font-weight: 600;
    margin-bottom: 1rem;
}

.quick-view-product__stock.out-of-stock {
    color: var(--wp--preset--color--error);
}

/* ================================
   4. SINGLE PRODUCT
   ================================ */

/* Page container — constrain width, add vertical spacing */
.single-product .site-main {
    padding: 3rem 0 5rem;
}

.single-product .site-main > .woocommerce-notices-wrapper,
.single-product .site-main > .product {
    max-width: var(--tlwp-container-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
    margin-bottom: 2rem;
    max-width: var(--tlwp-container-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.woocommerce-breadcrumb a {
    color: var(--wp--preset--color--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.woocommerce-breadcrumb a:hover {
    color: var(--wp--preset--color--accent);
}

/* Two-column layout: gallery | summary */
.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Gallery (left column) */
.single-product .woocommerce-product-gallery {
    position: relative;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    grid-column: 1;
}

@media (max-width: 900px) {
    .single-product .woocommerce-product-gallery {
        grid-column: auto;
    }
}

.single-product .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.single-product .woocommerce-product-gallery__image {
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--wp--preset--color--bg-secondary);
}

.single-product .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
}

.single-product .woocommerce-product-gallery__image--placeholder {
    aspect-ratio: 1;
    background-color: var(--wp--preset--color--bg-secondary);
}

/* Gallery thumbnails */
.single-product .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.single-product .flex-control-thumbs li {
    margin: 0;
    cursor: pointer;
}

.single-product .flex-control-thumbs img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.single-product .flex-control-thumbs img:hover,
.single-product .flex-control-thumbs img.flex-active {
    opacity: 1;
    border-color: var(--wp--preset--color--accent);
}

/* Gallery trigger (zoom icon) */
.single-product .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--bg-primary);
    color: var(--wp--preset--color--text-primary);
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.single-product .woocommerce-product-gallery__trigger:hover {
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #1a1a1a);
}

/* Summary (right column) */
.single-product .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    grid-column: 2;
}

@media (max-width: 900px) {
    .single-product .summary {
        grid-column: auto;
    }
}

/* Title */
.single-product .product_title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    color: var(--wp--preset--color--text-primary);
}

/* Price */
.single-product .price {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: var(--wp--preset--color--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.single-product .price del,
.single-product .price del .amount,
.single-product .price del bdi {
    font-weight: 400;
    text-decoration: line-through;
    color: var(--wp--preset--color--text-muted);
    font-size: 1.25rem;
}

.single-product .price ins {
    text-decoration: none;
    color: var(--wp--preset--color--text-primary);
    font-weight: 700;
}

/* On-sale badge on single product */
.single-product .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #ffffff);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Short description */
.single-product .woocommerce-product-details__short-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wp--preset--color--text-secondary);
    margin-bottom: 1.75rem;
}

.single-product .woocommerce-product-details__short-description p {
    margin: 0 0 0.75rem;
}

.single-product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Stock status */
.stock {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.stock.in-stock {
    color: var(--wp--preset--color--success);
}

.stock.out-of-stock {
    color: var(--wp--preset--color--error);
}

.stock.available-on-backorder {
    color: var(--wp--preset--color--warning);
}

/* Variations (size/color dropdowns) */
.single-product .variations {
    width: 100%;
    border: none;
    margin: 0 0 1.5rem;
    border-collapse: separate;
}

.single-product .variations td,
.single-product .variations th {
    padding: 0.5rem 0;
    border: none;
    background: none;
    vertical-align: middle;
}

.single-product .variations th.label {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--text-primary);
    width: 30%;
}

.single-product .variations td.value select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    background-color: var(--wp--preset--color--bg-primary);
    color: var(--wp--preset--color--text-primary);
    font-size: 0.9375rem;
}

.single-product .variations td.value select:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent);
}

.single-product .reset_variations {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
    margin-left: 0.75rem;
    text-decoration: underline;
}

.single-product .single_variation_wrap {
    margin-top: 0.5rem;
}

.single-product .single_variation .price {
    margin-bottom: 1rem;
}

/* Quantity input */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--wp--preset--color--bg-primary);
}

.quantity input.qty {
    width: 64px;
    padding: 0.875rem 0.5rem;
    text-align: center;
    border: none;
    background-color: transparent;
    color: var(--wp--preset--color--text-primary);
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity .qty-btn {
    padding: 0.875rem 1rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--wp--preset--color--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.quantity .qty-btn:hover {
    background-color: var(--wp--preset--color--bg-secondary);
    color: var(--wp--preset--color--accent);
}

/* Add to Cart form layout */
.single-product form.cart {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.single-product form.cart .quantity {
    flex-shrink: 0;
}

.single-product .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    padding: 0 2rem;
    background-color: var(--wp--preset--color--accent, #c2964a);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    border: 2px solid var(--wp--preset--color--accent, #c2964a);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.single-product .single_add_to_cart_button:hover {
    background-color: var(--wp--preset--color--accent-hover, #a87d3a);
    border-color: var(--wp--preset--color--accent-hover, #a87d3a);
    color: var(--tlwp-color-accent-text, #1a1a1a);
}

.single-product .single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product meta (SKU, categories, tags) */
.product_meta {
    padding: 1.25rem 0;
    border-top: 1px solid var(--wp--preset--color--border);
    margin: 2rem 0 0;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
}

.product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

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

.product_meta a {
    color: var(--wp--preset--color--text-primary);
    text-decoration: none;
}

.product_meta a:hover {
    color: var(--wp--preset--color--accent);
}

/* Tabs — spans both columns below */
.single-product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wp--preset--color--border);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 2.5rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

.woocommerce-tabs ul.tabs li a:hover {
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--wp--preset--color--accent);
}

.woocommerce-tabs .panel {
    padding: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wp--preset--color--text-secondary);
}

.woocommerce-tabs .panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--text-primary);
}

/* Related / upsells — span both columns below */
.single-product .related.products,
.single-product .upsells.products {
    grid-column: 1 / -1;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--wp--preset--color--border);
    clear: both;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--wp--preset--color--text-primary);
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .single-product .related.products ul.products,
    .single-product .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .single-product .related.products ul.products,
    .single-product .upsells.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* ================================
   5. CART DRAWER
   ================================ */

/* Outer wrapper: holds overlay + panel */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 1000);
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 400ms;
}

.cart-drawer.active {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s linear 0s;
}

/* Dimmed overlay behind panel — fades in/out */
.cart-drawer__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 300ms var(--ease-out-quart, ease);
    will-change: opacity;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}

.cart-drawer.active .cart-drawer__overlay {
    opacity: 1;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: opacity 400ms var(--ease-out-quart, ease), backdrop-filter 500ms ease;
}

/* Slide-out panel — smooth expo ease-out on open, snappier ease-in on close */
.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: var(--wp--preset--color--bg-primary);
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.12);
    transform: translate3d(100%, 0, 0);
    transition: transform 350ms cubic-bezier(0.4, 0, 1, 1);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.cart-drawer.active .cart-drawer__panel {
    transform: translate3d(0, 0, 0);
    transition: transform 450ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

/* Stagger inner content fade-up on open */
.cart-drawer__header,
.cart-drawer__shipping-bar,
.cart-drawer__content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 250ms ease, transform 300ms var(--ease-out-expo, ease);
}

.cart-drawer.active .cart-drawer__header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 100ms;
}

.cart-drawer.active .cart-drawer__shipping-bar {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 150ms;
}

.cart-drawer.active .cart-drawer__content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 200ms;
}

/* Each cart item staggers in after the panel opens */
@keyframes tlwp-cart-item-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-drawer.is-opening .cart-drawer__item {
    animation: tlwp-cart-item-in 300ms var(--ease-out-expo, ease) both;
}

.cart-drawer.is-opening .cart-drawer__item:nth-child(1) { animation-delay: 250ms; }
.cart-drawer.is-opening .cart-drawer__item:nth-child(2) { animation-delay: 300ms; }
.cart-drawer.is-opening .cart-drawer__item:nth-child(3) { animation-delay: 340ms; }
.cart-drawer.is-opening .cart-drawer__item:nth-child(4) { animation-delay: 375ms; }
.cart-drawer.is-opening .cart-drawer__item:nth-child(5) { animation-delay: 405ms; }
.cart-drawer.is-opening .cart-drawer__item:nth-child(n+6) { animation-delay: 430ms; }

/* Empty state fades in with a gentle scale */
@keyframes tlwp-empty-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cart-drawer.is-opening .cart-drawer__empty {
    animation: tlwp-empty-in 400ms var(--ease-out-expo, ease) 200ms both;
}

/* Remove-item animation (triggered by JS adding .removing class) */
.cart-drawer__item.removing {
    animation: tlwp-cart-item-out 300ms var(--ease-out-quart, ease) forwards;
    pointer-events: none;
}

@keyframes tlwp-cart-item-out {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
        margin-bottom: 1rem;
        padding: 1rem 0;
    }
    to {
        opacity: 0;
        transform: translateX(30px);
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
        border-bottom-width: 0;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cart-drawer__panel,
    .cart-drawer__overlay,
    .cart-drawer__header,
    .cart-drawer__shipping-bar,
    .cart-drawer__content,
    .cart-drawer__item {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        transition-delay: 0s !important;
        animation-delay: 0s !important;
    }
}

/* Header */
.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
    flex-shrink: 0;
}

.cart-drawer__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: var(--wp--preset--color--text-primary);
}

.cart-drawer__close {
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--wp--preset--color--text-secondary);
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.cart-drawer__close:hover {
    color: var(--wp--preset--color--accent);
}

/* Free shipping progress bar */
.cart-drawer__shipping-bar {
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.shipping-bar__text {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.shipping-bar__text strong {
    color: var(--wp--preset--color--accent);
    font-weight: 700;
}

.shipping-bar__text--success {
    color: var(--wp--preset--color--accent);
    font-weight: 600;
}

.shipping-bar__progress {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.shipping-bar__fill {
    height: 100%;
    background-color: var(--wp--preset--color--accent);
    transition: width var(--transition-base);
}

/* Scrollable content area — flex column so footer can stick to bottom */
.cart-drawer__content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Items list — scrolls in the middle */
.cart-drawer__items {
    padding: 1rem 1.5rem;
    margin: 0;
    list-style: none;
    flex: 1;
}

/* Empty state */
.cart-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--wp--preset--color--text-secondary);
    gap: 1rem;
    min-height: 300px;
}

.cart-drawer__empty svg {
    color: var(--wp--preset--color--text-muted);
    opacity: 0.5;
}

.cart-drawer__empty p {
    font-size: 1rem;
    margin: 0;
    color: var(--wp--preset--color--text-secondary);
}

.cart-drawer__empty .button {
    margin-top: 0.5rem;
}

/* Item list */
.cart-drawer__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-drawer__item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
    position: relative;
}

.cart-drawer__item:last-child {
    border-bottom: none;
}

.cart-item__image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--wp--preset--color--bg-secondary);
}

.cart-item__image img,
.cart-item__image a {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__details {
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
}

.cart-item__name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.4;
    color: var(--wp--preset--color--text-primary);
}

.cart-item__name a {
    color: inherit;
    text-decoration: none;
}

.cart-item__name a:hover {
    color: var(--wp--preset--color--accent);
}

.cart-item__price {
    color: var(--wp--preset--color--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.cart-item__price .amount,
.cart-item__price bdi {
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
}

.cart-item__quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--wp--preset--color--bg-primary);
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--wp--preset--color--text-primary);
    transition: background-color var(--transition-fast);
}

.quantity-btn:hover {
    background-color: var(--wp--preset--color--bg-secondary);
    color: var(--wp--preset--color--accent);
}

.quantity-value {
    width: 32px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
}

.cart-item__remove {
    position: absolute;
    top: 1rem;
    right: 0;
    padding: 0.25rem;
    background: none;
    border: none;
    color: var(--wp--preset--color--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.cart-item__remove:hover {
    color: var(--wp--preset--color--error);
}

/* Footer — sticks to the bottom of the scrolling content area */
.cart-drawer__footer {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--wp--preset--color--border);
    background-color: var(--wp--preset--color--bg-primary);
    position: sticky;
    bottom: 0;
    margin-top: auto;
    flex-shrink: 0;
}

/* Empty state fills the full content area */
.cart-drawer__content > .cart-drawer__empty {
    flex: 1;
}

.cart-drawer__totals {
    margin-bottom: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.125rem;
    font-weight: 700;
}

.cart-total__label {
    color: var(--wp--preset--color--text-primary);
}

.cart-total__value {
    color: var(--wp--preset--color--accent);
}

.cart-drawer__notice {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
    text-align: center;
}

.cart-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* ================================
   6. CART PAGE
   ================================ */

/* Two-column layout on desktop: items list | totals sidebar */
.woocommerce-cart .woocommerce {
    display: grid;
    gap: 2rem;
}

@media (min-width: 992px) {
    .woocommerce-cart .woocommerce {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 3rem;
        align-items: start;
    }
}

/* Empty cart shouldn't be in the 2-column grid */
.woocommerce-cart .woocommerce:has(.cart-empty) {
    display: block;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* The cart form holds the items table + coupon */
.woocommerce-cart form.woocommerce-cart-form {
    margin: 0;
}

/* Items table — clean, lightweight, no heavy header band */
.woocommerce-cart table.cart {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.9375rem;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
    padding: 1.125rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--wp--preset--color--border);
    vertical-align: middle;
}

.woocommerce-cart table.cart thead th {
    background-color: var(--wp--preset--color--bg-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--text-muted);
}

.woocommerce-cart table.cart tbody tr:last-of-type td {
    border-bottom: none;
}

.woocommerce-cart table.cart .product-remove {
    width: 1%;
    padding-right: 0.25rem;
}

.woocommerce-cart table.cart .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--bg-secondary);
    color: var(--wp--preset--color--text-muted);
    font-size: 0;
    font-weight: 400;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.woocommerce-cart table.cart .product-remove a::before {
    content: "×";
    font-size: 1.125rem;
    line-height: 1;
}

.woocommerce-cart table.cart .product-remove a:hover {
    background-color: #c0392b;
    color: #ffffff;
}

.woocommerce-cart table.cart .product-thumbnail {
    width: 90px;
}

.woocommerce-cart table.cart .product-thumbnail img {
    max-width: 72px;
    height: auto;
    border-radius: 4px;
    background-color: var(--wp--preset--color--bg-secondary);
}

.woocommerce-cart table.cart .product-name a {
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    text-decoration: none;
}

.woocommerce-cart table.cart .product-name a:hover {
    color: var(--wp--preset--color--accent);
}

.woocommerce-cart table.cart .product-name .variation {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-cart table.cart .product-subtotal {
    font-weight: 700;
}

/* Quantity stepper */
.woocommerce-cart table.cart .product-quantity .qty {
    width: 64px;
    padding: 0.5rem 0.5rem;
    text-align: center;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    background-color: var(--wp--preset--color--bg-primary);
    color: var(--wp--preset--color--text-primary);
    font-size: 0.9375rem;
}

/* Actions row (coupon + update cart) */
.woocommerce-cart table.cart .actions {
    padding: 1.25rem 1rem;
    background-color: var(--wp--preset--color--bg-secondary);
    border-bottom: none;
}

.woocommerce-cart table.cart .actions .coupon {
    display: inline-flex;
    gap: 0.5rem;
    align-items: stretch;
    vertical-align: middle;
}

.woocommerce-cart table.cart .actions .coupon input[name="coupon_code"] {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    background-color: #ffffff;
    color: var(--wp--preset--color--text-primary);
    font-size: 0.875rem;
    min-width: 180px;
}

.woocommerce-cart table.cart .actions .coupon button[name="apply_coupon"] {
    padding: 0.625rem 1.125rem;
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--text-primary);
    border-radius: 4px;
    color: var(--wp--preset--color--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.woocommerce-cart table.cart .actions .coupon button[name="apply_coupon"]:hover {
    background-color: var(--wp--preset--color--text-primary);
    color: #ffffff;
}

/* Update cart — secondary action, less weight than checkout */
.woocommerce-cart table.cart .actions button[name="update_cart"] {
    float: right;
    padding: 0.625rem 1.125rem;
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    color: var(--wp--preset--color--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.woocommerce-cart table.cart .actions button[name="update_cart"]:hover:not(:disabled) {
    border-color: var(--wp--preset--color--text-primary);
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-cart table.cart .actions button[name="update_cart"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Cart totals sidebar — matches checkout #order_review aesthetic */
.cart-collaterals {
    margin-top: 0;
}

@media (max-width: 991px) {
    .cart-collaterals {
        margin-top: 2rem;
    }
}

.cart_totals {
    background-color: var(--wp--preset--color--bg-secondary);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 1.75rem;
    max-width: none;
    margin-left: 0;
    position: sticky;
    top: calc(var(--header-height, 80px) + 1.5rem);
}

@media (max-width: 991px) {
    .cart_totals {
        position: static;
    }
}

.cart_totals h2 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}

.cart_totals th,
.cart_totals td {
    padding: 0.55rem 0;
    border-bottom: none;
    color: var(--wp--preset--color--text-secondary);
    font-size: 0.875rem;
    text-align: left;
    vertical-align: top;
}

.cart_totals td {
    text-align: right;
}

.cart_totals .cart-subtotal th,
.cart_totals .cart-subtotal td,
.cart_totals .shipping th,
.cart_totals .shipping td {
    font-weight: 500;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-primary);
    padding-top: 1rem;
    border-top: 1px solid var(--wp--preset--color--border);
}

.cart_totals .order-total .amount {
    font-size: 1.25rem;
}

/* Shipping calculator inside the totals card */
.cart_totals .shipping .shipping-calculator-button {
    color: var(--wp--preset--color--text-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.8125rem;
}

.cart_totals .shipping-calculator-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--wp--preset--color--border);
}

.cart_totals .shipping-calculator-form p {
    margin: 0 0 0.625rem;
}

.cart_totals .shipping-calculator-form .button {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    width: 100%;
}

/* Proceed to checkout */
.wc-proceed-to-checkout {
    margin-top: 1rem;
}

.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    padding: 1.05rem 1rem;
    background-color: var(--wp--preset--color--accent, #c2964a);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wc-proceed-to-checkout .checkout-button:hover {
    background-color: var(--wp--preset--color--accent-hover, #a87d3a);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.wc-proceed-to-checkout .checkout-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Empty cart state */
.cart-empty,
.woocommerce-cart .cart-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background-color: var(--wp--preset--color--bg-secondary);
    border: 1px dashed var(--wp--preset--color--border);
    border-radius: 6px;
    color: var(--wp--preset--color--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.return-to-shop {
    text-align: center;
    margin-top: 1.5rem;
}

/* Cross-sells — "You may also like" */
.cross-sells {
    grid-column: 1 / -1;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--wp--preset--color--border);
}

.cross-sells > h2 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 1.5rem;
    text-align: center;
}

.cross-sells ul.products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ================================
   7. CHECKOUT / CART / ACCOUNT — page chrome
   ================================ */

/* Constrain page content for WC utility pages. .page-body and .entry-content
   from page.php don't supply a container, so without this the form sprawls
   full-bleed. */
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
    max-width: var(--tlwp-container-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tlwp-container-padding, 1.5rem);
    padding-right: var(--tlwp-container-padding, 1.5rem);
    box-sizing: border-box;
}

/* Editorial page-header band for WC utility pages — same family as .shop-header
   but smaller (these are functional pages, not browsing surfaces). Sits on the
   dark page background; uses a faint hairline divider for separation. */
body.woocommerce-checkout .page-header,
body.woocommerce-cart .page-header,
body.woocommerce-account .page-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 0;
    margin-bottom: 2.5rem;
}

body.woocommerce-checkout .page-header > .container,
body.woocommerce-cart .page-header > .container,
body.woocommerce-account .page-header > .container {
    text-align: center;
}

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
    font-size: clamp(1.625rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: inherit;
}

/* ================================
   7a. CHECKOUT FORM
   ================================ */

/* Form element itself (also has .woocommerce-checkout class — note the
   `form` qualifier to avoid colliding with the body class above). */
form.woocommerce-checkout {
    display: grid;
    gap: 2rem;
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    form.woocommerce-checkout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 3rem;
    }
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background-color: var(--wp--preset--color--bg-secondary);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 1.75rem 1.75rem 0.5rem;
    margin-bottom: 1.25rem;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper > h3,
.woocommerce-shipping-fields h3#ship-to-different-address,
.woocommerce-shipping-fields .woocommerce-shipping-fields__field-wrapper ~ h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

/* "Ship to a different address?" toggle heading + checkbox — needs to keep
   the inline checkbox aligned and not get the section-header treatment above. */
.woocommerce-shipping-fields h3#ship-to-different-address {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.woocommerce-shipping-fields h3#ship-to-different-address label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-primary);
    cursor: pointer;
}

.woocommerce-shipping-fields h3#ship-to-different-address input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--wp--preset--color--accent);
}

/* Default form-row label inside checkout — uppercase eyebrow style */
form.woocommerce-checkout .form-row label,
form.woocommerce-checkout .form-row > label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--text-secondary);
    margin-bottom: 0.45rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
}

/* ================================
   7b. ORDER REVIEW (right column)
   ================================ */

#order_review_heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 1rem;
}

#order_review {
    background-color: var(--wp--preset--color--bg-secondary);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 1.75rem;
    position: sticky;
    top: calc(var(--header-height, 80px) + 1.5rem);
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin: 0 0 1.25rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
    vertical-align: top;
    text-align: left;
}

.woocommerce-checkout-review-order-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--text-muted);
    border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table th.product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-checkout-review-order-table .product-name .product-quantity {
    color: var(--wp--preset--color--text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .shipping th,
.woocommerce-checkout-review-order-table .shipping td,
.woocommerce-checkout-review-order-table tfoot tr:not(.order-total) th,
.woocommerce-checkout-review-order-table tfoot tr:not(.order-total) td {
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-secondary);
    border-bottom: none;
    padding: 0.45rem 0;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-primary);
    padding-top: 1rem;
    border-top: 1px solid var(--wp--preset--color--border);
    border-bottom: none;
}

.woocommerce-checkout-review-order-table .order-total .amount {
    font-size: 1.25rem;
}

/* ================================
   7c. PAYMENT METHODS
   ================================ */

.woocommerce-checkout-payment {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-top: 1.5rem;
}

.woocommerce-checkout-payment ul.payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    display: grid;
    gap: 0.5rem;
}

.woocommerce-checkout-payment ul.payment_methods li {
    background-color: #ffffff;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 5px;
    padding: 0.875rem 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce-checkout-payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 0 0 1px var(--wp--preset--color--accent) inset;
}

.woocommerce-checkout-payment ul.payment_methods li input[type="radio"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: var(--wp--preset--color--accent);
    vertical-align: middle;
}

.woocommerce-checkout-payment ul.payment_methods li label {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    cursor: pointer;
    vertical-align: middle;
}

.woocommerce-checkout-payment ul.payment_methods li label img {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    max-height: 22px;
    width: auto;
}

.woocommerce-checkout-payment .payment_box {
    background-color: var(--wp--preset--color--bg-tertiary);
    border-radius: 4px;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--wp--preset--color--text-secondary);
}

/* Kill WC's default triangle pseudo-element above .payment_box */
.woocommerce-checkout-payment .payment_box::before {
    display: none;
}

/* Terms checkbox + place order */
.woocommerce-terms-and-conditions-wrapper {
    margin: 1.25rem 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-secondary);
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
    align-items: flex-start;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: var(--wp--preset--color--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ================================
   7d. PLACE ORDER + REASSURANCE
   ================================ */

#place_order {
    width: 100%;
    padding: 1.05rem 1rem;
    background-color: var(--wp--preset--color--accent, #c2964a);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#place_order:hover {
    background-color: var(--wp--preset--color--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

#place_order:active {
    transform: translateY(0);
    box-shadow: none;
}

#place_order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secure-checkout reassurance line under the place-order button */
#order_review::after {
    content: "Secure checkout — your payment info is encrypted";
    display: block;
    margin-top: 0.875rem;
    font-size: 0.75rem;
    text-align: center;
    color: var(--wp--preset--color--text-muted);
    letter-spacing: 0.02em;
}

/* ================================
   7e. COUPON TOGGLE
   ================================ */

.woocommerce-form-coupon-toggle {
    margin-bottom: 1.5rem;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
    background-color: var(--wp--preset--color--bg-secondary);
    border: 1px dashed var(--wp--preset--color--border);
    border-left: 1px dashed var(--wp--preset--color--border);
    border-radius: 4px;
    padding: 0.875rem 1.125rem;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-secondary);
}

.woocommerce-form-coupon-toggle .showcoupon {
    color: var(--wp--preset--color--text-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 0.25rem;
}

.woocommerce-form-coupon-toggle .showcoupon:hover {
    color: var(--wp--preset--color--accent-hover);
}

.checkout_coupon {
    background-color: var(--wp--preset--color--bg-secondary);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkout_coupon .form-row {
    flex: 1 1 200px;
    margin: 0;
}

.checkout_coupon .form-row.form-row-last {
    flex: 0 0 auto;
}

.checkout_coupon button[type="submit"] {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
}

/* ================================
   7f. LOGIN PROMPT
   ================================ */

.woocommerce-form-login-toggle {
    margin-bottom: 1rem;
}

.woocommerce-form-login-toggle .woocommerce-info {
    background-color: var(--wp--preset--color--bg-secondary);
    border-left: 3px solid var(--wp--preset--color--accent);
    border-radius: 4px;
    padding: 0.875rem 1.125rem;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-form-login-toggle .showlogin {
    color: var(--wp--preset--color--text-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 0.25rem;
}

/* ================================
   8. REVIEWS / RATINGS
   ================================ */

.woocommerce-Reviews {
    margin-top: 2rem;
}

.woocommerce-Reviews-title {
    font-size: var(--wp--preset--font-size--3xl);
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.star-rating {
    color: var(--wp--preset--color--accent);
    font-size: var(--wp--preset--font-size--sm);
}

.woocommerce-review__author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.woocommerce-review__published-date {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--text-muted);
}

/* ================================
   9. MESSAGES / NOTICES
   ================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-base);
    border-left: 4px solid;
}

.woocommerce-message {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: var(--wp--preset--color--success);
    color: var(--wp--preset--color--success);
}

.woocommerce-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--wp--preset--color--text-secondary);
    color: var(--wp--preset--color--text-secondary);
}

.woocommerce-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--wp--preset--color--error);
    color: var(--wp--preset--color--error);
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* ================================
   10. RESPONSIVE
   ================================ */

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

    .woocommerce ul.products li.product .button {
        font-size: var(--wp--preset--font-size--sm);
        padding: 0.75rem 1rem;
    }

    .tlwp-shop-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .woocommerce-cart table.cart .product-thumbnail {
        display: none;
    }

    .woocommerce-cart table.cart th,
    .woocommerce-cart table.cart td {
        padding: 0.75rem 0.5rem;
        font-size: var(--wp--preset--font-size--sm);
    }

    .cart_totals {
        max-width: 100%;
    }

    #order_review {
        position: static;
    }
}

/* ================================
   10. MY ACCOUNT
   ================================ */

/* Page container — band sits flush with the site header, breathing room at bottom */
.woocommerce-account .site-main,
.woocommerce-checkout .site-main,
.woocommerce-cart .site-main {
    padding: 0 0 5rem;
}

/* Legacy entry-header (non-page.php contexts) — constrained band */
.woocommerce-account .entry-header {
    max-width: var(--tlwp-container-max, 1200px);
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    text-align: center;
}

.woocommerce-account .entry-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Notices — wrapper resets browser focus ring (WC auto-focuses this) */
.woocommerce-notices-wrapper:focus,
.woocommerce-notices-wrapper:focus-visible {
    outline: none;
}

.woocommerce-notices-wrapper:not(:empty) {
    max-width: var(--tlwp-container-max, 1200px);
    margin: 0 auto 1.5rem;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    /* Re-scope vars — keep child elements readable on the dark notice surface */
    --wp--preset--color--text-primary: #f5f5f5;
    --wp--preset--color--text-secondary: #b8b8b8;
    --wp--preset--color--border: #2a2a2a;
    position: relative;
    margin: 0 0 0.75rem;
    padding: 0.875rem 1.125rem 0.875rem 2.75rem;
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-left: 3px solid var(--wp--preset--color--accent);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #f5f5f5;
    font-size: 0.9375rem;
    line-height: 1.5;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    outline: none;
    animation: tlwp-notice-in 220ms ease-out;
}

.woocommerce-message:focus,
.woocommerce-message:focus-visible,
.woocommerce-error:focus,
.woocommerce-error:focus-visible,
.woocommerce-info:focus,
.woocommerce-info:focus-visible {
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(194, 150, 74, 0.45);
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) {
    color: var(--wp--preset--color--accent);
    text-decoration: underline;
}

.woocommerce-notices-wrapper:not(:empty) > :last-child {
    margin-bottom: 0;
}

/* Leading icon (checkmark / info / x) rendered via pseudo-element */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: -0.5625rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.woocommerce-message::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c2964a'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/></svg>");
}

.woocommerce-info::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666666'><path fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z' clip-rule='evenodd'/></svg>");
}

.woocommerce-error {
    border-left-color: var(--wp--preset--color--error);
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce-error::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23e74c3c'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/></svg>");
    top: 1.0625rem;
    margin-top: 0;
}

.woocommerce-error li {
    list-style: none;
}

/* "View cart" / action button inside the notice — sleek, compact, on-brand */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-message a.button.wc-forward,
.woocommerce-info a.button.wc-forward {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #ffffff);
    border: 1px solid var(--wp--preset--color--accent);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-message a.button.wc-forward:hover,
.woocommerce-info a.button.wc-forward:hover {
    background-color: var(--wp--preset--color--accent-hover);
    border-color: var(--wp--preset--color--accent-hover);
    color: var(--tlwp-color-accent-text, #ffffff);
}

@keyframes tlwp-notice-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== LOGGED-OUT: Login + Register forms ========== */

.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.woocommerce-account:not(.logged-in) .woocommerce > .u-columns,
.woocommerce-account:not(.logged-in) .woocommerce-customer-details,
.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
.woocommerce-account:not(.logged-in) form.woocommerce-form-register {
    display: block;
}

/* Two-column stack: login | register */
.woocommerce-account:not(.logged-in) .u-columns,
.woocommerce-account:not(.logged-in) #customer_login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 0;
}

@media (max-width: 768px) {
    .woocommerce-account:not(.logged-in) .u-columns,
    .woocommerce-account:not(.logged-in) #customer_login {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.u-column1,
.u-column2,
.woocommerce-account:not(.logged-in) .col-1,
.woocommerce-account:not(.logged-in) .col-2 {
    background-color: var(--wp--preset--color--bg-card);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 2.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: none !important;
    width: auto !important;
    float: none !important;
}

.u-column1 h2,
.u-column2 h2,
.woocommerce-account:not(.logged-in) .col-1 h2,
.woocommerce-account:not(.logged-in) .col-2 h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.375rem;
    padding: 0;
    border: none;
    color: var(--wp--preset--color--text-primary);
}

/* Subhead under the column title — describes the column's purpose */
.u-column1 h2 + p,
.u-column2 h2 + p,
.woocommerce-account:not(.logged-in) .col-1 h2 + p,
.woocommerce-account:not(.logged-in) .col-2 h2 + p {
    margin: 0 0 1.75rem;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-secondary);
    line-height: 1.55;
}

/* Form fields inside my-account */
.woocommerce form .form-row,
.woocommerce-MyAccount-content form .form-row {
    display: block;
    margin: 0 0 1.25rem;
    padding: 0;
}

.woocommerce form .form-row label,
.woocommerce-MyAccount-content form .form-row label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-secondary);
}

.woocommerce form .form-row .required {
    /* Hardcoded — the error token is intentionally soft for tinted notice
       panels; an inline asterisk on a light surface needs ~5:1 contrast. */
    color: #c0392b;
    text-decoration: none;
    margin-left: 0.2em;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    background-color: var(--wp--preset--color--bg-primary);
    color: var(--wp--preset--color--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    line-height: 1.4;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 0 0 3px rgba(194, 150, 74, 0.12);
}

/* Remember me + form actions */
.woocommerce-form-login__rememberme,
.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-secondary);
}

.woocommerce-form-login__rememberme input,
.woocommerce-form__input-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--wp--preset--color--accent);
}

/* Row that holds rememberme + lost-password — align them on opposite sides */
.woocommerce-form-login p.form-row:has(> .woocommerce-form-login__rememberme) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce-Button.button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.95rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Lost password link — utility-style, not a primary accent */
.woocommerce-LostPassword,
.lost_password {
    margin: 0;
    font-size: 0.8125rem;
}

.woocommerce-LostPassword a,
.lost_password a {
    color: var(--wp--preset--color--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-LostPassword a:hover,
.lost_password a:hover {
    color: var(--wp--preset--color--accent-hover);
}

.woocommerce-privacy-policy-text {
    margin: 0.25rem 0 0.875rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--wp--preset--color--text-muted);
}

.woocommerce-privacy-policy-text a {
    color: var(--wp--preset--color--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========== LOGGED-IN: Account Dashboard ========== */

.woocommerce-account.logged-in .woocommerce {
    max-width: var(--tlwp-container-max, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .woocommerce-account.logged-in .woocommerce {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Navigation sidebar */
.woocommerce-MyAccount-navigation {
    background-color: var(--wp--preset--color--bg-card);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 0.5rem;
    position: sticky;
    top: calc(var(--header-height, 80px) + 1.5rem);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 900px) {
    .woocommerce-MyAccount-navigation {
        position: static;
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--wp--preset--color--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.woocommerce-MyAccount-navigation a:hover {
    background-color: var(--wp--preset--color--bg-secondary);
    color: var(--wp--preset--color--text-primary);
}

/* Logout — visually demoted, sits at the bottom */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--wp--preset--color--border);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--wp--preset--color--text-secondary);
    font-size: 0.875rem;
}

.woocommerce-MyAccount-navigation .is-active > a,
.woocommerce-MyAccount-navigation--active > a {
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    font-weight: 600;
}

.woocommerce-MyAccount-navigation .is-active > a:hover,
.woocommerce-MyAccount-navigation--active > a:hover {
    background-color: var(--wp--preset--color--accent-hover);
    color: var(--tlwp-color-accent-text, #1a1a1a);
}

/* Account content area */
.woocommerce-MyAccount-content {
    min-width: 0;
}

.woocommerce-MyAccount-content > p:first-child,
.woocommerce-MyAccount-content > h2:first-of-type {
    margin-top: 0;
}

.woocommerce-MyAccount-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-MyAccount-content h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted);
    border-bottom: none;
    padding-bottom: 0;
    margin: 2.5rem 0 1rem;
}

.woocommerce-MyAccount-content p {
    line-height: 1.65;
    color: var(--wp--preset--color--text-secondary);
}

.woocommerce-MyAccount-content > p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

/* Highlight the user name / order link in greeting copy */
.woocommerce-MyAccount-content mark,
.woocommerce-MyAccount-content strong {
    background: none;
    color: var(--wp--preset--color--text-primary);
    font-weight: 700;
}

.woocommerce-MyAccount-content > p a {
    color: var(--wp--preset--color--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.woocommerce-MyAccount-content > p a:hover {
    color: var(--wp--preset--color--accent-hover);
}

/* ========== Account Dashboard hero ========== */

/* Intentional dark/elevated card (NOT a light-surface island) — inherits the
   on-dark light text vars; the gold radial glow only reads on a dark surface. */
.tlwp-account-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin: 0 0 1.5rem;
    padding: 2rem 2.25rem;
    background-color: var(--wp--preset--color--bg-secondary);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    background-image:
        radial-gradient(120% 60% at 100% 0%, rgba(194, 150, 74, 0.12) 0%, rgba(194, 150, 74, 0) 60%),
        radial-gradient(80% 100% at 0% 100%, rgba(194, 150, 74, 0.06) 0%, rgba(194, 150, 74, 0) 60%);
}

@media (max-width: 600px) {
    .tlwp-account-hero {
        padding: 1.5rem 1.5rem;
        align-items: flex-start;
    }
}

.tlwp-account-hero__main {
    min-width: 0;
    flex: 1 1 280px;
}

.tlwp-account-hero__eyebrow {
    display: block;
    font-family: var(--tlwp-font-accent, 'Rock Salt', cursive);
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--wp--preset--color--text-muted);
    margin-bottom: 0.625rem;
}

.tlwp-account-hero__name {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--wp--preset--color--text-primary);
    margin: 0;
    padding: 0;
    border: none;
}

.tlwp-account-hero__meta {
    margin: 0.625rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-secondary);
    line-height: 1.4;
}

.tlwp-account-hero__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.tlwp-account-hero__stat strong {
    color: var(--wp--preset--color--text-primary);
    font-weight: 700;
}

.tlwp-account-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

.tlwp-account-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    border: 1px solid var(--wp--preset--color--accent);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.tlwp-account-hero__cta:hover {
    background-color: var(--wp--preset--color--accent-hover);
    border-color: var(--wp--preset--color--accent-hover);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    transform: translateY(-1px);
}

.tlwp-account-hero__cta svg {
    flex-shrink: 0;
}

.tlwp-account-hero__cta--ghost {
    background-color: transparent;
    color: var(--wp--preset--color--text-primary);
    border-color: var(--wp--preset--color--text-primary);
}

.tlwp-account-hero__cta--ghost:hover {
    background-color: var(--wp--preset--color--bg-elevated);
    color: var(--wp--preset--color--text-primary);
    border-color: var(--wp--preset--color--text-primary);
}

/* ========== Last order summary card ========== */

.tlwp-account-last-order {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--wp--preset--color--bg-card);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 700px) {
    .tlwp-account-last-order {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.tlwp-account-last-order__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tlwp-account-last-order__eyebrow {
    font-family: var(--tlwp-font-accent, 'Rock Salt', cursive);
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--wp--preset--color--text-muted);
}

.tlwp-account-last-order__body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.tlwp-account-last-order__id {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-primary);
    text-decoration: none;
    letter-spacing: -0.005em;
    white-space: nowrap;
}

.tlwp-account-last-order__id:hover {
    color: var(--wp--preset--color--accent-hover);
}

.tlwp-account-last-order__meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem 1.5rem;
}

.tlwp-account-last-order__meta > div {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tlwp-account-last-order__meta dt {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted);
    margin: 0;
}

.tlwp-account-last-order__meta dd {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    margin: 0;
}

.tlwp-account-last-order__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--text-primary);
    text-decoration: none;
    padding: 0.625rem 1rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 999px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tlwp-account-last-order__link:hover {
    border-color: var(--wp--preset--color--text-primary);
    color: var(--wp--preset--color--text-primary);
}

/* Order status pill — share the same look the orders table uses */
.tlwp-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
}

.tlwp-status--pending    { background-color: #fef3c7; color: #92400e; }
.tlwp-status--processing { background-color: #dbeafe; color: #1e40af; }
.tlwp-status--completed  { background-color: #d1fae5; color: #065f46; }
.tlwp-status--cancelled,
.tlwp-status--failed     { background-color: #fee2e2; color: #991b1b; }
.tlwp-status--on-hold,
.tlwp-status--refunded   { background-color: var(--wp--preset--color--bg-tertiary); color: var(--wp--preset--color--text-secondary); }

/* Quick-action cards grid — same as before, slightly tighter top margin since
   the hero already provides separation. */
.tlwp-account-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0.5rem 0 2.5rem;
}

.tlwp-account-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background-color: var(--wp--preset--color--bg-card);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--wp--preset--color--text-primary);
    transition: all var(--transition-fast);
}

.tlwp-account-card:hover {
    border-color: var(--wp--preset--color--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tlwp-account-card__icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--wp--preset--color--bg-secondary);
    color: var(--wp--preset--color--accent);
    margin-bottom: 0.25rem;
}

.tlwp-account-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    margin: 0;
}

.tlwp-account-card__desc {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
    margin: 0;
    line-height: 1.45;
}

/* ========== Orders table ========== */

.woocommerce-orders-table,
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--wp--preset--color--bg-card);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.9375rem;
}

.woocommerce-orders-table thead th,
.woocommerce-MyAccount-content table.shop_table thead th {
    padding: 0.875rem 1rem;
    background-color: var(--wp--preset--color--bg-secondary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.woocommerce-orders-table tbody td,
.woocommerce-MyAccount-content table.shop_table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
    vertical-align: middle;
    color: var(--wp--preset--color--text-primary);
}

.woocommerce-orders-table tbody tr:last-child td,
.woocommerce-MyAccount-content table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-orders-table tbody tr:hover td {
    background-color: var(--wp--preset--color--bg-secondary);
}

.woocommerce-orders-table__cell-order-number a {
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    text-decoration: none;
}

.woocommerce-orders-table__cell-order-number a:hover {
    color: var(--wp--preset--color--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Order-actions buttons — split: primary (view/pay) accent, secondary outline */
.woocommerce-orders-table__cell-order-actions {
    text-align: right;
    white-space: nowrap;
}

/* Order status pill. The .tlwp-order-status span (from the orders.php template
   override) is the pill — the surrounding <td> stays a normal table cell so the
   row layout and hover background stay intact. */
.tlwp-order-status,
.woocommerce-OrderDetails-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
    /* Neutral fallback for any status without an explicit color below. */
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--wp--preset--color--text-secondary);
}

/* Status colors — translucent tint + bright text, tuned for the dark surface. */
.woocommerce-orders-table__row--status-pending .tlwp-order-status {
    background-color: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
}

.woocommerce-orders-table__row--status-processing .tlwp-order-status {
    background-color: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

.woocommerce-orders-table__row--status-completed .tlwp-order-status {
    background-color: rgba(74, 222, 128, 0.16);
    color: #6ee7a8;
}

.woocommerce-orders-table__row--status-cancelled .tlwp-order-status,
.woocommerce-orders-table__row--status-failed .tlwp-order-status {
    background-color: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
}

.woocommerce-orders-table__row--status-on-hold .tlwp-order-status,
.woocommerce-orders-table__row--status-refunded .tlwp-order-status {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--wp--preset--color--text-secondary);
}

/* Order action buttons */
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-MyAccount-content .button {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 4px;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
    display: inline-block;
    text-transform: none;
    letter-spacing: normal;
}

/* Empty orders state */
.woocommerce-MyAccount-content .woocommerce-info {
    margin: 0 0 1.5rem;
}

/* Pagination for orders */
.woocommerce-pagination .next,
.woocommerce-pagination .prev {
    padding: 0.5rem 1rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--wp--preset--color--text-primary);
    font-size: 0.875rem;
}

.woocommerce-pagination .next:hover,
.woocommerce-pagination .prev:hover {
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #1a1a1a);
    border-color: var(--wp--preset--color--accent);
}

/* ========== Single Order View ========== */

.woocommerce-order-details,
.woocommerce-order-downloads,
.woocommerce-customer-details {
    margin-bottom: 2.5rem;
}

.woocommerce-order-details__title,
.woocommerce-order-downloads__title,
.woocommerce-column__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}

.woocommerce-order-details table.shop_table td.product-name a {
    color: var(--wp--preset--color--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-order-details table.shop_table td.product-name a:hover {
    color: var(--wp--preset--color--accent-hover);
}

/* Order item rows: thumbnail + name layout */
.woocommerce-order-details table.shop_table td.product-name {
    padding: 1rem 0.75rem 1rem 0;
}

.tlwp-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tlwp-order-item__thumb {
    flex: 0 0 auto;
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tlwp-order-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tlwp-order-item__image--placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.tlwp-order-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.tlwp-order-item__body .product-quantity {
    color: var(--wp--preset--color--text-muted);
    font-weight: 500;
    margin-left: 0.25rem;
}

.woocommerce-order-details table.shop_table tfoot th {
    text-align: right;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: transparent;
    color: var(--wp--preset--color--text-secondary);
    padding: 0.625rem 1rem;
}

.woocommerce-order-details table.shop_table tfoot td {
    text-align: right;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    background-color: transparent;
}

/* Total row — promote, don't recolor to accent */
.woocommerce-order-details table.shop_table tfoot tr:last-child th,
.woocommerce-order-details table.shop_table tfoot tr:last-child td {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-primary);
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Customer details two-column block */
.woocommerce-customer-details .col2-set,
.woocommerce-order-details + .woocommerce-customer-details .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0;
}

@media (max-width: 700px) {
    .woocommerce-customer-details .col2-set {
        grid-template-columns: 1fr;
    }
}

.woocommerce-customer-details .col2-set > div {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 1.5rem;
}

.woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.7;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text-secondary);
    margin: 0;
}

/* Order received summary stack */
.woocommerce-thankyou-order-received {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-primary);
    margin-bottom: 1.5rem;
}

ul.order_details {
    list-style: none;
    margin: 0 0 2rem;
    padding: 1.5rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
}

ul.order_details li {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--text-muted);
    line-height: 1.4;
}

ul.order_details li strong {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--wp--preset--color--text-primary);
}

/* ========== Addresses ========== */

.woocommerce-Addresses.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

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

.woocommerce-Address {
    background-color: var(--wp--preset--color--bg-card);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: none !important;
    width: auto !important;
    float: none !important;
}

.woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0;
    border-bottom: none;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    font-size: 0.8125rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-muted) !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce-Address-title .edit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.woocommerce-Address-title .edit:hover {
    color: var(--wp--preset--color--accent-hover);
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.7;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text-secondary);
    margin: 0;
}

/* Edit address form */
.woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-fields fieldset {
    border: none;
    padding: 0;
    margin: 2rem 0 0;
}

.woocommerce-account .woocommerce-MyAccount-content form legend {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding: 0;
}

/* Responsive: Orders table on mobile */
@media (max-width: 768px) {
    .woocommerce-orders-table,
    .woocommerce-MyAccount-content table.shop_table {
        display: block;
        border: none;
        background-color: transparent;
    }

    .woocommerce-orders-table thead,
    .woocommerce-MyAccount-content table.shop_table thead {
        display: none;
    }

    .woocommerce-orders-table tbody,
    .woocommerce-MyAccount-content table.shop_table tbody {
        display: block;
    }

    .woocommerce-orders-table tbody tr,
    .woocommerce-MyAccount-content table.shop_table tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        padding: 1rem;
        background-color: var(--wp--preset--color--bg-primary);
        border: 1px solid var(--wp--preset--color--border);
        border-radius: 6px;
    }

    .woocommerce-orders-table tbody td,
    .woocommerce-MyAccount-content table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.375rem 0;
        border-bottom: none;
        font-size: 0.875rem;
    }

    .woocommerce-orders-table tbody td::before,
    .woocommerce-MyAccount-content table.shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--wp--preset--color--text-muted);
    }
}

/* ================================
   12. BLOCKS CHECKOUT (wc-block-*)
   The modern checkout uses block-based components that ship with light-theme
   defaults. Re-skin labels, cards, radios, and dividers for the dark surface.
   ================================ */

/* Section headings ("Contact information", "Shipping address", etc.) */
.wc-block-components-checkout-step__title,
.wc-block-components-title,
.wc-block-checkout h2,
.wc-block-checkout h3 {
    color: #f5f5f5;
}

.wc-block-components-checkout-step__description,
.wc-block-components-checkout-step__heading-content {
    color: rgba(255, 255, 255, 0.7);
}

/* "Express Checkout" / "Or continue below" dividers */
.wc-block-components-express-payment__title-container,
.wc-block-components-checkout-express-payment-continue-rule {
    color: rgba(255, 255, 255, 0.65);
}

.wc-block-components-checkout-express-payment-continue-rule::before,
.wc-block-components-checkout-express-payment-continue-rule::after {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Text inputs — dark surface to match the page, light text inside. */
.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-address-form input,
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="tel"] {
    color: #f5f5f5 !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox input:focus,
.wc-block-components-address-form input:focus {
    border-color: var(--wp--preset--color--accent) !important;
    box-shadow: 0 0 0 2px rgba(194, 150, 74, 0.2) !important;
    outline: none !important;
}

.wc-block-components-text-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Floating labels — readable on the dark input surface. */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-checkout-step label {
    color: rgba(255, 255, 255, 0.7);
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input input:not(:placeholder-shown) + label,
.wc-block-components-text-input.has-value label {
    color: rgba(255, 255, 255, 0.85);
}

/* Validation error text */
.wc-block-components-validation-error {
    color: var(--wp--preset--color--error);
}

/* Saved address card ("Cameron Hawkins / 123 Street, Dallas, ...") */
.wc-block-components-address-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    color: #f5f5f5;
}

/* Force light text on every descendant — WC ships with inline-ish styles
   that otherwise render the detail line near-invisible on dark. */
.wc-block-components-address-card,
.wc-block-components-address-card *,
.wc-block-components-address-card address,
.wc-block-components-address-card span,
.wc-block-components-address-card p,
.wc-block-components-address-card__address,
.wc-block-components-address-card__address-section {
    color: #f5f5f5 !important;
}

.wc-block-components-address-card__edit {
    color: var(--wp--preset--color--accent) !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none;
}

.wc-block-components-address-card__edit:hover {
    color: var(--wp--preset--color--accent-hover) !important;
}

/* Checkboxes — "Use same address for billing", marketing opt-in, etc. */
.wc-block-components-checkbox .wc-block-components-checkbox__label,
.wc-block-components-checkbox__label {
    color: #f5f5f5;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input {
    background-color: #ffffff;
    border-color: #d0d0d0;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input:checked {
    background-color: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
    fill: #ffffff;
}

/* Radio options — shipping methods, payment methods.
   WC absolutely-positions the radio input inside the label, so we need
   a healthy left padding on the option to keep the label clear of it. */
.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
    position: relative;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #f5f5f5;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    margin-bottom: 0.5rem;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.wc-block-components-radio-control__option:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control__option[data-checked="true"] {
    border-color: var(--wp--preset--color--accent);
    background-color: rgba(194, 150, 74, 0.08);
}

/* The radio circle itself — positioned within the new left padding. */
.wc-block-components-radio-control__input {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin: 0 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    background-color: transparent !important;
    border-radius: 50% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.wc-block-components-radio-control__input:checked {
    border-color: var(--wp--preset--color--accent) !important;
}

.wc-block-components-radio-control__input:checked::after {
    content: "";
    position: absolute;
    inset: 3px;
    background-color: var(--wp--preset--color--accent) !important;
    border-radius: 50%;
}

.wc-block-components-radio-control__label,
.wc-block-components-radio-control__description {
    color: #f5f5f5;
}

.wc-block-components-radio-control__secondary-label {
    color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
}

/* Order summary panel (right column) */
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-components-totals-item {
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.12);
}

.wc-block-components-totals-item__label {
    color: rgba(255, 255, 255, 0.7);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #f5f5f5;
    font-weight: 700;
}

.wc-block-components-product-name,
.wc-block-components-order-summary-item__description {
    color: #f5f5f5;
}

.wc-block-components-order-summary-item__quantity {
    color: rgba(255, 255, 255, 0.7);
}

/* Generic dividers/panels inside the checkout */
.wc-block-checkout hr,
.wc-block-components-panel,
.wc-block-components-checkout-step {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Primary "Place Order" button — use brand accent */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
    background-color: var(--wp--preset--color--accent);
    color: var(--tlwp-color-accent-text, #ffffff);
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 150ms ease;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
    background-color: var(--wp--preset--color--accent-hover);
}
