
        :root {
            --se-green: #3dcd58;
            --se-black: #000000;
            --white: #ffffff;
            --surface: #f3f4f7;
            --border: #dfe1e6;
            --text-primary: #1a1d23;
            --text-secondary: #4a5060;
            --text-muted: #6b7280;
            --accent-light: #e6f5e3;
            --radius-md: 10px;
            --radius-lg: 14px;
            --fbt-w: 270px;
        }

        body { font-family: 'Roboto', sans-serif; background: #cfd8dc; margin: 0; padding: 20px; display: flex; justify-content: center; }

        /* --- MAIN CONTAINER --- */
        .app-container { width: 100%; max-width: 1400px; background: var(--white); box-shadow: 0 25px 50px rgba(0,0,0,0.3); border-radius: 4px; overflow: hidden; border-top: 8px solid var(--se-green); position: relative;margin-bottom: 100px; }
        header { display: flex; justify-content: space-between; align-items: center; padding: 18px 30px; border-bottom: 1px solid #eee; }
        .logo { font-family: 'Roboto Condensed'; font-size: 26px; text-transform: uppercase; font-weight: 700; color: #000; letter-spacing: -1px; }
        .logo span { color: var(--se-green); }

        /* --- SELECTOR BOX --- */
        .selector-box { background: var(--se-black); padding: 30px 0; text-align: center; }
        .selector-flex-container { display: flex; align-items: center; justify-content: center; gap: 220px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
        .side-img-wrap { flex: 0 0 100px; height: 100px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #333; }
        .side-img-wrap img { max-width: 90%; max-height: 90%; object-fit: contain; transition: 0.3s; }
        .side-img-wrap:hover img { transform: scale(1.1); }
        .hp-dropdown { background: #1a1a1a; color: white; border: 2px solid #333; padding: 10px 15px; border-radius: 4px; width: 250px; cursor: pointer; font-size: 16px; }

        /* --- FIXED TABLE LAYOUT (LABEL ON LEFT) --- */
        .comparison-table { 
            display: grid; 
            /*grid-template-columns: 320px 1fr 1fr 1fr 1fr; First column is for labels */
            grid-template-columns: minmax(180px, 260px) repeat(4, minmax(140px, 1fr));
            width: 100%; 
            background-color: #eee; 
            gap: 1px; 
        }
        .th-label { background: #e0e0e0; padding: 15px; text-align: left; font-size: 14px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; padding-left: 25px; }
        .th-voltage { background: var(--se-black); color: white; padding: 15px; text-align: center; font-weight: 700; font-family: 'Roboto Condensed'; text-transform: uppercase; border-bottom: 4px solid var(--se-green); }
        
        .td-label { background: #333; color: white; padding: 5px 25px; font-size: 14px; font-weight: 500; text-transform: uppercase; display: flex; align-items: center; line-height: 1.4; }
        .td-value { background: white; padding: 5px 15px; display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
        
        .data-text { font-family: 'JetBrains Mono'; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 5px; flex-direction: row-reverse;}
        .data-text:hover { color: var(--se-green); }
        .icon-image { width: 42px; height: 42px; object-fit: contain; }

        /* --- BUTTON LOADING STATES --- */
        .btn-cart { background: transparent; border: 1.5px solid var(--se-green); color: var(--se-green); width: 24px; height: 24px; padding: 0; font-size: 18px; line-height: 1; font-weight: 700; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; }
        .btn-cart:hover { background: var(--se-green); color: white; }
        .btn-cart.loading { color: transparent !important; pointer-events: none; position: relative; }
        .btn-cart.loading::after { content: ""; position: absolute; width: 14px; height: 14px; top: calc(50% - 8px); left: calc(50% - 8px); border: 2px solid var(--se-green); border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }

        /* --- PREMIUM GROUPING --- */
        .group-container { 
            grid-column: 1 / -1; 
            display: grid; 
            /* grid-template-columns: 320px 1fr 1fr 1fr 1fr;  */
                        grid-template-columns: minmax(180px, 260px) repeat(4, minmax(140px, 1fr));

            gap: 1px; 
            background-color: #ddd; 
            border: 1px solid var(--se-green); 
            border-radius: 12px; 
            overflow: hidden; 
            transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
        }
        .group-container:hover { transform: translateY(-6px); box-shadow: 0 20px 35px rgba(0,0,0,0.1), 0 10px 15px rgba(61,205,88,0.15); z-index: 10; border: 2px solid var(--se-green); }
        .group-header { grid-column: 1 / -1; background: #f0f0f0; color: #666; font-size: 10px; font-weight: 800; padding: 6px 25px; text-transform: uppercase; border-bottom: 1px solid #eee; }
        .group-container:hover .group-header { background: var(--se-green); color: #fff; }

        /* --- MODALS & TOOLS --- */
        .pdp-overlay { position: fixed; inset: 0; background: rgba(15,18,25,0.6); z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.25s; backdrop-filter: blur(4px); }
        .pdp-overlay.active { opacity: 1; visibility: visible; }
        .pdp-dialog { background: #fff; width: 95vw; max-width: 1120px; height: 90vh; max-height: 800px; border-radius: var(--radius-lg); box-shadow: 0 24px 80px rgba(0,0,0,0.2); display: flex; overflow: hidden; font-family: 'DM Sans', sans-serif; }
        .pdp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; }
        .pdp-close { position: absolute; top: 12px; right: 14px; z-index: 10; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--surface); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; }
        
        .pdp-tab-bar { display: flex; border-bottom: 1px solid #eee; padding: 0 24px; flex-shrink: 0; }
        .pdp-tab-btn { padding: 15px 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; }
        .pdp-tab-btn.active { color: #1a1d23; border-bottom-color: #1a1d23; }
        .pdp-tab-panels { flex: 1; overflow-y: auto; padding: 20px 24px; }
        .pdp-tab-panel { display: none; }
        .pdp-tab-panel.active { display: block; }
        
        .pdp-fbt-sidebar { flex: 0 0 var(--fbt-w); border-left: 1px solid #eee; background: #f8f9fa; display: flex; flex-direction: column; }
        .pdp-fbt-item { display: flex; gap: 8px; padding: 10px; background: #fff; border-radius: 6px; border: 1px solid #eee; margin: 0 10px 8px; align-items: center; }
        .pdp-fbt-add { padding: 3px 8px; font-size: 10px; font-weight: 600; background: white; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; }
        .pdp-fbt-add.added { background: var(--se-green); color: white; border-color: var(--se-green); }

        .selection-card { position: fixed; bottom: 30px; right: 30px; width: 380px; max-height: 550px; background: white; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); border-top: 6px solid var(--se-green); z-index: 3000; display: none; flex-direction: column; }
        .cart-item { display: flex; align-items: center; gap: 12px; background: #ffffff; padding: 12px; border-radius: 8px; border: 1px solid #eee; margin: 0 15px 10px; position: relative; }
        .cart-img-wrap { flex: 0 0 50px; height: 50px; background: #f4f4f4; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .cart-img-wrap img { max-width: 90%; max-height: 90%; object-fit: contain; }

        #product-tooltip { position: absolute; width: 300px; background: white; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.25); display: none; z-index: 5000; pointer-events: none; border-top: 4px solid var(--se-green); overflow: hidden; }

        @keyframes spin { to { transform: rotate(360deg); } }
        #toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #1a1d23; color: white; padding: 10px 25px; border-radius: 30px; font-size: 12px; display: none; z-index: 6000; }
   
           .pdp-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 18, 25, 0.6);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: 0.25s;
            backdrop-filter: blur(4px);
        }

        .pdp-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .pdp-dialog {
            background: #fff;
            width: 95vw;
            max-width: 1120px;
            height: 90vh;
            max-height: 800px;
            border-radius: var(--radius-lg);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
            display: flex;
            overflow: hidden;
            font-family: 'DM Sans', sans-serif;
        }

        .pdp-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow: hidden;
            position: relative;
        }

        .pdp-close {
            position: absolute;
            top: 12px;
            right: 14px;
            z-index: 10;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: var(--surface);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        /* Hero Section */
        .pdp-hero {
            display: flex;
            gap: 24px;
            padding: 24px;
            border-bottom: 1px solid #eee;
            flex-shrink: 0;
        }

        .pdp-hero-img {
            flex: 0 0 200px;
            height: 200px;
            background: var(--surface);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pdp-hero-img img {
            max-width: 170px;
            max-height: 170px;
            object-fit: contain;
        }

        .pdp-hero-cat {
            font-family: 'JetBrains Mono';
            font-size: 22px;
            font-weight: 700;
            margin: 0;
        }

        .pdp-hero-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-top: 4px;
        }

        .pdp-stock {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
            padding: 3px 10px;
            background: var(--accent-light);
            color: #2d8a1e;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .pdp-stock-dot {
            width: 6px;
            height: 6px;
            background: #2d8a1e;
            border-radius: 50%;
        }

        .pdp-price-row {
            margin-top: 15px;
            display: flex;
            align-items: baseline;
            gap: 5px;
        }

        .pdp-price-big {
            font-size: 30px;
            font-weight: 700;
        }

        /* Actions */
        .pdp-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
            align-items: center;
        }

        .pdp-btn-cart {
            position: relative;
            background: var(--se-green);
            color: #fff;
            border: none;
            padding: 12px 30px;
            border-radius: 6px;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            font-size: 13px;
            letter-spacing: 0.5px;



            border: 1.5px solid var(--se-green);
            font-weight: 700;
            border-radius: 4px;
            cursor: pointer;
        }

        .pdp-cart-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #e53935;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            border: 2px solid white;
            display: none;
        }

        .pdp-cart-badge.active {
            display: block;
        }

        .pdp-btn-fav {
            padding: 12px 20px;
            background: white;
            border: 1.5px solid var(--border);
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
        }

        /* Tabs Navigation */
        .pdp-tab-bar {
            display: flex;
            border-bottom: 1px solid #eee;
            padding: 0 24px;
            flex-shrink: 0;
        }

        .pdp-tab-btn {
            padding: 15px 20px;
            font-size: 11.5px;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--text-muted);
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
        }

        .pdp-tab-btn.active {
            color: #1a1d23;
            border-bottom-color: #1a1d23;
        }

        .pdp-tab-panels {
            flex: 1;
            overflow-y: auto;
            padding: 20px 24px;
        }

        .pdp-tab-panel {
            display: none;
        }

        .pdp-tab-panel.active {
            display: block;
        }

        /* FBT GRID (MATCHING SCREENSHOT) */
        .pdp-fbt-cat-title {
            font-size: 13px;
            font-weight: 700;
            margin: 15px 0;
            padding-bottom: 5px;
            border-bottom: 2px solid #000;
            text-transform: uppercase;
        }

        .pdp-fbt-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .pdp-fbt-card {
            display: flex;
            align-items: center;
            padding: 12px;
            border: 1.5px solid #eee;
            border-radius: 8px;
            background: #fff;
            transition: 0.2s;
            gap: 10px;
        }

        .pdp-fbt-card.selected {
            border-color: var(--se-green);
            background: var(--accent-light);
        }

        .pdp-fbt-card img {
            width: 50px;
            height: 50px;
            object-fit: contain;
            background: #f9f9f9;
            border-radius: 4px;
        }

        .pdp-fbt-card-info {
            flex: 1;
            min-width: 0;
        }

        .pdp-fbt-card-cat {
            font-family: 'JetBrains Mono';
            font-weight: 700;
            font-size: 12px;
            display: block;
        }

        .pdp-fbt-card-desc {
            font-size: 10px;
            color: var(--text-secondary);
            line-height: 1.3;
            height: 2.6em;
            overflow: hidden;
            display: block;
        }

        .pdp-fbt-card-price {
            font-weight: 700;
            font-size: 12px;
            display: block;
            margin-top: 2px;
        }

        .pdp-fbt-toggle {
            width: 30px;
            height: 30px;
            border-radius: 6px;
            border: 1.5px solid var(--border);
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: 0.2s;
            flex-shrink: 0;
        }

        .pdp-fbt-card.selected .pdp-fbt-toggle {
            background: var(--se-green);
            border-color: var(--se-green);
            color: white;
        }

        /* FBT SIDEBAR */
        .pdp-fbt-sidebar {
            flex: 0 0 var(--fbt-w);
            border-left: 1px solid var(--border);
            background: var(--surface);
            display: flex;
            flex-direction: column;
        }

        .pdp-fbt-header {
            padding: 15px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pdp-fbt-list {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }

        .pdp-fbt-item {
            display: flex;
            gap: 10px;
            padding: 12px;
            background: #fff;
            border-radius: 8px;
            border: 1px solid #eee;
            margin-bottom: 8px;
            align-items: center;
        }

        .pdp-fbt-item img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .pdp-fbt-name-box {
            flex: 1;
            min-width: 0;
        }

        .pdp-fbt-item-name {
            font-size: 11px;
            font-weight: 500;
            display: block;
            color: var(--text-secondary);
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .pdp-fbt-item-cat {
            font-family: 'JetBrains Mono';
            font-weight: 700;
            font-size: 11px;
        }

        /* Floating Cart Sidebar (Main Page) */
        .selection-card {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 380px;
            max-height: 550px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            border-top: 6px solid var(--se-green);
            z-index: 3000;
            display: none;
            flex-direction: column;
        }

        #selected-items-list {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            background: #fcfcfc;
        }

        .cart-item {
            display: flex;
            gap: 12px;
            background: white;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #eee;
            margin-bottom: 12px;
            align-items: center;
        }

        .cart-item img {
            width: 60px;
            height: 60px;
            object-fit: contain;
        }

        .cart-remove {
            color: red;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 18px;
            margin-left: auto;
        }

        .spinner {
            width: 30px;
            height: 30px;
            border: 3px solid #eee;
            border-top: 3px solid var(--se-green);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        #toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #1a1d23;
            color: white;
            padding: 10px 25px;
            border-radius: 30px;
            font-size: 12px;
            display: none;
            z-index: 6000;
        }

        /* --- FIXED SIDEBAR UI --- */
        :root {
            --fbt-w: 270px;
            /* Reduced width to match reference */
        }

        .pdp-fbt-sidebar {
            flex: 0 0 var(--fbt-w);
            width: var(--fbt-w);
            border-left: 1px solid #eee;
            background: #f8f9fa;
            /* Lighter background for better contrast with white cards */
            display: flex;
            flex-direction: column;
        }

        .pdp-fbt-header {
            padding: 12px 15px;
            font-size: 9px;
            /* Smaller, uppercase font */
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #444;
            border-bottom: 1px solid #eee;
            background: #fff;
        }

        .pdp-fbt-list {
            padding: 10px;
            /* Tighter padding around the list */
        }

        .pdp-fbt-item {
            display: flex;
            gap: 8px;
            padding: 10px;
            background: #fff;
            border-radius: 6px;
            /* Slightly sharper corners to match UI */
            border: 1px solid #eee;
            margin-bottom: 8px;
            align-items: center;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
        }

        .pdp-fbt-item img {
            width: 36px;
            /* Smaller images */
            height: 36px;
            object-fit: contain;
        }

        .pdp-fbt-name-box {
            flex: 1;
            min-width: 0;
        }

        .pdp-fbt-item-cat {
            font-family: 'JetBrains Mono';
            font-weight: 700;
            font-size: 10px;
            display: block;
            margin-bottom: 2px;
        }

        .pdp-fbt-item-name {
            font-size: 10px;
            /* Reduced text size */
            color: var(--text-muted);
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Reference-style "Add" Button */
        .pdp-fbt-add {
            padding: 3px 8px;
            font-size: 10px;
            font-weight: 600;
            background: white;
            border: 1px solid #ccc;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            height: fit-content;
        }

        .pdp-fbt-add:hover {
            border-color: var(--se-green);
            color: var(--se-green);
        }

        .pdp-fbt-add.added {
            background: var(--se-green);
            border-color: var(--se-green);
            color: white;
        }


        /* --- Professional Cart Item UI --- */
        .cart-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #ffffff;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #eee;
            margin-bottom: 10px;
            position: relative;
            transition: box-shadow 0.2s ease;
        }

        .cart-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border-color: var(--se-green);
        }

        .cart-img-wrap {
            flex: 0 0 50px;
            height: 50px;
            background: #f4f4f4;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .cart-img-wrap img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }

        .cart-info {
            flex: 1;
            min-width: 0;
            /* Prevents text from breaking flex container */
        }

        .cart-item-part {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            font-size: 13px;
            color: #000;
            display: block;
            margin-bottom: 2px;
        }

        .cart-item-desc {
            font-size: 11px;
            color: #666;
            line-height: 1.3;
            margin: 0;
            /* Professional truncation after 2 lines */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .cart-item-remove {
            position: absolute;
            top: 5px;
            right: 8px;
            background: none;
            border: none;
            color: #ccc;
            font-size: 18px;
            cursor: pointer;
            line-height: 1;
            padding: 0;
            transition: color 0.2s;
        }

        .cart-item-remove:hover {
            color: #ff4d4d;
        }
        .selector-label{
            color:var(--se-green); 
            font-size:14px; 
            text-transform:uppercase;
            letter-spacing:2px; 
            display:block; 
            margin-bottom:15px;
            font-weight:700
        } 
        /* Container to align images and center controls */
.selector-flex-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 146px; /* Space between images and dropdown */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Center column for label and select */
.selection-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px;
}

.catalog-reference-link {
    margin-top: 10px;
    color: var(--se-green);
    border: 1px solid rgba(61, 205, 88, 0.45);
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: absolute;
    right: 12px;
    z-index: 99;
    /* background: var(--se-black); */
    background: var(--se-black);
        right: 12px;
    top: 9px;
    z-index: 99;

}

.catalog-reference-link:hover {
    background: var(--se-green);
    border-color: var(--se-green);
    color: #000;
}

/* Image styling */
.side-img-wrap {
    flex: 0 0 120px; /* Fixed width for images */
    height: 120px;
    background: rgba(255, 255, 255, 0.05); /* Subtle background for contrast */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.side-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: brightness(0.9); /* Makes them blend well with the black background */
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 10px;
}

/* Hover effect for images */
.side-img-wrap:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Responsive: Hide images on small mobile screens to save space */
@media (max-width: 600px) {
    .side-img-wrap {
        display: none;
    }
    .selector-flex-container {
        gap: 0;
    }
}

.pdp-btn-cart.loading {                  background: transparent; }

/* Loading state for buttons */
.pdp-btn-cart.loading , .btn-cart.loading {
    pointer-events: none; /* Prevent double clicks */
    position: relative;
    color: transparent !important; /* Hide text */
    min-width: 60px;
}

.pdp-btn-cart.loading::after , .btn-cart.loading::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    border: 2px solid var(--se-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
/* Styling for the clickable labels */
.label-link {
    color: #ffffff; /* White text to match the label style */
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.label-link:hover {
    color: var(--se-green); /* Turn Schneider Green on hover */
    border-bottom: 1px solid var(--se-green);
    cursor: pointer;
}

/* Ensure the parent td-label allows for pointer events */
.td-label {
    position: relative;
}


  /* TABS */
  .pdp-tab-bar{display:flex;border-bottom:1px solid var(--border-light);padding:0 24px;flex-shrink:0;overflow-x:auto}
  .pdp-tab-bar::-webkit-scrollbar{display:none}
  .pdp-tab-btn{padding:13px 18px 11px;font-family:inherit;font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:var(--text-muted);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap;transition:color .15s,border-color .15s}
  .pdp-tab-btn:hover{color:var(--text-secondary)}
  .pdp-tab-btn.active{color:var(--tab-active);border-bottom-color:var(--tab-line)}
  .pdp-tab-panels{flex:1;overflow-y:auto}
  .pdp-tab-panels::-webkit-scrollbar{width:5px}
  .pdp-tab-panels::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}
  .pdp-tab-panel{display:none;}
  .pdp-tab-panel.active{display:block}

  .pdp-spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 40px}
  .pdp-spec-title{font-size:13px;font-weight:700;padding-bottom:8px;margin-bottom:2px;border-bottom:2px solid var(--text-primary)}
  .pdp-spec-tbl{width:100%;border-collapse:collapse;margin-bottom:16px}
  .pdp-spec-tbl tr{border-bottom:1px solid var(--border-light);transition:background .1s}
  .pdp-spec-tbl tr:hover{background-color:#f0faf0}
  .pdp-spec-tbl td{padding:7px 0;font-size:12px;vertical-align:top;word-break:break-word}
  .pdp-spec-tbl td:first-child{color:var(--text-secondary);padding-right:12px;width:46%;font-weight:500}
  .pdp-spec-tbl td:last-child{color:var(--text-primary);font-weight:600;text-align:right;max-width:0}

  /* FBT TAB grid */
  .pdp-fbt-cat-title{font-size:13px;font-weight:700;margin:14px 0 8px;padding-bottom:6px;border-bottom:2px solid var(--text-primary)}
  .pdp-fbt-cat-title:first-child{margin-top:0}
  .pdp-fbt-tab-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;margin-bottom:6px}
  .pdp-fbt-tab-card{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border-light);border-radius:var(--radius-sm);background:#fff;transition:border-color .15s,box-shadow .15s}
  .pdp-fbt-tab-card:hover{border-color:#ccc;box-shadow:0 1px 4px rgba(0,0,0,.04)}
  .pdp-fbt-tab-card.selected{border-color:var(--accent);background:var(--accent-light)}
  .pdp-fbt-tab-thumb{width:48px;height:48px;background:var(--surface);border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
  .pdp-fbt-tab-card.selected .pdp-fbt-tab-thumb{background:#fff}
  .pdp-fbt-tab-thumb img{max-width:40px;max-height:40px;object-fit:contain}
  .pdp-fbt-tab-info{flex:1;min-width:0}
  .pdp-fbt-tab-cat{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:600}
  .pdp-fbt-tab-desc{font-size:10.5px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:white-space .15s}
  .pdp-fbt-tab-card:hover .pdp-fbt-tab-desc{white-space:normal;overflow:visible;text-overflow:unset}
  .pdp-fbt-tab-price{font-size:12px;font-weight:700;margin-top:1px}
  .pdp-fbt-tab-add{flex-shrink:0;width:30px;height:30px;border-radius:6px;border:1.5px solid var(--border);background:#fff;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}
  .pdp-fbt-tab-add:hover{border-color:var(--se-green);color:var(--se-green);background:var(--accent-light)}
  .pdp-fbt-tab-add.added{border-color:var(--se-green);background:var(--se-green);color:#fff;animation:pdp-pop .25s ease}
  .pdp-fbt-tab-add svg{width:14px;height:14px}
  /* REOPEN TAB */
  .pdp-fbt-reopen{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:6;width:28px;height:60px;background:var(--se-green);border-radius:6px 0 0 6px;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s ease;box-shadow:-2px 0 8px rgba(0,0,0,.1)}
  .pdp-fbt-reopen.vis{opacity:1;pointer-events:auto}
  .pdp-fbt-reopen:hover{background:var(--accent-hover)}
  .pdp-fbt-reopen svg{width:18px;height:18px;color:#fff}

  .pdp-warranty-badge{display:inline-flex;align-items:center;gap:12px;padding:16px 24px;background:var(--surface);border-radius:var(--radius-md);border:1px solid var(--border-light)}
  .pdp-warranty-icon{width:40px;height:40px;background:var(--accent-light);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--se-green)}
  .pdp-wt-label{display:block;font-size:10.5px;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.5px}
  .pdp-wt-value{display:block;font-size:20px;font-weight:700;margin-top:2px}

  @keyframes pdp-pop{50%{transform:scale(1.2)}}
  .pdp-loading{display:flex;align-items:center;justify-content:center;flex:1;color:var(--text-muted);font-size:14px;gap:10px}
  .pdp-spinner{width:22px;height:22px;border:2.5px solid var(--border);border-top-color:var(--se-green);border-radius:50%;animation:pdp-spin .7s linear infinite}
  @keyframes pdp-spin{to{transform:rotate(360deg)}}
  .pdp-error{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;color:var(--text-secondary);font-size:14px;gap:8px;padding:40px;text-align:center}
  .pdp-retry-btn{padding:10px 26px;background:var(--se-green);color:#fff;border:none;border-radius:var(--radius-sm);font-family:inherit;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.7px;cursor:pointer;margin-top:12px}
  .pdp-retry-btn:hover{background:var(--accent-hover)}



  /* Fixed Circular Back Button */
.fixed-back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid var(--se-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--se-green);
    text-decoration: none;
    z-index: 2500; /* Stays above the app-container */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* SVG Icon Styling */
.fixed-back-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

/* --- THE ANIMATION --- */

.fixed-back-btn:hover {
    background: var(--se-green);
    color: #ffffff;
    transform: scale(1.15) rotate(0deg); /* Slight pop and tilt */
    box-shadow: 0 8px 20px rgba(61, 205, 88, 0.4); /* Green glowing shadow */
}

.fixed-back-btn:hover svg {
    transform: translateX(-3px); /* Arrow nudges left */
}

/* Active/Click effect */
.fixed-back-btn:active {
    transform: scale(0.95);
}

/* Responsive Hide: If screen is too small, move it inside or hide to prevent overlap */
@media (max-width: 1200px) {
    .fixed-back-btn {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Hide button when PDP Popup is active to keep UI clean */
.pdp-overlay.active ~ .fixed-back-btn {
    opacity: 0;
    pointer-events: none;
}

.pdp-price-row{
    display: none;
}



/* Container for the whole cell content */
.cell-part-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Clickable area containing image and text */
.cell-part-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    min-width: 0; /* Important for text truncation */
}

/* Vertical stack for Name and Description */
.cell-part-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* Catalog and add/remove action */
.cell-part-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

/* The Part Number (Catalog) */
.cell-part-meta .data-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--se-black);
    line-height: 1.2;
    direction: rtl;
}

/* The Small Muted Description */
.cell-desc-text {
    font-size: 11px;
    color: #777;
    line-height: 1.2;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-part-info:hover .data-text {
    color: var(--se-green);
}

.cell-part-info:hover .cell-desc-text {
    color: #444;
}

.td-value.notpartnumber{
        display: flex;
        justify-content: space-evenly;
}

.btn-cart.selected{
        border-color: var(--se-green);
        color: var(--se-green);
}

.btn-cart.selected:hover {
        background: var(--se-green);
        color: white;
}

/* ── Inline-CSS refactor additions ── */
#table-body { display: contents; }
.row-contents { display: contents; }
.cart-header { padding: 18px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-title { margin: 0; font-size: 14px; text-transform: uppercase; }
.cart-close { cursor: pointer; font-size: 20px; }
.btn-quote { margin: 15px 20px; background: var(--se-green); color: white; border: none; padding: 14px; border-radius: 6px; font-weight: 700; text-transform: uppercase; cursor: pointer; width: calc(100% - 30px); }

.cart-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-actions .btn-quote {
    width: 100%;
    margin: 0;
}

.btn-download-excel {
    width: 100%;
    background: #fff;
    color: var(--se-charcoal);
    border: 1.5px solid var(--border);
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-download-excel:hover {
    border-color: var(--se-green);
    color: var(--se-green);
    background: #fafffa;
}
.pdp-price-currency { font-size: 12px; color: #666; }
.pdp-delivery { font-size: 11px; color: #666; margin-top: 5px; }
.pdp-cart-summary { font-size: 11px; color: #999; }
.fbt-item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.fbt-item-price { font-weight: 700; font-size: 11px; display: none; }
.pdp-warranty { display: flex; align-items: center; gap: 15px; padding: 20px; background: #f9f9f9; border-radius: 10px; }
.pdp-warranty-label { color: #999; font-weight: 700; }
.spec-value { font-weight: 700; font-family: 'JetBrains Mono'; }
.pdp-loading { flex-direction: column; }
.pdp-error-text { padding: 40px; text-align: center; }
#tt-img { width: 100%; height: 160px; object-fit: contain; background: #f9f9f9; padding: 10px; box-sizing: border-box; }
.tt-body { padding: 15px; }
#tt-title { font-weight: 700; font-size: 16px; }
#tt-desc { font-size: 12px; color: #666; margin-top: 5px; }



