/*
 * WooCommerce — Valiant Dark Theme v2
 * Enqueued via functions.php with priority 9999 to override Astra/UICore.
 * Selectors verified against live Astra + UICore HTML structure.
 */

/* =====================================================================
   0. GLOBAL RESET — kill every white surface WooCommerce / Astra injects
   ===================================================================== */
.woocommerce,
.woocommerce-page,
.woocommerce-page body,
.ast-woocommerce-container,
.woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce-Tabs-panel.panel.entry-content,
.woocommerce div.product .woocommerce-tabs .panel,
.cart-empty.woocommerce-info,
.uicore-reveal-wrapper,
.astra-shop-summary-wrap,
.woocommerce-cart-form,
.woocommerce table.shop_table {
    background: transparent;
    color: inherit;
}

/* Content area background */
.woocommerce-page #content,
.woocommerce-page .site-content,
.woocommerce-page #primary,
.woocommerce .site-content,
body.woocommerce,
body.woocommerce-page {
    background-color: #0a0a0f;
}

/* =====================================================================
   1. SHOP PAGE — HEADER & CONTROLS
   ===================================================================== */
/* Page title gradient */
h1.page-title,
.woocommerce-products-header__title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* Results count */
.woocommerce-result-count {
    color: #6b6b7a;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0;
}

/* Sort dropdown */
.woocommerce-ordering select.orderby {
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.1);
    color: #b0b0c0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    padding: 8px 36px 8px 14px;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.woocommerce-ordering select.orderby:hover,
.woocommerce-ordering select.orderby:focus {
    border-color: #00d4ff;
    outline: none;
}

/* =====================================================================
   2. SHOP GRID — 3 COLUMNS
   ===================================================================== */
/* Force 3 columns regardless of WooCommerce default */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================================================
   3. PRODUCT CARDS — CONTAINER
   ===================================================================== */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    background: rgba(21, 21, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Top accent line (hidden by default, shown on hover) */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066cc, #00d4ff, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.12), 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap::before {
    opacity: 1;
}

/* =====================================================================
   4. CARD HEADER — GRADIENT BANNER (replaces placeholder image)
   ===================================================================== */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 96px;
    min-height: 96px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.25) 0%, rgba(0, 212, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}

/* Ambient glow orb */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    top: -30px;
    right: -20px;
    pointer-events: none;
}

/* Secondary orb */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    bottom: -20px;
    left: 20px;
    pointer-events: none;
}

/* Per-category color variants */
li.product.product_cat-adtech-consulting .woocommerce-LoopProduct-link {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(0, 102, 204, 0.15) 100%);
}
li.product.product_cat-adtech-consulting .woocommerce-LoopProduct-link::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}

/* Hide the actual placeholder image */
.woocommerce ul.products li.product img.woocommerce-placeholder,
.woocommerce ul.products li.product .uicore-zoom-wrapper {
    display: none !important;
}

/* Hide Astra's on-card bag icon button */
.ast-on-card-button {
    display: none !important;
}

/* =====================================================================
   5. HIDE DUPLICATE ELEMENTS FROM uicore-reveal
   (uicore adds price+button above astra-shop-summary-wrap as a hover
    reveal; we style the always-visible version in summary-wrap instead)
   ===================================================================== */
.uicore-reveal {
    display: none !important;
}

/* The standalone add-to-cart between uicore-reveal and astra-shop-summary-wrap */
.uicore-reveal-wrapper > a.add_to_cart_button,
.uicore-reveal-wrapper > a.ajax_add_to_cart {
    display: none !important;
}

/* =====================================================================
   6. CARD BODY — astra-shop-summary-wrap
   ===================================================================== */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

/* Category eyebrow badge */
.woocommerce ul.products li.product .ast-woo-product-category {
    display: inline-block;
    width: fit-content;
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    margin-bottom: 10px;
    line-height: 1.6;
}
li.product.product_cat-adtech-consulting .ast-woo-product-category {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    color: #ffffff !important;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 16px;
    text-decoration: none;
}
.woocommerce ul.products li.product .ast-loop-product__link {
    text-decoration: none;
}

/* Price */
.woocommerce ul.products li.product .astra-shop-summary-wrap .price,
.woocommerce ul.products li.product .astra-shop-summary-wrap span.price {
    display: block;
    color: #00d4ff !important;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap .woocommerce-Price-amount {
    color: #00d4ff !important;
}

/* Add to Cart button — full width gradient */
.woocommerce ul.products li.product .astra-shop-summary-wrap a.button,
.woocommerce ul.products li.product .astra-shop-summary-wrap a.add_to_cart_button {
    display: block !important;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 13px 20px;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    cursor: pointer;
    text-decoration: none;
    margin-top: auto;
    box-sizing: border-box;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap a.button:hover,
.woocommerce ul.products li.product .astra-shop-summary-wrap a.add_to_cart_button:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%) !important;
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* "Added to cart" state */
.woocommerce ul.products li.product .astra-shop-summary-wrap a.added {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,102,204,0.2)) !important;
    border: 1px solid rgba(0,212,255,0.4) !important;
}

/* =====================================================================
   7. SINGLE PRODUCT PAGE
   ===================================================================== */

/* Hide the ugly placeholder gallery entirely on no-image products */
.woocommerce-product-gallery.woocommerce-product-gallery--without-images {
    display: none !important;
}

/* When image is hidden, make summary fill full width */
.woocommerce div.product:has(.woocommerce-product-gallery--without-images) .summary {
    width: 100% !important;
    max-width: 680px;
    margin: 0 auto;
    float: none !important;
}
/* Fallback for browsers without :has() */
.woocommerce-product-gallery--without-images ~ .summary {
    width: 100% !important;
    max-width: 680px;
    margin: 0 auto !important;
    float: none !important;
    clear: both;
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    color: #6b6b7a;
    font-size: 0.8rem;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}
.woocommerce .woocommerce-breadcrumb a {
    color: #00d4ff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.woocommerce .woocommerce-breadcrumb a:hover { opacity: 0.75; }

/* Category tag on single product */
span.single-product-category,
span.single-product-category a {
    display: inline-block;
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 16px;
    text-decoration: none;
}

/* Product title */
.woocommerce div.product h1.product_title.entry-title {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Price — prominent */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #00d4ff !important;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}
.woocommerce div.product .price .woocommerce-Price-amount {
    color: #00d4ff !important;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description {
    color: #b0b0c0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    border-left: 3px solid rgba(0, 212, 255, 0.4);
    padding-left: 18px;
    margin-bottom: 28px;
}

/* Add to cart form */
.woocommerce div.product form.cart {
    margin-bottom: 24px;
}

/* Quantity input (hidden for sold_individually) */
.woocommerce div.product form.cart .quantity {
    display: none;
}

/* Add to Cart — single product button */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product .button.single_add_to_cart_button {
    background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 48px;
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    letter-spacing: 0.02em;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-2px);
}

/* Product meta (category link) */
.woocommerce div.product .product_meta {
    color: #6b6b7a;
    font-size: 0.82rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-family: 'Inter', sans-serif;
}
.woocommerce div.product .product_meta a {
    color: #00d4ff;
    text-decoration: none;
}

/* =====================================================================
   8. PRODUCT TABS — DESCRIPTION
   ===================================================================== */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 48px;
    clear: both;
}

/* Tab nav */
.woocommerce div.product .woocommerce-tabs ul.tabs,
.woocommerce div.product .woocommerce-tabs .wc-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent;
    padding: 0;
    margin: 0 0 0;
    list-style: none;
    display: flex;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: rgba(255, 255, 255, 0.03);
    margin-right: 6px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #6b6b7a;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #00d4ff;
}

/* Tab panel */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce .woocommerce-Tabs-panel.entry-content {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: none;
    border-radius: 0 12px 12px 12px;
    padding: 32px 36px;
    color: #b0b0c0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
}

.woocommerce .woocommerce-Tabs-panel h2,
.woocommerce .woocommerce-Tabs-panel h3 {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px;
}
.woocommerce .woocommerce-Tabs-panel h2:first-child,
.woocommerce .woocommerce-Tabs-panel h3:first-child {
    margin-top: 0;
}

.woocommerce .woocommerce-Tabs-panel ul {
    padding-left: 0;
    list-style: none;
}
.woocommerce .woocommerce-Tabs-panel ul li {
    color: #b0b0c0;
    padding: 7px 0 7px 22px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.woocommerce .woocommerce-Tabs-panel ul li:last-child { border-bottom: none; }
.woocommerce .woocommerce-Tabs-panel ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 0.85rem;
}

/* =====================================================================
   9. BREADCRUMBS
   ===================================================================== */
.woocommerce .woocommerce-breadcrumb {
    color: #6b6b7a;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

/* =====================================================================
   10. CART PAGE
   ===================================================================== */

/* Empty cart notice */
.woocommerce .cart-empty.woocommerce-info {
    background: rgba(0, 212, 255, 0.06) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-left: 4px solid #00d4ff !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 20px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

/* All woocommerce-info notices */
.woocommerce-info {
    background: rgba(0, 102, 204, 0.08) !important;
    border: 1px solid rgba(0, 102, 204, 0.25) !important;
    border-left: 4px solid #0066cc !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
}
.woocommerce-info::before {
    color: #00d4ff;
}

.woocommerce-message {
    background: rgba(0, 212, 255, 0.06) !important;
    border: none !important;
    border-left: 4px solid #00d4ff !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 16px 20px;
}

.woocommerce-error {
    background: rgba(220, 53, 69, 0.08) !important;
    border: 1px solid rgba(220, 53, 69, 0.25) !important;
    border-left: 4px solid #dc3545 !important;
    color: #ffffff !important;
    border-radius: 12px;
    list-style: none;
    padding: 16px 20px;
}

/* Return to shop button */
.return-to-shop a.button,
.woocommerce .return-to-shop a {
    background: linear-gradient(135deg, #0066cc, #0052a3) !important;
    color: #ffffff !important;
    border-radius: 12px;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 13px 28px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    transition: all 0.25s ease;
}
.return-to-shop a.button:hover {
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35) !important;
    transform: translateY(-1px);
}

/* Cart page title */
.woocommerce-page h1.page-title {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
}

/* Cart table wrapper */
.woocommerce-cart .woocommerce-cart-form {
    background: transparent;
}

.woocommerce table.shop_table {
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: rgba(21,21,31,0.8) !important;
}

.woocommerce table.shop_table th {
    background: rgba(0, 102, 204, 0.12) !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 16px 20px;
    border-right: none !important;
}

.woocommerce table.shop_table td {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    color: #b0b0c0 !important;
    padding: 18px 20px;
    vertical-align: middle;
    background: transparent !important;
    border-right: none !important;
}

.woocommerce table.shop_table td.product-name a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
}
.woocommerce table.shop_table td.product-name a:hover { color: #00d4ff !important; }

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    color: #00d4ff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

.woocommerce table.shop_table td.product-remove a {
    color: #6b6b7a !important;
    transition: color 0.2s;
}
.woocommerce table.shop_table td.product-remove a:hover { color: #ff4444 !important; }

/* Cart totals box */
.woocommerce .cart-collaterals .cart_totals {
    background: rgba(21, 21, 31, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 32px;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
    color: #b0b0c0 !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    background: transparent !important;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.woocommerce .cart-collaterals .cart_totals table .order-total th,
.woocommerce .cart-collaterals .cart_totals table .order-total td {
    color: #00d4ff !important;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid rgba(0,212,255,0.2) !important;
}

/* Proceed to checkout button */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce .checkout-button {
    background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%) !important;
    color: #ffffff !important;
    border-radius: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px;
    text-align: center;
    display: block;
    width: 100%;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    margin-top: 16px;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-2px);
}

/* =====================================================================
   11. CHECKOUT PAGE
   ===================================================================== */
.woocommerce-checkout h3,
.woocommerce-checkout .woocommerce-billing-fields h3 {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.woocommerce form .form-row label {
    color: #b0b0c0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    color: #ffffff !important;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #00d4ff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Checkout payment box */
.woocommerce-checkout #payment {
    background: rgba(21, 21, 31, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    background: transparent !important;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #ffffff;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.woocommerce-checkout #payment div.payment_box {
    background: rgba(255,255,255,0.03) !important;
    border-radius: 10px;
    color: #b0b0c0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Place Order button */
.woocommerce #payment #place_order {
    background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px;
    width: 100%;
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}
.woocommerce #payment #place_order:hover {
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-2px);
}

/* =====================================================================
   12. GENERAL BUTTON FALLBACK
   ===================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, #0066cc, #0052a3) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: all 0.25s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.5) !important;
    color: #ffffff !important;
}

/* =====================================================================
   13. RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

    .woocommerce div.product h1.product_title.entry-title {
        font-size: 1.6rem;
    }

    .woocommerce div.product p.price {
        font-size: 2rem;
    }
}

/* =====================================================================
   14. ELEMENTOR CART WIDGET OVERRIDES
   Elementor Pro injects inline CSS that resets cart_totals padding/border
   and forces thead to background:inherit from a white parent.
   These rules win via specificity + !important.
   ===================================================================== */

/* Dark the Elementor cart widget wrapper itself */
.elementor-widget-woocommerce-cart,
.elementor-widget-woocommerce-cart .e-cart-totals,
.elementor-widget-woocommerce-cart .cart-collaterals,
.elementor-widget-woocommerce-cart .cart_totals {
    background: transparent !important;
    color: #ffffff !important;
}

/* Cart table header row — Elementor resets this to background:inherit */
.elementor-widget-woocommerce-cart table.shop_table thead,
.elementor-widget-woocommerce-cart table.shop_table thead tr,
.elementor-widget-woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table thead,
.woocommerce-cart table.shop_table thead tr,
table.shop_table thead tr th {
    background: rgba(0, 102, 204, 0.18) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
}

/* All table cells dark */
.elementor-widget-woocommerce-cart table.shop_table td,
.elementor-widget-woocommerce-cart table.shop_table tbody tr {
    background: transparent !important;
    color: #b0b0c0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* The totals table inside cart collaterals */
.elementor-widget-woocommerce-cart .cart_totals table,
.elementor-widget-woocommerce-cart .cart_totals table th,
.elementor-widget-woocommerce-cart .cart_totals table td {
    background: transparent !important;
    color: #b0b0c0 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

.elementor-widget-woocommerce-cart .cart_totals table .order-total th,
.elementor-widget-woocommerce-cart .cart_totals table .order-total td {
    color: #00d4ff !important;
    font-weight: 700 !important;
}

/* Kill the white box — often from .e-cart-totals or Elementor inner wrap */
.elementor-widget-woocommerce-cart .e-cart-totals > *,
.elementor-widget-woocommerce-cart .cart-collaterals > *,
.elementor-widget-woocommerce-cart .woocommerce-shipping-calculator,
.elementor-widget-woocommerce-cart .shipping-calculator-form,
.elementor-widget-woocommerce-cart .woocommerce-shipping-destination {
    background: transparent !important;
    color: #b0b0c0 !important;
}

/* Cross-sells if present */
.elementor-widget-woocommerce-cart .cross-sells,
.woocommerce-cart .cross-sells {
    background: transparent !important;
    color: #ffffff !important;
}

/* "Added to cart" notification toast */
.woocommerce-message,
div.woocommerce-notices-wrapper .woocommerce-message {
    background: rgba(0, 212, 255, 0.08) !important;
    border-top-color: #00d4ff !important;
    color: #ffffff !important;
    border-radius: 0 0 12px 12px;
}
.woocommerce-message::before {
    color: #00d4ff !important;
}
.woocommerce-message a.button,
.woocommerce-message a {
    color: #00d4ff !important;
}

/* Coupon row input + buttons */
.elementor-widget-woocommerce-cart .coupon input#coupon_code,
.woocommerce-cart-form .coupon input#coupon_code {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px;
}
.elementor-widget-woocommerce-cart .coupon input#coupon_code::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* =====================================================================
   15. CHECKOUT PAGE — FULL DARK THEME
   Covers Elementor checkout widget + native WooCommerce checkout
   ===================================================================== */

/* Checkout page outer wrapper */
.woocommerce-checkout,
.elementor-widget-woocommerce-checkout-page {
    background: transparent !important;
    color: #ffffff !important;
}

/* ── Section headings ─────────────────────────────────────────────── */
.woocommerce-checkout h3,
.woocommerce-billing-fields h3,
.woocommerce-billing-fields__field-wrapper h3,
.elementor-widget-woocommerce-checkout-page h3,
#order_review_heading,
.woocommerce-checkout .e-checkout__container h3 {
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    border-width: 0 0 1px 0 !important;
    border-style: none none solid none !important;
    border-color: transparent transparent rgba(255,255,255,0.08) transparent !important;
    background: transparent !important;
}

/* ── Billing fields section container ────────────────────────────── */
.woocommerce-billing-fields,
.woocommerce-billing-fields__field-wrapper,
.e-checkout__billing-section,
.e-checkout__container,
#customer_details,
#customer_details .col-1,
#customer_details .col-2,
.woocommerce-checkout-review-order {
    background: transparent !important;
}

/* ── Labels ───────────────────────────────────────────────────────── */
.woocommerce-checkout .form-row label,
.woocommerce form .form-row label,
.elementor-widget-woocommerce-checkout-page .form-row label {
    color: #9090a8 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 6px !important;
    display: block;
}

.woocommerce form .form-row label abbr[title="required"],
.woocommerce-checkout .form-row label .required {
    color: #00d4ff !important;
    text-decoration: none !important;
    font-weight: 700;
}

/* ── Text inputs, selects, textarea ──────────────────────────────── */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.elementor-widget-woocommerce-checkout-page input.input-text,
.elementor-widget-woocommerce-checkout-page select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 13px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none;
    appearance: none;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: #00d4ff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12) !important;
}

/* Placeholder text */
.woocommerce-checkout input::placeholder,
.woocommerce form .form-row input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* ── Select2 (country/state dropdown WooCommerce uses) ───────────── */
.select2-container--default .select2-selection--single {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    height: 46px !important;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    padding: 0 16px !important;
    line-height: 46px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255,255,255,0.4) transparent transparent transparent !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent rgba(255,255,255,0.4) transparent !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12) !important;
}
/* Select2 dropdown */
.select2-dropdown {
    background: #12121e !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 7px !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}
.select2-container--default .select2-results__option {
    color: #b0b0c0 !important;
    padding: 9px 16px !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: rgba(0, 102, 204, 0.35) !important;
    color: #ffffff !important;
}
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option[data-selected=true] {
    background: rgba(0, 212, 255, 0.12) !important;
    color: #00d4ff !important;
}

/* ── Order review table on checkout ──────────────────────────────── */
.woocommerce-checkout-review-order-table,
#order_review .shop_table,
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
    background: transparent !important;
    border-color: rgba(255,255,255,0.08) !important;
}
.woocommerce-checkout-review-order-table th,
#order_review .shop_table th,
.woocommerce-checkout-review-order-table thead th {
    background: rgba(0, 102, 204, 0.15) !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(0,212,255,0.15) !important;
}
.woocommerce-checkout-review-order-table td,
#order_review .shop_table td {
    color: #b0b0c0 !important;
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding: 14px 16px !important;
    font-family: 'Inter', sans-serif;
}
.woocommerce-checkout-review-order-table td.product-name,
#order_review .shop_table td.product-name {
    color: #ffffff !important;
}
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th,
#order_review .shop_table .order-total td {
    color: #00d4ff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    border-top: 1px solid rgba(0,212,255,0.2) !important;
}

/* ── Checkout form wrapper glass card ────────────────────────────── */
#customer_details,
.e-checkout__billing-section,
.woocommerce-billing-fields {
    background: rgba(18, 18, 30, 0.6) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    padding: 28px 32px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Payment box ─────────────────────────────────────────────────── */
.woocommerce-checkout #payment,
.elementor-widget-woocommerce-checkout-page #payment {
    background: rgba(18, 18, 30, 0.6) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    backdrop-filter: blur(12px);
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    background: transparent !important;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.woocommerce-checkout #payment ul.payment_methods li {
    background: transparent !important;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    color: #ffffff !important;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
.woocommerce-checkout #payment div.payment_box {
    background: rgba(255,255,255,0.03) !important;
    border-radius: 10px;
    color: #9090a8;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    padding: 14px 16px;
}

/* Radio inputs */
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: #00d4ff;
}

/* ── Place Order button ───────────────────────────────────────────── */
.woocommerce #payment #place_order,
.woocommerce-checkout #place_order {
    background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 16px 32px !important;
    width: 100% !important;
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    letter-spacing: 0.02em;
    text-transform: none;
}
.woocommerce #payment #place_order:hover,
.woocommerce-checkout #place_order:hover {
    box-shadow: 0 10px 36px rgba(0, 212, 255, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* ── Validation error states ─────────────────────────────────────── */
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid input.input-text {
    border-color: rgba(255, 80, 80, 0.6) !important;
}
.woocommerce-checkout .woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated input.input-text {
    border-color: rgba(0, 212, 255, 0.5) !important;
}

/* Inline error message */
.woocommerce-error,
.woocommerce form .form-row .woocommerce-error {
    color: #ff6b6b !important;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ── Privacy / terms text ────────────────────────────────────────── */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    color: #6060788 !important;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* =====================================================================
   16. NOTICES, ALERTS & VALIDATION ERRORS — text visibility fixes
   ===================================================================== */

/* "Have a coupon?" info bar */
.woocommerce-info,
.woocommerce-checkout .woocommerce-info {
    background: rgba(0, 102, 204, 0.12) !important;
    border-top-color: #00d4ff !important;
    color: #c0c0d8 !important;
    border-radius: 0 0 10px 10px !important;
}
.woocommerce-info::before {
    color: #00d4ff !important;
}
.woocommerce-info a,
.woocommerce-info a:link {
    color: #00d4ff !important;
    text-decoration: underline;
}
.woocommerce-info a:hover {
    color: #ffffff !important;
}

/* Validation error notice box (top of checkout) */
.woocommerce-error,
.woocommerce-checkout .woocommerce-error,
ul.woocommerce-error {
    background: rgba(220, 53, 69, 0.12) !important;
    border-top-color: #dc3545 !important;
    color: #ffb3b8 !important;
    border-radius: 0 0 10px 10px !important;
    list-style: none !important;
    padding: 14px 20px 14px 50px !important;
}
.woocommerce-error::before {
    color: #ff6b6b !important;
}
.woocommerce-error li,
ul.woocommerce-error li {
    color: #ffb3b8 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
}
.woocommerce-error a,
ul.woocommerce-error a {
    color: #ff9090 !important;
    text-decoration: underline;
}

/* Success / added-to-cart notice */
.woocommerce-message {
    background: rgba(0, 212, 255, 0.08) !important;
    border-top-color: #00d4ff !important;
    color: #c0e8ff !important;
    border-radius: 0 0 10px 10px !important;
}
.woocommerce-message::before {
    color: #00d4ff !important;
}
.woocommerce-message a {
    color: #00d4ff !important;
}

/* Inline field-level error text (below each input) */
.woocommerce-checkout .woocommerce-invalid-required-field label,
.woocommerce form .form-row.woocommerce-invalid label {
    color: #ff8080 !important;
}
.woocommerce-checkout span.required,
.woocommerce-checkout .form-row .required {
    color: #00d4ff !important;
}

/* The "Billing X is a required field." inline text */
.woocommerce-checkout-validation-messages,
.woocommerce form .form-row .woocommerce-error,
.woocommerce form .form-row span.description,
.woocommerce-checkout .form-row .form-row__description {
    color: #ff8080 !important;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Red border on invalid inputs */
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid .select2-selection {
    border-color: rgba(220, 53, 69, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Inline validation text appended by WooCommerce JS */
.woocommerce-checkout p.form-row .woocommerce-error,
.woocommerce p.form-row .woocommerce-error {
    color: #ff8080 !important;
    font-size: 0.8rem !important;
    background: transparent !important;
    border: none !important;
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    display: block !important;
}
