/* ============================================
   WOOCOMMERCE STYLES - PixelCraft Theme
   Compatible with WooCommerce 8.0 - 9.x
   ============================================ */

/* Shop Page */
.woocommerce-shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
}

.woocommerce-products-wrapper {
    min-width: 0;
}

.woocommerce-products-header {
    margin-bottom: var(--space-xl);
}

.woocommerce-products-header__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: var(--space-xl) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

.product {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.3);
}

.product .onsale {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
    background: var(--color-neon-purple);
    color: var(--color-text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
}

.product img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.product:hover img {
    transform: scale(1.05);
}

.product .woocommerce-loop-product__title {
    font-size: 1.125rem;
    padding: var(--space-md);
    margin: 0;
    color: var(--color-text-primary);
}

.product .price {
    padding: 0 var(--space-md);
    font-size: 1.25rem;
    color: var(--color-neon-cyan);
    font-weight: 700;
}

.product .price del {
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.product .add_to_cart_button {
    display: block;
    width: calc(100% - var(--space-lg));
    margin: var(--space-md);
    text-align: center;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: var(--color-bg-primary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product .add_to_cart_button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

/* Single Product */
.pixelcraft-product-single-wrapper {
    padding: var(--space-2xl) 0;
}

.product_title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.woocommerce-product-details__short-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.product_meta {
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

/* Product Gallery */
.woocommerce-product-gallery {
    margin-bottom: var(--space-xl);
}

.woocommerce-product-gallery__wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.1);
}

/* Variations */
.variations {
    margin-bottom: var(--space-lg);
}

.variations td,
.variations th {
    padding: var(--space-md);
    border: none;
}

.variations label {
    color: var(--color-text-primary);
    font-weight: 600;
}

.variations select {
    width: 100%;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--color-text-primary);
    -webkit-text-fill-color: unset;
    letter-spacing: 0;
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

/* Add to Cart */
.single_add_to_cart_button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.single_add_to_cart_button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.quantity {
    margin-right: var(--space-md);
}

.quantity input {
    width: 80px;
    text-align: center;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--color-text-primary);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
}

/* Product Tabs */
.woocommerce-tabs {
    margin-top: var(--space-2xl);
}

.woocommerce-tabs .tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid rgba(0, 245, 255, 0.2);
    gap: var(--space-md);
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    text-decoration: none;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
    color: var(--color-neon-cyan);
    background: var(--color-bg-secondary);
}

.woocommerce-Tabs-panel {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════
   SINGLE PRODUCT — PREMIUM REDESIGN
   ═══════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.single-product .single-product-page {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.single-product-wrapper {
    padding: 80px 0 80px;
    min-height: 100vh;
    position: relative;
}

.single-product-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,245,255,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(181,61,255,0.06) 0%, transparent 50%),
        #09090f;
    z-index: -1;
    pointer-events: none;
}

/* ── Background ── */
.single-product body,
.single-product .container-wide {
    background: #09090f;
}

/* Breadcrumb */
.single-product .woocommerce-breadcrumb {
    padding: 100px 0 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.single-product .woocommerce-breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: var(--color-neon-cyan);
}

.single-product .woocommerce-notices-wrapper {
    margin: 1rem 0;
}

/* ── Main product grid ── */
.single-product .woocommerce div.product {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
    margin: 1.5rem 0 3rem;
    align-items: start;
}

.single-product .woocommerce div.product div.images,
.single-product .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* ── Gallery Panel ── */
.single-product .woocommerce div.product div.images {
    background: linear-gradient(145deg, rgba(20,20,35,0.95) 0%, rgba(12,12,22,0.98) 100%);
    border: 1px solid rgba(0,245,255,0.12);
    border-radius: 20px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}

.single-product .woocommerce div.product div.images::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(0,245,255,0.07) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(181,61,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.single-product .woocommerce-product-gallery__wrapper {
    background: transparent;
}

.single-product .woocommerce-product-gallery__image {
    border-radius: 12px;
    overflow: hidden;
}

.single-product .woocommerce-product-gallery__image img {
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.single-product .woocommerce-product-gallery__image img:hover {
    transform: scale(1.02);
}

/* placeholder image styling */
.single-product .woocommerce-product-gallery__image img[src*="woocommerce-placeholder"] {
    opacity: 0.25;
    filter: grayscale(1);
}

.single-product .flex-control-thumbs {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.single-product .flex-control-thumbs li {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.single-product .flex-control-thumbs li:hover {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 12px rgba(0,245,255,0.3);
}

/* ── Summary Panel ── */
.single-product .woocommerce div.product .summary {
    background: linear-gradient(145deg, rgba(18,18,32,0.97) 0%, rgba(10,10,20,0.99) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
    position: relative;
    overflow: hidden;
}

.single-product .woocommerce div.product .summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-neon-cyan), var(--color-neon-purple), var(--color-neon-pink, #ff3d8e));
    border-radius: 20px 20px 0 0;
}

/* Category badge above title */
.single-product .posted_in {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-neon-cyan);
    background: rgba(0,245,255,0.08);
    border: 1px solid rgba(0,245,255,0.2);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
}

.single-product .posted_in a {
    color: inherit;
    text-decoration: none;
}

/* Title */
.single-product .woocommerce div.product .product_title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(2rem, 3vw, 3.2rem) !important;
    font-weight: 300 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.65)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Rating */
.single-product .woocommerce-review-link {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
}

.single-product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.single-product .star-rating {
    color: #fbbf24;
}

/* Price */
.single-product .woocommerce div.product p.price,
.single-product .woocommerce div.product span.price {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-neon-cyan);
    margin: 0 0 1.5rem;
    display: block;
    line-height: 1;
}

.single-product .woocommerce div.product p.price ins,
.single-product .woocommerce div.product span.price ins {
    text-decoration: none;
    color: var(--color-neon-cyan);
}

.single-product .woocommerce div.product p.price del,
.single-product .woocommerce div.product span.price del {
    color: rgba(255,255,255,0.3);
    font-size: 0.65em;
    margin-right: 0.5rem;
    font-weight: 400;
}

/* Divider + short description */
.single-product .woocommerce div.product .summary > hr {
    border-color: rgba(255,255,255,0.07);
    margin: 1.25rem 0;
}

.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1rem !important;
    line-height: 1.85 !important;
    letter-spacing: 0.01em !important;
    color: rgba(255,255,255,0.5);
    margin: 1.25rem 0;
}

/* Stock badge */
.single-product .in-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1.25rem;
}

.single-product .in-stock::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: stockPulse 2s ease-in-out infinite;
}

@keyframes stockPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Form (qty + add to cart) */
.single-product .woocommerce div.product form.cart {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.single-product .woocommerce div.product form.cart .quantity {
    margin-right: 0;
}

.single-product .woocommerce div.product form.cart .quantity .qty {
    width: 70px;
    height: 52px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.single-product .woocommerce div.product form.cart .quantity .qty:focus {
    outline: none;
    border-color: var(--color-neon-cyan);
    background: rgba(0,245,255,0.07);
}

/* Add to cart button */
.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
    flex: 1;
    height: 52px;
    padding: 0 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-neon-cyan) 0%, #4db8ff 50%, var(--color-neon-purple) 100%);
    color: #050510;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 32px rgba(0,245,255,0.3), 0 2px 8px rgba(0,0,0,0.4);
}

.single-product .woocommerce div.product form.cart .single_add_to_cart_button::before {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0,245,255,0.45), 0 4px 16px rgba(0,0,0,0.5);
}

.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover::before {
    left: 120%;
}

.single-product .woocommerce div.product form.cart .single_add_to_cart_button:active {
    transform: translateY(0);
}

/* Product meta (SKU, categories) */
.single-product .woocommerce div.product .product_meta {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.single-product .woocommerce div.product .product_meta > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.single-product .woocommerce div.product .product_meta > span:last-child {
    margin-bottom: 0;
}

.single-product .woocommerce div.product .product_meta a {
    color: rgba(0,245,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .woocommerce div.product .product_meta a:hover {
    color: var(--color-neon-cyan);
}

/* ── Tabs ── */
.single-product .woocommerce-tabs {
    margin-top: 2.5rem;
    background: linear-gradient(145deg, rgba(16,16,28,0.98) 0%, rgba(10,10,20,0.99) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0 1.5rem;
    background: rgba(255,255,255,0.02);
    margin: 0;
    list-style: none;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
    display: none;
}

.single-product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
    border-radius: 0;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--color-neon-cyan);
    background: transparent;
    border-bottom-color: var(--color-neon-cyan);
}

.single-product .woocommerce-tabs .panel {
    padding: 2rem 2.25rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    font-size: 0.95rem;
}

.single-product .woocommerce-tabs .panel h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.single-product .woocommerce-Tabs-panel {
    margin-top: 0;
    background: transparent;
    border-radius: 0;
}

/* ── Related Products ── */
.single-product .related.products {
    margin-top: 3rem;
}

.single-product .related.products > h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.single-product .related.products ul.products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.25rem !important;
}

.single-product .related.products ul.products li.product {
    background: linear-gradient(145deg, rgba(20,20,35,0.95), rgba(12,12,22,0.98));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.single-product .related.products ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: rgba(0,245,255,0.25);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 30px rgba(0,245,255,0.08);
}

.single-product .related.products ul.products li.product .button {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: #050510;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.7rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.single-product .related.products ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,245,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .single-product .woocommerce div.product {
        grid-template-columns: 1fr;
    }

    .single-product .woocommerce div.product div.images {
        position: static;
    }
}

@media (max-width: 640px) {
    .single-product .woocommerce div.product .product_title {
        font-size: 1.6rem;
    }

    .single-product .woocommerce div.product form.cart {
        flex-direction: column;
    }

    .single-product .woocommerce div.product form.cart .quantity .qty {
        width: 100%;
    }

    .single-product .woocommerce-tabs .panel {
        padding: 1.25rem;
    }
}

/* Cart Page */
.pixelcraft-cart-wrapper {
    padding: var(--space-2xl) 0;
}

/* Cart Page (light theme): override dark-only backgrounds/borders */
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce-content.woocommerce-blocks {
    background: linear-gradient(145deg, var(--color-bg-secondary), var(--color-bg-primary));
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-lg);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .pc-cart-layout form.woocommerce-cart-form {
    background: var(--color-bg-secondary);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-md);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .cart_totals {
    background: var(--color-bg-secondary);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-md);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .cart_totals h2 {
    color: var(--color-text-primary);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .shop_table {
    background: var(--color-bg-secondary);
    border-color: rgba(15, 23, 42, 0.12);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .shop_table th,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .shop_table td {
    border-bottom-color: rgba(15, 23, 42, 0.10);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .shop_table thead th {
    background: var(--color-bg-hover);
    color: var(--color-text-secondary);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .shop_table tbody tr:hover {
    background: rgba(15, 23, 42, 0.03);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .product-thumbnail img {
    border-color: rgba(15, 23, 42, 0.12);
    background: var(--color-bg-secondary);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .product-remove a {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: none;
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce-cart-form .quantity .qty {
    background: var(--color-bg-secondary);
    border-color: rgba(15, 23, 42, 0.20);
    color: var(--color-text-primary);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon input.input-text {
    background: var(--color-bg-secondary);
    border-color: rgba(15, 23, 42, 0.18);
    color: var(--color-text-primary);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce button.button,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce a.button,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce input.button {
    background: var(--color-bg-hover);
    border-color: rgba(15, 23, 42, 0.14);
    color: var(--color-text-primary);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce button.button:hover,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce a.button:hover,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .woocommerce input.button:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(15, 23, 42, 0.22);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: linear-gradient(135deg, var(--color-cta-primary), var(--color-cta-secondary));
    color: #ffffff;
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: var(--shadow-neon-subtle);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .free-shipping-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-hover);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-lg) 0;
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
body.woocommerce-cart .free-shipping-notice i {
    color: var(--color-neon-cyan);
}

/* Cart page on production is rendered inside .woocommerce-content.woocommerce-blocks
   Make it a single cohesive panel so header + content don't look "separated". */
body.woocommerce-cart .woocommerce-content.woocommerce-blocks {
    background: linear-gradient(135deg, rgba(22, 22, 35, 0.88), rgba(14, 14, 26, 0.92));
    border: 1px solid rgba(0, 245, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    overflow: hidden;
}

body.woocommerce-cart .woocommerce-content.woocommerce-blocks .pixelcraft-wc-block-header {
    margin-bottom: var(--space-lg);
}

body.woocommerce-cart .woocommerce-content.woocommerce-blocks .woocommerce {
    margin: 0;
}

@media (max-width: 639px) {
    body.woocommerce-cart .woocommerce-content.woocommerce-blocks {
        padding: var(--space-lg);
    }
}

.cart-title {
    margin-bottom: var(--space-xl);

    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-subtitle {
    margin-top: calc(var(--space-xl) * -0.65);
    margin-bottom: var(--space-xl);
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 70ch;
}

/* Two-column cart layout (items + totals) */
body.woocommerce-cart .pc-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: var(--space-xl);
    align-items: start;
}

/* Production cart page uses Woo shortcode output inside .woocommerce */
body.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: var(--space-xl);
    align-items: start;
    width: 100%;
    max-width: 100%;
}

/* Disable Woo's legacy float-based cart layout (we use CSS grid) */
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
    float: none !important;
}

body.woocommerce-cart .cart-collaterals {
    clear: none !important;
}

/* Large screens: let cart content breathe (avoid 1320px "island" on 2K/4K) */
@media (min-width: 1440px) {
    body.woocommerce-cart #primary > .container {
        max-width: 1560px !important;
    }

    body.woocommerce-cart .woocommerce,
    body.woocommerce-cart .pc-cart-layout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
        gap: var(--space-xl);
    }
}

@media (min-width: 1920px) {
    body.woocommerce-cart #primary > .container {
        max-width: 1720px !important;
    }
}

/* Ensure grid children stretch to full column width (prevents narrow/"floating" cart table) */
body.woocommerce-cart .woocommerce > * {
    min-width: 0;
    max-width: 100%;
}

body.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
body.woocommerce-cart .pc-cart-layout form.woocommerce-cart-form {
    width: 100%;
    max-width: 100%;
    display: block;
    background: rgba(10, 10, 20, 0.55);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.15);
}

body.woocommerce-cart .woocommerce > .cart-collaterals,
body.woocommerce-cart .pc-cart-layout .cart-collaterals {
    width: 100%;
    max-width: 100%;
}

body.woocommerce-cart .pc-cart-layout .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

body.woocommerce-cart .pc-cart-layout form.woocommerce-cart-form {
    grid-column: 1;
    min-width: 0;
}

body.woocommerce-cart .woocommerce > form.woocommerce-cart-form {
    grid-column: 1;
    min-width: 0;
}

body.woocommerce-cart .pc-cart-layout .cart-collaterals {
    grid-column: 2;
    min-width: 0;
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

body.woocommerce-cart .woocommerce > .cart-collaterals {
    grid-column: 2;
    min-width: 0;
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

@media (max-width: 1023px) {
    body.woocommerce-cart .pc-cart-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    body.woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Reset explicit column placement for single-column layout */
    body.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
    body.woocommerce-cart .pc-cart-layout form.woocommerce-cart-form {
        grid-column: 1 !important;
    }

    body.woocommerce-cart .woocommerce > .cart-collaterals,
    body.woocommerce-cart .pc-cart-layout .cart-collaterals {
        grid-column: 1 !important;
    }

    body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
    body.woocommerce-cart .pc-cart-layout .woocommerce-notices-wrapper {
        grid-column: 1 !important;
    }

    body.woocommerce-cart .pc-cart-layout .cart-collaterals {
        position: static;
    }

    body.woocommerce-cart .woocommerce > .cart-collaterals {
        position: static;
    }
}

/* ===== Mobile filter drawer override (must be in woocommerce.css - loaded after main.css) ===== */
@keyframes shopFilterPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38), 0 0 0 0 rgba(0, 245, 255, 0.38);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(0, 245, 255, 0);
        transform: translateY(-2px);
    }
}

@media (max-width: 1023px) {
    .shop-layout {
        display: block !important;
    }

    .shop-mobile-filters-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        margin: 0 !important;
        padding: 11px 15px;
        border: 1px solid rgba(0, 245, 255, 0.6);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(181, 61, 255, 0.2)), rgba(14, 14, 20, 0.98);
        color: var(--color-text-primary);
        font-weight: var(--font-weight-semibold);
        cursor: pointer;
        position: fixed;
        left: 0;
        bottom: calc(14px + env(safe-area-inset-bottom));
        top: auto;
        transform: none;
        z-index: calc(var(--z-modal) + 3);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        animation: shopFilterPulse 2.1s ease-in-out infinite;
    }

    .shop-mobile-filters-toggle i {
        color: var(--color-neon-cyan);
    }

    .shop-sidebar {
        position: fixed !important;
        top: 50% !important;
        left: 0 !important;
        width: min(86vw, 360px) !important;
        height: min(78dvh, 700px) !important;
        max-height: calc(100dvh - var(--header-height) - 16px) !important;
        z-index: calc(var(--z-modal) + 2) !important;
        transform: translate(-105%, -50%) !important;
        transition: transform 0.25s ease;
        overflow-y: auto;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.45);
    }

    .shop-sidebar-close {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 8px;
        margin: 8px 8px 0 auto;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.25);
        color: var(--color-text-primary);
        cursor: pointer;
        z-index: 2;
    }

    .shop-sidebar-overlay {
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: calc(var(--z-modal) + 1);
    }

    body.shop-filters-open {
        overflow: hidden;
    }

    body.shop-filters-open .shop-sidebar {
        transform: translate(0, -50%) !important;
    }

    body.shop-filters-open .shop-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body[data-theme="light"] .shop-mobile-filters-toggle {
        background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(199, 125, 255, 0.2)), rgba(255, 255, 255, 0.98);
        border-color: rgba(255, 107, 157, 0.55);
        color: #2D2D2D;
    }

    body[data-theme="light"] .shop-mobile-filters-toggle i {
        color: #ff4f91;
    }

    body[data-theme="light"] .shop-sidebar {
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.18);
    }
}

/* Slightly tighter gap on ultra-wide screens to avoid "two islands" feel */
@media (min-width: 1400px) {
    body.woocommerce-cart .woocommerce,
    body.woocommerce-cart .pc-cart-layout {
        gap: var(--space-xl);
    }
}

/* Empty cart state */
body.woocommerce-cart .woocommerce .wc-empty-cart-message {
    margin: 0;
}

body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info {
    background: rgba(10, 10, 18, 0.6);
    border: 1px solid rgba(0, 245, 255, 0.14);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    padding: var(--space-lg);
}

body.woocommerce-cart .woocommerce p.return-to-shop {
    margin-top: var(--space-lg);
}

.shop_table {
    width: 100%;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-collapse: separate;
    border-spacing: 0;
}

/* Force the cart table to fill the available column (some Woo styles can make it shrink) */
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    width: 100% !important;
}

.shop_table th,
.shop_table td {
    padding: clamp(0.85rem, 0.7vw + 0.6rem, 1.15rem);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.shop_table thead th {
    background: var(--color-bg-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--color-neon-cyan);
    letter-spacing: 0.04em;
}

body.woocommerce-cart .shop_table tbody tr {
    transition: background 0.2s ease;
}

body.woocommerce-cart .shop_table tbody tr:hover {
    background: rgba(0, 245, 255, 0.04);
}

.product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--color-neon-pink);
    font-size: 1.25rem;
    border: 1px solid rgba(255, 0, 85, 0.25);
    background: rgba(10, 10, 18, 0.55);
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-remove a:hover {
    color: #ff0055;
    box-shadow: 0 0 14px rgba(255, 0, 85, 0.25);
}

.product-thumbnail img {
    width: 72px;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 245, 255, 0.1);
    background: rgba(8, 8, 16, 0.7);
}

.product-name a {
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--color-neon-cyan);
}

/* Quantity / inputs on cart page */
body.woocommerce-cart .woocommerce-cart-form .quantity {
    margin: 0;
}

body.woocommerce-cart .woocommerce-cart-form .quantity .qty {
    width: 72px;
    min-height: 40px;
    border-radius: var(--radius-md);
    background: rgba(10, 10, 18, 0.85);
    border: 1px solid rgba(0, 245, 255, 0.22);
    color: var(--color-text-primary);
    font-weight: 700;
}

body.woocommerce-cart .woocommerce-cart-form .quantity .qty:focus {
    outline: none;
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12);
}

/* Coupon row + actions */
body.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon label {
    display: none;
}

body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon input.input-text {
    flex: 1;
    min-width: 220px;
    min-height: 40px;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(10, 10, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--color-text-primary);
}

body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon input.input-text:focus {
    outline: none;
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12);
}

/* Buttons on cart page */
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce input.button {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 245, 255, 0.16);
    background: rgba(12, 14, 28, 0.82);
    color: var(--color-text-primary);
    font-weight: 700;
    min-height: 40px;
    padding: 0.65rem 1rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce a.button:hover,
body.woocommerce-cart .woocommerce input.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.25);
    border-color: rgba(0, 245, 255, 0.35);
}

body.woocommerce-cart .woocommerce button.button:disabled,
body.woocommerce-cart .woocommerce input.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Primary CTA: proceed to checkout */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: #081018;
    border: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: 0 0 22px rgba(0, 245, 255, 0.38);
}

.cart_totals {
    width: 100% !important;   /* override WooCommerce legacy width: 48% */
    max-width: 100% !important;
    float: none !important;
    margin: 0;
    background: rgba(10, 10, 20, 0.55);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.15);
}

.cart_totals h2 {
    margin-top: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-neon-cyan);
}

body.woocommerce-cart .cart_totals table {
    background: transparent;
    border: none;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
    padding: 0.75rem 0;
    border: none;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Mobile: convert table rows to cards */
@media (max-width: 767px) {
    body.woocommerce-cart .shop_table thead {
        display: none;
    }

    body.woocommerce-cart .shop_table,
    body.woocommerce-cart .shop_table tbody,
    body.woocommerce-cart .shop_table tr,
    body.woocommerce-cart .shop_table td {
        display: block;
        width: 100%;
    }

    body.woocommerce-cart .shop_table {
        background: transparent;
        border: none;
    }

    body.woocommerce-cart .shop_table tbody tr {
        border: 1px solid rgba(0, 245, 255, 0.14);
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: rgba(10, 10, 18, 0.6);
        margin-bottom: var(--space-md);
    }

    :where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
    body.woocommerce-cart .shop_table tbody tr {
        border-color: rgba(15, 23, 42, 0.12);
        background: var(--color-bg-secondary);
        box-shadow: var(--shadow-sm);
    }

    body.woocommerce-cart .shop_table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.woocommerce-cart .shop_table td::before {
        content: attr(data-title);
        color: var(--color-text-secondary);
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    body.woocommerce-cart .shop_table td.product-remove,
    body.woocommerce-cart .shop_table td.product-thumbnail {
        justify-content: flex-start;
    }

    body.woocommerce-cart .shop_table td.product-remove::before,
    body.woocommerce-cart .shop_table td.product-thumbnail::before {
        display: none;
        content: '';
    }

    body.woocommerce-cart .shop_table td.product-name {
        flex-direction: column;
        align-items: flex-start;
    }

    body.woocommerce-cart .shop_table td.product-name::before {
        align-self: flex-start;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
        display: block;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon {
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon input.input-text {
        min-width: 0;
        width: 100%;
    }
}

/* Checkout */
.pixelcraft-checkout-wrapper {
    padding: var(--space-2xl) 0;
}

.checkout-title {
    margin-bottom: var(--space-xl);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    background: var(--color-bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.woocommerce-checkout-review-order {
    background: var(--color-bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.woocommerce-form__label {
    color: var(--color-text-primary);
}

.woocommerce-form__input {
    background: var(--color-bg-primary);
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--color-text-primary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    width: 100%;
}

.woocommerce-form__input:focus {
    outline: none;
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

/* My Account */
.woocommerce-MyAccount-navigation {
    background: var(--color-bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.1);
}

/* My Account Layout + Forms (premium, less stiff)
   Scoped to account pages only to avoid affecting checkout/cart. */
.woocommerce-account .my-account-page {
    padding: var(--space-2xl) 0;
}

/* Ensure account wrapper can use full container width */
.woocommerce-account .my-account-page,
.woocommerce-account .my-account-page .woocommerce-content,
.woocommerce-account .my-account-page .woocommerce-content.my-account-page {
    width: 100%;
    max-width: none;
}

.woocommerce-account .my-account-page .page-header {
    margin-bottom: var(--space-xl);
}

.woocommerce-account .my-account-page .page-title {
    margin: 0;
    font-size: clamp(1.75rem, 2.6vw, 2.75rem);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.woocommerce-account .my-account-page > .woocommerce {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
    width: 100%;
    max-width: none;
}

/* Neutralize WooCommerce default float-based layout inside our grid */
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-navigation,
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
    max-width: none !important;
}

/* Ensure correct column placement even if WooCommerce outputs blocks in unexpected order */
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-navigation {
    grid-column: 1;
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content {
    grid-column: 2;
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-navigation {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.82) 0%, rgba(20, 20, 35, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation a {
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation .is-active a {
    background: rgba(0, 245, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.18);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    min-width: 0;
    width: 100%;
    max-width: none;
}

/* Light theme: keep account UI cohesive (no dark-only gradients/borders) */
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-navigation {
    background: var(--color-bg-secondary);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-md);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation a {
    color: var(--color-text-secondary);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation a:hover,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page .woocommerce-MyAccount-navigation .is-active a {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-sm);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content {
    background: var(--color-bg-secondary);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-md);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address {
    background: var(--color-bg-card);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-sm);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
    color: var(--color-text-primary);
    border-color: rgba(15, 23, 42, 0.16);
    background: rgba(15, 23, 42, 0.04);
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a:hover,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light)
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
    border-color: rgba(15, 23, 42, 0.24);
    box-shadow: var(--shadow-sm);
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-content h2,
.woocommerce-account .my-account-page .woocommerce-MyAccount-content h3 {
    margin-top: 0;
    color: var(--color-neon-cyan);
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: break-word;
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-content h2 {
    font-size: clamp(1.25rem, 1.6vw, 1.7rem);
    margin-bottom: var(--space-md);
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-content h3 {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    margin-bottom: var(--space-sm);
}

.woocommerce-account .my-account-page .woocommerce-MyAccount-content p {
    color: var(--color-text-secondary);
}

/* Form spacing */
.woocommerce-account .my-account-page .woocommerce form {
    margin: 0;
}

/* Addresses endpoint (fix overlapping / default float layout issues) */
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    align-items: start;
    width: 100%;
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1,
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2 {
    float: none !important;
    width: auto !important;
    clear: none !important;
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    min-width: 0;
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title.title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin: 0;
    color: var(--color-neon-cyan);
    flex: 1 1 240px;
    min-width: 240px;
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a,
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 245, 255, 0.18);
    background: rgba(0, 245, 255, 0.06);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    white-space: normal;
    overflow-wrap: anywhere;
    flex: 0 0 auto;
}

@media (max-width: 639px) {
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }

    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address,
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1,
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2,
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title,
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title.title {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 520px) {
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
        min-width: 0;
        flex-basis: 100%;
    }

    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a,
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
        width: 100%;
        justify-content: center;
    }
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a:hover,
.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.22);
}

.woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content .woocommerce-Address address {
    margin: 0;
    font-style: normal;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.woocommerce-account .my-account-page .woocommerce .form-row {
    margin: 0 0 var(--space-lg) 0;
}

.woocommerce-account .my-account-page .woocommerce .form-row:last-of-type {
    margin-bottom: 0;
}

.woocommerce-account .my-account-page .woocommerce label {
    display: block;
    margin: 0 0 var(--space-xs) 0;
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* Inputs (fix bright/white defaults) */
.woocommerce-account .my-account-page .woocommerce .woocommerce-Input,
.woocommerce-account .my-account-page .woocommerce .input-text,
.woocommerce-account .my-account-page .woocommerce input[type="text"],
.woocommerce-account .my-account-page .woocommerce input[type="email"],
.woocommerce-account .my-account-page .woocommerce input[type="tel"],
.woocommerce-account .my-account-page .woocommerce input[type="password"],
.woocommerce-account .my-account-page .woocommerce textarea,
.woocommerce-account .my-account-page .woocommerce select {
    width: 100%;
    box-sizing: border-box;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
    -webkit-text-fill-color: unset;
    letter-spacing: 0;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.woocommerce-account .my-account-page .woocommerce textarea {
    min-height: 140px;
    resize: vertical;
}

.woocommerce-account .my-account-page .woocommerce .woocommerce-Input:focus,
.woocommerce-account .my-account-page .woocommerce .input-text:focus,
.woocommerce-account .my-account-page .woocommerce input:focus,
.woocommerce-account .my-account-page .woocommerce textarea:focus,
.woocommerce-account .my-account-page .woocommerce select:focus {
    outline: none;
    border-color: rgba(0, 245, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.12);
    transform: translateY(-1px);
}

/* Fieldsets (e.g., password change) */
.woocommerce-account .my-account-page .woocommerce fieldset {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0 0 0;
}

.woocommerce-account .my-account-page .woocommerce legend {
    padding: 0 var(--space-sm);
    color: var(--color-neon-purple);
    font-weight: 700;
}

/* Buttons */
.woocommerce-account .my-account-page .woocommerce .button,
.woocommerce-account .my-account-page .woocommerce button.button,
.woocommerce-account .my-account-page .woocommerce a.button,
.woocommerce-account .my-account-page .woocommerce input.button,
.woocommerce-account .my-account-page .woocommerce .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    color: var(--color-bg-primary);
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
    text-decoration: none;
}

.woocommerce-account .my-account-page .woocommerce .button:hover,
.woocommerce-account .my-account-page .woocommerce button.button:hover,
.woocommerce-account .my-account-page .woocommerce a.button:hover,
.woocommerce-account .my-account-page .woocommerce input.button:hover,
.woocommerce-account .my-account-page .woocommerce .woocommerce-Button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.35);
    filter: brightness(1.05);
}

.woocommerce-account .my-account-page .woocommerce .button:active,
.woocommerce-account .my-account-page .woocommerce button.button:active,
.woocommerce-account .my-account-page .woocommerce a.button:active,
.woocommerce-account .my-account-page .woocommerce input.button:active,
.woocommerce-account .my-account-page .woocommerce .woocommerce-Button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
    .woocommerce-account .my-account-page > .woocommerce {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .woocommerce-account .my-account-page .woocommerce-MyAccount-navigation {
        position: relative;
        top: auto;
        width: 100%;
    }

    .woocommerce-account .my-account-page .woocommerce-MyAccount-content {
        width: 100%;
    }

    /* Reset explicit column placement in single-column mode */
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-navigation,
    .woocommerce-account .my-account-page > .woocommerce .woocommerce-MyAccount-content {
        grid-column: 1;
    }
}

/* Hard mobile safety override for My Account nav (prevents floating/overlay issues) */
@media (max-width: 1023px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 0 var(--space-lg) 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: auto !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: var(--space-sm);
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: var(--space-md);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
    background: rgba(0, 245, 255, 0.1);
    color: var(--color-neon-cyan);
}

/* Notifications */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.woocommerce-message {
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid #00ff88;
    color: #00ff88;
}

.woocommerce-info {
    background: rgba(0, 245, 255, 0.1);
    border-left: 4px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
}

.woocommerce-error {
    background: rgba(255, 107, 157, 0.1);
    border-left: 4px solid var(--color-neon-pink);
    color: var(--color-neon-pink);
}

/* Single product: animated add-to-cart toast */
.single-product .woocommerce-notices-wrapper .woocommerce-message {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 640px);
    z-index: 2200;
    border-left: 0;
    border: 1px solid rgba(0, 245, 255, 0.38);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6, 22, 34, 0.96), rgba(8, 30, 28, 0.95));
    color: #d7fff7;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(0, 245, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    animation: pcToastEnter 0.42s cubic-bezier(.2,.75,.25,1.12), pcToastExit 0.42s ease 4.8s forwards;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(90deg, #00f5ff, #24d28a);
    transform-origin: left center;
    animation: pcToastProgress 4.6s linear 0.35s forwards;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .pc-addtocart-toast-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .pc-addtocart-toast-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    text-align: center;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .pc-addtocart-toast-title {
    font-weight: 700;
    color: #ecfffb;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .pc-addtocart-toast-title i {
    color: #00f5ff;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .pc-addtocart-toast-sub {
    font-size: 0.86rem;
    color: rgba(191, 255, 241, 0.86);
    letter-spacing: 0.02em;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.55rem 0.9rem;
}

@keyframes pcToastEnter {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 12px)) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pcToastExit {
    to {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 10px)) scale(0.98);
        pointer-events: none;
    }
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .pc-addtocart-toast-media {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .pc-addtocart-toast-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pcToastProgress {
    to {
        transform: scaleX(0);
    }
}

/* ============================================
   DYNAMIC SHOP TEMPLATE STYLES
   For archive-product.php
   ============================================ */

/* Shop Layout */
.shop-section {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,245,255,0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(181,61,255,0.05) 0%, transparent 60%),
                #0a0a0a;
}

.shop-section::before,
.shop-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: shopOrbFloat 18s ease-in-out infinite;
}

.shop-section::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,245,255,0.06) 0%, transparent 70%);
    top: -150px;
    left: -200px;
    animation-duration: 20s;
}

.shop-section::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(181,61,255,0.07) 0%, transparent 70%);
    bottom: -100px;
    right: -150px;
    animation-duration: 25s;
    animation-delay: -8s;
}

@keyframes shopOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -50px) scale(1.08); }
    66%       { transform: translate(-30px, 30px) scale(0.94); }
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.shop-layout.is-loading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.shop-sidebar {
    position: sticky;
    top: 120px;
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.shop-filters-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-neon-cyan);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-option:hover {
    background: rgba(0, 245, 255, 0.05);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-neon-cyan);
    flex-shrink: 0;
}

.filter-option label {
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color 0.25s ease;
    font-size: 0.9375rem;
    flex: 1;
}

.filter-option:hover label {
    color: var(--color-text-primary);
}

.filter-option input:checked + label {
    color: var(--color-neon-cyan);
    font-weight: 500;
}

.filter-option-child {
    padding-left: 1.5rem;
    opacity: 0.92;
}

.filter-option-grandchild {
    padding-left: 2.75rem;
    opacity: 0.9;
}

.filter-option-grandchild label {
    font-size: 0.88rem;
}

.filter-option-child label {
    font-size: 0.9rem;
}

/* Collapsible subcategory list — hidden by default */
.filter-children {
    display: none !important;
}

.filter-children.expanded {
    display: block !important;
    animation: subcatFadeIn 0.2s ease;
}

@keyframes subcatFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.subcategory-toggle {
    margin-left: auto;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
    padding: 0;
}

.subcategory-toggle:hover {
    background: rgba(0, 245, 255, 0.12);
    border-color: rgba(0, 245, 255, 0.4);
    color: var(--color-neon-cyan);
}

.subcategory-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.subcategory-toggle.expanded i {
    transform: rotate(180deg);
}

.price-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.625rem 0.75rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

.price-inputs input:focus {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.15);
    outline: none;
}

.clear-filters-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 61, 142, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-neon-pink);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.apply-filters-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: #0a0a0a;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.apply-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.25);
}

.clear-filters-btn:hover {
    background: rgba(255, 61, 142, 0.1);
    border-color: var(--color-neon-pink);
    box-shadow: 0 0 15px rgba(255, 61, 142, 0.15);
}

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.results-count {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.results-count strong {
    color: var(--color-neon-cyan);
    font-weight: 600;
}

.sort-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-controls form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-controls label {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 1rem;
    background: rgba(30, 30, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

.sort-select:focus {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.15);
    outline: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple), transparent);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.product-card:hover::before {
    opacity: 0.5;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--color-neon-cyan);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.1);
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #111118 0%, #1a1a28 100%);
}

.product-card-image img,
.product-card-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 4rem;
    color: var(--color-neon-cyan);
    opacity: 0.6;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: #0a0a0a;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
}

.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    z-index: 2;
}

.product-card:hover .product-card-overlay {
    transform: translateY(0);
}

.overlay-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 45, 0.9);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.overlay-btn:hover {
    background: var(--color-neon-cyan);
    color: #0a0a0a;
    border-color: var(--color-neon-cyan);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
}

.product-card-info {
    padding: 1.5rem;
    position: relative;
}

.product-card-category {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--color-neon-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--color-text-primary);
    margin: 0;
}

.product-card-name a {
    color: inherit;
    text-decoration: none;
}

.product-card:hover .product-card-name {
    color: var(--color-neon-cyan);
}

.product-card-desc {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.product-rating .stars {
    display: flex;
    gap: 0.125rem;
    color: #FFD700;
    font-size: 0.75rem;
}

.product-rating .count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.product-price .price-current {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-neon-cyan);
}

.product-price .price-original {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-card-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: #0a0a0a;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.product-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 45, 0.6);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--color-neon-cyan);
    color: var(--color-neon-cyan);
    background: rgba(0, 245, 255, 0.05);
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple));
    color: #0a0a0a;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

/* Dynamic shop - light theme */
body[data-theme="light"] .shop-section {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 50%, #ffffff 100%);
}

body[data-theme="light"] .shop-sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 252, 0.98) 100%);
    border-color: rgba(100, 100, 120, 0.15);
    box-shadow: 0 4px 14px rgba(18, 31, 53, 0.08);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body[data-theme="light"] .filter-group {
    border-bottom-color: rgba(18, 31, 53, 0.08);
}

body[data-theme="light"] .filter-group h3 {
    color: var(--color-cta-primary);
}

body[data-theme="light"] .filter-option:hover {
    background: rgba(79, 195, 247, 0.08);
}

body[data-theme="light"] .filter-option label {
    color: #4a5568;
}

body[data-theme="light"] .filter-option:hover label {
    color: #2d3748;
}

body[data-theme="light"] .filter-option input:checked + label {
    color: var(--color-cta-primary);
}

body[data-theme="light"] .price-inputs input {
    background: #ffffff;
    border-color: rgba(100, 100, 120, 0.22);
    color: #2d3748;
}

body[data-theme="light"] .price-inputs input:focus,
body[data-theme="light"] .sort-select:focus {
    border-color: var(--color-cta-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.14);
}

body[data-theme="light"] .apply-filters-btn {
    background: linear-gradient(135deg, var(--color-cta-primary), var(--color-cta-secondary));
    color: #ffffff;
}

body[data-theme="light"] .clear-filters-btn {
    color: #d83b73;
    border-color: rgba(216, 59, 115, 0.35);
}

body[data-theme="light"] .shop-header {
    border-bottom-color: rgba(18, 31, 53, 0.08);
}

body[data-theme="light"] .shop-header h1 {
    color: #1f2937;
}

body[data-theme="light"] .results-count {
    color: #4b5563;
}

body[data-theme="light"] .results-count strong,
body[data-theme="light"] .sort-controls label {
    color: var(--color-cta-primary);
}

body[data-theme="light"] .sort-select {
    background: #ffffff;
    border-color: rgba(100, 100, 120, 0.24);
    color: #1f2937;
}

body[data-theme="light"] .sort-select option {
    background: #ffffff;
    color: #1f2937;
}

body[data-theme="light"] .product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(100, 100, 120, 0.16);
    box-shadow: 0 6px 16px rgba(18, 31, 53, 0.08);
}

body[data-theme="light"] .product-card:hover {
    border-color: rgba(255, 107, 157, 0.5);
    box-shadow: 0 16px 34px rgba(18, 31, 53, 0.14);
}

body[data-theme="light"] .product-card-image {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf2 100%);
}

body[data-theme="light"] .product-card-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

body[data-theme="light"] .overlay-btn {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(31, 41, 55, 0.22);
    color: #1f2937;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .overlay-btn i {
    color: #1f2937;
}

body[data-theme="light"] .overlay-btn:hover {
    background: var(--color-cta-primary);
    border-color: var(--color-cta-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(255, 107, 157, 0.35);
}

body[data-theme="light"] .overlay-btn:hover i {
    color: #ffffff;
}

body[data-theme="light"] .product-card-name,
body[data-theme="light"] .product-card-name a {
    color: #1f2937;
}

body[data-theme="light"] .product-card:hover .product-card-name {
    color: var(--color-cta-primary);
}

body[data-theme="light"] .product-card-desc {
    color: #4b5563;
}

body[data-theme="light"] .product-card-category,
body[data-theme="light"] .product-price .price-current {
    color: var(--color-cta-primary);
}

body[data-theme="light"] .product-card-footer {
    border-top-color: rgba(18, 31, 53, 0.08);
}

body[data-theme="light"] .product-card-btn {
    background: linear-gradient(135deg, var(--color-cta-primary), var(--color-cta-secondary));
    color: #ffffff;
}

body[data-theme="light"] .shop-pagination {
    border-top-color: rgba(18, 31, 53, 0.08);
}

body[data-theme="light"] .page-btn {
    background: #ffffff;
    border-color: rgba(100, 100, 120, 0.2);
    color: #4b5563;
}

body[data-theme="light"] .page-btn:hover:not(:disabled) {
    border-color: var(--color-cta-primary);
    color: var(--color-cta-primary);
    background: rgba(255, 107, 157, 0.08);
}

body[data-theme="light"] .page-btn.active {
    background: linear-gradient(135deg, var(--color-cta-primary), var(--color-cta-secondary));
    color: #ffffff;
}

/* ── Light: single product page ── */
/* NOTE: .single-product is on <body>, so selector is body.single-product[data-theme="light"] */
body.single-product[data-theme="light"] .single-product-wrapper::before {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(79,195,247,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(199,125,255,0.07) 0%, transparent 50%),
        #f4f6fb !important;
}

body.single-product[data-theme="light"] .container-wide,
body.single-product[data-theme="light"] .single-product-wrapper {
    background: transparent !important;
}

body.single-product[data-theme="light"] .woocommerce div.product div.images {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%) !important;
    border-color: rgba(79,195,247,0.2) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08) !important;
}

body.single-product[data-theme="light"] .woocommerce div.product div.images::before {
    background: radial-gradient(ellipse at 30% 0%, rgba(79,195,247,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(199,125,255,0.05) 0%, transparent 60%) !important;
}

body.single-product[data-theme="light"] .woocommerce div.product .summary {
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%) !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1) !important;
}

body.single-product[data-theme="light"] .woocommerce div.product .summary::before {
    display: none !important;
}

body.single-product[data-theme="light"] .woocommerce div.product .product_title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: clamp(2rem, 3vw, 3.2rem) !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(135deg, #1a202c 40%, #4a5568) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

body.single-product[data-theme="light"] .woocommerce div.product .summary .woocommerce-product-details__short-description {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1rem !important;
    line-height: 1.85 !important;
    letter-spacing: 0.01em !important;
    color: #718096 !important;
}

body.single-product[data-theme="light"] .woocommerce div.product p.price,
body.single-product[data-theme="light"] .woocommerce div.product span.price {
    color: var(--color-cta-primary) !important;
}

body.single-product[data-theme="light"] .in-stock {
    color: #16a34a !important;
    background: rgba(22,163,74,0.07) !important;
    border-color: rgba(22,163,74,0.2) !important;
}

body.single-product[data-theme="light"] .in-stock::before {
    background: #16a34a !important;
    box-shadow: 0 0 6px #16a34a !important;
}

body.single-product[data-theme="light"] .woocommerce div.product form.cart .quantity .qty {
    border-color: rgba(0,0,0,0.18) !important;
    background: #fff !important;
    color: #1a202c !important;
}

body.single-product[data-theme="light"] .woocommerce div.product form.cart .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-cta-secondary) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(255,107,157,0.35) !important;
}

body.single-product[data-theme="light"] .woocommerce div.product .product_meta {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #718096 !important;
}

body.single-product[data-theme="light"] .woocommerce div.product .product_meta a {
    color: var(--color-cta-primary) !important;
}

body.single-product[data-theme="light"] .woocommerce-tabs {
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%) !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07) !important;
}

body.single-product[data-theme="light"] .woocommerce-tabs ul.tabs {
    background: rgba(0,0,0,0.02) !important;
    border-bottom-color: rgba(0,0,0,0.08) !important;
}

body.single-product[data-theme="light"] .woocommerce-tabs ul.tabs li a {
    color: #718096 !important;
}

body.single-product[data-theme="light"] .woocommerce-tabs ul.tabs li.active a,
body.single-product[data-theme="light"] .woocommerce-tabs ul.tabs li a:hover {
    color: var(--color-cta-primary) !important;
    border-bottom-color: var(--color-cta-primary) !important;
}

body.single-product[data-theme="light"] .woocommerce-tabs .panel {
    color: #4a5568 !important;
    background: transparent !important;
}

body.single-product[data-theme="light"] .woocommerce-tabs .panel h2 {
    color: #1a202c !important;
}

body.single-product[data-theme="light"] .related.products > h2 {
    background: linear-gradient(135deg, var(--color-cta-primary), var(--color-cta-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.single-product[data-theme="light"] .related.products ul.products li.product {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%) !important;
    border-color: rgba(0,0,0,0.09) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07) !important;
}

body.single-product[data-theme="light"] .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product[data-theme="light"] .related.products ul.products li.product .price {
    color: #1a202c !important;
}

body.single-product[data-theme="light"] .related.products ul.products li.product:hover {
    border-color: rgba(255,107,157,0.4) !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.1) !important;
}

body.single-product[data-theme="light"] .related.products ul.products li.product .button {
    background: linear-gradient(135deg, var(--color-cta-primary), var(--color-cta-secondary)) !important;
    color: #fff !important;
}

body.single-product[data-theme="light"] .woocommerce-breadcrumb,
body.single-product[data-theme="light"] .woocommerce-breadcrumb a {
    color: #a0aec0 !important;
}

body.single-product[data-theme="light"] .woocommerce-breadcrumb a:hover {
    color: var(--color-cta-primary) !important;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-sidebar {
        position: static;
        top: auto;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .shop-section {
        padding: 120px 0 56px;
    }

    .shop-sidebar {
        padding: 1rem;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-controls,
    .sort-controls form {
        width: 100%;
    }

    .sort-select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 220px;
    }

    .price-inputs {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 1023px) {
    .woocommerce-shop-layout {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-sidebar {
        order: -1;
    }
    
    .woocommerce-checkout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-lg);
    }
    
    .shop_table {
        font-size: 0.875rem;
    }
    
    .shop_table td,
    .shop_table th {
        padding: var(--space-md);
    }
    
    .product_title,
    .cart-title,
    .checkout-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE ENHANCEMENTS (Added by Copilot)
   ========================================================================== */

/* Force wider container for single product */
.single-product .container-wide {
    max-width: 1600px !important;
    width: 95% !important;
    padding: 0 var(--space-md) !important;
}

/* Main Product Card Container */
.pc-single-product {
    margin-top: var(--space-xl);
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: visible; /* Allow tooltips if needed */
}

/* Neon Top Border Accent */
.pc-single-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-neon-cyan), transparent);
    opacity: 0.8;
}

/* Grid Layout Adjustment */
.pc-single-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Image slightly larger */
    gap: var(--space-3xl);
    align-items: start;
}

/* Breadcrumbs Enhancement */
.pc-product-breadcrumbs {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-product-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
}

/* Gallery Styling */
.pc-product-gallery .woocommerce-product-gallery__wrapper {
    background: #0d0d12 !important;
    border: 1px solid rgba(0, 245, 255, 0.25) !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4) !important;
}

.pc-product-gallery .flex-control-nav li {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100px; /* Force height for consistency */
}

.pc-product-gallery .flex-control-nav li:hover,
.pc-product-gallery .flex-control-nav li img.flex-active {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}

/* Product Title */
.pc-product-summary .product_title {
    font-size: 3.5rem; /* Larger title */
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

/* Price */
.pc-product-summary .price {
    font-size: 2.2rem;
    color: var(--color-warning); /* Use yellow/gold for price as in screenshot potentially */
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

/* Add to Cart Box */
.pc-product-summary .variations_form,
.pc-product-summary form.cart {
    background: rgba(20, 20, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Quantity Input Styling */
.pc-product-summary .quantity .qty {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    height: 50px;
    font-size: 1.1rem;
}

/* Add to Cart Button - Vibrant Purple */
.pc-product-summary .single_add_to_cart_button {
    background: linear-gradient(135deg, #8a2be2, #4b0082) !important;
    border: 1px solid rgba(138, 43, 226, 0.5) !important;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4) !important;
    height: 50px;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.pc-product-summary .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #9d4edd, #6a0dad) !important;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6) !important;
    transform: translateY(-2px);
}

/* Variation Selects */
.pc-product-summary .variations select {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    height: 45px;
    color: #fff;
    font-size: 1rem;
}

.pc-product-summary .variations select:focus {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
    outline: none;
}

/* Customizer CTA - Blue Gradient Box */
.pc-customizer-cta {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Tabs Panel */
.pc-product-tabs .woocommerce-Tabs-panel {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%) !important;
    border: 1px solid rgba(0, 245, 255, 0.15) !important;
    padding: var(--space-2xl) !important;
}

.pc-product-tabs .woocommerce-Tabs-panel h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-xl);
    color: #fff;
}

/* Related Products */
.pc-related-products {
    display: block !important;
    width: 100% !important;
    margin-top: var(--space-2xl) !important;
    clear: both !important;
}

.pc-related-products > h2 {
    display: block !important;
    width: 100% !important;
    font-size: 2rem;
    margin-bottom: var(--space-xl);
}

.pc-related-products .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-lg) !important;
    width: 100% !important;
    overflow: visible !important;
}
@media (max-width: 1200px) {
    .pc-single-main {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .single-product .container-wide {
        width: 100% !important;
        padding: 0 var(--space-sm) !important;
    }
}

/* ==========================================================================
   SINGLE PRODUCT LAYOUT HOTFIX
   ========================================================================== */

.single-product .container-wide {
    max-width: 1600px !important;
    width: min(96vw, 1600px) !important;
    margin: 0 auto !important;
    padding-inline: var(--space-md) !important;
}

.single-product .single-product-page {
    margin-top: calc(var(--header-height) + var(--space-lg)) !important;
    padding: 0 !important;
}

.pc-single-product {
    padding: var(--space-xl) !important;
    border-radius: var(--radius-xl) !important;
}

.pc-single-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr) !important;
    gap: var(--space-2xl) !important;
    align-items: start !important;
}

.pc-single-main > .pc-product-gallery,
.pc-single-main > .pc-product-summary {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.pc-product-gallery,
.pc-product-gallery .images,
.pc-product-gallery .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.pc-product-summary {
    padding-left: 0 !important;
    min-width: 0 !important;
}

.pc-product-summary .product_title {
    font-size: clamp(2rem, 3vw, 3rem) !important;
    line-height: 1.1 !important;
    margin-bottom: var(--space-md) !important;
    word-break: break-word;
}

.pc-product-summary form.cart,
.pc-product-summary .variations_form {
    width: 100% !important;
    margin-bottom: var(--space-lg) !important;
}

.pc-product-summary .single_add_to_cart_button {
    min-height: 48px !important;
}

.pc-customizer-cta,
.pc-product-summary .product_meta {
    margin-top: var(--space-lg) !important;
}

.pc-related-products .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-lg) !important;
    overflow: visible !important;
}

.pc-related-products .pc-related-card {
    width: 100% !important;
    max-width: none !important;
    /* No aspect-ratio on card — let it grow to fit image + content */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.pc-related-products .product-card-image,
.pc-related-products .pc-related-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.pc-related-products .product-card-image img,
.pc-related-products .pc-related-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.pc-related-products .product-card-info,
.pc-related-products .pc-related-content {
    padding: var(--space-sm) var(--space-md) !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-xs) !important;
}

.pc-related-products .pc-related-title,
.pc-related-products .product-card-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.pc-related-products .pc-related-subtitle,
.pc-related-products .product-card-desc {
    font-size: 0.8rem !important;
    opacity: 0.7 !important;
    margin: 0 !important;
}

.pc-related-products .pc-related-footer,
.pc-related-products .product-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
    padding-top: var(--space-xs) !important;
}

.pc-related-products .pc-related-btn,
.pc-related-products .product-card-btn {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
}

@media (max-width: 1200px) {
    .pc-single-main {
        grid-template-columns: 1fr !important;
    }

    .single-product .container-wide {
        width: 100% !important;
    }

    .pc-related-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 639px) {
    .pc-related-products .products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ======================================================================
   SINGLE PRODUCT SUMMARY VISUAL POLISH
   ====================================================================== */

.pc-product-summary {
    background: linear-gradient(180deg, rgba(14, 14, 26, 0.8) 0%, rgba(10, 10, 20, 0.6) 100%);
    border: 1px solid rgba(0, 245, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) !important;
}

.pc-product-summary .price {
    color: #c7c400 !important;
    font-size: clamp(1.9rem, 2.4vw, 2.4rem) !important;
    margin-bottom: var(--space-lg) !important;
    text-shadow: none !important;
}

.pc-product-summary form.cart,
.pc-product-summary .variations_form {
    display: grid;
    gap: var(--space-md);
    align-items: center;
    background: rgba(16, 16, 30, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-lg) !important;
    box-shadow: none !important;
}

.pc-product-summary .quantity {
    margin: 0 !important;
}

.pc-product-summary .quantity .qty {
    width: 72px !important;
    min-width: 72px;
    height: 48px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(7, 7, 16, 0.92) !important;
    color: #fff !important;
}

.pc-product-summary .single_add_to_cart_button {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    color: #d4d4e3 !important;
    background: linear-gradient(135deg, #5c2496, #4b1788) !important;
    border: 1px solid rgba(181, 61, 255, 0.35) !important;
    box-shadow: 0 8px 20px rgba(75, 23, 136, 0.35) !important;
}

.pc-product-summary .single_add_to_cart_button:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.pc-customizer-cta {
    margin-top: var(--space-md) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-lg) !important;
    background: linear-gradient(135deg, #09b6ff 0%, #1d8cff 52%, #615dff 100%) !important;
    box-shadow: 0 14px 28px rgba(10, 120, 255, 0.22) !important;
}

.pc-customizer-cta h3 {
    color: #ffffff !important;
    font-size: clamp(2rem, 2.1vw, 2.6rem) !important;
    line-height: 1.05;
    margin-bottom: 0.5rem !important;
}

.pc-customizer-cta p {
    color: rgba(240, 248, 255, 0.95) !important;
    font-size: 1rem;
    line-height: 1.45;
}

.pc-customizer-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0e1427 !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.pc-product-summary .product_meta {
    margin-top: var(--space-md) !important;
    padding: var(--space-md) !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.16);
    background: rgba(15, 15, 25, 0.78);
}

.pc-product-summary .product_meta,
.pc-product-summary .product_meta a {
    color: #eaf4ff !important;
    font-size: 1rem;
    line-height: 1.45;
}

.pc-product-summary .product_meta a:hover {
    color: var(--color-neon-cyan) !important;
}

/* ======================================================================
   SINGLE PRODUCT GALLERY THUMBNAILS HOTFIX
   ====================================================================== */

.pc-product-gallery .flex-control-nav,
.pc-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(84px, 84px)) !important;
    gap: 0.8rem !important;
    justify-content: start !important;
    list-style: none !important;
    margin: var(--space-md) 0 0 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.pc-product-gallery .flex-control-nav li,
.pc-product-gallery .flex-control-thumbs li {
    float: none !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(10, 10, 15, 0.9) !important;
}

.pc-product-gallery .flex-control-nav li img,
.pc-product-gallery .flex-control-thumbs li img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.82;
}

.pc-product-gallery .flex-control-nav li img:hover,
.pc-product-gallery .flex-control-nav li img.flex-active,
.pc-product-gallery .flex-control-thumbs li img:hover,
.pc-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
}

@media (max-width: 639px) {
    .pc-product-gallery .flex-control-nav,
    .pc-product-gallery .flex-control-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(68px, 68px)) !important;
    }

    .pc-product-gallery .flex-control-nav li,
    .pc-product-gallery .flex-control-thumbs li {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
    }
}

/* ======================================================================
   WOOCOMMERCE BLOCK CART / CHECKOUT STYLING
   ====================================================================== */

.woocommerce-blocks {
    margin-top: calc(var(--header-height) + var(--space-lg));
    padding-bottom: var(--space-3xl);
}

.woocommerce-blocks .wp-block-post-content {
    display: block;
}

.woocommerce-blocks .pixelcraft-wc-block-header {
    margin-bottom: var(--space-xl);
}

.woocommerce-blocks .pixelcraft-wc-subtitle {
    margin-top: 0.4rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.woocommerce-blocks .wc-block-cart,
.woocommerce-blocks .wc-block-checkout {
    background: linear-gradient(135deg, rgba(22, 22, 35, 0.88), rgba(14, 14, 26, 0.92));
    border: 1px solid rgba(0, 245, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.woocommerce-blocks .wp-block-woocommerce-cart,
.woocommerce-blocks .wp-block-woocommerce-checkout {
    margin-top: var(--space-md);
    background: linear-gradient(135deg, rgba(22, 22, 35, 0.88), rgba(14, 14, 26, 0.92));
    border: 1px solid rgba(0, 245, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
}

.woocommerce-blocks .wc-block-cart-items,
.woocommerce-blocks .wp-block-woocommerce-cart-items-block,
.woocommerce-blocks .wc-block-components-sidebar,
.woocommerce-blocks .wp-block-woocommerce-cart-totals-block,
.woocommerce-blocks .wc-block-checkout__main,
.woocommerce-blocks .wp-block-woocommerce-checkout-fields-block,
.woocommerce-blocks .wc-block-checkout__sidebar,
.woocommerce-blocks .wp-block-woocommerce-checkout-totals-block {
    background: rgba(8, 8, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.woocommerce-blocks .wc-block-components-product-name,
.woocommerce-blocks .wc-block-components-order-summary-item__description,
.woocommerce-blocks .wc-block-components-formatted-money-amount,
.woocommerce-blocks .wc-block-components-totals-item__label,
.woocommerce-blocks .wc-block-components-totals-item__value,
.woocommerce-blocks .wc-block-components-checkout-step__heading,
.woocommerce-blocks .wc-block-components-title {
    color: var(--color-text-primary) !important;
}

.woocommerce-blocks .wc-block-components-product-metadata,
.woocommerce-blocks .wc-block-components-product-details,
.woocommerce-blocks .wc-block-components-checkout-return-to-cart-button {
    color: var(--color-text-secondary) !important;
}

.woocommerce-blocks .wc-block-components-quantity-selector {
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.woocommerce-blocks .wc-block-components-quantity-selector input,
.woocommerce-blocks .wc-block-components-quantity-selector button {
    background: rgba(5, 5, 12, 0.85) !important;
    color: var(--color-text-primary) !important;
    border: none !important;
}

.woocommerce-blocks .wc-block-components-button,
.woocommerce-blocks .wc-block-cart__submit .wc-block-components-button,
.woocommerce-blocks .wc-block-components-checkout-place-order-button {
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-purple)) !important;
    color: #081018 !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
}

.woocommerce-blocks .wc-block-components-button:hover,
.woocommerce-blocks .wc-block-components-checkout-place-order-button:hover {
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.35);
}

.woocommerce-blocks .wc-block-components-text-input input,
.woocommerce-blocks .wc-block-components-text-input select,
.woocommerce-blocks .wc-block-components-text-input textarea {
    background: rgba(10, 10, 18, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: var(--color-text-primary) !important;
    border-radius: var(--radius-md) !important;
}

.woocommerce-blocks .wc-block-components-totals-item,
.woocommerce-blocks .wc-block-components-order-summary-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.woocommerce-blocks .wc-block-components-notice-banner,
.woocommerce-blocks .wc-block-components-notice-banner * {
    color: var(--color-text-primary);
}

.woocommerce-blocks .wc-block-cart__empty-cart__title,
.woocommerce-blocks .wp-block-woocommerce-empty-cart-block .wp-block-heading {
    color: var(--color-text-primary) !important;
}

.woocommerce-blocks .wp-block-woocommerce-empty-cart-block {
    background: rgba(8, 8, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

@media (max-width: 1023px) {
    .woocommerce-blocks .wc-block-cart,
    .woocommerce-blocks .wc-block-checkout,
    .woocommerce-blocks .wp-block-woocommerce-cart,
    .woocommerce-blocks .wp-block-woocommerce-checkout {
        padding: var(--space-md);
    }
}

/* Light theme polish for WooCommerce Blocks checkout/cart */
body[data-theme="light"] .woocommerce-blocks .wc-block-cart,
body[data-theme="light"] .woocommerce-blocks .wc-block-checkout,
body[data-theme="light"] .woocommerce-blocks .wp-block-woocommerce-cart,
body[data-theme="light"] .woocommerce-blocks .wp-block-woocommerce-checkout {
    background: linear-gradient(145deg, #ffffff, #f7faff) !important;
    border: 1px solid rgba(30, 41, 59, 0.14) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .woocommerce-blocks .wc-block-cart-items,
body[data-theme="light"] .woocommerce-blocks .wp-block-woocommerce-cart-items-block,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-sidebar,
body[data-theme="light"] .woocommerce-blocks .wp-block-woocommerce-cart-totals-block,
body[data-theme="light"] .woocommerce-blocks .wc-block-checkout__main,
body[data-theme="light"] .woocommerce-blocks .wp-block-woocommerce-checkout-fields-block,
body[data-theme="light"] .woocommerce-blocks .wc-block-checkout__sidebar,
body[data-theme="light"] .woocommerce-blocks .wp-block-woocommerce-checkout-totals-block,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkout-step,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-panel,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-order-summary {
    background: #ffffff !important;
    border: 1px solid rgba(30, 41, 59, 0.12) !important;
    color: #1f2937 !important;
    opacity: 1 !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-title,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkout-step__heading,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-product-name,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-totals-item__label,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-totals-item__value,
body[data-theme="light"] .woocommerce-blocks .wc-block-formatted-money-amount,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkbox label,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-radio-control__label,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkout-step__description,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkout-return-to-cart-button,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-order-summary-item__description,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-product-metadata,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-totals-coupon__label,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-totals-coupon__value,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-validation-error,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-validation-error p {
    color: #334155 !important;
    opacity: 1 !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-address-card,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-address-card * {
    color: #334155 !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input input,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input select,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input textarea,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-combobox-control__input,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-country-input select {
    background: #ffffff !important;
    border: 1px solid rgba(30, 41, 59, 0.2) !important;
    color: #1f2937 !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input input::placeholder,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input textarea::placeholder,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-combobox-control__input::placeholder {
    color: #64748b !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input input:focus,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input select:focus,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-text-input textarea:focus,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-combobox-control__input:focus,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-country-input select:focus {
    border-color: rgba(79, 195, 247, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.22) !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-quantity-selector {
    border: 1px solid rgba(30, 41, 59, 0.2) !important;
    background: #ffffff !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-quantity-selector input,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-quantity-selector button {
    background: #f8fafc !important;
    color: #1f2937 !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-quantity-selector button:hover,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-quantity-selector button:focus-visible {
    background: #eef2f7 !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-order-summary-item,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-totals-item,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-order-summary .wc-block-components-totals-wrapper {
    border-color: rgba(30, 41, 59, 0.12) !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-notice-banner {
    border-color: rgba(220, 38, 38, 0.22) !important;
    background: #fff5f5 !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-notice-banner,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-notice-banner * {
    color: #991b1b !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-button,
body[data-theme="light"] .woocommerce-blocks .wc-block-cart__submit .wc-block-components-button,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkout-place-order-button {
    color: #ffffff !important;
}

body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkout-step--disabled,
body[data-theme="light"] .woocommerce-blocks .wc-block-components-checkout-step--disabled * {
    opacity: 1 !important;
}

/* Fallback selectors for block cart/checkout when wrapper class is missing */
body[data-theme="light"] .wc-block-checkout,
body[data-theme="light"] .wp-block-woocommerce-checkout,
body[data-theme="light"] .wc-block-cart,
body[data-theme="light"] .wp-block-woocommerce-cart {
    background: linear-gradient(145deg, #ffffff, #f7faff) !important;
    border: 1px solid rgba(30, 41, 59, 0.14) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .wc-block-checkout__main,
body[data-theme="light"] .wc-block-checkout__sidebar,
body[data-theme="light"] .wc-block-components-order-summary,
body[data-theme="light"] .wc-block-components-checkout-step,
body[data-theme="light"] .wc-block-components-panel,
body[data-theme="light"] .wc-block-components-sidebar,
body[data-theme="light"] .wc-block-components-address-card {
    background: #ffffff !important;
    border: 1px solid rgba(30, 41, 59, 0.12) !important;
    color: #1f2937 !important;
    opacity: 1 !important;
}

body[data-theme="light"] .wc-block-components-title,
body[data-theme="light"] .wc-block-components-checkout-step__heading,
body[data-theme="light"] .wc-block-components-product-name,
body[data-theme="light"] .wc-block-components-totals-item__label,
body[data-theme="light"] .wc-block-components-totals-item__value,
body[data-theme="light"] .wc-block-components-radio-control__label,
body[data-theme="light"] .wc-block-components-checkbox label,
body[data-theme="light"] .wc-block-components-checkout-return-to-cart-button,
body[data-theme="light"] .wc-block-components-order-summary-item__description,
body[data-theme="light"] .wc-block-components-product-metadata,
body[data-theme="light"] .wc-block-components-validation-error,
body[data-theme="light"] .wc-block-components-validation-error p {
    color: #334155 !important;
    opacity: 1 !important;
}

body[data-theme="light"] .wc-block-components-text-input input,
body[data-theme="light"] .wc-block-components-text-input select,
body[data-theme="light"] .wc-block-components-text-input textarea,
body[data-theme="light"] .wc-block-components-combobox-control__input,
body[data-theme="light"] .wc-block-components-country-input select {
    background: #ffffff !important;
    border: 1px solid rgba(30, 41, 59, 0.2) !important;
    color: #1f2937 !important;
}

body[data-theme="light"] .wc-block-components-text-input input::placeholder,
body[data-theme="light"] .wc-block-components-text-input textarea::placeholder,
body[data-theme="light"] .wc-block-components-combobox-control__input::placeholder {
    color: #64748b !important;
}

body[data-theme="light"] .wc-block-components-quantity-selector {
    border: 1px solid rgba(30, 41, 59, 0.2) !important;
    background: #ffffff !important;
}

body[data-theme="light"] .wc-block-components-quantity-selector input,
body[data-theme="light"] .wc-block-components-quantity-selector button {
    background: #f8fafc !important;
    color: #1f2937 !important;
}

body[data-theme="light"] .wc-block-components-quantity-selector button:hover,
body[data-theme="light"] .wc-block-components-quantity-selector button:focus-visible {
    background: #eef2f7 !important;
}

body.woocommerce-cart {
    position: relative;
}

body.woocommerce-cart .pc-cart-bg-video-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

body.woocommerce-cart .pc-cart-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.woocommerce-cart .pc-cart-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 14, 31, 0.78) 0%, rgba(16, 22, 40, 0.74) 100%);
}

body.woocommerce-cart #primary,
body.woocommerce-cart .site-footer {
    position: relative;
    z-index: 2;
}

/* Keep fixed header above cart overlays/blocks (dropdown must stay on top) */
body.woocommerce-cart .site-header {
    position: fixed;
    z-index: var(--z-fixed);
}

body[data-theme="light"].woocommerce-cart .pc-cart-bg-overlay {
    background: linear-gradient(135deg, rgba(245, 249, 255, 0.72) 0%, rgba(236, 243, 252, 0.66) 100%);
}

body.woocommerce-checkout {
    position: relative;
}

body.woocommerce-checkout .pc-checkout-bg-video-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

body.woocommerce-checkout .pc-checkout-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.woocommerce-checkout .pc-checkout-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 14, 28, 0.8) 0%, rgba(20, 24, 42, 0.76) 100%);
}

body.woocommerce-checkout #primary,
body.woocommerce-checkout .site-footer {
    position: relative;
    z-index: 2;
}

/* Keep fixed header above checkout overlays/blocks */
body.woocommerce-checkout .site-header {
    position: fixed;
    z-index: var(--z-fixed);
}

body[data-theme="light"].woocommerce-checkout .pc-checkout-bg-overlay {
    background: linear-gradient(135deg, rgba(245, 249, 255, 0.72) 0%, rgba(236, 243, 252, 0.66) 100%);
}

body.woocommerce-cart .site-footer,
body.woocommerce-checkout .site-footer {
    margin-top: var(--space-2xl);
}

body.woocommerce-cart #page,
body.woocommerce-checkout #page,
body.woocommerce-cart .site,
body.woocommerce-checkout .site,
body.woocommerce-cart #primary,
body.woocommerce-checkout #primary,
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
}

body.woocommerce-cart #primary > .container,
body.woocommerce-checkout #primary > .container {
    width: 100%;
    max-width: 1320px;
    padding-left: clamp(12px, 2.5vw, 24px);
    padding-right: clamp(12px, 2.5vw, 24px);
    margin-left: auto;
    margin-right: auto;
}

/* Checkout – pełna szerokość kontenera i poprawna siatka */
body.woocommerce-checkout .container {
    max-width: min(96vw, 1520px) !important;
    width: 100% !important;
    padding-left: clamp(16px, 2.5vw, 40px) !important;
    padding-right: clamp(16px, 2.5vw, 40px) !important;
}

body.woocommerce-checkout .woocommerce-content.checkout-page,
body.woocommerce-checkout .woocommerce {
    width: 100% !important;
    max-width: none !important;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 1.3fr 0.9fr !important;
    gap: var(--space-2xl) !important;
    align-items: start !important;
    width: 100% !important;
}

/* Reset WooCommerce col2-set float wewnątrz kolumny billing */
body.woocommerce-checkout #customer_details.col2-set {
    float: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-xl) !important;
    margin: 0 !important;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Order review pełna szerokość w prawej kolumnie */
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review_heading {
    width: 100% !important;
    float: none !important;
}

@media (max-width: 1023px) {
    body.woocommerce-checkout form.checkout.woocommerce-checkout {
        grid-template-columns: 1fr !important;
    }
    body.woocommerce-checkout .container {
        max-width: 100% !important;
    }
}

body.woocommerce-cart .woocommerce-content.woocommerce-blocks,
body.woocommerce-checkout .woocommerce-content.woocommerce-blocks {
    width: 100%;
    max-width: 100%;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
    max-width: 100% !important;
    width: 100% !important;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1rem);
}

body.woocommerce-checkout .site-footer,
body.woocommerce-cart .site-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-checkout .site-footer > .container,
body.woocommerce-cart .site-footer > .container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) {
    body.woocommerce-cart #primary > .container,
    body.woocommerce-checkout #primary > .container {
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    body.woocommerce-checkout .site-footer,
    body.woocommerce-cart .site-footer {
        left: 0;
        transform: none;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ======================================================================
   SINGLE PRODUCT MOBILE RESPONSIVE HOTFIX
   ====================================================================== */

@media (max-width: 1023px) {
    .single-product .container-wide {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .pc-single-product {
        padding: var(--space-md) !important;
        overflow: hidden !important;
    }

    .pc-single-main {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }

    .pc-product-gallery,
    .pc-product-gallery .images,
    .pc-product-gallery .woocommerce-product-gallery,
    .pc-product-gallery .woocommerce-product-gallery__wrapper,
    .pc-product-gallery .woocommerce-product-gallery__image,
    .pc-product-gallery .woocommerce-product-gallery__image a,
    .pc-product-gallery .flex-viewport {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .pc-product-gallery .woocommerce-product-gallery__image img,
    .pc-product-gallery .woocommerce-product-gallery__wrapper img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .pc-product-summary {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: var(--space-md) !important;
    }

    .pc-product-summary .product_title {
        font-size: clamp(2rem, 9vw, 2.6rem) !important;
        line-height: 1.08 !important;
    }

    .pc-product-summary .price {
        font-size: clamp(1.9rem, 8vw, 2.4rem) !important;
    }

    .pc-product-summary form.cart,
    .pc-product-summary .variations_form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: var(--space-sm) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .pc-product-summary .quantity,
    .pc-product-summary .quantity .qty,
    .pc-product-summary .single_add_to_cart_button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pc-customizer-cta {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .pc-customizer-cta h3 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    }

    .pc-product-summary .product_meta {
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .pc-product-tabs,
    .pc-product-tabs .woocommerce-tabs,
    .pc-product-tabs .woocommerce-Tabs-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden;
    }

    .pc-product-tabs .tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px;
    }

    .pc-product-tabs .tabs li {
        flex: 1 1 auto;
        min-width: 92px;
    }
}

@media (max-width: 639px) {
    .single-product .single-product-page {
        margin-top: calc(var(--header-height) + var(--space-sm)) !important;
    }

    .pc-product-breadcrumbs .woocommerce-breadcrumb {
        font-size: 0.9rem;
        line-height: 1.45;
        word-break: break-word;
    }

    .pc-product-gallery .flex-control-nav,
    .pc-product-gallery .flex-control-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .pc-product-gallery .flex-control-nav li,
    .pc-product-gallery .flex-control-thumbs li {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* ======================================================================
   SINGLE PRODUCT — PROFESSIONAL LAYOUT (STABLE OVERRIDES)
   ====================================================================== */

.pc-single-product--pro {
    display: block;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 24px);
    border: 1px solid rgba(0, 245, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(11, 11, 20, 0.94), rgba(14, 14, 28, 0.9));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.pc-single-product--pro .pc-pro-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(16px, 2.4vw, 36px);
    align-items: start;
}

.pc-single-product--pro .pc-pro-gallery {
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: clamp(10px, 1.3vw, 16px);
}

.pc-single-product--pro .pc-pro-gallery .woocommerce-product-gallery__wrapper,
.pc-single-product--pro .pc-pro-gallery .woocommerce-product-gallery__image {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(8, 8, 16, 0.72);
}

.pc-single-product--pro .pc-pro-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: contain;
}

.pc-single-product--pro .pc-pro-summary {
    min-width: 0;
    background: rgba(8, 8, 18, 0.78);
    border: 1px solid rgba(0, 245, 255, 0.16);
    border-radius: 16px;
    padding: clamp(16px, 1.8vw, 28px);
    display: grid;
    gap: 14px;
}

.pc-single-product--pro .pc-pro-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-single-product--pro .pc-pro-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-neon-cyan);
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.24);
}

.pc-single-product--pro .pc-pro-chip--muted {
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.pc-single-product--pro .product_title {
    margin: 0;
    font-size: clamp(1.9rem, 2.8vw, 3rem);
    line-height: 1.08;
    color: var(--color-text-primary);
}

.pc-single-product--pro .pc-pro-pricing-row {
    display: grid;
    gap: 10px;
}

.pc-single-product--pro .pc-pro-price {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: #d4df19;
}

.pc-single-product--pro .pc-pro-price del {
    opacity: 0.6;
    font-size: 0.72em;
    margin-right: 8px;
}

.pc-single-product--pro .pc-pro-stock .stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.pc-single-product--pro .pc-pro-stock .in-stock {
    color: var(--color-text-primary);
    border: 1px solid rgba(82, 243, 133, 0.35);
    background: rgba(10, 60, 29, 0.55);
}

.pc-single-product--pro .pc-pro-stock .out-of-stock {
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 122, 122, 0.35);
    background: rgba(82, 18, 18, 0.6);
}

.pc-single-product--pro .woocommerce-product-rating {
    margin: 2px 0 0;
}

.pc-single-product--pro .woocommerce-product-details__short-description {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
    font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.08rem);
}

.pc-single-product--pro .pc-pro-order-box {
    margin-top: 4px;
    padding: clamp(12px, 1.6vw, 18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(5, 8, 18, 0.7);
}

.pc-single-product--pro form.cart,
.pc-single-product--pro .variations_form {
    margin: 0;
    display: grid;
    gap: 12px;
}

.pc-single-product--pro .quantity .qty {
    width: 88px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(7, 8, 18, 0.9);
    color: var(--color-text-primary);
    font-weight: 700;
}

.pc-single-product--pro .single_add_to_cart_button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #8d39ff, #5723b6);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.pc-single-product--pro .single_add_to_cart_button:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.pc-single-product--pro .pc-pro-benefits {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
}

.pc-single-product--pro .pc-pro-benefits h3 {
    margin: 0 0 10px;
    font-size: 1.02rem;
    color: var(--color-text-primary);
}

.pc-single-product--pro .pc-pro-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.pc-single-product--pro .pc-pro-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.94rem;
    line-height: 1.45;
}

.pc-single-product--pro .pc-pro-benefits li i {
    margin-top: 2px;
    color: var(--color-neon-cyan);
}

.pc-single-product--pro .pc-pro-meta {
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(5, 8, 18, 0.48);
    display: grid;
    gap: 6px;
}

.pc-single-product--pro .pc-pro-meta p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pc-single-product--pro .pc-pro-meta strong {
    color: var(--color-text-primary);
}

.pc-single-product--pro .pc-pro-meta a {
    color: var(--color-neon-cyan);
}

.pc-single-product--pro .pc-product-tabs {
    margin-top: clamp(18px, 3vw, 38px);
}

@media (max-width: 1023px) {
    .pc-single-product--pro {
        padding: 12px;
    }

    .pc-single-product--pro .pc-pro-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pc-single-product--pro .pc-pro-gallery {
        position: static;
    }

    .pc-single-product--pro .product_title {
        font-size: clamp(1.6rem, 8.5vw, 2.3rem);
    }

    .pc-single-product--pro .pc-pro-price {
        font-size: clamp(1.7rem, 9vw, 2.4rem);
    }

    .pc-single-product--pro .quantity,
    .pc-single-product--pro .quantity .qty,
    .pc-single-product--pro .single_add_to_cart_button {
        width: 100%;
    }
}

body.single-product[data-theme="light"] .pc-single-product--pro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 34px rgba(24, 30, 52, 0.1);
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-gallery {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(21, 28, 45, 0.12);
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-summary {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(21, 28, 45, 0.14);
}

body.single-product[data-theme="light"] .pc-single-product--pro .product_title,
body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-benefits h3,
body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-meta strong {
    color: #121826;
}

body.single-product[data-theme="light"] .pc-single-product--pro .woocommerce-product-details__short-description,
body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-benefits li,
body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-meta p {
    color: #4a5878;
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-chip--muted {
    color: #3a4866;
    background: rgba(15, 30, 70, 0.06);
    border-color: rgba(15, 30, 70, 0.16);
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-order-box,
body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-benefits,
body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-meta {
    background: rgba(245, 248, 255, 0.86);
    border-color: rgba(21, 28, 45, 0.12);
}

body.single-product[data-theme="light"] .pc-single-product--pro .quantity .qty {
    background: #ffffff;
    color: #141c2b;
    border-color: rgba(21, 28, 45, 0.2);
}

body.single-product[data-theme="light"] .pc-single-product--pro .product_title {
    background: none !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #121826 !important;
    color: #121826 !important;
    text-shadow: none !important;
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-price {
    color: #1f2937;
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-chip {
    color: #0f4c81;
    background: rgba(79, 195, 247, 0.14);
    border-color: rgba(79, 195, 247, 0.3);
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-stock .in-stock {
    color: #166534;
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(34, 197, 94, 0.12);
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-pro-stock .out-of-stock {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(254, 226, 226, 0.8);
}

body.single-product[data-theme="light"] .pc-single-product--pro .variations select,
body.single-product[data-theme="light"] .pc-single-product--pro .variations select option {
    background: #ffffff;
    color: #1f2937;
    border-color: rgba(15, 23, 42, 0.2);
}

body.single-product[data-theme="light"] .pc-single-product--pro .woocommerce-variation-availability,
body.single-product[data-theme="light"] .pc-single-product--pro .woocommerce-variation-description,
body.single-product[data-theme="light"] .pc-single-product--pro .woocommerce-variation-price {
    background: #ffffff;
    color: #334155;
}

body.single-product[data-theme="light"] .pc-single-product--pro .woocommerce-variation-availability .stock,
body.single-product[data-theme="light"] .pc-single-product--pro .woocommerce-variation-availability .out-of-stock {
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 10px;
    padding: 10px 12px;
}

body.single-product[data-theme="light"] .pc-single-product--pro .reset_variations {
    color: #2563eb;
}

html[data-theme="light"] body.single-product .pc-single-product--pro .pc-pro-summary,
html[data-theme="light"] body.single-product .pc-single-product--pro .pc-pro-order-box,
html[data-theme="light"] body.single-product .pc-single-product--pro .pc-pro-benefits,
html[data-theme="light"] body.single-product .pc-single-product--pro .pc-pro-meta {
    background: #f8fbff !important;
    border-color: rgba(21, 28, 45, 0.14) !important;
}

html[data-theme="light"] body.single-product .pc-single-product--pro .variations label,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations th.label,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations td.label {
    color: #1f2937 !important;
}

html[data-theme="light"] body.single-product .pc-single-product--pro .variations select,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations select option,
html[data-theme="light"] body.single-product .pc-single-product--pro .reset_variations,
html[data-theme="light"] body.single-product .pc-single-product--pro .quantity .qty {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.22) !important;
}

html[data-theme="light"] body.single-product .pc-single-product--pro .single_add_to_cart_button {
    background: linear-gradient(135deg, #6d28d9, #4f46e5) !important;
    color: #ffffff !important;
}

html[data-theme="light"] body.single-product .pc-single-product--pro .woocommerce-variation-availability,
html[data-theme="light"] body.single-product .pc-single-product--pro .woocommerce-variation-description,
html[data-theme="light"] body.single-product .pc-single-product--pro .woocommerce-variation-price {
    color: #334155 !important;
}

body.single-product .pc-single-product--pro .variations select {
    color-scheme: dark;
    background: #121a30 !important;
    color: #e6ecff !important;
    border: 1px solid rgba(103, 124, 179, 0.45) !important;
}

body.single-product .pc-single-product--pro .variations select option {
    background: #121a30 !important;
    color: #e6ecff !important;
}

body.single-product .pc-single-product--pro .variations select:focus {
    outline: none;
    border-color: rgba(0, 245, 255, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.18) !important;
}

body.single-product[data-theme="light"] .pc-single-product--pro .variations select,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations select {
    color-scheme: light;
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.24) !important;
}

body.single-product[data-theme="light"] .pc-single-product--pro .variations select option,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations select option {
    background: #ffffff !important;
    color: #111827 !important;
}

body.single-product .pc-single-product--pro .variations label,
body.single-product .pc-single-product--pro .variations th.label,
body.single-product .pc-single-product--pro .variations td.label {
    color: #e5e7eb !important;
    opacity: 1 !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
}

body.single-product .pc-single-product--pro .variations select,
body.single-product .pc-single-product--pro .variations select option,
body.single-product .pc-single-product--pro .variations select:focus,
body.single-product .pc-single-product--pro .reset_variations {
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body.single-product[data-theme="light"] .pc-single-product--pro .variations label,
body.single-product[data-theme="light"] .pc-single-product--pro .variations th.label,
body.single-product[data-theme="light"] .pc-single-product--pro .variations td.label,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations label,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations th.label,
html[data-theme="light"] body.single-product .pc-single-product--pro .variations td.label {
    color: #1f2937 !important;
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .pc-pro-order-box,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations_form {
    background: #f8fbff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations label,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations th.label,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations td.label,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .reset_variations {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations select,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations select:focus {
    color-scheme: light;
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.26) !important;
    box-shadow: none !important;
}

:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations select option,
:where(html[data-theme="light"], body[data-theme="light"], html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .variations select option[value=""] {
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

.pc-single-product--pro .pc-variation-selected {
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #bcd4ff;
    line-height: 1.25;
}

body.single-product[data-theme="light"] .pc-single-product--pro .pc-variation-selected,
html[data-theme="light"] body.single-product .pc-single-product--pro .pc-variation-selected,
:where(html.theme-light, body.theme-light) body.single-product .pc-single-product--pro .pc-variation-selected {
    color: #1f2937;
}

/* ===== RESPONSIVE VARIATIONS TABLE ===== */
@media (max-width: 640px) {
    .pc-single-product--pro .variations,
    .pc-single-product--pro table.variations {
        display: block;
        width: 100%;
    }

    .pc-single-product--pro .variations tbody,
    .pc-single-product--pro .variations tr {
        display: block;
        width: 100%;
    }

    .pc-single-product--pro .variations th.label {
        display: block;
        width: 100%;
        padding: 4px 0 2px 0;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .pc-single-product--pro .variations td.value {
        display: block;
        width: 100%;
        padding: 0 0 14px 0;
    }

    .pc-single-product--pro .variations td.value select {
        width: 100% !important;
    }

    .pc-single-product--pro .variations .reset_variations {
        display: inline-block;
        margin-top: 4px;
    }
}

/* Fix select text-fill-color across all breakpoints */
.pc-single-product--pro .variations select,
.pc-single-product--pro .variations select option {
    -webkit-text-fill-color: unset !important;
    letter-spacing: 0 !important;
    color-scheme: normal !important;
}

/* ===== CUSTOM SELECT DISPLAY ===== */
.pc-custom-select-wrap {
    position: relative;
    width: 100%;
}

.pc-custom-select-display {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 0 44px 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(103, 124, 179, 0.45);
    background: #121a30;
    color: #e6ecff;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
    overflow: visible;
}

.pc-custom-select-text {
    display: block;
    width: 100%;
    padding: 16px 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-rendering: geometricPrecision;
}

.pc-custom-select-display.is-placeholder .pc-custom-select-text {
    color: #677cb3;
}

.pc-custom-select-wrap:focus-within .pc-custom-select-display,
.pc-custom-select-wrap:hover .pc-custom-select-display {
    border-color: rgba(0, 245, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.12);
}

/* Light theme overrides */
.pc-custom-select-wrap.theme-light .pc-custom-select-display {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.26);
    color: #111827;
}

.pc-custom-select-wrap.theme-light .pc-custom-select-display.is-placeholder .pc-custom-select-text {
    color: #9ca3af;
}

.pc-custom-select-wrap.theme-light:focus-within .pc-custom-select-display,
.pc-custom-select-wrap.theme-light:hover .pc-custom-select-display {
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.pc-custom-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #677cb3;
    display: flex;
    align-items: center;
    transition: transform .2s;
}

.pc-custom-select-wrap.theme-light .pc-custom-select-arrow {
    color: #6b7280;
}

.pc-custom-select-wrap:focus-within .pc-custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* ==========================================================================
   SHOP CATEGORY TILES
   ========================================================================== */

.shop-cat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0.5rem 0 2rem;
}

.shop-cat-tiles--sub {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.shop-cat-tile {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20,20,35,0.95), rgba(12,12,22,0.98));
    border: 1px solid rgba(0, 245, 255, 0.1);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    cursor: pointer;
}

.shop-cat-tile:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(0, 245, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,245,255,0.1);
}

.shop-cat-tile__img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
    flex-shrink: 0;
}

.shop-cat-tile__img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-cat-tile__img video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-cat-tile:hover .shop-cat-tile__img img {
    transform: scale(1.07);
}

.shop-cat-tile:hover .shop-cat-tile__img video {
    transform: scale(1.07);
}

.shop-cat-tile__icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(0, 245, 255, 0.3);
}

.shop-cat-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,20,0.7) 0%, transparent 55%);
    pointer-events: none;
}

.shop-cat-tile__body {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.shop-cat-tile__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.shop-cat-tile__count {
    font-size: 0.8rem;
    color: rgba(0, 245, 255, 0.65);
    margin: 0;
}

.shop-cat-tile__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-neon-cyan, #00f5ff);
    transition: gap 0.2s;
}

.shop-cat-tile:hover .shop-cat-tile__btn {
    gap: 0.7rem;
}

/* Breadcrumb nav when subcategory tiles are shown */
.shop-cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.shop-cat-breadcrumb a {
    color: rgba(0, 245, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.shop-cat-breadcrumb a:hover {
    color: var(--color-neon-cyan, #00f5ff);
}

.shop-cat-breadcrumb__current {
    color: rgba(255,255,255,0.5);
}

.shop-cat-breadcrumb__current::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.4;
}

/* Light theme */
body[data-theme="light"] .shop-cat-tile {
    background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .shop-cat-tile__name { color: #111; }

body[data-theme="light"] .shop-cat-tile__count {
    color: #4b5563;
}

body[data-theme="light"] .shop-cat-tile__btn {
    color: #2563eb;
}

body[data-theme="light"] .shop-cat-breadcrumb a {
    color: #374151;
}

body[data-theme="light"] .shop-cat-breadcrumb a:hover {
    color: #2563eb;
}

body[data-theme="light"] .shop-cat-breadcrumb__current {
    color: #6b7280;
}

body[data-theme="light"] .shop-cat-tile__img {
    background: linear-gradient(135deg, #f2f6ff 0%, #e8eefc 100%);
}

@media (max-width: 900px) {
    .shop-cat-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .shop-cat-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .shop-cat-tiles--sub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
