/*
Theme Name: Tenica Theme
Theme URI: https://htc-g.com.vn
Author: HTC-G Team
Author URI: https://htc-g.com.vn
Description: Official Theme for HTC-G Gaming Store.
Version: 1.0
Text Domain: tenica-theme
*/

/* ==========================================================================
   Core Styles
   ========================================================================== */

body {
    background-color: #0F0F23;
    color: #E2E8F0;
}

/* ==========================================================================
   H1 Font Size Fix - Prevents H1UserAgentFontSizeInSection deprecation warning
   Chrome deprecated automatic h1 font-size adjustment inside sectioning elements
   ========================================================================== */

article h1,
aside h1,
nav h1,
section h1 {
    font-size: 2em;
    /* Explicit font-size instead of relying on browser default */
}

/* ==========================================================================
   Cyber Grid Background
   ========================================================================== */

.bg-cyber {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* ==========================================================================
   Glow Text Effects
   ========================================================================== */

.glow-text-purple {
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
}

.glow-text-pink {
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5), 0 0 20px rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   Neon Border & Box Effects
   ========================================================================== */

.neon-border {
    box-shadow: 0 0 5px rgba(124, 58, 237, 0.5), inset 0 0 5px rgba(124, 58, 237, 0.2);
}

.neon-box:hover {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.6), 0 0 30px rgba(124, 58, 237, 0.2);
    border-color: #7C3AED;
}

/* ==========================================================================
   Glass Effect
   ========================================================================== */

.glass {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Line Clamp Utilities (for product titles)
   ========================================================================== */

.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 2.8em !important;
    line-height: 1.4 !important;
}

/* Product card title specific */
.product-card h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 2.8em !important;
    line-height: 1.4 !important;
    min-height: 2.8em;
}

/* ==========================================================================
   Hero Slider - CRITICAL
   ========================================================================== */

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

/* Fade out effect class */
.slide.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

/* Content inside slides - add top padding for navbar */
.slide>div {
    padding-top: 7rem;
}

/* Ensure buttons inside slides are clickable */
.slide.active button,
.slide.active a {
    position: relative;
    z-index: 20;
    cursor: pointer;
}

/* ==========================================================================
   Animations - Keyframes
   ========================================================================== */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out forwards;
}

.animate-fade-in {
    animation: slide-up 0.3s ease-out forwards;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */

.product-card {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    transform: translateY(-5px);
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Responsive Fixes
   ========================================================================== */

@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.5rem !important;
    }
}

/* ==========================================================================
   WooCommerce Spacing Fix
   ========================================================================== */

.woocommerce-page .site-content {
    padding-top: 7rem;
}

.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

/* Preload critical images */
img {
    content-visibility: auto;
}

/* Reduce layout shifts */
img,
video {
    max-width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

/* Optimize animations for mobile */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for animations */
.animate-float,
.slide,
.glass-card {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hero section height fix for mobile */
#hero-slider {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ==========================================================================
   WooCommerce Theme Styling
   ========================================================================== */

/* WooCommerce Page Wrapper - Fix navbar overlap */
.woocommerce-page,
.woocommerce-account {
    padding-top: 120px !important;
    min-height: 100vh;
    background-color: #0F0F23;
}

/* FIX: Ensure all checkout inputs are editable */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-shipping-fields input[type="text"],
.woocommerce-shipping-fields input[type="email"],
.woocommerce-shipping-fields input[type="tel"],
.woocommerce-shipping-fields textarea,
.woocommerce-shipping-fields select {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure form fields wrapper allows interaction */
.woocommerce-checkout .form-row,
.woocommerce-checkout .woocommerce-input-wrapper,
.woocommerce-shipping-fields .form-row,
.woocommerce-shipping-fields .woocommerce-input-wrapper {
    pointer-events: auto !important;
    position: relative !important;
}

/* --- Checkout Desktop Layout Fix (Condensed) --- */
@media (min-width: 1024px) {
    .woocommerce-checkout .woocommerce {
        display: grid !important;
        grid-template-columns: 1.5fr 1fr !important;
        /* Side-by-side: Billing (Large) | Order (Small) */
        gap: 2rem !important;
        max-width: 1200px !important;
        /* Limit width */
        margin: 0 auto !important;
    }

    .woocommerce-checkout #customer_details {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding-right: 0 !important;
    }

    .woocommerce-checkout .col2-set {
        width: 100% !important;
        float: none !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* Billing | Shipping side-by-side inside left col */
        gap: 1.5rem !important;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
        clear: none !important;
    }

    /* Move Order Review to the right column */
    .woocommerce-checkout #order_review {
        grid-column: 2;
        grid-row: 1 / span 2;
        background: rgba(22, 33, 62, 0.4);
        border: 1px solid rgba(124, 58, 237, 0.2);
        border-radius: 16px;
        padding: 24px;
        height: fit-content;
        position: sticky;
        top: 140px;
    }
}

/* Hide ALL hero/welcome elements on WooCommerce pages */
.woocommerce-page h1:first-of-type:not(.woocommerce h1),
.woocommerce-account h1:first-of-type:not(.woocommerce h1),
.woocommerce-page>div>h1,
.woocommerce-account>div>h1 {
    display: none !important;
}

/* Hide Welcome to HTC-G specifically */
.woocommerce-page h1[class*="text-4xl"],
.woocommerce-account h1[class*="text-4xl"] {
    display: none !important;
}

/* Hide the wrapper containing Welcome heading */
.woocommerce-page>div.max-w-7xl.py-20,
.woocommerce-account>div.max-w-7xl.py-20 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.woocommerce-page>div.max-w-7xl.py-20>h1,
.woocommerce-account>div.max-w-7xl.py-20>h1 {
    display: none !important;
}

/* Ensure main content is above any background elements */
.woocommerce-page .woocommerce,
.woocommerce-page main,
.woocommerce-page #main-content,
.woocommerce-account .woocommerce {
    position: relative;
    z-index: 10;
    background: transparent;
}

/* Fix for any banner/hero overlapping */
.woocommerce-page .hero-section,
.woocommerce-page #hero-slider,
.woocommerce-page .slide-container,
.woocommerce-account .hero-section,
.woocommerce-account #hero-slider {
    display: none !important;
}

/* My Account Layout */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
    z-index: 20;
}

@media (max-width: 1024px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce Forms */
.woocommerce-form-row,
.woocommerce-form .form-row,
.woocommerce .form-row {
    margin-bottom: 1rem;
}

.woocommerce-form-row label,
.woocommerce .form-row label {
    display: block;
    color: #e2e8f0;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.woocommerce-form-row .required,
.woocommerce .form-row .required {
    color: #f43f5e;
}

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
    width: 100%;
    background-color: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    outline: none;
}

.woocommerce select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

/* WooCommerce Buttons */
.woocommerce .button,
.woocommerce button[type="submit"],
.woocommerce input[type="submit"] {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce .button:hover,
.woocommerce button[type="submit"]:hover,
.woocommerce input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.woocommerce .button.alt {
    background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%);
}

/* Checkout Button Styling */
.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%) !important;
    padding: 1rem !important;
    font-size: 1.125rem !important;
}

/* WooCommerce Tables */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.woocommerce table.shop_table th {
    background: rgba(124, 58, 237, 0.1);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.woocommerce table.shop_table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table .product-name {
    color: #fff;
}

.woocommerce-checkout-review-order-table .product-total {
    color: #7C3AED;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total td {
    color: #7C3AED;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Payment Methods */
.wc_payment_methods .wc_payment_method {
    background: rgba(15, 15, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.wc_payment_methods .wc_payment_method:hover {
    border-color: rgba(124, 58, 237, 0.5);
}

.wc_payment_methods .wc_payment_method.payment_method_selected,
.wc_payment_methods .wc_payment_method input:checked+label {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.1);
}

.wc_payment_methods label {
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wc_payment_methods .payment_box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Shipping Methods */
.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #e2e8f0;
}

.woocommerce-shipping-methods label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* WooCommerce Messages */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.woocommerce-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Quantity Input */
.woocommerce .quantity {
    display: flex;
    align-items: center;
}

.woocommerce .quantity .qty {
    width: 60px;
    text-align: center;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: #fff;
}

/* Address Cards */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.woocommerce-Address {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.woocommerce-Address-title h3 {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce-Address address {
    color: #9ca3af;
    font-style: normal;
    line-height: 1.6;
}

/* Product page small styling */
.woocommerce .product .price {
    color: #7C3AED;
    font-size: 1.5rem;
    font-weight: 700;
}

.woocommerce .product .price del {
    color: #6b7280;
    opacity: 0.7;
}

.woocommerce .product .price ins {
    text-decoration: none;
    color: #F43F5E;
}

/* Star rating */
.woocommerce .star-rating {
    color: #fbbf24;
}

/* Hide default elements we're replacing */
.woocommerce-form-login .woocommerce-privacy-policy-text,
.woocommerce-form-register .woocommerce-privacy-policy-text {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* ==========================================================================
   My Account Page - Comprehensive Fixes
   ========================================================================== */

/* FIX: Force header logo to correct size (was rendering at 500x500px) */
.woocommerce-account nav .flex-shrink-0,
.woocommerce-account nav .flex-shrink-0 img,
.woocommerce-cart nav .flex-shrink-0,
.woocommerce-cart nav .flex-shrink-0 img,
.woocommerce-checkout nav .flex-shrink-0,
.woocommerce-checkout nav .flex-shrink-0 img {
    max-height: 96px !important;
    height: 96px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Hide any stray logo/hero cards on My Account */
.woocommerce-account .slide,
.woocommerce-account .slider-container,
.woocommerce-account #hero-slider,
.woocommerce-account .hero-section,
.woocommerce-account [class*="hero"],
.woocommerce-account .animate-float {
    display: none !important;
}

/* Page wrapper - clean background and proper spacing */
.woocommerce-account,
.woocommerce-cart,
.woocommerce-checkout {
    background: #0F0F23 !important;
    padding-top: 140px !important;
    min-height: 100vh;
}

/* Main WooCommerce container - proper grid layout */
.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 340px 1fr !important;
    /* MATCH SIDEBAR WIDTH + GAP */
    gap: 40px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
    width: 100% !important;
}

/* Mobile: Stack navigation on top */
@media (max-width: 1024px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        display: flex !important;
        /* Switch to flex column for mobile stability */
        flex-direction: column !important;
    }
}

/* Navigation sidebar styling */
/* Navigation sidebar styling - PRO MAX */
.woocommerce-MyAccount-navigation {
    background: transparent !important;
    /* Remove background from container */
    backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    min-width: 320px !important;
    /* Force wider sidebar */
    position: sticky !important;
    top: 140px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    float: none !important;
    margin-right: 0 !important;
    /* Grid gap handles this */
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    /* Spacing between buttons */
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    width: 100% !important;
}

/* Default Link State - Glass Card Button */
.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 25px !important;
    /* Big comfortable touch targets */
    color: #cbd5e1 !important;
    text-decoration: none !important;
    background: rgba(22, 33, 62, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Hover State */
.woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
    color: #fff !important;
    transform: translateX(10px) !important;
    /* Slide right effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Active State - Neon Glow */
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.4) !important;
    transform: scale(1.02) !important;
}

/* Add an indicator arrow (chevron) via CSS pseudo-element */
.woocommerce-MyAccount-navigation ul li a::after {
    content: '→';
    font-family: monospace;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover::after,
.woocommerce-MyAccount-navigation ul li.is-active a::after {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .woocommerce-MyAccount-navigation {
        min-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        padding-bottom: 10px !important;
    }

    /* Mobile Grid Menu Redesign (Grid 2 cols) */
    .woocommerce-MyAccount-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 Column Grid */
        gap: 15px !important;
        padding: 0 0 20px 0 !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .woocommerce-MyAccount-navigation ul li {
        width: auto !important;
        margin: 0 !important;
    }

    .woocommerce-MyAccount-navigation ul li a {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 20px 10px !important;
        height: 100% !important;
        border-radius: 16px !important;
        background: rgba(30, 30, 50, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        white-space: normal !important;
        font-size: 0.9rem !important;
    }

    /* Active State for Grid Card */
    .woocommerce-MyAccount-navigation ul li.is-active a {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(79, 70, 229, 0.2) 100%) !important;
        border-color: #7C3AED !important;
        box-shadow: 0 0 15px rgba(124, 58, 237, 0.3) !important;
    }

    /* Hide arrow on mobile */
    .woocommerce-MyAccount-navigation ul li a::after {
        display: none !important;
    }
}

/* ==========================================================================
   Account Content UI Upgrade (Orders, Addresses, Details)
   ========================================================================== */

/* 1. Orders Table - Glassmorphism */
.woocommerce-orders-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    /* Space between rows */
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-orders-table__header {
    background: transparent !important;
    color: #94a3b8 !important;
    /* Gray-400 */
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 0 15px 10px !important;
    border: none !important;
}

.woocommerce-orders-table__row {
    background: rgba(22, 33, 62, 0.6) !important;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.woocommerce-orders-table__row:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 75, 0.8) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.woocommerce-orders-table__cell {
    padding: 20px 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
    vertical-align: middle !important;
}

/* First & Last Cell Rounded Borders */
.woocommerce-orders-table__cell:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.woocommerce-orders-table__cell:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    text-align: right;
}

/* Status Badges */
.woocommerce-orders-table__cell-order-status {
    font-weight: 700;
    text-transform: capitalize;
}

/* Button in Table */
.woocommerce-button.button.view {
    background: rgba(124, 58, 237, 0.1) !important;
    color: #a78bfa !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
}

.woocommerce-button.button.view:hover {
    background: #7C3AED !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4) !important;
}

/* 2. Addresses Styling - PRO MAX LAYOUT FIX v2 */
.woocommerce-Address-title h3 {
    font-size: 1.5rem !important;
    color: white !important;
    margin-bottom: 20px !important;
}

.woocommerce-Address-title .edit {
    float: right;
    color: #F43F5E !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    transition: 0.3s;
}

.woocommerce-Address-title .edit:hover {
    background: rgba(244, 63, 94, 0.1) !important;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2) !important;
}

/* Force Grid Layout for Addresses Container */
.u-columns.woocommerce-Addresses,
.col2-set.addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Reset individual columns */
.u-columns.woocommerce-Addresses .u-column1,
.u-columns.woocommerce-Addresses .u-column2,
.col2-set.addresses .col-1,
.col2-set.addresses .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Address Card Styling */
.woocommerce-Address address {
    background: rgba(22, 33, 62, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 30px !important;
    border-radius: 20px !important;
    font-style: normal !important;
    line-height: 1.8 !important;
    color: #cbd5e1 !important;
    height: 100% !important;
    /* Equal height */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* Mobile Stack Fix */
@media (max-width: 768px) {

    .u-columns.woocommerce-Addresses,
    .col2-set.addresses {
        grid-template-columns: 1fr !important;
        /* Stack vertically */
    }
}

/* 3. Account Details Form */
.woocommerce-EditAccountForm fieldset {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 20px !important;
}

.woocommerce-EditAccountForm fieldset legend {
    color: #a78bfa !important;
    padding: 0 10px;
    font-weight: 600;
}

/* Content area styling */
.woocommerce-MyAccount-content {
    background: rgba(26, 26, 46, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    color: #e2e8f0 !important;
    width: 100% !important;
    min-width: 0 !important;
    /* FIX: Explicit grid placement to prevent swapping */
    grid-column: 2 !important;
    grid-row: 1 !important;
    /* FIX: Remove float that conflicts with CSS Grid */
    float: none !important;
}

/* Dashboard stats grid - fix cramped layout */
.woocommerce-MyAccount-content .grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-content .grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Stats cards */
.woocommerce-MyAccount-content .grid>div {
    background: rgba(15, 15, 35, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Welcome heading */
.woocommerce-MyAccount-content h1,
.woocommerce-MyAccount-content h2 {
    color: #fff !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.woocommerce-MyAccount-content p {
    color: #9ca3af !important;
    line-height: 1.6 !important;
}

.woocommerce-MyAccount-content a {
    color: #7C3AED !important;
    text-decoration: none !important;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline !important;
}

/* Orders table styling */
.woocommerce-MyAccount-content table.woocommerce-orders-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.woocommerce-MyAccount-content table th {
    background: rgba(124, 58, 237, 0.1) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 1rem !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-MyAccount-content table td {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
}

/* No orders message */
.woocommerce-MyAccount-content .woocommerce-Message {
    background: rgba(26, 26, 46, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    text-align: center !important;
    color: #9ca3af !important;
}

.woocommerce-MyAccount-content .woocommerce-Message a {
    display: inline-block !important;
    margin-top: 1rem !important;
    background: linear-gradient(135deg, #7C3AED, #F43F5E) !important;
    color: #fff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Page content wrapper - additional fix */
.page-content-wrapper {
    background: #0F0F23 !important;
    min-height: calc(100vh - 120px) !important;
}

/* Ensure no floating logo issues */
.woocommerce-account img[class*="logo"],
.woocommerce-account .logo-card,
.woocommerce-account [class*="slide-container"] {
    display: none !important;
}

/* ==========================================================================
   Shop Page - Comprehensive Fixes
   ========================================================================== */

/* FIX: Force header logo to correct size on Shop page */
body.woocommerce nav .flex-shrink-0,
body.woocommerce nav .flex-shrink-0 img,
body.post-type-archive-product nav .flex-shrink-0,
body.post-type-archive-product nav .flex-shrink-0 img {
    max-height: 96px !important;
    height: 96px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Shop page wrapper - clean background and proper spacing */
body.woocommerce,
body.post-type-archive-product,
body.single-product {
    background: #0F0F23 !important;
    padding-top: 140px !important;
    min-height: 100vh;
}

/* Hide hero/slider on shop pages */
body.post-type-archive-product .slide,
body.post-type-archive-product .slider-container,
body.post-type-archive-product #hero-slider,
body.post-type-archive-product .hero-section,
body.post-type-archive-product [class*="hero"],
body.single-product .slide,
body.single-product .slider-container,
body.single-product #hero-slider {
    display: none !important;
}

/* Shop container */
body.post-type-archive-product .woocommerce,
.woocommerce-shop .woocommerce {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
}

/* Shop page title */
.woocommerce-products-header__title {
    color: #fff !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

/* Product Grid - 4 columns desktop, 2 mobile */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Product Card - Glassmorphism styling */
.woocommerce ul.products li.product {
    background: rgba(26, 26, 46, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.woocommerce ul.products li.product:hover {
    border-color: rgba(124, 58, 237, 0.5) !important;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2) !important;
    transform: translateY(-4px) !important;
}

/* Product Image */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1rem !important;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    color: #7C3AED !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.woocommerce ul.products li.product .price del {
    color: #6b7280 !important;
    opacity: 0.7 !important;
    font-size: 0.875rem !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: #F43F5E !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    width: 100% !important;
    background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    transition: all 0.2s !important;
    display: block !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4) !important;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    background: linear-gradient(135deg, #F43F5E 0%, #FF6B6B 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 0.5rem !important;
    position: absolute !important;
    top: 1.5rem !important;
    left: 1.5rem !important;
    z-index: 10 !important;
}

/* No products message */
.woocommerce-info {
    background: rgba(26, 26, 46, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    color: #9ca3af !important;
    text-align: center !important;
}

.woocommerce-info::before {
    color: #7C3AED !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 2rem 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: rgba(26, 26, 46, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
}

/* ==========================================================================
   Related Products Section - Fix Grid Layout
   ========================================================================== */

.related.products {
    margin-top: 4rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.related.products h2 {
    color: #fff !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (max-width: 1024px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Cart Page - Enhanced Styling
   ========================================================================== */

.woocommerce-cart .woocommerce {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
}

.woocommerce-cart table.shop_table {
    background: rgba(26, 26, 46, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 1rem !important;
}

.woocommerce-cart table.shop_table th {
    background: rgba(124, 58, 237, 0.15) !important;
    color: #fff !important;
    padding: 1.25rem !important;
}

.woocommerce-cart table.shop_table td {
    color: #e2e8f0 !important;
    padding: 1.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.woocommerce-cart table.shop_table td.product-name a {
    color: #fff !important;
    font-weight: 600 !important;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
    color: #7C3AED !important;
}

.woocommerce-cart table.shop_table .product-thumbnail img {
    border-radius: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-cart .cart-collaterals {
    margin-top: 2rem !important;
}

.woocommerce-cart .cart_totals {
    background: rgba(26, 26, 46, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    float: none !important;
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
}

.woocommerce-cart .cart_totals h2 {
    color: #fff !important;
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-cart .cart_totals table {
    border: none !important;
    background: transparent !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 0.75rem 0 !important;
    color: #e2e8f0 !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #7C3AED !important;
    padding-top: 1rem !important;
    border-top: 2px solid rgba(124, 58, 237, 0.3) !important;
}

/* ==========================================================================
   Add to Cart Animation - Fly to Cart
   ========================================================================== */

@keyframes flyToCart {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.5) translateY(-50vh) translateX(-50vw);
    }

    100% {
        opacity: 0;
        transform: scale(0.2) translateY(-100vh) translateX(-80vw);
    }
}

.adding-to-cart {
    pointer-events: none !important;
}

.product-fly-image {
    position: fixed;
    z-index: 99999;
    animation: flyToCart 1s ease-in-out forwards;
    pointer-events: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.5);
}

/* Cart icon pulse when item added */
@keyframes cartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.cart-pulse {
    animation: cartPulse 0.5s ease-in-out;
}

/* ==========================================================================
   Enhanced Notification System
   ========================================================================== */

.tenica-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 320px;
    max-width: 400px;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenica-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.tenica-notification.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    color: #fff;
}

.tenica-notification.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: #fff;
}

.tenica-notification.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: #fff;
}

.tenica-notification .notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tenica-notification .notification-content {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.tenica-notification .notification-close {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tenica-notification .notification-close:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .tenica-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }
}


/* ==========================================================================
   My Account Pages - Full Width Content Fix
   ========================================================================== */

.woocommerce-MyAccount-content {
    min-height: 400px !important;
}

.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
    max-width: 100% !important;
    width: 100% !important;
}

.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
}

.woocommerce-MyAccount-content .woocommerce-Address {
    width: 100% !important;
    max-width: none !important;
}

.woocommerce-MyAccount-content form {
    max-width: 600px !important;
    width: 100% !important;
}

/* ==========================================================================
   WooCommerce Blocks Styling (Cart & Checkout)
   ========================================================================== */

.wc-block-cart__main,
.wc-block-cart__sidebar,
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
    background: rgba(26, 26, 46, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
}

.wc-block-cart-items__row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5rem 0 !important;
}

.wc-block-components-product-name {
    color: #fff !important;
    font-weight: 600 !important;
}

.wc-block-components-product-price,
.wc-block-cart__totals .wc-block-components-totals-item__value {
    color: #7C3AED !important;
    font-weight: 700 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #7C3AED !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
}

.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout textarea,
.wc-block-checkout select {
    background: rgba(15, 15, 35, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
}

.wc-block-checkout input:focus,
.wc-block-checkout textarea:focus,
.wc-block-checkout select:focus {
    border-color: #7C3AED !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2) !important;
}

.wc-block-cart .wc-block-cart__submit-button,
.wc-block-checkout .wc-block-components-button {
    background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    border-radius: 0.75rem !important;
}

.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-checkout .wc-block-components-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4) !important;
}


/* ==========================================================================
   UI/UX PRO MAX - NEON GLASSMORPHISM OVERHAUL
   ========================================================================== */

/* 1. Global Shop Grid Fix (Shop + Related + Upsells) */
.woocommerce ul.products,
.related.products ul.products,
.up-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    padding: 20px !important;
    margin: 40px auto !important;
    max-width: 1500px !important;
    clear: both !important;
    width: 100% !important;
}

/* Eliminate clearfix interference for Grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.related.products ul.products::before,
.related.products ul.products::after {
    display: none !important;
    content: none !important;
}

/* 2. Product Card Container - Glassmorphism */
.woocommerce ul.products li.product,
.related.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(20, 20, 35, 0.7) !important;
    backdrop-filter: blur(12px);
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative;
    padding: 0 0 20px 0 !important;
    height: auto !important;
}

.woocommerce ul.products li.product:hover,
.related.products ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(110, 69, 226, 0.3);
    border-color: #6e45e2 !important;
    z-index: 5;
}

/* 3. Modern Sale Tag */
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b6b 100%) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.5) !important;
    z-index: 10;
    border: none !important;
}

/* 4. Product Image & Content */
.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    flex-grow: 1;
}

.woocommerce ul.products li.product img,
.related.products ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    transition: 0.6s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 15px 15px 5px !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    height: 3.8em !important;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 !important;
}

/* Price - Neon Cyan */
.woocommerce ul.products li.product .price,
.related.products ul.products li.product .price {
    padding: 5px 15px 15px !important;
    color: #00ffcc !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin-top: auto;
    display: block !important;
}

.woocommerce ul.products li.product .price del {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    margin-right: 8px;
    opacity: 0.7;
    font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    background: transparent !important;
}

/* 5. Button Facelift - Premium Gradient */
.woocommerce ul.products li.product .button,
.related.products ul.products li.product .button {
    margin: 0 15px 15px !important;
    background: linear-gradient(90deg, #6e45e2 0%, #8833ff 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 10px !important;
    text-align: center !important;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px;
    display: block !important;
}

.woocommerce ul.products li.product .button:hover {
    filter: brightness(1.2);
    box-shadow: 0 8px 20px rgba(110, 69, 226, 0.4) !important;
    transform: translateY(-2px);
}

/* 6. Shop Pagination */
.woocommerce-pagination .page-numbers {
    border: none !important;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.woocommerce-pagination .page-numbers li {
    border: none !important;
    float: none !important;
}

.woocommerce-pagination .page-numbers li span.current {
    background: #6e45e2 !important;
    color: white !important;
    border-radius: 12px;
    font-weight: bold;
    padding: 10px 20px !important;
}

.woocommerce-pagination .page-numbers li a {
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 20px !important;
    transition: all 0.2s;
}

.woocommerce-pagination .page-numbers li a:hover {
    background: rgba(110, 69, 226, 0.2) !important;
    color: white !important;
}

/* 7. Single Product Page - Pro Section */
.summary.entry-summary {
    background: rgba(20, 20, 35, 0.6) !important;
    backdrop-filter: blur(20px);
    padding: 40px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.single_add_to_cart_button {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b6b 100%) !important;
    padding: 18px 45px !important;
    border-radius: 16px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 25px rgba(255, 51, 102, 0.3) !important;
    transition: 0.3s !important;
    margin-top: 20px;
}

.single_add_to_cart_button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.5) !important;
}

.product_meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 20px !important;
    margin-top: 25px !important;
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
}

/* Responsive Grid */
@media (max-width: 1200px) {

    .woocommerce ul.products,
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {

    .woocommerce ul.products,
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    .summary.entry-summary {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .woocommerce-products-header__title {
        font-size: 2rem !important;
    }
}

/* ==========================================================================
   URGENT ADDRESS LAYOUT FIX - DEFINITIVE v3
   ========================================================================== */
.u-columns.woocommerce-Addresses,
.col2-set.addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    align-items: start !important;
}

/* Hide legacy clearfix pseudos */
.u-columns.woocommerce-Addresses::before,
.u-columns.woocommerce-Addresses::after,
.col2-set.addresses::before,
.col2-set.addresses::after {
    display: none !important;
    content: none !important;
}

/* Reset Columns */
.u-columns.woocommerce-Addresses .u-column1,
.u-columns.woocommerce-Addresses .u-column2,
.col2-set.addresses .col-1,
.col2-set.addresses .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Address Card Height Fix */
.woocommerce-Address address {
    height: 100% !important;
    min-height: 250px !important;
}

/* Mobile Stack */
@media (max-width: 768px) {

    .u-columns.woocommerce-Addresses,
    .col2-set.addresses {
        grid-template-columns: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
}

/* ==========================================================================
   DESIGN PAGE PRO MAX UPGRADE
   ========================================================================== */

/* Mobile Sticky Footer Fixes */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 20px) !important;
}

/* Component List Responsive Tweaks */
@media (max-width: 768px) {
    .component-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 15px !important;
        gap: 15px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .component-row:last-child {
        margin-bottom: 0 !important;
    }

    .component-row>div:first-child {
        /* Label/Number */
        width: 100% !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-bottom: 10px !important;
        margin-bottom: 5px !important;
    }

    .component-row>div:nth-child(2) {
        /* Selection Area */
        width: 100% !important;
        padding: 0 !important;
    }

    .component-row>div:last-child {
        /* Price */
        width: 100% !important;
        text-align: right !important;
        padding: 0 !important;
        margin-top: 5px !important;
    }

    /* Selected Product Card Mobile */
    .selected-product .flex {
        flex-direction: row !important;
        /* Keep image and text side-by-side */
    }

    .selected-product img {
        width: 60px !important;
        height: 60px !important;
    }

    /* Hide desktop summary if sticky is active (optional, maybe keep it?) */
}

/* Neon Button Polish */
.btn-neon-orange {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon-orange::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-neon-orange:hover::after {
    left: 100%;
}

/* ==========================================================================
   DESIGN PAGE FIXES V2 (Overflow & Layout)
   ========================================================================== */

/* 1. Prevent Horizontal Scroll */
body,
html {
    overflow-x: hidden !important;
    width: 100% !important;
}

#pc-builder {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* 2. Component Row Mobile Fix */
@media (max-width: 768px) {
    .component-row {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .component-row .selected-product {
        width: 100% !important;
    }

    .component-row .selected-product .flex {
        flex-wrap: nowrap !important;
        /* Ensure image and text don't wrap weirdly */
        width: 100% !important;
    }

    /* Fix the "Remove" button pushing out */
    .component-row .selected-product button {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* Text truncation fix */
    .product-name {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 150px !important;
        /* Force truncate */
    }
}

/* 3. Modal Grid Fix */
#modal-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    /* Prevent blowout */
    gap: 10px !important;
    padding-bottom: 50px !important;
    /* Space for scrolling */
}

/* 4. Modal Container Fix */
#component-modal .absolute.inset-4 {
    inset: 10px !important;
    /* More space */
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
}

/* 5. Ensure Sticky Footer stays on top */
.fixed.bottom-0 {
    z-index: 9999 !important;
}

/* ==========================================================================
   FIX: Related Products - Missing Images & Broken Layout
   ========================================================================== */

/* Related Products Container - Ensure Proper Width */
.related.products {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: hidden !important;
    margin-top: 3rem !important;
    padding: 2rem calc((100vw - 1200px) / 2 + 2rem) !important;
    background: rgba(15, 15, 35, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 1280px) {
    .related.products {
        padding: 2rem 2rem !important;
    }
}

.related.products>h2 {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    padding-left: 0.5rem !important;
}

/* Related Products Grid - Fixed Columns */
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 1200px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Related Product Card - Full Width Card */
.related.products ul.products li.product {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(26, 26, 46, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.related.products ul.products li.product:hover {
    border-color: rgba(124, 58, 237, 0.5) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2) !important;
}

/* Related Product Image - Full Width with Aspect Ratio */
.related.products ul.products li.product a img,
.related.products ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    display: block !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(244, 63, 94, 0.2)) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Related Product - When No Image, Show Placeholder */
.related.products ul.products li.product a:first-child:not(:has(img)),
.related.products ul.products li.product .woocommerce-loop-product__link:not(:has(img)) {
    min-height: 150px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(244, 63, 94, 0.3)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Related Product Title */
.related.products ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product h2.woocommerce-loop-product__title {
    color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 1rem !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 3em !important;
}

/* Related Product Price */
.related.products ul.products li.product .price {
    padding: 0 1rem 1rem !important;
    margin: 0 !important;
    color: #00ffcc !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.related.products ul.products li.product .price del {
    color: #6b7280 !important;
    font-size: 0.85rem !important;
}

.related.products ul.products li.product .price ins {
    text-decoration: none !important;
    color: #F43F5E !important;
}

/* Related Product Button */
.related.products ul.products li.product .button,
.related.products ul.products li.product a.add_to_cart_button {
    margin: 0 1rem 1rem !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    border-radius: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.related.products ul.products li.product .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4) !important;
}

/* ==========================================================================
   FIX: Cart Sidebar - Product Images
   ========================================================================== */

/* Cart Sidebar Product List */
#cart-sidebar .widget_shopping_cart_content .woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Cart Sidebar Product Item */
#cart-sidebar .woocommerce-mini-cart-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    background: rgba(26, 26, 46, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
}

/* Cart Sidebar Product Image */
#cart-sidebar .woocommerce-mini-cart-item img,
#cart-sidebar .mini_cart_item img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0.5rem !important;
    background: rgba(26, 26, 46, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

/* Cart Sidebar - When Image is Placeholder/Missing */
#cart-sidebar .woocommerce-mini-cart-item a:first-child {
    flex-shrink: 0 !important;
    display: block !important;
}

/* Cart Sidebar Product Info */
#cart-sidebar .woocommerce-mini-cart-item .product-name,
#cart-sidebar .mini_cart_item a:not(.remove) {
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    flex: 1 !important;
    min-width: 0 !important;
}

#cart-sidebar .woocommerce-mini-cart-item .quantity,
#cart-sidebar .mini_cart_item .quantity {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

#cart-sidebar .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount,
#cart-sidebar .mini_cart_item .woocommerce-Price-amount {
    color: #7C3AED !important;
    font-weight: 600 !important;
}

/* Cart Sidebar Remove Button */
#cart-sidebar .woocommerce-mini-cart-item .remove,
#cart-sidebar .mini_cart_item .remove {
    color: #ef4444 !important;
    font-size: 1.25rem !important;
    text-decoration: none !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
}

#cart-sidebar .woocommerce-mini-cart-item .remove:hover {
    opacity: 1 !important;
}

/* Cart Sidebar Totals */
#cart-sidebar .woocommerce-mini-cart__total {
    padding: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 1rem !important;
}

#cart-sidebar .woocommerce-mini-cart__total strong {
    color: #9ca3af !important;
}

#cart-sidebar .woocommerce-mini-cart__total .woocommerce-Price-amount {
    color: #7C3AED !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

/* Cart Sidebar Buttons */
#cart-sidebar .woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
}

#cart-sidebar .woocommerce-mini-cart__buttons a {
    display: block !important;
    width: 100% !important;
    padding: 0.875rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

#cart-sidebar .woocommerce-mini-cart__buttons .wc-forward:first-child {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

#cart-sidebar .woocommerce-mini-cart__buttons .wc-forward:first-child:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

#cart-sidebar .woocommerce-mini-cart__buttons .checkout {
    background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%) !important;
    border: none !important;
    color: #fff !important;
}

#cart-sidebar .woocommerce-mini-cart__buttons .checkout:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE FIX - Shop Grid Layout
   ========================================================================== */

/* Force 2 columns on small screens (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Shop Page Grid - 2 columns on mobile */
    .woocommerce ul.products,
    .related.products ul.products,
    .up-sells ul.products,
    .tenica-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Product Card - Full Width */
    .woocommerce ul.products li.product,
    .related.products ul.products li.product,
    .up-sells ul.products li.product,
    .tenica-product-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 12px !important;
    }

    /* Product Image */
    .woocommerce ul.products li.product img,
    .related.products ul.products li.product img,
    .tenica-product-card .product-image img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* Product Title - Smaller on mobile */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .tenica-product-card .product-title {
        font-size: 0.8rem !important;
        padding: 8px !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        min-height: 2.6em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Product Price - Smaller on mobile */
    .woocommerce ul.products li.product .price,
    .tenica-product-card .product-price {
        font-size: 0.9rem !important;
        padding: 0 8px 8px !important;
        margin: 0 !important;
    }

    /* Add to Cart Button - Full width, smaller */
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.add_to_cart_button,
    .tenica-product-card .add-to-cart-btn {
        margin: 0 8px 8px !important;
        padding: 8px 6px !important;
        font-size: 0.65rem !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }

    /* Sale Badge - Smaller */
    .woocommerce span.onsale,
    .sale-badge {
        font-size: 9px !important;
        padding: 3px 8px !important;
        top: 8px !important;
        right: 8px !important;
    }

    /* Related Products Container on Mobile */
    .related.products {
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .related.products>h2 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Extra small screens - 1 column */
@media screen and (max-width: 400px) {

    .woocommerce ul.products,
    .related.products ul.products,
    .up-sells ul.products,
    .tenica-products-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Make cards larger on single column */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .tenica-product-card .product-title {
        font-size: 0.9rem !important;
        min-height: auto !important;
    }

    .woocommerce ul.products li.product .button {
        font-size: 0.75rem !important;
        padding: 10px !important;
    }
}

/* =============================================================================
   RELATED PRODUCTS - PROFESSIONAL REDESIGN
   Added: 2026-01-26 - Complete overhaul for balanced, attractive layout
   ============================================================================= */

/* Container - Full width, centered content */
section.related.products,
.woocommerce section.related.products,
.single-product section.related.products,
.related.products {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    padding: 2rem calc((100vw - 1200px) / 2 + 1.5rem) !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Section Title */
section.related.products>h2,
.related.products>h2 {
    text-align: center !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid rgba(124, 58, 237, 0.3) !important;
}

/* Grid Container - Centered 4-column grid */
section.related.products>ul.products,
.related.products>ul.products,
.woocommerce .related.products>ul.products,
.single-product .related.products>ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    clear: both !important;
    justify-content: center !important;
}

/* Clear WooCommerce pseudo-elements */
section.related.products>ul.products::before,
section.related.products>ul.products::after,
.related.products>ul.products::before,
.related.products>ul.products::after {
    display: none !important;
    content: none !important;
}

/* Product Card - Glass effect with proper sizing */
section.related.products>ul.products>li.product,
.related.products>ul.products>li.product,
.woocommerce .related.products>ul.products>li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(15, 15, 35, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

/* Card Hover Effect */
section.related.products>ul.products>li.product:hover,
.related.products>ul.products>li.product:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(124, 58, 237, 0.5) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(124, 58, 237, 0.15) !important;
}

/* Product Image Container */
section.related.products>ul.products>li.product a:first-child,
section.related.products>ul.products>li.product .woocommerce-loop-product__link,
.related.products>ul.products>li.product a:first-child,
.related.products>ul.products>li.product .woocommerce-loop-product__link {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%) !important;
    position: relative !important;
}

/* Product Image */
section.related.products>ul.products>li.product img,
.related.products>ul.products>li.product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease, opacity 0.3s ease !important;
    opacity: 0.9 !important;
}

section.related.products>ul.products>li.product:hover img,
.related.products>ul.products>li.product:hover img {
    transform: scale(1.08) !important;
    opacity: 1 !important;
}

/* Sale Badge */
section.related.products>ul.products>li.product .onsale,
.related.products>ul.products>li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4) !important;
}

/* Product Info Area */
section.related.products>ul.products>li.product .woocommerce-loop-product__title,
section.related.products>ul.products>li.product h2.woocommerce-loop-product__title,
.related.products>ul.products>li.product .woocommerce-loop-product__title {
    display: block !important;
    padding: 1rem 1rem 0.5rem !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.4 !important;
    min-height: 2.8rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    transition: color 0.2s ease !important;
}

section.related.products>ul.products>li.product:hover .woocommerce-loop-product__title,
.related.products>ul.products>li.product:hover .woocommerce-loop-product__title {
    color: #7C3AED !important;
}

/* Category Label */
section.related.products>ul.products>li.product .posted_in,
.related.products>ul.products>li.product .posted_in {
    padding: 0 1rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #7C3AED !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Price */
section.related.products>ul.products>li.product .price,
.related.products>ul.products>li.product .price {
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

section.related.products>ul.products>li.product .price del,
.related.products>ul.products>li.product .price del {
    color: #6B7280 !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    margin-right: 0.5rem !important;
    text-decoration: line-through !important;
}

section.related.products>ul.products>li.product .price ins,
.related.products>ul.products>li.product .price ins {
    color: #F43F5E !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Add to Cart Button */
section.related.products>ul.products>li.product .button,
section.related.products>ul.products>li.product a.add_to_cart_button,
.related.products>ul.products>li.product .button,
.related.products>ul.products>li.product a.add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: calc(100% - 2rem) !important;
    margin: 0.75rem 1rem 1rem !important;
    padding: 0.875rem 1rem !important;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3) !important;
}

section.related.products>ul.products>li.product .button:hover,
.related.products>ul.products>li.product .button:hover {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ===== RESPONSIVE ===== */

/* Tablet - 3 columns */
@media (max-width: 1200px) {

    section.related.products>ul.products,
    .related.products>ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Small Tablet - 2 columns */
@media (max-width: 768px) {

    section.related.products,
    .related.products {
        padding: 1.5rem 1rem !important;
    }

    section.related.products>ul.products,
    .related.products>ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    section.related.products>h2,
    .related.products>h2 {
        font-size: 1.5rem !important;
    }
}

/* Mobile - 1 column centered */
@media (max-width: 480px) {

    section.related.products>ul.products,
    .related.products>ul.products {
        grid-template-columns: 1fr !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   CART PAGE - ZOOM & RESPONSIVE FIX
   ========================================================================== */

/* Ensure cart container respects viewport boundaries */
.woocommerce-cart .woocommerce,
.wp-block-woocommerce-cart,
.wc-block-cart {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Cart main and sidebar responsive */
.wc-block-cart .wp-block-woocommerce-cart-items-block,
.wc-block-cart .wp-block-woocommerce-cart-totals-block {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-cart__main,
.wc-block-cart__sidebar {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Cart items row overflow fix */
.wc-block-cart-items,
.wc-block-cart-items__row {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Product name overflow */
.wc-block-cart-item__product .wc-block-components-product-name {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Cart item image responsive */
.wc-block-cart-item__image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Quantity selector responsive */
.wc-block-components-quantity-selector {
    flex-shrink: 0 !important;
    max-width: 120px !important;
}

/* Totals responsive */
.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper {
    max-width: 100% !important;
    word-wrap: break-word !important;
}

/* Button full width on small screens */
.wc-block-cart__submit-container {
    max-width: 100% !important;
}

.wc-block-cart__submit-button {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive breakpoints for cart */
@media (max-width: 1024px) {
    .wc-block-cart {
        padding: 1rem !important;
    }

    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        padding: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .wc-block-cart {
        padding: 0.75rem !important;
    }

    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .wc-block-cart-items__row {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .wc-block-cart-item__image {
        flex: 0 0 80px !important;
        max-width: 80px !important;
    }

    .wc-block-cart-item__product {
        flex: 1 1 calc(100% - 100px) !important;
        min-width: 0 !important;
    }

    .wc-block-cart-item__quantity {
        flex: 1 1 100% !important;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 480px) {

    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
    }

    .wc-block-cart-item__image {
        flex: 0 0 60px !important;
        max-width: 60px !important;
    }

    .wc-block-components-product-name {
        font-size: 0.9rem !important;
    }

    .wc-block-components-quantity-selector {
        max-width: 100px !important;
    }

    .wc-block-components-quantity-selector input {
        width: 40px !important;
        padding: 0.25rem !important;
    }
}

/* ==========================================================================
   CHECKOUT PAGE - ZOOM & RESPONSIVE FIX
   ========================================================================== */

/* CRITICAL: Hide horizontal overflow from hidden sidebars at high zoom */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* GLOBAL: Fixed 30px left/right margins at ALL zoom levels */
.woocommerce-checkout,
.mega-checkout-layout,
form.woocommerce-checkout,
.checkout-container-promax {
    max-width: calc(100vw - 60px) !important;
    margin-left: 30px !important;
    margin-right: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: visible !important;
    box-sizing: border-box !important;
}

/* Ensure container and main respect viewport */
.container,
main,
#primary,
#content {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Order summary table - prevent text cutoff */
.order-review-table,
.woocommerce-checkout-review-order-table,
#order_review,
.mega-right,
.checkout-right {
    overflow: visible !important;
    max-width: 100% !important;
}

/* Price column - ensure currency symbol is visible */
.order-review-table td,
.order-review-table th,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    white-space: nowrap !important;
    overflow: visible !important;
    padding-right: 1rem !important;
}

/* Checkout left/right columns */
.mega-left,
.mega-right {
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Responsive adjustments - KEEP 30px margins at all breakpoints */
@media (max-width: 1300px) {

    .mega-left,
    .mega-right {
        padding: 0.75rem !important;
    }
}

@media (max-width: 1150px) {

    .mega-left,
    .mega-right {
        padding: 0.5rem !important;
    }

    /* Force checkout to single column layout */
    .mega-checkout-layout {
        flex-direction: column !important;
    }

    .mega-left {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Shipping mode selector - responsive grid */
.shipping-mode-selector {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.shipping-mode-selector .mode-card {
    min-width: 0 !important;
    max-width: 100% !important;
}

.shipping-mode-selector .mode-card>div {
    min-width: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Cards text wrap */
.shipping-mode-selector .mode-card span {
    word-break: break-word !important;
    hyphens: auto !important;
}

/* Checkout sections - glass cards */
.checkout-section,
.glass-card,
[class*="glass-"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Billing/Shipping info cards */
.billing-info-card,
.shipping-info-card,
#billing-info-summary,
#shipping-info-summary {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Responsive breakpoints for checkout */
/* 1450px = zoom ~125% on 1920px screen - compress 3 columns */
@media (max-width: 1450px) {
    .shipping-mode-selector {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }

    .shipping-mode-selector .mode-card>div {
        padding: 0.6rem !important;
    }

    .shipping-mode-selector .mode-card span {
        font-size: 0.7rem !important;
    }

    .shipping-mode-selector .mode-card .w-10 {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
}

/* 1300px = zoom ~150% on 1920px screen - switch to 2 columns */
@media (max-width: 1300px) {
    .mega-checkout-layout {
        padding: 1rem !important;
    }

    .shipping-mode-selector {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    .shipping-mode-selector .mode-card>div {
        padding: 0.75rem !important;
    }

    .shipping-mode-selector .mode-card span {
        font-size: 0.75rem !important;
    }
}

/* 1150px = zoom ~167% - SWITCH TO 1 COLUMN to prevent overflow */
@media (max-width: 1150px) {
    .shipping-mode-selector {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .shipping-mode-selector .mode-card>div {
        padding: 0.75rem !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .shipping-mode-selector .mode-card>div>div:first-child {
        margin-bottom: 0 !important;
    }

    .shipping-mode-selector .mode-card span.text-sm {
        font-size: 0.85rem !important;
    }

    .shipping-mode-selector .mode-card span.text-xs {
        font-size: 0.7rem !important;
    }
}

/* 768px - smaller mobile adjustments */
@media (max-width: 768px) {
    .mega-checkout-layout {
        padding: 0.5rem !important;
    }

    .mega-left,
    .mega-right {
        padding: 0.5rem !important;
    }

    /* Cards already 1 column from 1150px breakpoint */
    .shipping-mode-selector .mode-card>div {
        padding: 0.5rem !important;
    }

    .shipping-mode-selector .mode-card>div {
        padding: 1rem !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
    }

    .shipping-mode-selector .mode-card>div>div:first-child {
        margin-bottom: 0 !important;
    }

    .mega-left,
    .mega-right {
        padding: 0.75rem !important;
    }

    .checkout-section {
        padding: 1rem !important;
    }
}

@media (max-width: 640px) {

    /* Even smaller - ensure everything fits */
    .shipping-mode-selector .mode-card>div {
        padding: 0.75rem !important;
    }

    .shipping-mode-selector .mode-card span {
        font-size: 0.8rem !important;
    }

    .shipping-mode-selector .mode-card .w-10 {
        width: 2rem !important;
        height: 2rem !important;
    }

    .checkout-section h2,
    .checkout-section h3 {
        font-size: 1.1rem !important;
    }
}