﻿<style>
#wrapper{
    width:100%;
}
@media (min-width:1025px){
    #wrapper{
        display:flex;
        align-items:flex-start;
    }
}
:root{
--bg-main:#f4f7fb;
--bg-card:#fff;
--bg-dark:#0f172a;
--bg-sidebar:#fff;
--border:#dbe4ee;
--text-dark:#0f172a;
--text-light:#64748b;
--primary:#0f172a;
--secondary:#1e293b;
--accent:#16a34a;
--accent-hover:#15803d;
--blue:#2563eb;
--shadow:0 10px 30px rgba(15,23,42,.06);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
background:var(--bg-main);
font-family:'Inter',sans-serif;
color:var(--text-dark);
overflow-x:hidden;
}
a{text-decoration:none;}
/* =========================
TOPBAR
========================= */
.topbar{
display:flex;
align-items:center;
justify-content:space-between;
height:70px;
padding:0 20px;
background:#fff;
border-bottom:1px solid var(--border);
position:sticky;
top:0;
z-index:2000;
margin-left:260px;
width:calc(100% - 260px);
}
.topbar-left{
display:flex;
align-items:center;
gap:12px;
min-width:220px;
}
.topbar-logo{height:36px;width:auto;}
.topbar-title{
font-size:13px;
font-weight:800;
color:#334155;
letter-spacing:.4px;
white-space:nowrap;
}
.topbar-search{
flex:1;
max-width:500px;
}
.topbar-search input{
width:100%;
padding:9px 12px;
border-radius:10px;
border:1px solid #e2e8f0;
outline:none;
font-size:13px;
background:#f8fafc;
}
.topbar-right{
display:flex;
align-items:center;
gap:28px;
min-width:280px;
justify-content:flex-end;
}
.topbar-cart{
display:flex;
align-items:center;
gap:8px;
}
.topbar-cart img{
height:26px;
width:auto;
}
.topbar-cart{
position:relative;
}
.cart-qty-badge{
position:absolute;
top:-8px;
left:22px;
min-width:20px;
height:20px;
padding:0 6px;
border-radius:999px;
background:#dc2626;
color:#fff;
font-size:11px;
font-weight:900;
line-height:20px;
text-align:center;
box-shadow:0 6px 14px rgba(220,38,38,.25);
}
.topbar-user{
position:relative;
display:flex;
align-items:center;
gap:8px;
cursor:pointer;
}
.topbar-avatar{
width:34px;
height:34px;
border-radius:50%;
object-fit:cover;
}
.topbar-user-info span{
font-size:12px;
font-weight:700;
color:#334155;
white-space:nowrap;
}
.topbar-dropdown{
position:absolute;
    top:100%;
    margin-top:0;
right:0;
background:#fff;
border:1px solid #e2e8f0;
border-radius:12px;
min-width:170px;
box-shadow:0 20px 40px rgba(0,0,0,.08);
display:none;
flex-direction:column;
overflow:hidden;
}
.topbar-user:hover .topbar-dropdown{display:flex;}
.topbar-dropdown a{
padding:9px 12px;
font-size:12px;
font-weight:600;
color:#334155;
}
.topbar-dropdown a:hover{
background:#f1f5f9;
color:#2563eb;
}
.topbar-user{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

.topbar-user:after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:12px;
}
.topbar-dropdown{
    position:absolute;
    top:100%;
    right:0;
    margin-top:0;
    opacity:0;
    visibility:hidden;
    transform:translateY(6px);

    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;

    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:12px;
    min-width:170px;
    box-shadow:0 20px 40px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.topbar-user:hover .topbar-dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
/* =========================
MOBILE HEADER
========================= */
.mobile-header{
display:none;
position:sticky;
top:0;
z-index:9999;
background:#fff;
padding:12px 16px;
border-bottom:1px solid var(--border);
align-items:center;
justify-content:space-between;
}
.mobile-logo img{
height:38px;
width:auto;
}
/* =========================
HAMBURGER
========================= */
.hamburger{
width:42px;
height:42px;
border-radius:10px;
background:#f1f5f9;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}
.hamburger span{
display:block;
width:20px;
height:2px;
background:#0f172a;
position:relative;
}
.hamburger span:before,
.hamburger span:after{
content:"";
position:absolute;
width:20px;
height:2px;
background:#0f172a;
left:0;
}
.hamburger span:before{top:-6px;}
.hamburger span:after{top:6px;}
/* =========================
OVERLAY
========================= */
.mobile-overlay{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.45);
z-index:998;
}
.mobile-overlay.active{display:block;}
/* =========================
LAYOUT
========================= */
.wrapper{
display:flex;
min-height:100vh;
}
/* =========================
SIDEBAR
========================= */
.sidebar{
width:260px;
background:#fff;
border-right:1px solid var(--border);
position:fixed;
left:0;
top:0;
bottom:0;
overflow-y:auto;
z-index:1000;
padding:10px 10px 18px;
transition:.35s ease;
scrollbar-width:thin;
}
.sidebar::-webkit-scrollbar{width:6px;}
.sidebar::-webkit-scrollbar-thumb{
background:#dbe4ee;
border-radius:20px;
}
/* =========================
LOGO
========================= */
.logo{
text-align:center;
margin-bottom:12px;
padding-bottom:12px;
border-bottom:1px solid #eef2f7;
}
.logo img{
width:100%;
max-width:170px;
height:auto;
}
/* =========================
SECTION TITLES
========================= */
.side-title{
font-size:9px;
font-weight:800;
letter-spacing:1px;
text-transform:uppercase;
color:#94a3b8;
margin:12px 8px 6px;
}
/* =========================
NAV LINKS
========================= */
.nav-link{
display:flex;
align-items:center;
justify-content:space-between;
padding:8px 10px;
border-radius:10px;
margin-bottom:2px;
font-weight:700;
font-size:12px;
line-height:1.1;
color:#334155;
transition:.2s;
cursor:pointer;
background:transparent;
}
.nav-link:hover{
background:#eff6ff;
color:#2563eb;
}
.nav-link-left{
display:flex;
align-items:center;
gap:8px;
}
.nav-icon{
width:16px;
text-align:center;
font-size:12px;
opacity:.85;
}
.nav-arrow{
font-size:10px;
transition:.25s;
}
.nav-link.active .nav-arrow{
transform:rotate(180deg);
}
/* =========================
DROPDOWNS
========================= */
.sidebar-dropdown{
max-height:0;
overflow:hidden;
transition:max-height .35s ease;
margin-top:-2px;
margin-bottom:5px;
}
.sidebar-dropdown.active{
max-height:1200px;
}
.sidebar-inner{
background:#f8fafc;
border-radius:12px;
padding:5px;
border:1px solid #eef2f7;
}
.sidebar-group-title{
font-size:10px;
font-weight:800;
color:#64748b;
padding:6px 8px 4px;
text-transform:uppercase;
letter-spacing:.4px;
}
.sidebar-sublink{
display:block;
padding:6px 10px;
border-radius:9px;
font-size:11px;
font-weight:700;
color:#475569;
transition:.2s;
margin-bottom:1px;
line-height:1.25;
}
.sidebar-sublink:hover{
background:#fff;
color:#2563eb;
transform:translateX(2px);
}
.sidebar-divider{
height:1px;
background:#e2e8f0;
margin:6px 0;
border:none;
}
/* =========================
BADGES
========================= */
.menu-new{
background:#dc2626;
color:#fff;
font-size:8px;
font-weight:900;
padding:2px 5px;
border-radius:30px;
margin-left:6px;
}
/* =========================
LIVE STOCK
========================= */
.stock-alert{
margin-top:14px;
background:linear-gradient(135deg,#16a34a,#15803d);
padding:16px;
border-radius:16px;
color:#fff;
box-shadow:0 10px 25px rgba(22,163,74,.18);
}
.stock-alert h3{
margin:0 0 6px;
font-size:15px;
font-weight:900;
}
.stock-alert p{
margin:0;
font-size:11px;
line-height:1.6;
}
/* =========================
VERSION
========================= */
.sidebar-version{
margin-top:12px;
text-align:center;
font-size:10px;
font-weight:700;
color:#94a3b8;
}
/* =========================
MAIN
========================= */
.main{
margin-left:260px;
width:calc(100% - 260px);
}
/* =========================
HERO
========================= */
.hero{
width:100%;
padding:26px 50px 40px;
background:linear-gradient(135deg,#eff6ff 0%,#fff 40%,#f8fafc 100%);
border-bottom:1px solid var(--border);
position:relative;
overflow:hidden;
}
.hero:before{
content:"";
position:absolute;
width:500px;
height:500px;
right:-200px;
top:-150px;
background:radial-gradient(circle,rgba(37,99,235,.08),transparent 70%);
}
.hero-badge{
display:inline-block;
background:#dbeafe;
color:#1d4ed8;
padding:8px 16px;
border-radius:40px;
font-size:11px;
font-weight:800;
margin-bottom:20px;
position:relative;
z-index:2;
}
.hero h1{
font-size:54px;
font-weight:900;
line-height:1.05;
margin-bottom:20px;
color:#0f172a;
position:relative;
z-index:2;
}
.hero p{
font-size:18px;
line-height:1.7;
color:#475569;
position:relative;
z-index:2;
}
/* =========================
STATS
========================= */
.hero-stats{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:18px;
margin-top:35px;
position:relative;
z-index:2;
}
.hero-stat{
background:#fff;
padding:20px;
border-radius:20px;
box-shadow:var(--shadow);
border:1px solid #eef2f7;
min-width:0;
}
.hero-stat strong{
display:block;
font-size:28px;
font-weight:900;
margin-bottom:4px;
color:#0f172a;
}
.hero-stat span{
color:#64748b;
font-weight:600;
display:block;
}
/* =========================
FILTERS
========================= */
.filters-shell{
background:#fff;
border-bottom:1px solid var(--border);
position:sticky;
top:70px;
z-index:1500;
box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.filter-compact-bar{
display:flex;
align-items:center;
justify-content:space-between;
gap:14px;
padding:12px 35px;
background:#fff;
}
.filter-summary{
display:flex;
align-items:center;
gap:10px;
min-width:0;
flex:1;
}
.filter-main-btn{
display:inline-flex;
align-items:center;
gap:8px;
padding:10px 16px;
border-radius:999px;
border:1px solid #dbe4ee;
background:#0f172a;
color:#fff;
font-size:13px;
font-weight:900;
cursor:pointer;
white-space:nowrap;
transition:.25s;
}
.filter-main-btn:hover{
background:#2563eb;
border-color:#2563eb;
}
.filter-count-badge{
display:inline-flex;
align-items:center;
justify-content:center;
min-width:22px;
height:22px;
padding:0 7px;
border-radius:999px;
background:#16a34a;
color:#fff;
font-size:11px;
font-weight:900;
}
.active-filter-strip{
display:flex;
align-items:center;
gap:6px;
flex-wrap:nowrap;
overflow-x:auto;
min-width:0;
scrollbar-width:thin;
}
.active-filter-chip{
display:inline-flex;
align-items:center;
gap:6px;
padding:7px 10px;
border-radius:999px;
background:#eff6ff;
border:1px solid #bfdbfe;
color:#1d4ed8;
font-size:12px;
font-weight:900;
white-space:nowrap;
}
.active-filter-chip button{
border:none;
background:#dbeafe;
color:#1d4ed8;
width:18px;
height:18px;
border-radius:50%;
font-size:12px;
font-weight:900;
line-height:18px;
cursor:pointer;
}
.filter-products-count{
font-size:12px;
font-weight:900;
color:#64748b;
white-space:nowrap;
}
.filter-drawer{
max-height:0;
overflow:hidden;
transition:max-height .35s ease;
background:#f8fafc;
border-top:1px solid #eef2f7;
}
.filter-drawer.active{
max-height:70vh;
overflow:auto;
}
.filters{
padding:14px 35px 18px;
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:14px;
}
.filter-panel{
background:#fff;
border:1px solid #e2e8f0;
border-radius:18px;
padding:12px;
min-width:0;
}
.filter-group-label{
font-size:10px;
font-weight:900;
text-transform:uppercase;
letter-spacing:.8px;
color:#64748b;
margin-bottom:9px;
display:flex;
justify-content:space-between;
align-items:center;
}
.filter-options{
display:flex;
flex-wrap:wrap;
gap:7px;
max-height:180px;
overflow:auto;
padding-right:4px;
}
.filter-pill{
padding:8px 12px;
background:#f1f5f9;
border:1px solid transparent;
border-radius:40px;
font-size:12px;
font-weight:800;
color:#334155;
cursor:pointer;
transition:.2s;
line-height:1.1;
}
.filter-pill:hover{
background:#dbeafe;
border-color:#bfdbfe;
color:#1d4ed8;
}
.filter-pill.active{
background:#2563eb;
color:#fff;
box-shadow:0 8px 18px rgba(37,99,235,.22);
}
.filter-actions{
display:flex;
justify-content:flex-end;
gap:10px;
padding:0 35px 16px;
}
.filter-pill.clear-filter,
.filter-close-btn{
background:#fff;
border:1px solid #cbd5e1;
color:#334155;
}
.filter-pill.clear-filter:hover{
background:#dc2626;
border-color:#dc2626;
color:#fff;
}
.filter-close-btn:hover{
background:#0f172a;
border-color:#0f172a;
color:#fff;
}
.filter-empty{
padding:22px;
border-radius:18px;
background:#fff;
border:1px dashed #cbd5e1;
font-size:14px;
font-weight:800;
color:#64748b;
display:none;
margin-bottom:18px;
}
@media(max-width:1000px){
.filters-shell{
top:116px;
}
.filter-compact-bar{
padding:10px 14px;
gap:8px;
}
.filter-main-btn{
padding:9px 12px;
font-size:12px;
}
.filter-products-count{
display:none;
}
.active-filter-strip{
max-width:calc(100vw - 155px);
}
.active-filter-chip{
font-size:11px;
padding:6px 9px;
}
.filter-drawer.active{
max-height:62vh;
}
.filters{
grid-template-columns:1fr;
padding:12px 14px;
gap:10px;
}
.filter-options{
max-height:130px;
}
.filter-actions{
padding:0 14px 12px;
position:sticky;
bottom:0;
background:#f8fafc;
}
}
/* =========================
/* =========================
PRODUCTS
========================= */
.product-section{padding:35px;}
.section-title{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}
.section-title h2{
font-size:36px;
font-weight:900;
color:#0f172a;
}
.live-stock{
color:#16a34a;
font-weight:800;
}
/* =========================
GRID
========================= */
.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:24px;
}
/* =========================
CARD
========================= */
.product-card{
background:#fff;
border-radius:24px;
padding:22px;
box-shadow:var(--shadow);
border:1px solid #eef2f7;
transition:.35s;
position:relative;
overflow:hidden;
}
.product-card:hover{
transform:translateY(-5px);
box-shadow:0 20px 40px rgba(15,23,42,.12);
}
.card-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:18px;
}
.stock-badge,
.export-badge{
padding:8px 14px;
border-radius:40px;
font-size:11px;
font-weight:900;
}
.stock-badge{
background:#16a34a;
color:#fff;
}
.export-badge{
background:#dbeafe;
color:#1d4ed8;
}
.product-card h3{
font-size:26px;
font-weight:900;
line-height:1.2;
margin-bottom:10px;
color:#0f172a;
}
.product-type{
color:#2563eb;
font-weight:800;
margin-bottom:18px;
}
/* =========================
SPEC GRID
========================= */
.spec-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
margin-bottom:22px;
}
.spec-item{
background:#f8fafc;
padding:12px;
border-radius:14px;
font-size:13px;
}
.spec-item span{
display:block;
font-size:10px;
font-weight:800;
text-transform:uppercase;
color:#94a3b8;
margin-bottom:4px;
}
.product-fault-info{
background:#fff7ed;
border:1px solid #fed7aa;
color:#9a3412;
border-radius:14px;
padding:10px 12px;
font-size:12px;
font-weight:800;
line-height:1.35;
margin:-10px 0 18px;
}
.product-fault-info span{
display:block;
font-size:10px;
font-weight:900;
text-transform:uppercase;
letter-spacing:.4px;
color:#c2410c;
margin-bottom:3px;
}
.product-fault-info strong{
display:block;
font-size:12px;
font-weight:900;
color:#7c2d12;
}

/* =========================
PRICE
========================= */
.price-summary{
background:#f8fafc;
padding:16px;
border-radius:16px;
margin-bottom:16px;
cursor:pointer;
transition:.3s;
border:1px solid #e2e8f0;
}
.price-summary:hover{
background:#eff6ff;
border-color:#bfdbfe;
}
.price-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:8px;
}
.price-label{
font-size:12px;
font-weight:800;
color:#64748b;
text-transform:uppercase;
letter-spacing:1px;
}
.price-from{
font-size:30px;
font-weight:900;
color:#16a34a;
line-height:1;
}
.price-sub{
font-size:13px;
color:#475569;
line-height:1.5;
}
.price-expand{
margin-top:12px;
display:flex;
align-items:center;
justify-content:space-between;
font-size:12px;
font-weight:800;
color:#2563eb;
}
.price-expand svg{transition:.3s;}
.price-summary.active .price-expand svg{
transform:rotate(180deg);
}
/* =========================
PRICE DROPDOWN
========================= */
.price-dropdown{
max-height:0;
overflow:hidden;
transition:max-height .45s ease;
background:#fff;
border-radius:18px;
margin-bottom:20px;
}
.price-dropdown.active{
max-height:500px;
}
.price-inner{
padding:18px;
border:1px solid #dbe4ee;
border-top:none;
background:#fff;
border-radius:0 0 18px 18px;
}
.price-info{
background:#eff6ff;
padding:14px;
border-radius:14px;
margin-bottom:16px;
font-size:13px;
line-height:1.6;
color:#1e3a8a;
font-weight:600;
}
.price-table{
background:#f8fafc;
padding:16px;
border-radius:16px;
}
.price-row{
display:flex;
justify-content:space-between;
padding:10px 0;
border-bottom:1px solid #e2e8f0;
font-size:13px;
}
.price-row:last-child{
border-bottom:none;
}
.price-row strong{
color:#16a34a;
font-size:17px;
font-weight:900;
}
/* =========================
BUTTONS
========================= */
.trade-btn{
display:block;
width:100%;
padding:15px;
border-radius:16px;
background:linear-gradient(135deg,#16a34a,#15803d);
color:#fff;
text-align:center;
font-weight:900;
font-size:14px;
transition:.3s;
border:none;
cursor:pointer;
}
.trade-btn:hover{
transform:scale(1.02);
}
.login-btn{
background:linear-gradient(135deg,#2563eb,#1d4ed8);
}
/* =========================
AVAILABLE UNIT SELECTION
========================= */
.unit-toggle-wrap{
margin-bottom:16px;
}
.unit-toggle-btn{
display:flex;
align-items:center;
justify-content:space-between;
width:100%;
padding:14px 16px;
border-radius:16px;
border:1px solid #dbe4ee;
background:#f8fafc;
color:#0f172a;
font-size:13px;
font-weight:900;
cursor:pointer;
transition:.25s;
}
.unit-toggle-btn:hover{
background:#eff6ff;
border-color:#bfdbfe;
color:#2563eb;
}
.unit-toggle-btn span{
font-size:12px;
color:#64748b;
font-weight:800;
}
.unit-panel{
max-height:0;
overflow:hidden;
transition:max-height .45s ease;
margin-bottom:16px;
}
.unit-panel.active{
max-height:none;
overflow:visible;
}
.unit-panel-loading{
padding:16px;
border:1px solid #dbe4ee;
border-radius:18px;
background:#f8fafc;
font-size:13px;
font-weight:900;
color:#334155;
}
.unit-panel-inner{
border:1px solid #dbe4ee;
border-radius:18px;
background:#fff;
overflow:visible;
}
.unit-panel-head{
padding:14px 16px;
background:#f8fafc;
border-bottom:1px solid #e2e8f0;
font-size:13px;
font-weight:800;
color:#334155;
line-height:1.5;
}
.unit-list{
display:flex;
flex-direction:column;
gap:6px;
padding:10px;
background:#fff;
}
.unit-row{
display:grid;
grid-template-columns:24px minmax(0,1fr) 72px;
gap:7px;
background:#f8fafc;
border:1px solid #e2e8f0;
border-radius:12px;
padding:7px 8px;
align-items:center;
}
.unit-select-cell{
padding-top:2px;
}
.unit-info-cell{
min-width:0;
}
.unit-line{
display:flex;
flex-wrap:wrap;
gap:3px 8px;
line-height:1.18;
font-size:11px;
color:#334155;
margin-bottom:4px;
}
.unit-line:last-child{
margin-bottom:0;
}
.unit-line-main{
font-size:12px;
font-weight:800;
color:#0f172a;
align-items:center;
}
.unit-line-main strong{
font-size:13px;
font-weight:900;
margin-right:2px;
}
.unit-line-main span{
background:#fff;
border:1px solid #e2e8f0;
border-radius:999px;
padding:1px 7px;
font-size:10px;
font-weight:900;
color:#475569;
}
.unit-line-specs.compact,
.unit-line-price.compact{
background:#fff;
border:1px solid #eef2f7;
border-radius:8px;
padding:3px 6px;
gap:4px 14px;
margin-bottom:3px;
}
.unit-line-specs.compact span,
.unit-line-price.compact span{
background:transparent;
border:none;
border-radius:0;
padding:0;
white-space:nowrap;
}
.unit-line-specs.compact b,
.unit-line-price.compact b{
font-weight:900;
color:#64748b;
}
.unit-line-price.compact{
background:#ecfdf5;
border-color:#bbf7d0;
color:#166534;
}
.unit-line-price.compact strong{
font-size:11px;
font-weight:900;
color:#15803d;
}
.unit-line-fault.compact{
display:flex;
align-items:flex-start;
gap:6px;
background:#fff7ed;
border:1px solid #fed7aa;
color:#9a3412;
border-radius:8px;
padding:4px 6px;
font-size:11px;
font-weight:800;
margin-bottom:0;
}
.unit-line-fault.compact span{
display:inline;
font-size:10px;
font-weight:900;
text-transform:uppercase;
letter-spacing:.3px;
color:#c2410c;
margin-bottom:0;
white-space:nowrap;
}
.unit-line-fault.compact strong{
display:inline;
font-size:11px;
font-weight:900;
color:#7c2d12;
}
.unit-action-cell{
text-align:right;
}
.unit-action-btn{
display:inline-block;
padding:7px 9px;
border-radius:9px;
background:#16a34a;
color:#fff;
font-size:10px;
font-weight:900;
white-space:nowrap;
}
.unit-action-btn.remove{
background:#2563eb;
}
.unit-actions{
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
padding:10px;
background:#f8fafc;
border-top:1px solid #e2e8f0;
}
.unit-bulk-btn{
padding:11px;
border-radius:12px;
border:none;
cursor:pointer;
font-weight:900;
font-size:13px;
background:linear-gradient(135deg,#16a34a,#15803d);
color:#fff;
}
.unit-bulk-btn.secondary{
background:linear-gradient(135deg,#2563eb,#1d4ed8);
}
.unit-empty{
padding:14px;
border-radius:14px;
background:#f8fafc;
font-size:13px;
font-weight:800;
color:#64748b;
}
.unit-checkbox{
width:18px;
height:18px;
accent-color:#16a34a;
}
.batch-status{
padding:0 14px 14px;
font-size:12px;
font-weight:800;
color:#16a34a;
display:none;
}
.batch-status.active{
display:block;
}
@media(max-width:1000px){
.unit-actions{
grid-template-columns:1fr;
}
.unit-row{
grid-template-columns:28px minmax(0,1fr);
}
.unit-action-cell{
grid-column:2;
text-align:left;
}
}
/* === REVISED COMPACT UNIT ROW LAYOUT - preserves original menu/sidebar === */
.unit-panel-head{padding:10px 12px;font-size:12px;line-height:1.35;}
.unit-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px 10px;background:#eef6ff;border-bottom:1px solid #dbe4ee;border-top:none;}
.unit-actions-top{position:sticky;top:0;z-index:5;}
.unit-list{gap:6px;padding:9px;}
.unit-row{display:block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:7px 8px;align-items:initial;}
.unit-row-top{display:grid;grid-template-columns:24px minmax(0,1fr) 64px;gap:7px;align-items:center;}
.unit-select-cell{display:flex;align-items:center;justify-content:center;padding-top:0;}
.unit-title-cell{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:5px;line-height:1.15;}
.unit-title-cell strong{font-size:12px;font-weight:900;color:#0f172a;}
.unit-title-cell span{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:1px 7px;font-size:10px;font-weight:900;color:#475569;white-space:nowrap;}
.unit-detail-cell{margin:6px 4px 0 31px;}
.unit-spec-block{background:#fff;border:1px solid #eef2f7;border-radius:8px;padding:5px 7px;font-size:11px;font-weight:800;line-height:1.22;color:#334155;}
.unit-spec-block div{margin:0 0 1px 0;}
.unit-spec-block div:last-child{margin-bottom:0;}
.unit-spec-block b,.unit-line-price.compact b{font-weight:900;color:#64748b;}
.unit-line-price.compact{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:8px;padding:4px 7px;margin-top:4px;margin-bottom:4px;color:#166534;}
.unit-line-price.compact span{font-size:11px;font-weight:900;}
.unit-line-price.compact strong{font-size:11px;font-weight:900;color:#15803d;}
.unit-line-fault.compact{padding:4px 7px;}
.unit-action-cell{text-align:right;}
.unit-action-btn{padding:7px 9px;border-radius:9px;font-size:10px;}
.unit-bulk-btn{padding:11px;border-radius:12px;border:none;cursor:pointer;font-weight:900;font-size:13px;background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;}
.unit-bulk-btn.secondary{background:linear-gradient(135deg,#2563eb,#1d4ed8);}
.unit-empty{padding:14px;border-radius:14px;background:#f8fafc;font-size:13px;font-weight:800;color:#64748b;}
.unit-checkbox{width:18px;height:18px;accent-color:#16a34a;}
@media(max-width:1000px){.unit-actions{grid-template-columns:1fr}.unit-row-top{grid-template-columns:24px minmax(0,1fr) 60px}.unit-detail-cell{margin-left:31px}.unit-action-cell{text-align:right}}
/* =========================
ADD TO ORDER MODAL
========================= */
.basket-toast-overlay{
position:fixed;
inset:0;
background:rgba(15,23,42,.45);
z-index:999999;
display:none;
align-items:center;
justify-content:center;
padding:18px;
}
.basket-toast-overlay.active{
display:flex;
}
.basket-toast-card{
width:100%;
max-width:440px;
background:#fff;
border-radius:24px;
box-shadow:0 30px 80px rgba(15,23,42,.35);
border:1px solid #e2e8f0;
overflow:hidden;
transform:translateY(8px);
animation:basketPop .18s ease forwards;
}
@keyframes basketPop{
from{opacity:0;transform:translateY(12px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}
.basket-toast-head{
display:flex;
align-items:center;
gap:12px;
padding:18px 20px;
background:linear-gradient(135deg,#16a34a,#15803d);
color:#fff;
}
.basket-toast-head.error{
background:linear-gradient(135deg,#dc2626,#991b1b);
}
.basket-toast-head.warning{
background:linear-gradient(135deg,#f59e0b,#d97706);
}
.basket-toast-icon{
width:38px;
height:38px;
border-radius:50%;
background:rgba(255,255,255,.18);
display:flex;
align-items:center;
justify-content:center;
font-weight:900;
font-size:20px;
}
.basket-toast-title{
font-size:18px;
font-weight:900;
line-height:1.1;
}
.basket-toast-body{
padding:18px 20px 20px;
}
.basket-toast-message{
font-size:13px;
font-weight:800;
color:#334155;
line-height:1.45;
margin-bottom:14px;
}
.basket-toast-product{
background:#f8fafc;
border:1px solid #e2e8f0;
border-radius:16px;
padding:12px;
font-size:12px;
line-height:1.45;
color:#334155;
}
.basket-toast-product strong{
display:block;
font-size:15px;
font-weight:900;
color:#0f172a;
margin-bottom:4px;
}
.basket-toast-product span{
display:block;
font-weight:800;
color:#64748b;
}
.basket-toast-actions{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
margin-top:16px;
}
.basket-toast-actions a,
.basket-toast-actions button{
border:none;
border-radius:14px;
padding:12px;
font-size:13px;
font-weight:900;
cursor:pointer;
text-align:center;
}
.basket-toast-actions a{
background:#16a34a;
color:#fff;
}
.basket-toast-actions a.danger-action{
background:#dc2626;
color:#fff;
}
.basket-toast-actions button{
background:#e2e8f0;
color:#334155;
}
.trade-btn.in-basket,
.unit-action-btn.in-basket,
.unit-action-btn.added{
background:#dc2626!important;
color:#fff!important;
cursor:pointer!important;
pointer-events:auto!important;
}
.unit-action-btn.adding,
.trade-btn.adding{
opacity:.75;
pointer-events:none!important;
}
.unit-checkbox.added{
accent-color:#64748b;
}
/* =========================
SEO
========================= */
.seo-section{padding:35px;}
.seo-box{
background:#fff;
border-radius:24px;
padding:35px;
box-shadow:var(--shadow);
}
.seo-box h2{
font-size:34px;
font-weight:900;
margin-bottom:20px;
}
.seo-box p{
font-size:16px;
line-height:1.8;
color:#475569;
margin-bottom:18px;
}
/* =========================
FOOTER
========================= */
.footer{
padding:25px;
text-align:center;
font-size:13px;
color:#64748b;
border-top:1px solid var(--border);
background:#fff;
}
/* =========================
MOBILE
========================= */
@media(max-width:1000px){
.topbar{
margin-left:0!important;
width:100%!important;
height:58px;
padding:0 12px;
position:fixed;
top:0;
left:0;
z-index:99999;
background:#fff;
}
#wrapper{
    display:flex;
    margin-top:156px;
    width:100%;
    overflow-x:hidden;
}
.topbar-search,
.topbar-title,
.topbar-cart iframe{
display:none!important;
}
.topbar-right{
gap:18px;
transform:none;
transform-origin:right center;
min-width:auto;
justify-content:flex-end;
padding-right:10px;
}

.topbar-cart{
margin-right:10px;
}

.cart-qty-badge{
top:-8px;
left:20px;
}

.topbar-user{
margin-left:5px;
}

.topbar-user-info span{
font-size:11px;
max-width:90px;
overflow:hidden;
text-overflow:ellipsis;
display:block;
}
.mobile-header{
display:flex;
position:fixed;
top:58px;
left:0;
width:100%;
z-index:9998;
background:#fff;
}
.sidebar{
width:280px;
transform:translateX(-100%);
box-shadow:0 0 40px rgba(0,0,0,.25);
top:116px;
height:calc(100vh - 58px);
padding-bottom:100px;
}
.sidebar.active{
transform:translateX(0);
}
.sidebar .logo{
display:none;
}
.main{
margin-left:0;
width:100%;
}
.hero{
padding:14px 18px 24px;
}
.hero h1{
font-size:32px;
line-height:1.1;
margin-bottom:12px;
}
.hero p{
font-size:15px;
line-height:1.6;
}
.hero-badge{
margin-bottom:10px;
}
.hero-stats{
grid-template-columns:1fr 1fr;
gap:10px;
margin-top:16px;
}
.hero-stat{
padding:14px;
border-radius:16px;
}
.hero-stat strong{
font-size:22px;
}
.hero-stat span{
font-size:11px;
}
.filters{
padding:18px;
}
.product-section{
padding:18px;
}
.section-title{
flex-direction:column;
align-items:flex-start;
gap:8px;
}
.section-title h2{
font-size:28px;
}
.product-grid{
grid-template-columns:1fr;
}
.seo-section{
padding:18px;
}
.seo-box{
padding:22px;
}
.main{
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
}
.main{
    margin-top:0!important;
    padding-top:0!important;
}
}
</style>
