        :root {
            /* Culori extrase din logo-ul Maglux */
            --brand-blue: #0b2545;       /* Albastrul închis din textul maglux.ro */
            --brand-green: #8cc63f;      /* Verdele crud din "Magazin Online" */
            --brand-light-green: #dff2c5; /* O variantă deschisă pentru fundaluri/hover */
            --brand-yellow: #ffb400;     /* Galbenul stelelor pentru accente/rating */
            
            --dark-blue: #071a32;
            --bg-gray: #f8fafc;
            --text-gray: #334155;
            --border-gray: #e2e8f0;
            --footer-bg: #0b1221;
            --white: #ffffff;
            --drawer-width: 320px;
        }




/* ===== LIGHTBOX PRODUS CU X ===== */

.maglux-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.maglux-lightbox.active {
    display: flex;
}

.maglux-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.maglux-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
	padding-top: 8px;
	padding-left: 20px;
	padding-right: 20px;
    border-radius: 8%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-blue);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.maglux-lightbox-close:hover {
    background: var(--brand-green);
    color: #fff;
}

body.maglux-lightbox-open {
    overflow: hidden;
}



        
        .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-button.button.view{
    padding-top: 8px;
    padding-bottom: 8px;
}

.woocommerce-MyAccount-content{
    margin: 16px;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-nav,
.cart-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
}

.account-icon-wrapper,
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-nav:hover,
.cart-nav:hover {
    opacity: 0.85;
}

.price-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

    .product-name{
    height: fit-content !important;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.home-product-grid .product-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

.home-product-grid .product-img {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-product-grid .product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.home-product-grid .product-name {
    min-width: 0;
    margin-bottom: 10px;
}

.home-product-grid .price-wrapper {
    margin-top: auto;
}

    .maglux-product-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        align-items: flex-start;
        background: #fff;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .maglux-product-image-col {
        flex: 0 0 420px;
        min-width: 420px;
        max-width: 420px;
        width: 420px;
    }

    .maglux-product-info-col {
        flex: 1 1 0;
        min-width: 320px;
    }

    .maglux-main-image-box {
        width: 100%;
        height: 420px;
        border: 1px solid #f1f5f9;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

    .maglux-main-image-box a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .maglux-main-image-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .maglux-gallery-thumbs {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }

    .maglux-gallery-thumb {
        width: 82px;
        height: 82px;
        border-radius: 8px;
        background: #fff;
        padding: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 2px solid #e2e8f0;
    }

    .maglux-gallery-thumb.active {
        border-color: var(--brand-blue);
    }

    .maglux-gallery-thumb img {
        max-width: 100%;
        max-height: 100%;
        display: block;
        object-fit: contain;
    }


.filter-sidebar{
    position: relative !important;
}

.footer-contact-info-mini {
    margin: 15px 0;
}

.footer-contact-info-mini p {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info-mini a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-contact-info-mini a:hover {
    color: #3b82f6;
}

/* Stil pentru titluri coloane */
.footer-column h4 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Iconițele de social sub contact */


.footer-socials {
    margin-top: 30px;
    display: flex;
    gap: 14px;
}



.legal-badges {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-badges img {
    max-width: 180px;
    height: auto;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.ast-scroll-top{
    display: none !important;
}

.footer-contact li {
    margin-bottom: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: var(--brand-green);
}

.footer-contact-item i {
    width: 14px;
    color: var(--brand-green);
    flex-shrink: 0;
}

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        html, body {
             height: 100% !important;
        }

        body {
            display: flex !important;
            flex-direction: column !important;
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--white);
            color: var(--text-gray);
            line-height: 1.5;
            overflow-x: hidden;
        }
        
        main {
            flex: 1 !important;
        }

        body.drawer-open {
            overflow: hidden;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 16px;
        }

        /* Header Section */
        .main-header {
            background: var(--white);
            padding: 12px 0;
            border-bottom: 2px solid var(--brand-green); /* Linie de accent verde */
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .logo-section {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo-img {
            height: 66px; /* Marit cu ~20% de la 55px */
            width: auto;
            display: block;
            object-fit: contain;
        }

        /* Bara de cautare - Desktop */
        .search-box-desktop {
         flex: 1;
         max-width: 600px;
         position: relative;
         display: flex;
        }
        
        .search-box-desktop form {
         width: 100%;
            display: flex;
         position: relative;
}

        .search-box-desktop input {
         width: 100%;
         border: 2px solid var(--border-gray);
         border-radius: 8px;
         padding: 10px 16px;
         padding-right: 50px;
         outline: none;
         transition: border-color 0.2s;
        }

        .search-box-desktop input:focus {
         border-color: var(--brand-blue);
        }

        .search-btn-icon {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            background: var(--brand-blue);
            color: var(--white);
            padding: 0 20px;
            border: none;
            border-radius: 0 6px 6px 0;
            cursor: pointer;
            display: flex;
            align-items: center;
        }

        .search-btn-icon:hover {
         background: var(--dark-blue);
        }

        .cart-nav {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--brand-blue);
            cursor: pointer;
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .cart-nav:hover {
            opacity: 0.8;
        }

        .cart-icon-wrapper {
            position: relative;
        }

        .badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--brand-green);
            color: var(--white);
            font-size: 10px;
            font-weight: bold;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .main-label {
            font-size: 14px;
            font-weight: 800;
            color: var(--brand-blue);
            text-transform: uppercase;
        }

        /* Navbar Section */
        .category-nav {
    background: var(--brand-blue);
    color: var(--white);
    z-index: 90;
    position: relative;
}

        .nav-items-container {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    justify-content: flex-start;
}

        /* Mobile Viewports */
        .mobile-nav-row {
            display: none;
            width: 100%;
            height: 44px;
            align-items: center;
            justify-content: space-between;
        }

        .mobile-category-trigger {
            height: 100%;
            background: rgba(255,255,255,0.1);
            border: none;
            color: #fff;
            padding: 0 15px;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .mobile-search-box {
            display: flex;
            background: #fff;
         border-radius: 4px;
            height: 32px;
            margin-right: 10px;
            overflow: hidden;
            flex: 0 1 300px;
        }

        .mobile-search-box form {
            width: 100%;
            display: flex;
        }

        .mobile-search-box input {
            border: none;
            padding: 0 10px;
            width: 100%;
         outline: none;
            font-size: 12px;
        }

        .mobile-search-btn {
         background: var(--brand-green);
         color: #fff;
         border: none;
         padding: 0 12px;
            cursor: pointer;
         display: flex;
         align-items: center;
        }

        /* --- DRAWER --- */
        .drawer-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 999;
            display: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .drawer-overlay.active {
            display: block;
            opacity: 1;
        }

        .side-drawer {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--drawer-width);
            height: 100vh;
            background: var(--white);
            z-index: 1000;
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            box-shadow: 5px 0 25px rgba(0,0,0,0.2);
        }

        .side-drawer.active {
            transform: translateX(0);
        }

        .drawer-header {
            padding: 10px;
            font-weight: 800;
            border-bottom: 1px solid var(--border-gray);
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-transform: uppercase;
            color: var(--brand-blue);
        }

        .drawer-nav-list { list-style: none; }
        .drawer-item { border-bottom: 1px solid #f1f5f9; }

        .drawer-item-title {
            width: 100%;
            padding: 16px 20px;
            font-size: 14px;
            font-weight: 800;
            text-align: left;
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-transform: uppercase;
            color: var(--brand-blue);
        }

        .drawer-item.expanded .drawer-item-title {
            background: var(--brand-light-green);
            color: var(--brand-blue);
        }

        .drawer-submenu {
            background: #fafafa;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        .drawer-item.expanded .drawer-submenu { max-height: 1000px; }

        .drawer-sub-link {
            padding: 12px 40px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-gray);
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .drawer-sub-link:hover {
            color: var(--brand-green);
        }

        .badge-new {
            background: var(--brand-green);
            color: #fff;
            font-size: 9px;
            padding: 2px 5px;
            border-radius: 4px;
            margin-left: 8px;
        }

        /* Desktop Nav List */
       #desktop-nav-list {
    display: flex;
    flex-wrap: wrap;          /* AICI e cheia */
    width: 100%;
    height: auto;
    align-items: stretch;
    
}

        .nav-group {
    position: relative;
    height: auto;
    flex: 0 0 auto;
}

.nav-link {
    min-height: 44px;         /* în loc de height: 100% */
    padding: 0 16px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

        .nav-link:hover, .nav-link.active {
            background: rgba(255,255,255,0.1);
            color: var(--brand-green);
        }

        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            display: none;
            padding-top: 0;
            z-index: 200;
        }

        .nav-group:hover .dropdown { display: block; }

        .dropdown-content {
            background: var(--white);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
            padding: 32px;
            display: flex;
            gap: 48px;
            border-radius: 0 0 8px 8px;
            min-width: max-content;
            border-top: 3px solid var(--brand-green);
        }

        .dropdown-column h4 {
            color: var(--brand-blue);
            font-size: 14px;
            font-weight: 900;
            border-bottom: 2px solid var(--brand-light-green);
            padding-bottom: 8px;
            margin-bottom: 16px;
            text-transform: uppercase;
        }

        .dropdown-column ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
        .dropdown-column li { font-size: 12px; font-weight: 700; color: var(--text-gray); text-transform: uppercase; cursor: pointer; transition: color 0.2s; }
        .dropdown-column li:hover { color: var(--brand-green); }

        /* Hero & Content */
        .hero-banner {
            background: linear-gradient(135deg, var(--brand-blue) 0%, #1e40af 100%);
            height: 420px;
            display: flex;
            align-items: center;
            overflow: hidden;
            position: relative;
        }

        .hero-banner::after {
            content: '';
            position: absolute;
            bottom: -50px;
            right: -50px;
            width: 300px;
            height: 300px;
            background: var(--brand-green);
            opacity: 0.1;
            border-radius: 50%;
        }

        .hero-content { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; z-index: 2; }
        .hero-text h2 { font-size: 56px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 16px; }
        .hero-text h2 span { color: var(--brand-green); }
        .hero-text p { font-size: 24px; color: rgba(255,255,255,0.9); font-style: italic; margin-bottom: 32px; font-weight: 300; }
        .hero-btn {
    background: var(--brand-green);
    color: #fff;
    padding: 18px 44px;
    border-radius: 40px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s;

    /* FIX pentru <a> */
    text-decoration: none;
    display: inline-block;
    line-height: normal;
}

.hero-btn:hover {
    background: #7ab534;
    transform: scale(1.05);
    text-decoration: none;
}
        .hero-image img { width: 420px; border-radius: 20px; transform: rotate(2deg); box-shadow: 0 30px 60px rgba(0,0,0,0.3); border: 4px solid rgba(255,255,255,0.1); }

        .trust-panel { background: #fff; border-bottom: 1px solid var(--border-gray); padding: 28px 0; }
        .trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
        .trust-item { display: flex; align-items: center; gap: 16px; }
        .trust-icon { background: var(--brand-light-green); color: var(--brand-blue); padding: 14px; border-radius: 12px; display: flex; }
        .trust-item h4 { font-size: 14px; font-weight: 900; text-transform: uppercase; color: var(--brand-blue); }
        .trust-item p { font-size: 11px; color: #64748b; font-weight: 600; }

        .main-background { background-color: var(--bg-gray); padding: 60px 0; }
        .product-section { margin-bottom: 60px; }
        .section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--brand-light-green); padding-bottom: 16px; margin-bottom: 30px; }
        .section-header h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--brand-blue); position: relative; }
        .section-header h3::after { content: ''; position: absolute; bottom: -18px; left: 0; width: 60px; height: 4px; background: var(--brand-green); }
        
        .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
        .product-card { background: #fff; padding: 24px; border-radius: 12px; display: flex; flex-direction: column; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid transparent; }
        .product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--brand-light-green); }
        .product-img { height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
        .product-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
        .product-name { font-size: 14px; font-weight: 700; height: 44px; overflow: hidden; margin-bottom: 16px; line-height: 1.5; color: var(--brand-blue); }
        
        .price-wrapper { margin-top: auto; border-top: 1px solid #f8fafc; padding-top: 16px; }
        .old-price { font-size: 12px; text-decoration: line-through; color: #94a3b8; margin-bottom: 6px; font-weight: 600; }
        .current-price { color: var(--brand-blue); font-weight: 900; }
        .price-int { font-size: 30px; }
        .price-dec { font-size: 14px; vertical-align: super; margin-left: 2px; }
        
        .add-to-cart-btn { 
            background: var(--brand-green); 
            color: #fff; 
            padding: 12px; 
            border-radius: 10px; 
            border: none; 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            justify-content: center;
            transition: background 0.2s;
        }
        .add-to-cart-btn:hover { background: var(--brand-blue); }

        .main-footer { background: var(--footer-bg); color: #94a3b8; padding: 80px 0 40px; border-top: 6px solid var(--brand-green); }
        .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; margin-bottom: 60px; }
        
        .footer-logo { 
            margin-bottom: 24px; 
            display: flex;
            align-items: center;
        }
        
        .footer-logo-img {
            height: 54px; /* Marit cu ~20% de la 45px */
            width: auto;
            object-fit: contain;
        }
        
        
        .footer-links{
            margin-left: 0px;
        }


        .main-footer h4 { color: #fff; font-size: 14px; margin-bottom: 28px; text-transform: uppercase; font-weight: 900; letter-spacing: 1px; }
        .main-footer ul { list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 13px; font-weight: 600; }
        .main-footer ul li:hover { color: #fff; cursor: pointer; }
        
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; text-align: center; font-size: 12px; margin-top: 40px; letter-spacing: 0.5px; }

        /* Media Queries */
        @media (max-width: 1150px) {
            #desktop-nav-list, .search-box-desktop { display: none; }
            .mobile-nav-row { display: flex; }
            .product-grid { grid-template-columns: repeat(3, 1fr); }
            .footer-grid { grid-template-columns: repeat(2, 1fr); }
            .logo-img { height: 54px; } /* Marit cu ~20% de la 45px */
        }

        @media (max-width: 768px) {
            .product-grid { grid-template-columns: repeat(2, 1fr); }
            .trust-grid { grid-template-columns: repeat(2, 1fr); }
            .hero-text h2 { font-size: 38px; }
            .mobile-search-box { flex: 0 1 200px; }
        }

        @media (max-width: 550px) {
            .footer-grid { grid-template-columns: 1fr; gap: 40px; }
            .product-grid { grid-template-columns: 1fr; }
            .hero-text h2 { font-size: 32px; }
        }

        @media (max-width: 480px) {
            .hero-image { display: none; }
            .mobile-category-trigger span { display: none; }
            .cart-nav .main-label { display: none; }
            .logo-img { height: 48px; } /* Marit cu ~20% de la 40px */
            .logo-img-footer { height: 64px; }
        }

        @media (max-width: 350px) {
            .trust-grid { grid-template-columns: repeat(1, 1fr); }
            .lucide-chevron-down {display: none;}
        }
        
        
        
        
        
        
        
        
        
        /* --- RESPONSIVE FIX PENTRU PAGINI NOI --- */

/* Layout general (Sidebar + Content) */
.maglux-split-layout {
    display: flex;
    gap: 30px;
}

@media (max-width: 992px) {
    .maglux-split-layout {
        flex-direction: column;
    }
    
    .filter-sidebar, .cart-totals {
        width: 100% !important;
        position: static !important;
    }
}

/* Stiluri pentru Tabelul de Coș pe Mobil */
@media (max-width: 768px) {
    .cart-items-list {
        overflow-x: auto;
    }
    
    .woocommerce-cart-form table {
        min-width: 600px;
    }
    
    /* Ascundem coloanele mai puțin importante pe mobil dacă e cazul */
    .cart-items-list th:nth-child(2), 
    .cart-items-list td:nth-child(2) {
        display: none;
    }
}

/* Corecție Grid Produse în Căutare/Categorii */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1150px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Pagina de produs single */
.product-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 850px) {
    .product-page-wrapper {
        grid-template-columns: 1fr;
    }
}









/* ================================================================
   1. DESKTOP - Layout Orizontal (Imaginea 4/5)
   ================================================================ */

#coupon_code{
    min-width: 15rem;
}

/* --- FIX CIFRĂ TĂIATĂ ÎN INPUT --- */

/* 1. Mărim lățimea și eliminăm padding-ul care strânge cifra */
.quantity input.qty {
    width: 55px !important;      /* Lățime suficientă pentru 2-3 cifre */
    padding-left: 0 !important;   /* Eliminăm spațiul gol din stânga */
    padding-right: 0 !important;  /* Eliminăm spațiul gol din dreapta */
    text-align: center !important;
    appearance: textfield !important; /* Firefox fix */
}



/* Ascundem butonul de update pentru că acum e automat */
button[name="update_cart"] {
    display: none !important;
}

/* Opțional: Adăugăm un efect vizual de "încărcare" ca userul să știe că se întâmplă ceva */
.woocommerce-cart-form.processing {
    opacity: 0.5;
    pointer-events: none;
}


.woocommerce-cart .woocommerce {
    background-color: #f8fafc;
    padding: 40px 0;
}

table.shop_table.cart {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0 12px !important;
    border: none !important;
    background: transparent !important;
}

table.shop_table.cart thead th {
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 20px !important;
}

table.shop_table.cart tr.cart_item {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.05);
}

table.shop_table.cart td {
    padding: 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
}

/* Rotunjiri Desktop */
table.shop_table.cart td:first-child { border-left: 1px solid #f1f5f9 !important; border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
table.shop_table.cart td:last-child { border-right: 1px solid #f1f5f9 !important; border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

/* Imagine & Text Desktop */
.product-thumbnail img { width: 70px !important; border-radius: 8px; }
.product-name a { color: #1e293b !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.product-subtotal .amount { color: #e11d48 !important; font-size: 18px !important; font-weight: 900; }

/* Butoane & Sumar */
.coupon input#coupon_code { border: 2px solid #e2e8f0 !important; border-radius: 8px !important; height: 45px !important; }
.actions button.button { height: 45px !important; border-radius: 8px !important; font-weight: 800; text-transform: uppercase; padding: 0 25px !important; }
button[name="apply_coupon"] { background: #8cc63f !important; color: #fff !important; }
button[name="update_cart"] { background: #1e293b !important; color: #fff !important; }
.cart_totals { background: #fff !important; border-radius: 12px !important; padding: 30px !important; box-shadow: 0 10px 25px rgba(11, 37, 69, 0.1) !important; }
.checkout-button { background: #1e293b !important; padding: 18px !important; border-radius: 10px !important; display: block !important; text-align: center; color: #fff !important; }

/* ================================================================
   2. MOBIL - Stil Altex (Imaginea 7) - FĂRĂ OVERFLOW
   ================================================================ */

@media (max-width: 768px) {
    /* ELIMINARE DEFINITIVĂ MIN-WIDTH ȘI TABEL RIGID */
    
    #coupon_code{
    min-width: 0px;
}
    
    table.shop_table.cart, 
    table.shop_table.cart tbody, 
    table.shop_table.cart tr, 
    table.shop_table.cart td {
        padding: 7px;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important; /* Forțăm eliminarea oricărei lățimi minime */
        box-sizing: border-box !important;
    }

    table.shop_table.cart thead { 
        display: none !important; 
    }

    table.shop_table.cart tr.cart_item {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border: 1px solid #f1f5f9 !important;
        position: relative;
        height: auto !important;
    }

    table.shop_table.cart td {
        text-align: left !important;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f8fafc !important;
    }

    /* Repoziționare X */
    table.shop_table.cart td.product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        width: auto !important;
        border: none !important;
    }

    /* Etichete dinamice Altex */
    table.shop_table.cart td.product-quantity::before { content: "Cantitate: "; font-weight: 700; color: #64748b; font-size: 11px; }
    table.shop_table.cart td.product-subtotal::before { content: "Sub-total: "; font-weight: 700; color: #64748b; font-size: 11px; }

    /* Acțiuni secundare */
    table.shop_table.cart td.product-subtotal::after {
        display: block;
        margin-top: 12px;
        color: #e11d48;
        font-size: 12px;
        white-space: pre;
    }

    /* Butoane Mobile */
    .coupon { display: flex !important; flex-direction: column; gap: 8px; width: 100% !important; }
    .coupon input#coupon_code { width: 100% !important; }
    button[name="apply_coupon"], button[name="update_cart"] { width: 100% !important; }

    /* Sumar Mobile */
    .cart_totals { width: 100% !important; float: none !important; margin-top: 20px; }
}        
        
        












/* ================================================================
   PAGINA DE CHECKOUT - STILIZARE MAGLUX
   ================================================================ */

.col-1{
    width:100% !important;
}

.select2-selection  {
    padding: 18px 6px !important;
}

.select2-selection--single {
    padding: 18px 6px !important;
}

.select2-selection__rendered{
    margin-top: -14px;
}

/* Fundal general pentru pagina de checkout */
.woocommerce-checkout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

/* Titlurile secțiunilor (Facturare / Comanda Ta) */
.woocommerce-checkout h3 {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--brand-light-green);
    position: relative;
}

.woocommerce-checkout h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--brand-green);
}

/* 1. COLOANA DIN STÂNGA - Detalii Client */
#customer_details {
    flex: 1 1 600px;
}

.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.woocommerce-checkout input.input-text, 
.woocommerce-checkout select, 
.woocommerce-checkout textarea {
    width: 100%;
    padding: 5px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.woocommerce-checkout input.input-text:focus {
    border-color: var(--brand-green);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-light-green);
}

/* 2. COLOANA DIN DREAPTA - Sumar Comandă */
#order_review_heading {
    display: none; /* Ascundem al doilea titlu pentru un look curat */
}

#order_review {
    flex: 1 1 350px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 10px 25px rgba(11, 37, 69, 0.08);
}

/* Tabelul cu produsele din sumar */
table.shop_table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse;
}

table.shop_table.woocommerce-checkout-review-order-table thead {
    display: none; /* Curățăm header-ul tabelului */
}

table.shop_table.woocommerce-checkout-review-order-table td, 
table.shop_table.woocommerce-checkout-review-order-table th {
    padding: 20px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: none !important;
    font-size: 14px;
}

.product-name {
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
}

.product-total .amount {
    font-weight: 800;
    color: var(--brand-blue);
}

/* Totalul Mare */
.order-total th, .order-total .amount {
    font-size: 20px !important;
    color: var(--brand-blue) !important;
    font-weight: 900 !important;
    border-bottom: none !important;
}

.order-total .amount {
    color: #e11d48 !important; /* Roșu pentru preț final, ca în coș */
}

/* 3. METODE DE PLATĂ */
#payment {
    background: #f8fafc !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-top: 20px;
}

#payment ul.payment_methods {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 15px !important;
}

#payment div.payment_box {
    background-color: var(--brand-light-green) !important;
    color: var(--brand-blue) !important;
    border-radius: 6px;
    font-size: 13px;
}

#payment div.payment_box::before {
    border-bottom-color: var(--brand-light-green) !important;
}

/* BUTONUL PLASEAZĂ COMANDA */
#place_order {
    width: 100%;
    background-color: var(--brand-green) !important;
    color: #fff !important;
    padding: 20px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    margin-top: 20px;
}

#place_order:hover {
    background-color: var(--brand-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 37, 69, 0.2);
}

/* ================================================================
   RESPONSIVITATE (MOBILE)
   ================================================================ */

@media (max-width: 992px) {
    .maglux-product-wrapper {
        flex-direction: column;
    }

    .maglux-product-image-col,
    .maglux-product-info-col {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .maglux-main-image-box {
        height: 360px;
    }

    .woocommerce-checkout {
        flex-direction: column;
    }

    #customer_details,
    #order_review {
        width: 100% !important;
        flex: 1 1 auto;
    }
}



@media (max-width: 480px) {
    .woocommerce-checkout h3 {
        font-size: 18px;
    }
    
    #order_review {
        padding: 20px 15px;
    }
    
}







@media (max-width: 850px) {
    .product-page-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Forțează o singură coloană */
        gap: 20px !important;
        padding: 15px !important; /* Padding redus ca să nu iasă din ecran */
        width: 100% !important;
        overflow: hidden !important; /* Taie orice element care ar vrea să iasă în exterior */
    }
}

    @media (max-width: 600px) {
        .maglux-main-image-box {
            height: 300px;
        }

        .maglux-gallery-thumb {
            width: 70px;
            height: 70px;
        }
    }
    
/* ===== FIX FINAL PRET + CART ===== */

.home-product-grid .price-wrapper {
    margin-top: auto;
    border-top: 1px solid #f8fafc;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-product-grid .old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #94a3b8;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.2;
}

.home-product-grid .price-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 2px;
}

.home-product-grid .current-price {
    min-width: 0;
    overflow: hidden;
}

.home-product-grid .price-int,
.home-product-grid .price-int .woocommerce-Price-amount,
.home-product-grid .price-int bdi {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.home-product-grid .add-to-cart-btn {
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
}

/* doar cand cardul chiar devine prea ingust */
@media (max-width: 430px) {
    .home-product-grid .price-action-row {
        grid-template-columns: 1fr;
    }

    .home-product-grid .price-int,
    .home-product-grid .price-int .woocommerce-Price-amount,
    .home-product-grid .price-int bdi {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .home-product-grid .add-to-cart-btn {
        width: 100%;
        min-width: 0;
    }
}

/* ===== COMPACTARE CARDURI PE MOBIL ===== */

@media (max-width: 480px) {
    .main-background {
        padding: 35px 0;
    }

    .product-section {
        margin-bottom: 35px;
    }

    .section-header {
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .section-header h3 {
        font-size: 18px;
    }

    .home-product-grid {
        gap: 14px;
    }

    .home-product-grid .product-card {
        padding: 8px;
        border-radius: 16px;
    }

    .home-product-grid .product-img {
        height: 120px;
        margin-bottom: 12px;
    }

    .home-product-grid .product-img img {
        max-height: 100%;
        object-fit: contain;
    }

    .home-product-grid .product-name {
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.25;
    }

    .home-product-grid .price-wrapper {
        padding-top: 10px;
        gap: 6px;
    }

    .home-product-grid .price-int,
    .home-product-grid .price-int .woocommerce-Price-amount,
    .home-product-grid .price-int bdi {
        font-size: clamp(18px, 5vw, 24px);
        line-height: 1.05;
    }

    .home-product-grid .add-to-cart-btn {
        min-height: 48px;
        border-radius: 14px;
    }
}

@media (max-width: 430px) {
    .home-product-grid .current-price {
        text-align: center;
    }

    .home-product-grid .price-int,
    .home-product-grid .price-int .woocommerce-Price-amount,
    .home-product-grid .price-int bdi {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .account-nav .main-label,
    .cart-nav .main-label {
        display: none;
    }

    .account-nav,
    .cart-nav {
        gap: 0;
    }

    .user-nav {
        gap: 12px;
    }
}

