/* ━━━ VARIABLES ━━━ */
:root {
  --bg:    #0d0f14;
  --s1:    #131720;
  --s2:    #1a1f2e;
  --s3:    #212840;
  --b1:    #1e2535;
  --b2:    #2a3350;
  --b3:    #364060;
  --txt:   #c5cedf;
  --txt2:  #8894aa;
  --txt3:  #4d5b72;
  --wht:   #e8eeff;
  --acc:   #3d7fff;
  --acc2:  #2d6af0;
  --grn:   #1ebd7a;
  --red:   #e05252;
  --ylw:   #e0a020;
  --ff:    'Heebo', sans-serif;
  --fm:    'IBM Plex Mono', monospace;
  --r:     8px;
  --r2:    12px;
  --sh:    0 4px 24px rgba(0,0,0,.4);
}

/* ━━━ RESET ━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--txt); font-family: var(--ff); font-size: 14px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--b3); border-radius: 3px; }

/* ━━━ LAYOUT ━━━ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding: 28px 0 48px; }

/* ━━━ HEADER ━━━ */
header {
  background: var(--s1);
  border-bottom: 1px solid var(--b1);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 62px;
}
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo:hover { text-decoration: none; }
.logo-icon { width: 38px; height: 38px; background: var(--acc); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.logo-name { font-size: 16px; font-weight: 800; color: var(--wht); }
.logo-sub  { font-size: 10px; color: var(--txt3); }

.header-nav { display: flex; gap: 4px; margin-right: auto; }
.header-nav a { color: var(--txt2); padding: 6px 12px; border-radius: var(--r); font-size: 13px; font-weight: 500; transition: all .15s; }
.header-nav a:hover, .header-nav a.active { background: var(--s2); color: var(--wht); text-decoration: none; }

.cart-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--acc); color: #fff;
  padding: 8px 16px; border-radius: var(--r);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  position: relative; transition: background .15s;
}
.cart-btn:hover { background: var(--acc2); text-decoration: none; color: #fff; }
.cart-badge {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; font-family: var(--fm);
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.mobile-menu-btn { display: none; background: var(--s2); color: var(--txt); border: 1px solid var(--b2); padding: 6px 10px; border-radius: var(--r); font-size: 18px; cursor: pointer; }

/* ━━━ FLASH ━━━ */
.flash-container { position: fixed; top: 70px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.flash { background: var(--s2); border: 1px solid var(--b2); border-radius: var(--r); padding: 12px 18px; font-size: 13px; color: var(--wht); box-shadow: var(--sh); transition: opacity .4s; max-width: 320px; pointer-events: auto; }
.flash-success { border-right: 3px solid var(--grn); }
.flash-error   { border-right: 3px solid var(--red); }
.flash-info    { border-right: 3px solid var(--acc); }

/* ━━━ BREADCRUMB ━━━ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt3); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--txt3); }
.breadcrumb a:hover { color: var(--acc); text-decoration: none; }
.breadcrumb span { color: var(--txt3); }

/* ━━━ CATALOG LAYOUT ━━━ */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.sidebar { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r2); padding: 16px 0; height: fit-content; position: sticky; top: 80px; }
.sidebar-section { margin-bottom: 6px; }
.sidebar-title { padding: 8px 18px 4px; font-size: 10px; color: var(--txt3); text-transform: uppercase; letter-spacing: .1em; font-family: var(--fm); }
.sidebar-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 18px; cursor: pointer; font-size: 13px; color: var(--txt2);
  border-right: 2px solid transparent; transition: all .1s; text-decoration: none;
}
.sidebar-item:hover { background: var(--s2); color: var(--txt); text-decoration: none; }
.sidebar-item.active { background: rgba(61,127,255,.1); color: var(--acc); border-right-color: var(--acc); font-weight: 600; }
.sidebar-count { font-family: var(--fm); font-size: 10px; color: var(--txt3); background: var(--b1); padding: 1px 6px; border-radius: 3px; }
.sidebar-divider { height: 1px; background: var(--b1); margin: 8px 18px; }

/* ━━━ TOOLBAR ━━━ */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { background: var(--s2); color: var(--txt); border: 1px solid var(--b2); padding: 7px 12px; border-radius: var(--r); font-family: var(--ff); font-size: 13px; cursor: pointer; }
.toolbar input[type=search] { flex: 1; min-width: 200px; background: var(--s2); border: 1px solid var(--b2); color: var(--txt); padding: 7px 12px; border-radius: var(--r); font-family: var(--ff); font-size: 13px; }
.toolbar input[type=search]:focus { outline: none; border-color: var(--acc); }
.result-count { font-size: 12px; color: var(--txt3); font-family: var(--fm); margin-right: auto; }

/* ━━━ PRODUCT GRID ━━━ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

.product-card {
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r2);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product-card:hover { border-color: var(--b3); transform: translateY(-2px); box-shadow: var(--sh); }

.card-img-wrap { position: relative; background: var(--s2); aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .2s; }
.product-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-img-wrap .no-img { font-size: 40px; color: var(--txt3); }

.card-badge { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 3px; font-family: var(--fm); }
.badge-in   { background: rgba(30,189,122,.15); color: var(--grn); }
.badge-out  { background: rgba(224,82,82,.15);  color: var(--red); }
.badge-soon { background: rgba(224,160,32,.15); color: var(--ylw); }

.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.card-brand { font-size: 10px; color: var(--txt3); font-family: var(--fm); text-transform: uppercase; letter-spacing: .06em; }
.card-name  { font-size: 12px; color: var(--wht); line-height: 1.4; font-weight: 500; flex: 1; }
.card-sku   { font-size: 10px; color: var(--txt3); font-family: var(--fm); }

.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--b1); background: var(--s2); gap: 8px; }
.card-price { font-family: var(--fm); font-size: 15px; font-weight: 500; color: var(--wht); }

/* ━━━ BUTTONS ━━━ */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: var(--r); font-family: var(--ff); font-size: 13px; font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: all .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc2); color: #fff; }
.btn-success { background: var(--grn); color: #fff; }
.btn-success:hover { filter: brightness(1.1); color: #fff; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover  { filter: brightness(1.1); color: #fff; }
.btn-ghost   { background: var(--s2); color: var(--txt); border: 1px solid var(--b2); }
.btn-ghost:hover { background: var(--s3); border-color: var(--b3); color: var(--wht); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-add { background: var(--acc); color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; transition: background .1s; white-space: nowrap; }
.btn-add:hover { background: var(--acc2); }
.btn-add.in-cart { background: var(--grn); }
.btn-add:disabled { background: var(--b2); color: var(--txt3); cursor: not-allowed; }

/* ━━━ PRODUCT DETAIL ━━━ */
.product-detail { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.detail-img-main { background: var(--s2); border-radius: var(--r2); border: 1px solid var(--b1); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-img-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.detail-brand { font-size: 11px; color: var(--txt3); font-family: var(--fm); text-transform: uppercase; letter-spacing: .1em; }
.detail-name  { font-size: 22px; font-weight: 800; color: var(--wht); line-height: 1.3; margin: 8px 0; }
.detail-sku   { font-family: var(--fm); font-size: 11px; color: var(--txt3); margin-bottom: 16px; }
.detail-price { font-family: var(--fm); font-size: 32px; font-weight: 500; color: var(--acc); }
.detail-price-label { font-size: 11px; color: var(--txt3); margin-bottom: 4px; }
.detail-avail { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 5px; font-size: 12px; font-weight: 700; margin: 12px 0; }
.detail-avail.in   { background: rgba(30,189,122,.12); color: var(--grn); }
.detail-avail.out  { background: rgba(224,82,82,.12);  color: var(--red); }
.detail-avail.soon { background: rgba(224,160,32,.12); color: var(--ylw); }
.qty-wrap { display: flex; align-items: center; gap: 0; background: var(--s2); border: 1px solid var(--b2); border-radius: var(--r); overflow: hidden; width: fit-content; }
.qty-wrap button { width: 38px; height: 38px; background: var(--s3); color: var(--wht); border: none; cursor: pointer; font-size: 20px; }
.qty-wrap button:hover { background: var(--b3); }
.qty-wrap input { width: 52px; text-align: center; background: none; color: var(--wht); font-family: var(--fm); font-size: 14px; border: none; outline: none; border-left: 1px solid var(--b2); border-right: 1px solid var(--b2); }
.detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.spec-table td { padding: 7px 10px; border-bottom: 1px solid var(--b1); }
.spec-table td:first-child { color: var(--txt3); width: 120px; }
.spec-table td:last-child { color: var(--wht); font-weight: 500; }

/* ━━━ CART PAGE ━━━ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 10px 14px; text-align: right; font-size: 11px; color: var(--txt3); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--b1); background: var(--s1); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--b1); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table tr:hover td { background: rgba(255,255,255,.01); }
.cart-item-img { width: 60px; height: 60px; background: var(--s2); border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item-name { font-size: 13px; color: var(--wht); font-weight: 500; line-height: 1.4; }
.cart-item-sku  { font-family: var(--fm); font-size: 10px; color: var(--txt3); }
.cart-item-price { font-family: var(--fm); font-size: 14px; font-weight: 500; color: var(--wht); }
.qty-input { width: 56px; text-align: center; background: var(--s2); color: var(--wht); border: 1px solid var(--b2); padding: 5px; border-radius: var(--r); font-family: var(--fm); font-size: 13px; }
.remove-btn { background: none; border: none; color: var(--txt3); font-size: 18px; cursor: pointer; padding: 4px; border-radius: 4px; }
.remove-btn:hover { color: var(--red); background: rgba(224,82,82,.1); }

/* Cart Summary */
.cart-summary { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r2); padding: 22px; position: sticky; top: 80px; }
.cart-summary h3 { font-size: 15px; font-weight: 700; color: var(--wht); margin-bottom: 16px; border-bottom: 1px solid var(--b1); padding-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--txt2); }
.sum-row.total { font-size: 16px; font-weight: 700; color: var(--wht); border-top: 1px solid var(--b1); padding-top: 12px; margin-top: 8px; }
.sum-row.total span { color: var(--grn); font-family: var(--fm); font-size: 18px; }

/* ━━━ CHECKOUT / FORMS ━━━ */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.form-card { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r2); padding: 28px; }
.form-card h2 { font-size: 17px; font-weight: 700; color: var(--wht); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--b1); display: flex; align-items: center; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; color: var(--txt3); text-transform: uppercase; letter-spacing: .06em; }
.form-label .req { color: var(--red); }
.form-control { background: var(--s2); color: var(--txt); border: 1px solid var(--b2); border-radius: var(--r); padding: 9px 12px; font-family: var(--ff); font-size: 13px; width: 100%; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--acc); }
.form-control::placeholder { color: var(--txt3); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-error { color: var(--red); font-size: 11px; }

/* ━━━ ORDER CONFIRM ━━━ */
.confirm-box { background: var(--s1); border: 1px solid var(--grn); border-radius: var(--r2); padding: 36px; text-align: center; max-width: 560px; margin: 0 auto; }
.confirm-icon { font-size: 52px; margin-bottom: 16px; }
.confirm-num { font-family: var(--fm); font-size: 24px; color: var(--acc); margin: 10px 0; }

/* ━━━ ORDER STATUS BADGES ━━━ */
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.status-new        { background: rgba(61,127,255,.15); color: var(--acc); }
.status-processing { background: rgba(224,160,32,.15); color: var(--ylw); }
.status-done       { background: rgba(30,189,122,.15); color: var(--grn); }
.status-cancelled  { background: rgba(224,82,82,.15);  color: var(--red); }

/* ━━━ CONTACT ━━━ */
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r2); padding: 18px; }
.contact-item-icon { font-size: 24px; flex-shrink: 0; }
.contact-item-label { font-size: 11px; color: var(--txt3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact-item-val   { font-size: 15px; color: var(--wht); font-weight: 600; }

/* ━━━ SECTION TITLES ━━━ */
.page-title { font-size: 24px; font-weight: 800; color: var(--wht); margin-bottom: 6px; }
.page-sub   { font-size: 13px; color: var(--txt2); margin-bottom: 24px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--wht); margin-bottom: 16px; }

/* ━━━ EMPTY STATE ━━━ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--txt3); }
.empty-state .ico { font-size: 52px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--txt2); margin-bottom: 8px; }
.empty-state p  { font-size: 13px; line-height: 1.7; }

/* ━━━ PAGINATION ━━━ */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r); font-family: var(--fm); font-size: 13px; background: var(--s1); border: 1px solid var(--b1); color: var(--txt2); transition: all .15s; }
.pagination a:hover { background: var(--s2); border-color: var(--b3); color: var(--wht); text-decoration: none; }
.pagination .current { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ━━━ FOOTER ━━━ */
footer { background: var(--s1); border-top: 1px solid var(--b1); margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 36px 0; }
.footer-links h4 { font-size: 12px; color: var(--txt3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-links a { display: block; color: var(--txt2); font-size: 13px; margin-bottom: 7px; }
.footer-links a:hover { color: var(--acc); text-decoration: none; }
.footer-bottom { background: var(--bg); border-top: 1px solid var(--b1); padding: 12px 0; text-align: right; font-size: 12px; color: var(--txt3); }
.footer-bottom a { color: var(--txt3); }

/* ━━━ RESPONSIVE ━━━ */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .catalog-layout, .cart-layout, .checkout-layout, .contact-layout, .product-detail { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .header-nav { display: none; flex-direction: column; position: absolute; top: 62px; right: 0; left: 0; background: var(--s1); border-bottom: 1px solid var(--b1); padding: 12px 0; z-index: 300; }
  .header-nav.open { display: flex; }
  .header-nav a { border-radius: 0; padding: 10px 20px; }
  .mobile-menu-btn { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ━━━ ANIMATIONS ━━━ */
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.product-card { animation: fadeUp .2s ease both; }

/* ━━━ SIDEBAR HIERARCHY ━━━ */
.sidebar-group-title {
  padding: 10px 18px 3px;
  font-size: 10px; color: #3d7fff;
  text-transform: uppercase; letter-spacing: .1em;
  font-family: var(--fm); font-weight: 600;
}
.sidebar-parent { }
.sidebar-sub {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 18px 5px 28px;
  font-size: 12px; color: var(--txt3);
  border-right: 2px solid transparent;
  text-decoration: none; transition: all .1s;
}
.sidebar-sub:hover { background: var(--s2); color: var(--txt); text-decoration: none; }
.sidebar-sub.active { color: var(--acc); background: rgba(61,127,255,.08); border-right-color: var(--acc); }
.sidebar-item { text-decoration: none; display: flex; }
.sidebar-item:hover { text-decoration: none; }

/* ━━━ CONFIGURATOR ━━━ */
.config-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.config-step {
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r2);
  margin-bottom: 14px; overflow: hidden;
}
.config-step-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer;
  background: var(--s2); border-bottom: 1px solid var(--b1);
  user-select: none;
}
.config-step-header:hover { background: var(--s3); }
.config-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--acc); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.config-step-num.done { background: var(--grn); }
.config-step-num.skip { background: var(--txt3); }
.config-step-title { font-size: 14px; font-weight: 700; color: var(--wht); flex: 1; margin-right: 12px; }
.config-step-selected { font-size: 12px; color: var(--grn); font-family: var(--fm); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-step-body { padding: 14px; display: none; }
.config-step-body.open { display: block; }

/* ── Configurator Products ── */
.config-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px,1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px;
}
.config-product-item {
  background: var(--s2); border: 2px solid var(--b1); border-radius: var(--r);
  padding: 10px; cursor: pointer; transition: all .15s; position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.config-product-item:hover  { border-color: var(--b3); }
.config-product-item.selected { border-color: var(--acc); background: rgba(61,127,255,.1); }
.config-product-item.selected::after {
  content: '✓'; position: absolute; top: 5px; left: 5px;
  background: var(--acc); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.config-product-img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: var(--s1); border-radius: 4px; padding: 4px;
}
.config-product-noimg {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center;
  justify-content: center; font-size: 28px; background: var(--s1); border-radius: 4px;
}
.config-product-info { flex: 1; }
.config-product-name  { font-size: 11px; color: var(--wht); line-height: 1.3; }
.config-product-brand { font-size: 9px; color: var(--txt3); margin-top: 2px; }
.config-product-price { font-family: var(--fm); font-size: 13px; color: var(--acc); font-weight: 700; }

/* ── LIST VIEW ── */
.config-list-view {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  gap: 5px !important;
  max-height: 420px;
}
.config-list-view .config-product-item {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
}
.config-list-view .config-product-img,
.config-list-view .config-product-noimg {
  width: 48px !important; height: 48px !important;
  aspect-ratio: 1 !important; flex-shrink: 0;
  margin-bottom: 0 !important;
}
.config-list-view .config-product-info { flex: 1; min-width: 0; }
.config-list-view .config-product-name  { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-list-view .config-product-brand { display: block !important; }
.config-list-view .config-product-price { font-size: 14px !important; flex-shrink: 0; white-space: nowrap; }

.config-summary {
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r2);
  padding: 20px; position: sticky; top: 80px;
}
.config-summary h3 { font-size: 15px; font-weight: 700; color: var(--wht); margin-bottom: 16px; border-bottom: 1px solid var(--b1); padding-bottom: 12px; }
.config-sum-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--b1); gap: 8px; }
.config-sum-item:last-of-type { border-bottom: none; }
.config-sum-label { font-size: 11px; color: var(--txt3); text-transform: uppercase; letter-spacing: .05em; }
.config-sum-name { font-size: 12px; color: var(--wht); margin-top: 2px; line-height: 1.3; }
.config-sum-price { font-family: var(--fm); font-size: 13px; color: var(--acc); white-space: nowrap; }
.config-compat { padding: 8px 12px; border-radius: var(--r); font-size: 12px; margin-bottom: 12px; }
.config-compat.ok   { background: rgba(30,189,122,.1);  color: var(--grn); }
.config-compat.warn { background: rgba(224,160,32,.1);  color: var(--ylw); }
.config-compat.err  { background: rgba(224,82,82,.1);   color: var(--red); }

.config-search { width: 100%; background: var(--s2); border: 1px solid var(--b2); color: var(--txt); padding: 7px 12px; border-radius: var(--r); font-family: var(--ff); font-size: 12px; margin-bottom: 10px; outline: none; }
.config-search:focus { border-color: var(--acc); }

/* ━━━ LOGO IMAGE ━━━ */
.logo-img{height:42px;max-width:160px;object-fit:contain}
.header-actions{display:flex;align-items:center;gap:6px;margin-right:auto}

/* ━━━ BANNERS ━━━ */
.banners-wrap{position:relative;overflow:hidden;height:90px}
.banners-track{display:flex;height:100%;transition:transform .5s ease}
.banner-slide{min-width:100%;height:90px;display:flex;align-items:center;position:relative;overflow:hidden}
.banner-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.25}
.banner-content{position:relative;z-index:1;padding:0 40px;display:flex;align-items:center;gap:20px;width:100%;justify-content:center;text-align:center;flex-wrap:wrap}
.banner-title{font-size:18px;font-weight:800}
.banner-sub{font-size:13px;opacity:.85}
.banner-btn{background:rgba(255,255,255,.2);color:inherit;border:1px solid rgba(255,255,255,.4);padding:5px 14px;border-radius:20px;font-size:12px;font-weight:600;text-decoration:none;transition:background .15s}
.banner-btn:hover{background:rgba(255,255,255,.35);text-decoration:none}
.banner-prev,.banner-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.4);color:#fff;border:none;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;z-index:10}
.banner-prev{right:10px}.banner-next{left:10px}
.banner-dots{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:10}
.banner-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:background .2s}
.banner-dot.active{background:#fff}

/* ━━━ FLOATING BUTTONS ━━━ */
.float-btn{position:fixed;z-index:400;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,0,0,.4);cursor:pointer;transition:transform .2s,box-shadow .2s;text-decoration:none;border:none;font-size:22px}
.float-btn:hover{transform:scale(1.1);box-shadow:0 6px 22px rgba(0,0,0,.5)}
.float-wa{bottom:80px;left:20px;background:#25D366;color:#fff}
.float-access{bottom:20px;left:20px;background:var(--acc);color:#fff}

/* ━━━ ACCESSIBILITY PANEL ━━━ */
.access-panel{position:fixed;bottom:80px;left:80px;background:var(--s1);border:1px solid var(--b2);border-radius:var(--r2);padding:14px;z-index:500;min-width:180px;display:none;box-shadow:var(--sh)}
.access-panel.open{display:block}
.access-title{font-size:12px;font-weight:700;color:var(--wht);margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--b1)}
.access-panel button{display:block;width:100%;background:var(--s2);color:var(--txt);border:1px solid var(--b1);border-radius:6px;padding:7px 10px;font-size:12px;cursor:pointer;margin-bottom:5px;text-align:right;font-family:var(--ff)}
.access-panel button:hover{background:var(--s3);color:var(--wht)}

/* ━━━ ACCESSIBILITY CLASSES ━━━ */
body.high-contrast{filter:contrast(1.6)}
body.grayscale{filter:grayscale(1)}
body.highlight-links a{outline:2px solid var(--ylw)!important;outline-offset:2px}

/* ━━━ CONFIGURATOR LIST VIEW ━━━ */
/* list-view moved above */

/* ━━━ SAVED BUILD CODE DISPLAY ━━━ */
.build-code-badge{background:var(--acc);color:#fff;font-family:var(--fm);font-size:14px;font-weight:700;padding:8px 16px;border-radius:8px;display:inline-block;letter-spacing:.1em}

/* ━━━ AUTH PAGES ━━━ */
.border-red{border-color:var(--red)!important}

/* ━━━ ACCOUNT PAGE ━━━ */
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}

/* ━━━ FOOTER UPDATED ━━━ */
.footer-nav{display:flex;gap:16px;flex-wrap:wrap}
.footer-nav a{color:var(--txt2);font-size:13px}
.footer-nav a:hover{color:var(--acc)}

/* ━━━ HEADER SEARCH ━━━ */
.header-search {
  display: flex; align-items: center;
  background: var(--s2); border: 1px solid var(--b2);
  border-radius: var(--r); overflow: hidden;
  flex: 1; max-width: 320px;
  transition: border-color .15s;
}
.header-search:focus-within { border-color: var(--acc); }
.header-search-input {
  flex: 1; background: none; border: none;
  color: var(--txt); padding: 8px 12px;
  font-family: var(--ff); font-size: 13px; outline: none;
}
.header-search-input::placeholder { color: var(--txt3); }
.header-search-btn {
  background: none; border: none; color: var(--txt3);
  padding: 8px 12px; cursor: pointer; font-size: 14px;
  transition: color .15s;
}
.header-search-btn:hover { color: var(--acc); }

/* ━━━ CART ITEM LINK ━━━ */
.cart-item-name { transition: color .1s; }
a:hover .cart-item-name { color: var(--acc) !important; }

/* ━━━ BUILD PAGE ━━━ */
.build-header-code {
  background: var(--s2); border: 1px solid var(--b2);
  border-radius: var(--r); padding: 12px 16px;
  display: inline-flex; align-items: center; gap: 12px;
}

@media (max-width: 768px) {
  .header-search { display: none; }
}

/* ━━━ 3-LEVEL SIDEBAR ━━━ */
.sidebar-sub-group { }

.sidebar-sub {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 18px 6px 24px;
  font-size: 12px; color: var(--txt2);
  border-right: 2px solid transparent;
  text-decoration: none; transition: all .1s;
}
.sidebar-sub:hover  { background: var(--s2); color: var(--txt); text-decoration: none; }
.sidebar-sub.active { color: var(--acc); background: rgba(61,127,255,.06); border-right-color: var(--acc); font-weight: 600; }

.sidebar-leaf {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 18px 5px 32px;
  font-size: 11px; color: var(--txt3);
  border-right: 2px solid transparent;
  text-decoration: none; transition: all .1s;
}
.sidebar-leaf:hover  { background: var(--s2); color: var(--txt2); text-decoration: none; }
.sidebar-leaf.active { color: var(--ylw); background: rgba(224,160,32,.06); border-right-color: var(--ylw); font-weight: 600; }

.sidebar-group-title {
  padding: 10px 18px 4px;
  font-size: 10px; color: var(--acc);
  text-transform: uppercase; letter-spacing: .1em;
  font-family: var(--fm); font-weight: 600;
}
