/**
 * WooCommerce Custom Styles
 * Bloomberg-grade fintech styling for e-commerce
 * 
 * @package ZL\Theme
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --wc-card-bg: rgba(17, 24, 39, 0.85);
    --wc-card-border: rgba(75, 85, 99, 0.3);
    --wc-accent: #10b981;
    --wc-accent-secondary: #3b82f6;
    --wc-text-primary: #f3f4f6;
    --wc-text-secondary: #9ca3af;
    --wc-text-muted: #6b7280;
}

/* ============================================
   Shop Page Header
   ============================================ */
.woocommerce-products-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wc-card-border);
}

.woocommerce-products-header__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wc-text-primary);
    margin: 0 0 0.5rem 0;
}

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

.woocommerce-ordering select {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 8px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    color: var(--wc-text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

/* ============================================
   Product Grid - Desktop Optimized
   ============================================ */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

@media (max-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Product Card - Bloomberg Grade
   ============================================ */
.woocommerce ul.products li.product {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--wc-accent);
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* Gradient top accent */
.woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wc-accent), var(--wc-accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.woocommerce ul.products li.product:hover::before {
    opacity: 1;
}

/* Product Image */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 1));
}

/* Product Content */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wc-text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Category Tag */
.woocommerce ul.products li.product .product-category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--wc-accent-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc-accent);
    margin: auto 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--wc-card-border);
}

.woocommerce ul.products li.product .price del {
    color: var(--wc-text-muted);
    font-size: 0.875rem;
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.25rem;
}

.woocommerce ul.products li.product .price ins {
    background: none;
    color: var(--wc-accent);
    text-decoration: none;
}

/* Price per period */
.woocommerce ul.products li.product .price-period {
    font-size: 0.75rem;
    color: var(--wc-text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--wc-accent), #059669);
    color: white !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0 0 16px 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    margin: 0;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Added to cart state */
.woocommerce ul.products li.product .added_to_cart {
    display: block;
    text-align: center;
    padding: 0.5rem;
    color: var(--wc-accent);
    font-size: 0.75rem;
    text-decoration: none;
}

/* ============================================
   Single Product Page
   ============================================ */
.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.single-product .product .woocommerce-product-gallery {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    overflow: hidden;
}

.single-product .product .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
}

.single-product .product .summary {
    padding: 2rem;
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
}

.single-product .product .product_title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wc-text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.single-product .product .woocommerce-product-details__short-description {
    color: var(--wc-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.single-product .product .price {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wc-accent);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wc-card-border);
}

.single-product .product .single_add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--wc-accent), #059669);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-product .product .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* Product Meta */
.single-product .product .product_meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--wc-card-border);
    font-size: 0.875rem;
    color: var(--wc-text-muted);
}

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

.single-product .product .product_meta a {
    color: var(--wc-accent);
    text-decoration: none;
}

/* Product Tabs */
.woocommerce-tabs {
    margin-top: 3rem;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--wc-card-border);
}

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

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--wc-text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--wc-accent);
    border-bottom-color: var(--wc-accent);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 12px;
    padding: 2rem;
}

/* ============================================
   Cart Page
   ============================================ */
.woocommerce-cart-form {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    padding: 1rem;
    overflow-x: auto;
}

.woocommerce table.shop_table {
    border: none;
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--wc-card-border);
    color: var(--wc-text-primary);
    vertical-align: middle;
}

.woocommerce table.shop_table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--wc-text-muted);
    background: rgba(31, 41, 55, 0.5);
}

.woocommerce table.shop_table td.product-name a {
    color: var(--wc-text-primary);
    text-decoration: none;
    font-weight: 500;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--wc-accent);
}

/* Table layout: fixed for consistent column sizing */
.woocommerce table.shop_table {
    table-layout: fixed;
}

/* Column widths */
.woocommerce table.shop_table .product-remove {
    width: 48px !important;
}

.woocommerce table.shop_table .product-thumbnail {
    width: 90px !important;
}

.woocommerce table.shop_table .product-name {
    width: auto;
}

.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    width: 120px !important;
    text-align: right;
}

/* Remove Button - Trash Icon */
.woocommerce table.shop_table .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    color: transparent;
    font-size: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.woocommerce table.shop_table .product-remove a::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.2s ease;
}

.woocommerce table.shop_table .product-remove a:hover {
    background: rgba(239, 68, 68, 0.2);
}

.woocommerce table.shop_table .product-remove a:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'/%3E%3C/svg%3E");
}

/* ============================================
   Coupon Form - Bloomberg Grade
   ============================================ */
/* Hide the actions row from table - coupon is in sidebar */
.woocommerce table.shop_table td.actions {
    display: none !important;
}

/* ============================================
   Sidebar Coupon Form (in cart totals)
   ============================================ */
.cart-coupon-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wc-card-border);
}

.coupon-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coupon-label {
    font-size: 0.8125rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.coupon-input::placeholder {
    color: #6b7280;
    text-transform: none;
    font-family: inherit;
    letter-spacing: normal;
}

.coupon-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.coupon-apply-btn {
    padding: 0.625rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.coupon-apply-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

.coupon-message {
    font-size: 0.8125rem;
    color: #10b981;
}

.coupon-message.error {
    color: #ef4444;
}

.woocommerce .cart-collaterals {
    margin-top: 2rem;
}

.woocommerce .cart_totals {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    margin-left: auto;
}

.woocommerce .cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--wc-text-primary);
}

.woocommerce .cart_totals .order-total td {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc-accent);
}

.woocommerce .wc-proceed-to-checkout a {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--wc-accent), #059669);
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce .wc-proceed-to-checkout a:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* ============================================
   Checkout Page
   ============================================ */
/* Note: Width controlled by .wc-page-container in page-checkout.php */

.woocommerce form.checkout {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    padding: 2rem;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-checkout h3#order_review_heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--wc-text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--wc-card-border);
}

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

.woocommerce form .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wc-text-secondary);
    margin-bottom: 0.5rem;
}

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

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--wc-card-border);
    border-radius: 10px;
    color: var(--wc-text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--wc-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Order Review */
.woocommerce-checkout-review-order {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.woocommerce-checkout-review-order-table {
    border: none;
    width: 100%;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--wc-card-border);
    color: var(--wc-text-primary);
}

.woocommerce-checkout-review-order-table .order-total td {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc-accent);
}

/* Payment Methods */
.woocommerce-checkout-payment {
    margin-top: 2rem;
}

.woocommerce-checkout-payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.woocommerce-checkout-payment ul.payment_methods li {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--wc-card-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.woocommerce-checkout-payment ul.payment_methods li label {
    font-weight: 500;
    color: var(--wc-text-primary);
    cursor: pointer;
}

.woocommerce-checkout-payment .payment_box {
    padding: 1rem;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 8px;
    margin-top: 0.75rem;
    color: var(--wc-text-secondary);
    font-size: 0.875rem;
}

/* Place Order Button */
.woocommerce #place_order {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--wc-accent), #059669);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.125rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.woocommerce #place_order:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
}

/* ============================================
   My Account Page
   ============================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--wc-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--wc-accent);
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--wc-card-bg);
    border: 1px solid var(--wc-card-border);
    border-radius: 16px;
    padding: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    color: var(--wc-text-secondary);
    line-height: 1.7;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--wc-accent);
    text-decoration: none;
}

/* ============================================
   WooCommerce Notices - Inline Bloomberg-Grade
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.25rem 1rem 3.5rem !important; /* Extra left padding for icon */
    margin: 0 0 1.5rem 0 !important;
    border-radius: 12px !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    border: none !important;
    position: relative !important;
    animation: noticeSlideIn 0.3s ease-out !important;
}

@keyframes noticeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message (green) */
.woocommerce-message {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
}

.woocommerce-message::before {
    content: '' !important;
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* Info Message (blue) */
.woocommerce-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3) !important;
}

.woocommerce-info::before {
    content: '' !important;
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* Error Message (red) */
.woocommerce-error {
    display: block !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3) !important;
    padding: 1.25rem !important;
}

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

.woocommerce-error li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0.25rem 0 !important;
}

.woocommerce-error li::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* Button inside notices */
.woocommerce-message a.button,
.woocommerce-info a.button {
    margin-left: auto !important;
    padding: 0.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

/* Coupon link styling */
.woocommerce-info a.showcoupon {
    margin-left: auto !important;
    padding: 0.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    transition: background 0.2s !important;
}

.woocommerce-info a.showcoupon:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

/* Mobile notices */
@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        flex-wrap: wrap !important;
        padding: 1rem !important;
    }
    
    .woocommerce-message a.button,
    .woocommerce-info a.button,
    .woocommerce-info a.showcoupon {
        margin-left: 0 !important;
        margin-top: 0.75rem !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* Cart product image thumbnail */
.woocommerce table.shop_table .product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

/* ============================================
   Empty States
   ============================================ */
.woocommerce-info.wc-empty-cart-message,
.cart-empty {
    text-align: center;
    padding: 3rem;
}

.return-to-shop .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--wc-accent), #059669);
    color: white !important;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 1rem;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: var(--wc-text-muted);
    margin-bottom: 1.5rem;
}

.woocommerce-breadcrumb a {
    color: var(--wc-text-secondary);
    text-decoration: none;
}

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

/* ============================================
   Quantity Input
   ============================================ */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
}

.woocommerce .quantity .qty {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--wc-card-border);
    border-radius: 8px;
    color: var(--wc-text-primary);
    font-weight: 500;
}

/* ============================================
   Sale Badge
   ============================================ */
.woocommerce ul.products li.product .onsale,
.single-product .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }
    
    .woocommerce form.checkout {
        padding: 1.25rem;
    }
    
    .single-product .product .summary {
        padding: 1.5rem;
    }
    
    .woocommerce .cart_totals {
        max-width: none;
        margin-left: 0;
    }
}

/* ============================================
   Header Cart Icon
   ============================================ */
.header-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--wc-text-secondary, #9ca3af);
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-cart-icon:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--wc-accent, #10b981);
}

.header-cart-icon svg {
    width: 20px;
    height: 20px;
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9px;
    border: 2px solid #0a0e17;
}

/* Pricing link highlight */
.nav-pricing {
    color: var(--wc-accent, #10b981) !important;
    font-weight: 500;
}

.nav-pricing:hover {
    color: #059669 !important;
}

/* Mobile menu pricing highlight */
.mobile-menu-item-highlight {
    color: #10b981 !important;
}

.mobile-menu-item-highlight .menu-icon {
    color: #10b981 !important;
}

/* ============================================
   Hide Quantity Column (sold individually)
   ============================================ */
.woocommerce table.shop_table th.product-quantity,
.woocommerce table.shop_table td.product-quantity {
    display: none;
}

/* Also hide quantity input on single product */
.woocommerce div.quantity {
    display: none;
}

/* ============================================
   WC Page Wrapper (Cart, Checkout, Account)
   ============================================ */
.wc-page {
    background: #0a0e17;
    min-height: 100vh;
    padding: 2rem 0 4rem;
}

.wc-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1440px) {
    .wc-page-container {
        padding: 0 1.5rem;
    }
}

.wc-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

/* Cart Page */
.wc-cart-page .woocommerce-cart-form {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.wc-cart-page .shop_table {
    margin: 0;
}

.wc-cart-page .cart_totals {
    float: none;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

/* Checkout Page */
.wc-checkout-page .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .wc-checkout-page .woocommerce-checkout {
        grid-template-columns: 1fr;
    }
}

.wc-checkout-page #customer_details {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    padding: 2rem;
}

.wc-checkout-page #order_review {
    position: sticky;
    top: 2rem;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    padding: 2rem;
}

/* Account Page */
.wc-account-page .woocommerce-MyAccount-navigation {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.wc-account-page .woocommerce-MyAccount-content {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    padding: 2rem;
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */
:root:not(.dark) .wc-page,
.light-mode .wc-page {
    background: #f8fafc;
}

:root:not(.dark) .wc-page-title,
.light-mode .wc-page-title {
    color: #111827;
    border-bottom-color: #e5e7eb;
}

:root:not(.dark) .wc-cart-page .woocommerce-cart-form,
:root:not(.dark) .wc-checkout-page #customer_details,
:root:not(.dark) .wc-checkout-page #order_review,
:root:not(.dark) .wc-account-page .woocommerce-MyAccount-navigation,
:root:not(.dark) .wc-account-page .woocommerce-MyAccount-content,
.light-mode .wc-cart-page .woocommerce-cart-form,
.light-mode .wc-checkout-page #customer_details,
.light-mode .wc-checkout-page #order_review,
.light-mode .wc-account-page .woocommerce-MyAccount-navigation,
.light-mode .wc-account-page .woocommerce-MyAccount-content {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root:not(.dark) .woocommerce table.shop_table th,
:root:not(.dark) .woocommerce table.shop_table td,
.light-mode .woocommerce table.shop_table th,
.light-mode .woocommerce table.shop_table td {
    color: #374151;
    border-bottom-color: #e5e7eb;
}

:root:not(.dark) .woocommerce table.shop_table thead th,
.light-mode .woocommerce table.shop_table thead th {
    background: #f3f4f6;
    color: #111827;
}

:root:not(.dark) .woocommerce form .form-row label,
.light-mode .woocommerce form .form-row label {
    color: #374151;
}

:root:not(.dark) .woocommerce form .form-row input.input-text,
:root:not(.dark) .woocommerce form .form-row textarea,
:root:not(.dark) .woocommerce form .form-row select,
.light-mode .woocommerce form .form-row input.input-text,
.light-mode .woocommerce form .form-row textarea,
.light-mode .woocommerce form .form-row select {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

:root:not(.dark) .woocommerce form .form-row input.input-text:focus,
:root:not(.dark) .woocommerce form .form-row textarea:focus,
.light-mode .woocommerce form .form-row input.input-text:focus,
.light-mode .woocommerce form .form-row textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

:root:not(.dark) .woocommerce-billing-fields h3,
:root:not(.dark) .woocommerce-shipping-fields h3,
:root:not(.dark) .woocommerce-additional-fields h3,
:root:not(.dark) .woocommerce-checkout h3#order_review_heading,
.light-mode .woocommerce-billing-fields h3,
.light-mode .woocommerce-shipping-fields h3,
.light-mode .woocommerce-additional-fields h3,
.light-mode .woocommerce-checkout h3#order_review_heading {
    color: #111827;
    border-bottom-color: #e5e7eb;
}

:root:not(.dark) .woocommerce-checkout-review-order,
.light-mode .woocommerce-checkout-review-order {
    background: #f9fafb;
    border-color: #e5e7eb;
}

:root:not(.dark) .cart_totals h2,
.light-mode .cart_totals h2 {
    color: #111827;
}

:root:not(.dark) .cart_totals .shop_table,
.light-mode .cart_totals .shop_table {
    background: #f9fafb;
}

/* Light mode product cards */
:root:not(.dark) .woocommerce ul.products li.product,
.light-mode .woocommerce ul.products li.product {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root:not(.dark) .woocommerce ul.products li.product:hover,
.light-mode .woocommerce ul.products li.product:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

:root:not(.dark) .woocommerce ul.products li.product .woocommerce-loop-product__title,
.light-mode .woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #111827;
}

:root:not(.dark) .woocommerce ul.products li.product .price,
.light-mode .woocommerce ul.products li.product .price {
    color: #10b981;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    /* Page container */
    .wc-page-container {
        padding: 0 1rem;
    }
    
    .wc-page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cart page */
    .wc-cart-page .woocommerce-cart-form {
        border-radius: 12px;
    }
    
    .wc-cart-page .shop_table thead {
        display: none;
    }
    
    .wc-cart-page .shop_table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 1rem;
        border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    }
    
    .wc-cart-page .shop_table tbody td {
        border: none;
        padding: 0.5rem;
    }
    
    .wc-cart-page .shop_table .product-thumbnail {
        width: 80px;
    }
    
    .wc-cart-page .shop_table .product-name {
        flex: 1;
        font-size: 0.9375rem;
    }
    
    .wc-cart-page .shop_table .product-price,
    .wc-cart-page .shop_table .product-subtotal {
        width: 50%;
        text-align: left;
        padding-top: 0.75rem;
    }
    
    .wc-cart-page .shop_table .product-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: auto;
    }
    
    .wc-cart-page .cart_totals {
        max-width: 100%;
        margin-top: 1.5rem;
    }
    
    /* Checkout page */
    .wc-checkout-page .woocommerce-checkout {
        gap: 1.5rem;
    }
    
    .wc-checkout-page #customer_details,
    .wc-checkout-page #order_review {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .wc-checkout-page #order_review {
        position: relative;
        top: 0;
    }
    
    /* Form fields */
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last {
        width: 100%;
        float: none;
    }
    
    /* Product grid */
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .woocommerce ul.products li.product {
        border-radius: 12px;
    }
    
    /* Account page */
    .wc-account-page .woocommerce-MyAccount-navigation,
    .wc-account-page .woocommerce-MyAccount-content {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .wc-account-page .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .wc-account-page .woocommerce-MyAccount-navigation ul li {
        flex: 1 1 auto;
    }
    
    .wc-account-page .woocommerce-MyAccount-navigation ul li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        text-align: center;
        display: block;
        border-radius: 8px;
        background: rgba(75, 85, 99, 0.2);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .wc-page {
        padding: 1rem 0 3rem;
    }
    
    .wc-page-title {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
    
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        margin: 0 1rem 1rem 1rem !important;
        font-size: 0.875rem !important;
        border-radius: 10px !important;
    }
}
