/**
 * CBH Theme - Multi-Theme System
 * CardboardHobby.com
 *
 * Three themes: Dark (default), Blue, Light
 * Accent colors: red, gold, green
 */

/* ==========================================================================
   Theme: Dark (default) — neutral blacks & greys
   ========================================================================== */

:root,
[data-theme="dark"] {
    /* Core palette */
    --cbh-bg:           #0a0a0a;
    --cbh-surface:      #141414;
    --cbh-surface-2:    #1a1a1a;
    --cbh-surface-3:    #222222;
    --cbh-border:       #2a2a2a;
    --cbh-border-light: #333333;

    /* Text */
    --cbh-text:         #e8e8e8;
    --cbh-text-muted:   #999999;
    --cbh-text-dim:     #666666;

    /* Accent colors */
    --cbh-red:          #e31836;
    --cbh-red-glow:     rgba(227, 24, 54, 0.15);
    --cbh-gold:         #d4a843;
    --cbh-gold-dim:     #bf7c00;
    --cbh-navy:         #3a6b8c;
    --cbh-brown:        #5a4a42;
    --cbh-green:        #2ecc71;
    --cbh-live-red:     #e11d1d;

    /* Spacing */
    --cbh-radius:       8px;
    --cbh-radius-lg:    12px;

    /* Theme-specific overrides for elements with hardcoded colors */
    --cbh-heading-color:    #fff;
    --cbh-link-hover:       #e8c05a;
    --cbh-input-bg:         var(--cbh-surface-2);
    --cbh-banner-blur:      blur(4px) brightness(0.35);
    --cbh-card-shadow:      0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Theme: Blue — original navy-tinted dark theme
   ========================================================================== */

[data-theme="blue"] {
    --cbh-bg:           #0f1117;
    --cbh-surface:      #181a24;
    --cbh-surface-2:    #1f2230;
    --cbh-surface-3:    #282b3a;
    --cbh-border:       #2a2d3e;
    --cbh-border-light: #353849;

    --cbh-text:         #e8e9ed;
    --cbh-text-muted:   #9499ad;
    --cbh-text-dim:     #6b7089;

    --cbh-heading-color:    #fff;
    --cbh-link-hover:       #e8c05a;
    --cbh-input-bg:         var(--cbh-surface-2);
    --cbh-banner-blur:      blur(4px) brightness(0.35);
    --cbh-card-shadow:      0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Theme: Light — clean white
   ========================================================================== */

[data-theme="light"] {
    --cbh-bg:           #f5f5f5;
    --cbh-surface:      #ffffff;
    --cbh-surface-2:    #f0f0f0;
    --cbh-surface-3:    #e8e8e8;
    --cbh-border:       #d4d4d4;
    --cbh-border-light: #e0e0e0;

    --cbh-text:         #1a1a1a;
    --cbh-text-muted:   #666666;
    --cbh-text-dim:     #999999;

    --cbh-red:          #d01530;
    --cbh-red-glow:     rgba(208, 21, 48, 0.1);
    --cbh-gold:         #b8922a;
    --cbh-gold-dim:     #9a7400;

    --cbh-heading-color:    #111111;
    --cbh-link-hover:       #c9960e;
    --cbh-input-bg:         #ffffff;
    --cbh-banner-blur:      blur(4px) brightness(0.6);
    --cbh-card-shadow:      0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Base / Typography
   ========================================================================== */

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cbh-bg);
    color: var(--cbh-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--cbh-gold);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cbh-link-hover);
}

h1, h2, h3, h4, h5, h6,
.entry-title {
    color: var(--cbh-heading-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1, .page-title { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* ==========================================================================
   Layout Wrappers
   ========================================================================== */

.wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
}

.site-main .entry-content {
    color: var(--cbh-text);
}

/* ==========================================================================
   Page Header / Banner
   ========================================================================== */

.page-header-title {
    position: relative;
    padding: 32px 0;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid var(--cbh-border);
}

/* Blurred backdrop layer */
.page-header-title::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-image: url('../images/cbh-banner.png');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(4px) brightness(1);
    z-index: 0;
}

/* Dark overlay for contrast */
.page-header-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 12, 0.7) 0%,
        rgba(10, 10, 12, 0.4) 50%,
        rgba(10, 10, 12, 0.7) 100%
    );
    z-index: 1;
}

.page-header-title > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .page-header-title::before {
        background-image: url('../images/cbh-banner.png');
    }
}

/* Logo strip overlay */
img.cbh-banner {
    margin: 0 auto;
    max-width: 500px;
    display: block;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

@media (max-width: 767px) {
    img.cbh-banner {
        max-width: 90%;
        padding: 0 10px;
    }
}

/* eBay Seller ID badge */
.cbh-seller-badge {
    text-align: center;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: var(--cbh-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cbh-seller-badge a {
    color: var(--cbh-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cbh-seller-badge a:hover {
    color: #fff;
}

/* ==========================================================================
   Section Headers (Homepage — "Website Exclusive Breaks", etc.)
   ========================================================================== */

h3.section-header {
    color: #fff !important;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 32px 0 20px !important;
    padding: 0 0 14px 0 !important;
    position: relative;
    border: none;
    line-height: 1.3;
}

/* First section header on page — no top margin so it aligns with sidebar */
.entry-content h3.section-header:first-child {
    margin-top: 0 !important;
}

/* Animated underline — sweeps in from left on scroll */
h3.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cbh-red), var(--cbh-gold));
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* When scrolled into view, expand the underline */
h3.section-header.cbh-visible::after {
    width: 100px;
}

@media (max-width: 767px) {
    h3.section-header {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        margin: 24px 0 16px !important;
        padding: 0 0 10px 0 !important;
    }
}

/* ==========================================================================
   Monthly Break Promo Container
   ========================================================================== */

.monthly-container {
    display: flex;
    flex-direction: row;
    border-radius: var(--cbh-radius-lg);
    border: 1px solid var(--cbh-border);
    overflow: hidden;
    max-width: 1140px;
    color: #fff;
    padding: 20px;
    margin: 20px auto;
    background-image: url('https://cardboardhobby.com/wp-content/uploads/2024/12/superbowl-background-opac-2.png');
    background-size: cover;
    background-position: center;
    background-color: var(--cbh-surface-2);
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.monthly-break-image {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-self: center;
}

.monthly-break-content {
    flex: 1;
    text-align: center;
    align-self: center;
}

.monthly-break-content h2 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-monthly-break {
    color: #fff;
    background-color: var(--cbh-red);
    padding: 7px 10px;
    font-weight: bold;
    font-size: 22px;
    margin-top: 15px;
    width: 100%;
    max-width: 250px;
    border: none;
    border-radius: var(--cbh-radius);
    transition: background-color 0.2s ease;
}

.btn-monthly-break:hover {
    color: #fff;
    background-color: #ab0f0f;
}

.monthly-stock-text {
    margin-top: 5px;
    color: var(--cbh-gold);
    font-weight: bold;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .monthly-container {
        flex-direction: column;
        margin-right: 10px;
        margin-left: 10px;
    }

    .monthly-container h2 {
        padding-top: 10px;
    }

    .monthly-break-image {
        max-width: 100%;
    }
}

/* ==========================================================================
   Top Bar - Giveaway / Loyalty Banner
   ========================================================================== */

.giveaway-banner {
    background: linear-gradient(135deg, var(--cbh-red) 0%, #8b1a2b 100%);
    color: #fff;
    font-size: 14px;
    text-align: center;
    display: block;
    width: 100%;
    padding: 8px 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.giveaway-banner p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-shadow: none;
}

.giveaway-banner a {
    color: #fff;
    text-decoration: none;
}

.giveaway-banner a:hover {
    color: var(--cbh-gold);
    text-decoration: none;
}

@media (max-width: 767px) {
    .giveaway-banner {
        font-size: 12px;
        padding: 6px 8px;
    }

    .giveaway-banner::before,
    .giveaway-banner::after {
        display: none !important;
    }
}

.loyalty-banner {
    display: inline-block;
    background: linear-gradient(135deg, var(--cbh-gold), #e8c05a);
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .loyalty-banner {
        display: block;
        margin-bottom: 5px;
        text-align: center;
        font-size: 10px;
    }
}

/* ==========================================================================
   Sticky Header (Bootstrap sticky-top)
   ========================================================================== */

/* WP admin bar offset */
.admin-bar .cbh-sticky-header {
    top: 32px;
}

/* ==========================================================================
   Account Navigation Bar
   ========================================================================== */

.account-nav.container-fluid {
    text-align: right;
    padding: 8px 0;
    background-color: var(--cbh-surface);
    border-bottom: 1px solid var(--cbh-border);
    padding-right: 20px;
    font-weight: 500;
    font-size: 13px;
    color: var(--cbh-text-muted);
}

.account-nav.container-fluid a {
    margin-left: 15px;
    display: inline-block;
    color: var(--cbh-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.account-nav.container-fluid a:hover {
    color: var(--cbh-gold);
}

.account-nav .cart-count {
    color: var(--cbh-gold);
    font-weight: 700;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

#main-nav {
    border-bottom: 1px solid var(--cbh-border);
}

#main-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #fff !important;
    padding: 4px 0;
}

#main-nav .navbar-brand .navbar-logo {
    max-height: 45px;
    width: auto;
}

.navbar-dark .navbar-toggler {
    color: #ffffff;
    border-color: var(--cbh-border);
    background-color: var(--cbh-surface-2);
    border-radius: var(--cbh-radius);
}

#main-nav .nav-link {
    color: var(--cbh-text-muted) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px !important;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#main-nav .nav-link:hover,
#main-nav .nav-link.active {
    color: #fff !important;
}

#main-nav .dropdown-menu {
    background: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 6px 0;
}

#main-nav .dropdown-item {
    color: var(--cbh-text);
    padding: 8px 16px;
    font-size: 14px;
}

#main-nav .dropdown-item:hover {
    background: var(--cbh-surface-3);
    color: var(--cbh-gold);
}

/* ==========================================================================
   WooCommerce - Product Cards & Grid
   ========================================================================== */

.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    padding: 0;
    list-style: none;
    margin: 0;
    clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
    display: flex !important;
    flex-direction: column;
    background: var(--cbh-surface);
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    position: relative;
}

ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--cbh-border-light);
}

/* Product link wrapper — must grow to push button to bottom */
ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product > a:first-of-type {
    flex: 1;
    display: flex;
    flex-direction: column;
}

ul.products li.product a img,
ul.products li.product img {
    border-radius: 0;
    margin: 0 !important;
    width: 100%;
    height: auto;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 16px 6px !important;
    margin: 0 !important;
    line-height: 1.4;
}

/* Price */
ul.products li.product .price {
    color: var(--cbh-gold) !important;
    font-weight: 700;
    padding: 8px 16px 12px;
    font-size: 15px;
    margin-top: auto;
}

ul.products li.product .price del {
    color: var(--cbh-text-dim);
    opacity: 0.6;
}

ul.products li.product .price ins {
    color: var(--cbh-gold);
    text-decoration: none;
    font-weight: 700;
}

/* Stock (legacy — now using .cbh-stock-bar instead) */
ul.products li.product .stock {
    padding: 0 16px;
    font-size: 12px;
    display: none;
}

/* Button — pinned to bottom of card (override WooCommerce defaults) */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
ul.products li.product .button,
ul.products li.product .add_to_cart_button,
ul.products li.product a.added_to_cart {
    margin-top: auto !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    margin-bottom: 16px !important;
    background: transparent;
    color: var(--cbh-text);
    border: 1px solid var(--cbh-border-light);
    border-radius: var(--cbh-radius);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: center;
    display: block !important;
    display: block;
    text-decoration: none;
}

ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover {
    background: var(--cbh-red);
    border-color: var(--cbh-red);
    color: #fff;
}

/* Stock urgency bar — bottom of product card */
.cbh-stock-bar {
    text-align: center;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    border-radius: 0 0 var(--cbh-radius-lg) var(--cbh-radius-lg);
}

.cbh-stock-low {
    background: var(--cbh-red);
    color: #fff;
}

.cbh-stock-out {
    background: var(--cbh-surface-3);
    color: var(--cbh-text-muted);
}

/* When stock bar is present, tighten button bottom margin */
ul.products li.product .button + .cbh-stock-bar,
ul.products li.product .add_to_cart_button + .cbh-stock-bar {
    margin-top: -2px;
}

/* Sale badge — replace circle with banner */
.woocommerce span.onsale {
    position: static !important;
    display: block !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: var(--cbh-gold) !important;
    color: var(--cbh-bg) !important;
    text-align: center;
}

ul.products li.outofstock .price {
    display: none !important;
}

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

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

    ul.products li.product .woocommerce-loop-product__title,
    ul.products li.product h2 {
        font-size: 12px;
        padding: 10px 10px 2px;
    }

    ul.products li.product .price {
        padding: 4px 10px;
        font-size: 13px;
    }

    ul.products li.product .button,
    ul.products li.product .add_to_cart_button {
        margin: auto 10px 10px;
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Product View Toggle (Grid / List)
   ========================================================================== */

.cbh-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 20px;
}

.cbh-section-header-row h3.section-header {
    margin: 0 !important;
}

/* First section header row — no top margin so it aligns with sidebar */
.entry-content .cbh-section-header-row:first-child {
    margin-top: 0;
}

.cbh-view-toggle {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cbh-view-btn {
    background: none;
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius);
    color: var(--cbh-text-muted);
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cbh-view-btn:hover {
    color: var(--cbh-text);
    border-color: var(--cbh-border-light);
}

.cbh-view-btn.active {
    color: var(--cbh-gold);
    border-color: var(--cbh-gold);
    background: var(--cbh-surface-2);
}

.cbh-view-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   List View Layout

   Grid layout per card:
   Row 1: [badges — breaking pill + sale pill]
   Row 2: [product title — full content width]
   Row 3: [price + stock]  [button]
   Image spans all rows on the left.
   ========================================================================== */

ul.products.cbh-list-view {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

/* Each product card becomes a CSS grid in list view */
ul.products.cbh-list-view li.product {
    display: grid !important;
    grid-template-columns: 140px 1fr auto;
    grid-template-rows: auto auto 1fr;
    flex-direction: unset !important;
    min-height: 130px;
    max-height: none;
}

ul.products.cbh-list-view li.product {
    position: relative;
}

ul.products.cbh-list-view li.product:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Full-card clickable overlay for list view */
ul.products.cbh-list-view li.product .cbh-list-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Ensure buttons and links sit above the overlay so they remain clickable */
ul.products.cbh-list-view li.product .button,
ul.products.cbh-list-view li.product .add_to_cart_button,
ul.products.cbh-list-view li.product a.added_to_cart,
ul.products.cbh-list-view li.product .cbh-list-title a,
ul.products.cbh-list-view li.product .cbh-list-badges {
    position: relative;
    z-index: 2;
}

/* Hide overlay in grid view */
ul.products:not(.cbh-list-view) .cbh-list-click-overlay {
    display: none !important;
}

/* ---- Image: spans left column, all rows ---- */
ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link,
ul.products.cbh-list-view li.product > a:first-of-type {
    grid-column: 1 / 2;
    grid-row: 1 / -1;
    display: block !important;
    flex: unset;
    overflow: hidden;
}

ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link img,
ul.products.cbh-list-view li.product > a:first-of-type img {
    width: 140px !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* ---- Hide original title + price inside the link ---- */
ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link .woocommerce-loop-product__title,
ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link h2,
ul.products.cbh-list-view li.product > a:first-of-type .woocommerce-loop-product__title,
ul.products.cbh-list-view li.product > a:first-of-type h2 {
    display: none;
}

ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link .price,
ul.products.cbh-list-view li.product > a:first-of-type .price {
    display: none;
}

/* ---- Hide original breaking banners + sale badge + stock bar (replaced by list badges) ---- */
ul.products.cbh-list-view li.product.cbh-list-ready .product-today,
ul.products.cbh-list-view li.product.cbh-list-ready .product-tomorrow,
ul.products.cbh-list-view li.product.cbh-list-ready .product-future,
ul.products.cbh-list-view li.product.cbh-list-ready .onsale,
ul.products.cbh-list-view li.product.cbh-list-ready .cbh-stock-bar {
    display: none !important;
}

/* ---- Row 1: Badges (breaking pill + sale pill) ---- */
ul.products.cbh-list-view li.product .cbh-list-badges {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    display: flex;
    gap: 8px;
    padding: 12px 16px 0;
    align-items: center;
    flex-wrap: wrap;
}

ul.products.cbh-list-view li.product .cbh-list-badges .cbh-break-label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    line-height: 1;
}

ul.products.cbh-list-view li.product .cbh-list-badges .cbh-break-label.break-today {
    background: var(--cbh-red);
}

ul.products.cbh-list-view li.product .cbh-list-badges .cbh-break-label.break-tomorrow {
    background: var(--cbh-navy);
}

ul.products.cbh-list-view li.product .cbh-list-badges .cbh-break-label.break-future {
    background: var(--cbh-surface-3);
    color: var(--cbh-text-muted);
}

ul.products.cbh-list-view li.product .cbh-list-badges .onsale {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px !important;
    line-height: 1;
}

ul.products.cbh-list-view li.product .cbh-list-badges .cbh-countdown {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 6px;
}

/* Stock/spots pill */
ul.products.cbh-list-view li.product .cbh-list-badges .cbh-stock-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    background: var(--cbh-red);
    line-height: 1;
}

/* ---- Row 2: Product title (full content width) ---- */
ul.products.cbh-list-view li.product .cbh-list-title {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    padding: 6px 16px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cbh-heading-color, #fff);
    line-height: 1.4;
    align-self: start;
}

ul.products.cbh-list-view li.product .cbh-list-title a {
    color: inherit;
    text-decoration: none;
}

ul.products.cbh-list-view li.product .cbh-list-title a:hover {
    color: var(--cbh-gold);
}

/* ---- Row 3: Price + stock on left, button on right ---- */
ul.products.cbh-list-view li.product .cbh-list-price {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    padding: 4px 16px 12px;
    white-space: nowrap;
    align-self: end;
    font-size: 16px;
    font-weight: 600;
    color: var(--cbh-text);
}

ul.products.cbh-list-view li.product .button,
ul.products.cbh-list-view li.product .add_to_cart_button,
ul.products.cbh-list-view li.product a.added_to_cart {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    align-self: end;
    justify-self: end;
    margin: 0 16px 12px 0 !important;
    padding: 8px 20px !important;
    white-space: nowrap;
}

/* Grid is 3 rows: badges, title, price+button */
ul.products.cbh-list-view li.product {
    grid-template-rows: auto auto 1fr;
}

/* ---- Hide list-view cloned elements in grid view ---- */
ul.products:not(.cbh-list-view) .cbh-list-title,
ul.products:not(.cbh-list-view) .cbh-list-price,
ul.products:not(.cbh-list-view) .cbh-list-badges {
    display: none !important;
}

/* ---- Mobile: revert to grid/card layout ---- */
@media (max-width: 767px) {
    .cbh-view-toggle {
        display: none;
    }

    ul.products.cbh-list-view {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    ul.products.cbh-list-view li.product {
        display: flex !important;
        flex-direction: column !important;
    }

    ul.products.cbh-list-view li.product .cbh-list-title,
    ul.products.cbh-list-view li.product .cbh-list-price,
    ul.products.cbh-list-view li.product .cbh-list-badges {
        display: none !important;
    }

    ul.products.cbh-list-view li.product.cbh-list-ready .product-today,
    ul.products.cbh-list-view li.product.cbh-list-ready .product-tomorrow,
    ul.products.cbh-list-view li.product.cbh-list-ready .product-future,
    ul.products.cbh-list-view li.product.cbh-list-ready > .onsale {
        display: block !important;
    }

    ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link .woocommerce-loop-product__title,
    ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link h2,
    ul.products.cbh-list-view li.product .woocommerce-LoopProduct-link .price {
        display: block;
    }
}

/* ==========================================================================
   WooCommerce - Single Product Page
   ========================================================================== */

.woocommerce div.product {
    color: var(--cbh-text);
}

.woocommerce div.product .product_title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.woocommerce div.product .price {
    color: var(--cbh-gold) !important;
    font-size: 1.4rem;
    font-weight: 700;
}

.woocommerce div.product .out-of-stock {
    color: var(--cbh-red) !important;
    font-weight: bold !important;
}

p.out-of-stock {
    color: var(--cbh-red) !important;
    font-weight: bold !important;
}

p.low-stock {
    color: var(--cbh-gold-dim) !important;
    font-weight: bold !important;
}

.woocommerce div.product form.cart .variations select {
    padding: 8px 12px;
    border-radius: var(--cbh-radius);
    background-color: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    color: var(--cbh-text);
    font-size: 14px;
}

.woocommerce div.product form.cart .reset_variations {
    display: block;
    color: var(--cbh-text-muted);
}

body.single-product div.product form.cart {
    margin-bottom: 0 !important;
}

/* Single product buttons */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product form.cart .button {
    background: var(--cbh-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--cbh-radius) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease !important;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #c41430 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--cbh-red-glow);
}

/* Quantity input */
.woocommerce div.product form.cart .quantity input {
    background: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    color: var(--cbh-text);
    border-radius: var(--cbh-radius);
    padding: 8px;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: transparent;
    border-bottom: 1px solid var(--cbh-border);
    padding: 0;
    margin: 30px 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom-color: var(--cbh-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--cbh-text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: transparent;
    border-bottom: 2px solid var(--cbh-red);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff;
}

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

.woocommerce div.product .woocommerce-tabs .panel {
    background: var(--cbh-surface);
    border: 1px solid var(--cbh-border);
    border-top: none;
    border-radius: 0 0 var(--cbh-radius) var(--cbh-radius);
    padding: 20px;
    color: var(--cbh-text);
}

.woocommerce-variation-price {
    padding-bottom: 10px;
}

#tab-title-additional_information {
    display: none !important;
}

/* Product image gallery */
.woocommerce div.product div.images {
    margin-bottom: 20px;
}

.woocommerce div.product div.images img {
    border-radius: var(--cbh-radius-lg);
}

/* Related products */
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cbh-border);
}

/* ==========================================================================
   Breaking Date Badges (Archive - on product cards)
   ========================================================================== */

.product-today,
.product-future,
.product-tomorrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 10px;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Countdown timer (shared between archive + product page) */
.cbh-countdown {
    display: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.cbh-countdown-active {
    display: inline;
    color: #fff;
    animation: cbh-countdown-pulse 2s ease-in-out infinite;
}

.cbh-countdown-live {
    display: inline;
    color: #fff;
    animation: cbh-countdown-pulse 1.5s ease-in-out infinite;
}

/* Separator dash between label and countdown */
.cbh-countdown-active::before,
.cbh-countdown-live::before {
    content: ' - ';
}

@keyframes cbh-countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Pill versions for single product page */
.product-today-pill .cbh-countdown,
.product-future-pill .cbh-countdown,
.product-tomorrow-pill .cbh-countdown {
    font-size: 12px;
}

.product-today {
    background: var(--cbh-red);
}

.product-future {
    background: var(--cbh-surface-3);
    color: var(--cbh-text-muted);
}

.product-tomorrow {
    background: var(--cbh-navy);
}

/* Single product badges wrapper — sale + breaking side by side */
.cbh-single-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

/* Sale badge inside the single product badges row */
.cbh-single-badges .onsale,
.cbh-single-badges span.onsale,
.woocommerce .cbh-single-badges span.onsale,
.woocommerce div.product .cbh-single-badges span.onsale {
    position: static !important;
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: var(--cbh-gold) !important;
    color: var(--cbh-bg) !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
    width: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
}

/* Breaking Date Badges (Product Page - Pill Style) */

.product-today-pill,
.product-future-pill,
.product-tomorrow-pill {
    text-align: center;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0;
    border-radius: 20px;
    width: auto;
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-today-pill {
    background: var(--cbh-red);
    box-shadow: 0 2px 10px var(--cbh-red-glow);
}

.product-future-pill {
    background: var(--cbh-surface-3);
    border: 1px solid var(--cbh-border);
    color: var(--cbh-text-muted);
}

.product-tomorrow-pill {
    background: var(--cbh-navy);
}

/* ==========================================================================
   Events Manager - Today Highlight
   ========================================================================== */

.today-event {
    text-align: center;
    background: var(--cbh-red);
    padding: 4px 10px;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--cbh-radius);
    margin-bottom: 5px;
}

.today-event-list {
    border-color: var(--cbh-red) !important;
    box-shadow: 0 0 8px rgba(227, 24, 54, 0.2);
}

/* ==========================================================================
   Sidebar & Upcoming Breaks
   ========================================================================== */

/* Sidebar container */
.cbh-sidebar {
    color: var(--cbh-text);
    position: sticky;
    top: 140px;
}

.admin-bar .cbh-sidebar {
    top: 172px;
}

/* Sidebar header — matches section header style with animated underline */
.cbh-sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    position: relative;
}

@media (max-width: 767px) {
    .cbh-sidebar-header {
        margin-top: 20px;
    }
}

.cbh-sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cbh-red), var(--cbh-gold));
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cbh-sidebar-header.cbh-visible::after {
    width: 100px;
}

.cbh-sidebar-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Events list — tight vertical stack */
.cbh-events-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Event card — compact with left accent */
.cbh-event-card {
    background: var(--cbh-surface);
    border-radius: var(--cbh-radius);
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.cbh-event-card:hover {
    background: var(--cbh-surface-2);
    border-left-color: var(--cbh-red);
}

/* Today's cards get red left accent */
.cbh-event-card.event-today-highlight {
    border-left-color: var(--cbh-red);
    background: var(--cbh-surface-2);
}

/* First card gets gold accent only if it has no breaking badge */
.cbh-events-list .cbh-event-card:first-child:not(.event-today-highlight):not(.event-tomorrow-highlight) {
    border-left-color: var(--cbh-gold);
    background: var(--cbh-surface-2);
}

/* Inner content padding (below the badge if present) */
.cbh-event-meta,
.cbh-event-name,
.cbh-event-action {
    padding-left: 16px;
    padding-right: 16px;
}

.cbh-event-meta {
    padding-top: 14px;
}

.cbh-event-action {
    padding-bottom: 14px;
}

/* Event date + time */
.cbh-event-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.cbh-event-date {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.3px;
}

.cbh-event-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--cbh-text-muted);
}

.cbh-event-time::before {
    content: '\00b7';
    margin-right: 10px;
    color: var(--cbh-border-light);
}

/* Event name */
.cbh-event-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.cbh-event-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cbh-event-name a:hover {
    color: var(--cbh-gold);
}

/* Buy Teams / Bid Here button — matches product card buttons exactly */
.cbh-event-btn {
    display: block;
    color: var(--cbh-text);
    background: transparent;
    border: 1px solid var(--cbh-border-light);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--cbh-radius);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.cbh-event-btn:hover,
.cbh-event-btn:focus {
    color: #fff;
    background: var(--cbh-red);
    border-color: var(--cbh-red);
    text-decoration: none;
}

/* Legacy widget styling (for any remaining widgets) */
#secondary .widget {
    background: var(--cbh-surface);
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

#secondary .widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cbh-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#secondary a {
    color: var(--cbh-gold);
}

#secondary a:hover {
    color: #e8c05a;
}

/* Override sidebar link color for event buttons */
#secondary a.cbh-event-btn {
    color: var(--cbh-text);
}

#secondary a.cbh-event-btn:hover {
    color: #fff;
}

#secondary .btn,
#secondary .button {
    background: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    color: var(--cbh-text);
    border-radius: var(--cbh-radius);
    font-size: 13px;
    transition: all 0.2s ease;
}

#secondary .btn:hover,
#secondary .button:hover {
    background: var(--cbh-red);
    border-color: var(--cbh-red);
    color: #fff;
}

/* Breaking badge banners — span full width at top of card */
.cbh-event-today-badge,
.cbh-event-tomorrow-badge {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 0;
    margin: 0;
}

.cbh-event-today-badge {
    background: var(--cbh-red);
}

.cbh-event-tomorrow-badge {
    background: var(--cbh-navy);
}

/* Countdown inside the breaking badges */
.cbh-event-today-badge .cbh-countdown,
.cbh-event-tomorrow-badge .cbh-countdown {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Countdown next to time on future sidebar events */
.cbh-sidebar-countdown {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
}

/* When badge is present, reduce top padding on meta */
.cbh-event-today-badge + .cbh-event-meta,
.cbh-event-tomorrow-badge + .cbh-event-meta {
    padding-top: 10px;
}

/* Tomorrow highlight — navy left accent */
.cbh-event-card.event-tomorrow-highlight {
    border-left-color: var(--cbh-navy);
    background: var(--cbh-surface-2);
}

/* ==========================================================================
   WooCommerce - Checkout (dark)
   ========================================================================== */

.woocommerce-checkout {
    color: var(--cbh-text);
}

/* Tighten checkout top section spacing */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
    margin-bottom: 12px !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .custom_point_checkout {
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

.woocommerce-checkout .woocommerce-notices-wrapper {
    margin-bottom: 8px;
}

.woocommerce form .form-row label {
    color: var(--cbh-text);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout .input-text,
.woocommerce-checkout select {
    background: var(--cbh-surface-2) !important;
    border: 1px solid var(--cbh-border) !important;
    color: var(--cbh-text) !important;
    border-radius: var(--cbh-radius) !important;
    padding: 10px 12px !important;
}

.woocommerce-checkout-review-order-table {
    background: var(--cbh-surface) !important;
    color: var(--cbh-text);
    border-radius: var(--cbh-radius);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border-color: var(--cbh-border) !important;
    color: var(--cbh-text);
}

#payment,
#ppc-button-ppcp-gateway {
    max-width: 100% !important;
    width: 100% !important;
}

.ppc-button-wrapper {
    padding-top: 10px;
}

.form-row.mb-3 {
    margin-bottom: 5px !important;
}

#billing_company_field {
    display: none !important;
}

.payment_box.payment_method_ppcp {
    display: none !important;
}

.wc-ppcp-checkout-container {
    display: block;
    width: 100%;
}

/* Checkout place order button */
.woocommerce #place_order {
    background: var(--cbh-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--cbh-radius) !important;
    padding: 14px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px !important;
    transition: all 0.2s ease;
}

.woocommerce #place_order:hover {
    background: #c41430 !important;
}

/* ==========================================================================
   WooCommerce - Cart (dark)
   ========================================================================== */

.woocommerce table.shop_table {
    background: var(--cbh-surface);
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius);
    color: var(--cbh-text);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: var(--cbh-border) !important;
    color: var(--cbh-text);
}

.woocommerce-cart .woocommerce-error {
    display: none !important;
}

/* ==========================================================================
   WooCommerce - My Account (dark)
   ========================================================================== */

.woocommerce-MyAccount-navigation ul {
    background: var(--cbh-surface);
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius);
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--cbh-border);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 16px;
    color: var(--cbh-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--cbh-surface-2);
    color: #fff;
}

.list-group-item.active {
    background-color: var(--cbh-red);
    border-color: var(--cbh-red);
}

/* ==========================================================================
   Buttons - Global
   ========================================================================== */

.btn-primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--cbh-red) !important;
    border-color: var(--cbh-red) !important;
    color: #fff !important;
    border-radius: var(--cbh-radius) !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: #c41430 !important;
    border-color: #c41430 !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--cbh-text) !important;
    border-color: var(--cbh-border-light) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--cbh-red) !important;
    border-color: var(--cbh-red) !important;
    color: #fff !important;
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: var(--cbh-text-dim) !important;
    background-color: var(--cbh-surface-2) !important;
    border-color: var(--cbh-border) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--cbh-surface-2) !important;
    color: var(--cbh-text) !important;
    border: 1px solid var(--cbh-border) !important;
    border-radius: var(--cbh-radius) !important;
    transition: all 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--cbh-surface-3) !important;
    color: #fff !important;
}

/* ==========================================================================
   WooCommerce - Misc UI (dark)
   ========================================================================== */

#menu-item-1170 a {
    color: var(--cbh-gold);
}

.acfw_coupon_btn_wrap .acfw-form-control-label {
    display: none !important;
}

div.woocommerce-column.woocommerce-column--1.woocommerce-column--billing-address.col-1 {
    max-width: 100%;
    width: 100%;
}

div.woocommerce-column.woocommerce-column--2.woocommerce-column--shipping-address.col-2 {
    max-width: 100%;
    width: 100%;
    margin-top: 20px;
}

/* Notices / Messages */
.woocommerce-message,
.woocommerce-info {
    background: var(--cbh-surface) !important;
    border-top-color: var(--cbh-navy) !important;
    color: var(--cbh-text) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: none;
}

.woocommerce-error {
    background: var(--cbh-surface) !important;
    border-top-color: var(--cbh-red) !important;
    color: var(--cbh-text) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: none;
}

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

/* ==========================================================================
   Cart Page — Two-Column Layout
   ========================================================================== */

.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Notices span full width above both columns */
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .woocommerce-message,
.woocommerce-cart .woocommerce > .woocommerce-info,
.woocommerce-cart .woocommerce > .woocommerce-error {
    flex: 0 0 100%;
}

/* Cart form (table + coupon) takes the left column */
.woocommerce-cart .woocommerce > .woocommerce-cart-form {
    flex: 1 1 60%;
    min-width: 0;
}

/* Cart totals takes the right column */
.woocommerce-cart .woocommerce > .cart-collaterals {
    flex: 1 1 35%;
    min-width: 300px;
}

/* Remove the default float and width on cart totals */
.woocommerce-cart .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
}

/* Make the cart table scroll horizontally on tight screens */
.woocommerce-page .woocommerce-cart-form table {
    display: block;
    overflow-x: auto;
}

/* Stack on mobile */
@media (max-width: 991px) {
    .woocommerce-page .woocommerce > .woocommerce-cart-form,
    .woocommerce-page .woocommerce > .cart-collaterals {
        flex: 0 0 100%;
    }
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    color: var(--cbh-text-dim);
    font-size: 13px;
    margin-bottom: 20px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--cbh-text-muted);
}

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

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--cbh-surface);
    color: var(--cbh-text);
    border-color: var(--cbh-border);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--cbh-red);
    border-color: var(--cbh-red);
    color: #fff;
}

/* Ordering dropdown */
.woocommerce .woocommerce-ordering select {
    background: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    color: var(--cbh-text);
    border-radius: var(--cbh-radius);
    padding: 8px 12px;
}

/* Result count */
.woocommerce .woocommerce-result-count {
    color: var(--cbh-text-muted);
}

/* ==========================================================================
   Limited Product (ID 13065)
   ========================================================================== */

#product-13065 .wc-ppcp-product-payments__container.bottom {
    display: none !important;
}

#product-13065 .stock.in-stock,
#product-13065 .stock.low-stock {
    display: none !important;
}

/* ==========================================================================
   Points & Rewards Styling (dark)
   ========================================================================== */

.shop_table.cart .wps_wpr_apply_custom_points #wps_cart_points {
    width: 110px !important;
    border: 1px solid var(--cbh-border) !important;
    margin-right: 0;
    background: var(--cbh-surface-2);
    color: var(--cbh-text);
}

.wps_wpr_apply_custom_points {
    margin-top: 20px;
}

#wps_cart_points_apply {
    background-color: var(--cbh-gold-dim);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: var(--cbh-radius);
}

#wps_wpr_order_notice {
    margin-top: 5px;
    margin-bottom: 15px;
    background-color: var(--cbh-surface-2) !important;
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius);
}

div#wps_wpr_order_notice p {
    background-color: transparent !important;
    color: var(--cbh-text);
}

#wps_cart_points_apply+p {
    width: 100%;
    margin-bottom: 0;
    color: var(--cbh-gold);
    font-weight: bold;
    margin-top: 5px;
}

input#wps_cart_points {
    margin-right: 0;
}

.custom_point_checkout #wps_cart_points {
    padding: 7px;
    width: 110px;
    border-radius: var(--cbh-radius);
    border: 1px solid var(--cbh-border);
    background: var(--cbh-surface-2);
    color: var(--cbh-text);
}

button#wps_cart_points_apply+p {
    color: var(--cbh-gold);
    font-size: 16px;
}

#wps-wps-pr-drag {
    font-weight: bold !important;
    font-family: 'Poppins', sans-serif !important;
}

@media (max-width: 992px) {
    #wps-wps-pr-drag {
        display: none !important;
    }

    #wps-pr-mobile-open-popup {
        display: none !important;
    }
}

/* ==========================================================================
   Bulk / Discount Table (dark)
   ========================================================================== */

.bulk_table_row {
    text-align: center;
}

.wdr_bulk_table_thead {
    border-bottom: 1px solid var(--cbh-border);
    background-color: var(--cbh-surface-2);
    color: var(--cbh-text);
}

#sort_customizable_table {
    border: 1px solid var(--cbh-border);
    margin-bottom: 15px;
    color: var(--cbh-text);
}

#customize-bulk-table-range,
#customize-bulk-table-discount {
    padding: 5px;
    text-align: center;
}

/* ==========================================================================
   Team Search (dark)
   ========================================================================== */

.account-nav .team-search-container {
    position: relative;
    min-width: 250px;
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.team-search-wrapper {
    position: relative;
}

#team-search-input {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius);
    font-size: 13px;
    height: 32px;
    background: var(--cbh-surface-2);
    color: var(--cbh-text);
}

#team-search-input::placeholder {
    color: var(--cbh-text-dim);
}

#team-search-input:focus {
    outline: none;
    border-color: var(--cbh-gold);
    box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.15);
}

#team-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    border-top: none;
    border-radius: 0 0 var(--cbh-radius) var(--cbh-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.team-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.team-search-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--cbh-border);
    transition: background-color 0.2s;
    color: var(--cbh-text);
}

.team-search-item:last-child {
    border-bottom: none;
}

.team-search-item:hover,
.team-search-item.selected {
    background-color: var(--cbh-surface-3);
    color: var(--cbh-gold);
}

@media (max-width: 768px) {
    .account-nav .team-search-container {
        min-width: 200px;
        width: calc(100% - 20px);
        margin: 8px 10px 0 10px;
        display: block;
    }

    #team-search-input {
        font-size: 16px;
    }
}

/* ==========================================================================
   Team Variation Availability Boxes
   ========================================================================== */

.team-variation-sold-out-box {
    background-color: var(--cbh-red);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--cbh-radius);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-variation-available-box {
    background-color: var(--cbh-green);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--cbh-radius);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Direct Add-to-Cart Buttons (Team Products)
   ========================================================================== */

.woocommerce .cbh-direct-add-to-cart.btn-outline-primary,
.woocommerce a.cbh-direct-add-to-cart.btn-outline-primary.button {
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid var(--cbh-border-light) !important;
    color: var(--cbh-text) !important;
    padding: .618em 1em !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: var(--cbh-radius) !important;
}

.woocommerce .cbh-direct-add-to-cart.btn-outline-primary:hover,
.woocommerce a.cbh-direct-add-to-cart.btn-outline-primary.button:hover {
    background-color: var(--cbh-red) !important;
    color: #fff !important;
    border-color: var(--cbh-red) !important;
}

/* ==========================================================================
   Footer (dark)
   ========================================================================== */

#wrapper-footer-full {
    background: var(--cbh-surface-2);
    border-top: 1px solid var(--cbh-border);
    padding: 30px 0;
    color: var(--cbh-text-muted);
}

.site-footer {
    background: var(--cbh-surface);
    border-top: 1px solid var(--cbh-border);
    padding: 40px 0 30px;
}

.footer-inner {
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    color: var(--cbh-text-muted);
    font-size: 16px;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--cbh-red);
    border-color: var(--cbh-red);
    color: #fff;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 220px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-menu li a {
    color: var(--cbh-text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu li a:hover {
    color: var(--cbh-gold);
}

.footer-copyright {
    color: var(--cbh-text-dim);
    font-size: 13px;
}

/* ==========================================================================
   Bootstrap Overrides (dark)
   ========================================================================== */

.card {
    background: var(--cbh-surface);
    border: 1px solid var(--cbh-border);
    border-radius: var(--cbh-radius-lg);
    color: var(--cbh-text);
}

.card-body {
    color: var(--cbh-text);
}

.table {
    color: var(--cbh-text);
}

.table-dark {
    background: var(--cbh-surface-2);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--cbh-text);
}

.table-bordered {
    border-color: var(--cbh-border);
}

.table-bordered th,
.table-bordered td {
    border-color: var(--cbh-border);
}

.alert-warning {
    background: var(--cbh-surface-2);
    border-color: var(--cbh-gold-dim);
    color: var(--cbh-gold);
}

.form-control {
    background: var(--cbh-surface-2);
    border: 1px solid var(--cbh-border);
    color: var(--cbh-text);
    border-radius: var(--cbh-radius);
}

.form-control:focus {
    background: var(--cbh-surface-3);
    border-color: var(--cbh-gold);
    color: var(--cbh-text);
    box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.15);
}

.nav-tabs {
    border-bottom-color: var(--cbh-border);
}

.nav-tabs .nav-link {
    color: var(--cbh-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--cbh-text);
    border-color: transparent;
    border-bottom-color: var(--cbh-border-light);
}

.nav-tabs .nav-link.active {
    color: #fff;
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--cbh-red);
}

/* ==========================================================================
   Scrollbar (dark)
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cbh-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--cbh-surface-3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cbh-border-light);
}

/* ==========================================================================
   Theme Switcher
   ========================================================================== */

.cbh-theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbh-theme-switcher-label {
    font-size: 12px;
    color: var(--cbh-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

.cbh-theme-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--cbh-border-light);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.cbh-theme-dot:hover {
    transform: scale(1.15);
}

.cbh-theme-dot.active {
    border-color: var(--cbh-gold);
    box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.3);
}

.cbh-theme-dot--dark {
    background: #0a0a0a;
}

.cbh-theme-dot--blue {
    background: #181a24;
}

.cbh-theme-dot--light {
    background: #f5f5f5;
}

/* Single cycling theme icon */
.cbh-theme-cycle {
    display: inline-block;
    margin-left: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--cbh-gold);
    transition: transform 0.25s ease;
    vertical-align: middle;
    line-height: 1;
}

.cbh-theme-cycle:hover {
    transform: scale(1.25);
}

/* Hide on mobile */
@media (max-width: 767px) {
    .cbh-theme-cycle {
        display: none;
    }
}

/* ==========================================================================
   Light Theme — additional overrides for elements with hardcoded colors
   ========================================================================== */

[data-theme="light"] body,
[data-theme="light"] {
    background-color: var(--cbh-bg);
    color: var(--cbh-text);
}

/* WooCommerce elements that use !important dark colors */
[data-theme="light"] .woocommerce-message,
[data-theme="light"] .woocommerce-info {
    background: var(--cbh-surface) !important;
    color: var(--cbh-text) !important;
    border: 1px solid var(--cbh-border) !important;
    border-top-color: var(--cbh-navy) !important;
}

[data-theme="light"] .woocommerce-error {
    background: var(--cbh-surface) !important;
    color: var(--cbh-text) !important;
    border: 1px solid var(--cbh-border) !important;
    border-top-color: var(--cbh-red) !important;
}

/* Product cards in light theme */
[data-theme="light"] .woocommerce ul.products li.product {
    background: var(--cbh-surface);
    box-shadow: var(--cbh-card-shadow);
}

/* Navbar in light theme */
[data-theme="light"] .navbar,
[data-theme="light"] #wrapper-navbar {
    background: var(--cbh-surface) !important;
    border-bottom: 1px solid var(--cbh-border);
}

[data-theme="light"] .navbar .nav-link,
[data-theme="light"] .navbar-nav .nav-link {
    color: var(--cbh-text) !important;
}

[data-theme="light"] .navbar .nav-link:hover,
[data-theme="light"] #main-nav .nav-link:hover,
[data-theme="light"] #main-nav .nav-link.active {
    color: var(--cbh-red) !important;
}

/* Account nav bar in light theme */
[data-theme="light"] .cbh-account-nav {
    background: var(--cbh-surface-2) !important;
}

[data-theme="light"] .cbh-account-nav a {
    color: var(--cbh-text) !important;
}

/* Footer in light theme */
[data-theme="light"] #wrapper-footer {
    background: var(--cbh-surface) !important;
    border-top: 1px solid var(--cbh-border);
}

/* Inputs in light theme */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: var(--cbh-input-bg) !important;
    color: var(--cbh-text) !important;
    border-color: var(--cbh-border) !important;
}

/* Sidebar in light theme */
[data-theme="light"] .cbh-event-card {
    background: var(--cbh-surface);
    border-top-color: var(--cbh-border);
    border-right-color: var(--cbh-border);
    border-bottom-color: var(--cbh-border);
}

/* Sale badge in light mode — keep red on white */
[data-theme="light"] .onsale {
    color: #fff !important;
}

/* Breaking banners keep white text in light mode */
[data-theme="light"] .cbh-event-today-badge,
[data-theme="light"] .cbh-event-tomorrow-badge {
    color: #fff !important;
}

/* Giveaway banner */
[data-theme="light"] .giveaway-banner {
    background: var(--cbh-surface) !important;
    border: 1px solid var(--cbh-border);
}

/* Section headers stay readable */
[data-theme="light"] h3.section-header {
    color: var(--cbh-heading-color) !important;
}

/* Product card titles */
[data-theme="light"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
[data-theme="light"] .woocommerce ul.products li.product h2 {
    color: var(--cbh-heading-color) !important;
}

/* Product card prices */
[data-theme="light"] .woocommerce ul.products li.product .price {
    color: var(--cbh-text) !important;
}

[data-theme="light"] .woocommerce ul.products li.product .price del {
    color: var(--cbh-text-muted) !important;
}

[data-theme="light"] .woocommerce ul.products li.product .price ins {
    color: var(--cbh-red) !important;
}

/* Product card buttons */
[data-theme="light"] .woocommerce ul.products li.product .button,
[data-theme="light"] .woocommerce ul.products li.product a.add_to_cart_button {
    color: var(--cbh-text) !important;
    border-color: var(--cbh-border) !important;
}

/* Sidebar title */
[data-theme="light"] .cbh-sidebar-title {
    color: var(--cbh-heading-color) !important;
}

/* Sidebar card left accents in light theme */
[data-theme="light"] .cbh-event-card.event-today-highlight {
    border-left-color: var(--cbh-red) !important;
}

[data-theme="light"] .cbh-event-card.event-tomorrow-highlight {
    border-left-color: var(--cbh-navy) !important;
}

/* Sidebar event names and links */
[data-theme="light"] .cbh-event-name,
[data-theme="light"] .cbh-event-name a {
    color: var(--cbh-heading-color) !important;
}

/* Sidebar event meta */
[data-theme="light"] .cbh-event-date {
    color: var(--cbh-text) !important;
}

[data-theme="light"] .cbh-event-time {
    color: var(--cbh-text-muted) !important;
}

/* Sidebar buttons */
[data-theme="light"] .cbh-event-btn,
[data-theme="light"] #secondary a.cbh-event-btn {
    color: var(--cbh-text) !important;
    border-color: var(--cbh-border) !important;
    background: var(--cbh-surface) !important;
}

/* Nav menu — active and hover states */
[data-theme="light"] .navbar .nav-link.active,
[data-theme="light"] .navbar .nav-item.show > .nav-link,
[data-theme="light"] #main-nav .nav-item.show > .nav-link {
    color: var(--cbh-red) !important;
}

/* Dropdown menus */
[data-theme="light"] .dropdown-menu {
    background: var(--cbh-surface) !important;
    border-color: var(--cbh-border) !important;
}

[data-theme="light"] .dropdown-item {
    color: var(--cbh-text) !important;
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .dropdown-item:focus {
    background: var(--cbh-surface-2) !important;
    color: var(--cbh-red) !important;
}

/* Breaking date banners on product cards */
[data-theme="light"] .breaking-banner {
    color: #fff !important;
}

/* Stock / spots left badges */
[data-theme="light"] .cbh-low-stock {
    color: #fff !important;
}

/* Single product page */
[data-theme="light"] .woocommerce div.product .product_title {
    color: var(--cbh-heading-color) !important;
}

[data-theme="light"] .woocommerce div.product .price {
    color: var(--cbh-text) !important;
}

/* Cart and checkout headings */
[data-theme="light"] .woocommerce table.shop_table {
    background: var(--cbh-surface) !important;
    border-color: var(--cbh-border) !important;
}

[data-theme="light"] .woocommerce table.shop_table th {
    color: var(--cbh-heading-color) !important;
}

[data-theme="light"] .woocommerce table.shop_table td {
    color: var(--cbh-text) !important;
    border-color: var(--cbh-border) !important;
}

/* Cart totals */
[data-theme="light"] .cart_totals h2,
[data-theme="light"] .woocommerce-checkout h3 {
    color: var(--cbh-heading-color) !important;
}

/* Page title (Cart, Checkout, etc.) */
[data-theme="light"] .entry-title,
[data-theme="light"] .page-title {
    color: var(--cbh-heading-color) !important;
}

/* Footer text */
[data-theme="light"] .footer-copyright {
    color: var(--cbh-text-muted);
}

[data-theme="light"] .cbh-theme-switcher-label {
    color: var(--cbh-text-muted);
}

[data-theme="light"] .cbh-theme-cycle {
    color: var(--cbh-gold);
}

/* Search bar */
[data-theme="light"] .cbh-team-search input {
    background: var(--cbh-surface) !important;
    color: var(--cbh-text) !important;
    border-color: var(--cbh-border) !important;
}

/* Giveaway/account nav bar */
[data-theme="light"] .giveaway-banner a,
[data-theme="light"] .cbh-account-nav .nav-link {
    color: var(--cbh-text) !important;
}
