.skip-link {
  position: absolute;
  top: -60px;
  left: 0.5rem;
  z-index: 200;
  background: var(--color-B1);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

.btn{
  cursor: pointer;
  border: none;
  padding: 4px 16px 4px 16px;
  justify-content: center;
  align-items: center;
}
#persistent-header {
 background: var(--color-B1);
 box-shadow: inset 0 -1px rgba(255, 255, 255, 0.08);
 overflow: visible;
 flex-shrink: 0;
}

.main-header {
  background: var(--color-B1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 88px;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
}
  
.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-width: 0;
  padding: 0 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
   
.logo {
  display: block;
  height: 72px;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  transform: none;
  margin-top: 0;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-left {
  justify-self: start;
}

.header-right {
  justify-self: end;
}

.login-btn, .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-btn {
  background-color: #ffffff;
  color: var(--color-B1);
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.outline-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  min-height: 32px;
}

.ham-menu {
  display: none;
}

.filters-menu{
  display: none;
}

.filter-btn {
  background: var(--color-L1);
  border: 2px solid var(--color-L2);
  border-radius: 999px;
  color: var(--dark-text-color);
  padding: 0.7rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.off-screen-menu-f,
.off-screen-menu,
.ham-wrap,
.ham-menu {
  display: none !important;
}
.brands-strip {
  width: calc(100% - 3rem);
  max-width: 1280px;
  margin: 1rem auto 2rem;
  text-align: center;
}

.brands-strip-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 1.1rem;
}

.brands-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.brand-logo-link img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .brands-strip-row {
    gap: 1.5rem;
  }

  .brand-logo-link {
    height: 48px;
  }
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: 2rem;
  background: var(--color-B1);
  color: #ffffff;
  box-sizing: border-box;
}

.site-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--color-B2);
  border: 1px solid var(--color-B1);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
  font-weight: 700;
}

.site-toast span {
  color: #fff;
}

.site-toast a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-toast {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    justify-content: space-between;
  }
}

.footer-inner {
  max-width: 1280px;
  width: calc(100% - 3rem);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright,
.footer-copyright span {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.footer-link:hover {
  color: #ffd54a;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--color-B1);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.footer-social-btn:hover {
  background: #ffd54a;
  transform: translateY(-1px);
}

.footer-social-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    width: calc(100% - 1.5rem);
  }
}

.outline-btn{
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow: none;
    box-sizing: border-box;
    line-height: 1;
    color: #ffffff;
    width: auto;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    min-height: 32px;
    padding: 0.5rem 0.75rem;
}
.login-btn, .logout-btn{
  background-color: #ffffff;
  color: var(--color-B1);
  font-size: 0.82rem;
  height: auto;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-left .outline-btn {
 margin: 0;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: var(--color-B1);
  margin-right: 0.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.header-contact-btn svg {
  width: 20px;
  height: 20px;
}

.header-contact-btn:hover {
  background: #ffd54a;
  color: var(--color-B1);
  border-color: #ffd54a;
  transform: translateY(-1px);
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: var(--color-B1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.header-login-btn svg {
  width: 22px;
  height: 22px;
}

.header-login-btn:hover {
  background: #ffd54a;
  color: var(--color-B1);
  border-color: #ffd54a;
  transform: translateY(-1px);
}
.search-btn-sm{
  background-color: var(--color-R1);
  border: solid 2px var(--color-R2);
  border-radius: var(--rad-1);
  height: 40px;
  color: var(--light-text-color);
  font-size: 28px;
}
.add-btn{
  background-color: var(--color-L1);
  height: 48px;
  font-size: 24px;
  font-weight: 500;
  border-radius: var(--rad-1);
  border: solid 2px var(--color-L2);
  color: var(--dark-text-color);
}
.back-btn{
  background-color: transparent;
  color: var(--dark-text-color);
  font-weight: 450;
  font-size: 28px;
  height: 60px;
}
.form-btn{
  background-color: var(--color-L1);
  height: 40px;
  font-size: 24px;
  font-weight: 500;
  border-radius: var(--rad-1);
  border: solid 2px var(--color-L2);
  color: var(--dark-text-color);
}
.delete-btn{
  background-color: var(--color-R2);
  height: 40px;
  font-size: 24px;
  font-weight: 500;
  border-radius: var(--rad-1);
  border: solid 2px var(--color-R1);
  color: var(--light-text-color);
}
.delete-btn:hover{
    background-color: var(--color-R2);
    border: solid 2px var(--color-R1);
}
.ml-1{
    margin-left: 0;
}
.ml-2{
    margin-left: 1rem;
    margin-bottom: 1rem;
    margin-top:0.5rem;
}
.input-sm{
    height: 40px;
    width: 300px;
    font-size: 28px;
}
.input-field{
    height: 32px;
    font-size: 26px;
    width: auto;
}
.description-field{
    background: var(--color-L0);
    border: 1px solid var(--color-L3);
    border-radius: var(--rad-1);  
    height: 144px;
}
.cross-ref-input{
    margin-right: 1rem;
}
.drop-down{
    height: 32px;
    font-size: 26px;
    background: var(--color-L0);
    border: 1px solid var(--color-L3);
    border-radius: var(--rad-1);  
}

.base-content-container{
  background-color: var(--color-L0);
  border: 2px solid var(--color-L2);
  border-radius: var(--rad-1);
  padding: 1rem 1rem 1.5rem 1rem;
  margin-bottom: 1rem;
}
.page-container{
  flex: 1 0 auto;
  margin-top: 0;
  background: #eef1f4;
}

.request-hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

.request-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-B1);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
.main-layout{
  width: min(1480px, calc(100% - 1.75rem));
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(1rem, 1.5vw, 2rem);
  align-items: start;
}

.content {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.results-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.results-count span {
  font-weight: 800;
}

.results-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: #374151;
}

.control-group {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.results-controls select {
  min-width: 130px;
  height: 38px;
  padding: 0 2.2rem 0 0.75rem;
  border: 1px solid rgba(17, 24, 39, 0.2);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 1rem;
}

#limitSelect {
  min-width: 62px;
  padding-right: 1.8rem;
}

.pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 0.5rem;
  box-sizing: border-box;
}

.no-results-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem 1.25rem;
  text-align: center;
  color: #475569;
}

.no-results-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border: 2px solid rgba(13, 59, 140, 0.2);
  border-radius: 50%;
  color: var(--color-B1);
  font-size: 1.8rem;
  font-weight: 800;
}

.no-results-state h2,
.no-results-state p {
  margin: 0;
}

.no-results-state h2 {
  color: #111827;
  font-size: 1.2rem;
}

.no-results-state p {
  max-width: 30rem;
  margin-top: 0.45rem;
  line-height: 1.5;
}

.no-results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.no-results-btn {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-B1);
  border-radius: 10px;
  background: var(--color-B1);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.no-results-btn.secondary {
  background: #fff;
  color: var(--color-B1);
}

.no-results-btn:hover {
  background: #092550;
  color: #fff;
}

.pagination .page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination .page-btn:hover:not(:disabled) {
  border-color: rgba(13, 59, 140, 0.35);
  background: #edf4ff;
  color: var(--color-B1);
}

.pagination .page-btn.active {
  background: var(--color-B1);
  border-color: var(--color-B1);
  color: #fff;
}

.pagination .page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination .page-ellipsis {
  padding: 0 0.25rem;
  color: #6b7280;
  font-weight: 700;
}

@media (min-width: 901px) {
  .pagination {
    left: calc(-0.5 * (260px + clamp(1rem, 1.5vw, 2rem)));
    position: relative;
  }
}

@media (max-width: 1200px) {
 .main-layout {
   grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
   gap: 1rem;
 }

 .pagination {
   left: calc(-0.5 * (240px + 1rem));
 }
}

@media (max-width: 900px) {
 .main-layout {
   width: calc(100% - 1.25rem);
   display: block;
   margin-top: 1rem;
 }

 .pagination {
   left: auto;
   width: 100%;
 }

 .search-inner {
   width: calc(100% - 1.5rem);
   gap: 0.65rem;
   padding: 0.7rem 0;
 }

 .search-container input {
   height: 40px;
   font-size: 0.94rem;
   padding: 0.55rem 0.75rem;
 }

 .filter-btn,
 .cart-btn {
   width: 42px;
   height: 40px;
 }

 .main-header {
   background: var(--color-B1);
   height: 92px;
   padding: 0 1rem;
   overflow: visible;
 }

 .off-screen-menu {
   position: fixed;
   top: 0;
   right: -110%;
   width: min(340px, 85vw);
   height: 100vh;
   display: flex;
   background: rgba(255, 255, 255, 0.98);
   box-shadow: -12px 0 28px rgba(0, 0, 0, 0.18);
   z-index: 70;
   transition: right 0.25s ease;
 }

 .off-screen-menu.active {
   right: 0;
 }

 .off-screen-menu .menu-wrap {
   width: 100%;
   flex-direction: column;
   align-items: stretch;
   gap: 0.85rem;
   padding: 1.5rem 1rem;
 }

 .menu-li {
   width: 100%;
 }

 .login-btn,
 .outline-btn {
   width: 100%;
   min-height: 52px;
   font-size: 1rem;
 }

 .ham-menu {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 48px;
   height: 48px;
   cursor: pointer;
   z-index: 80;
 }

 .ham-wrap {
   position: relative;
   width: 32px;
   height: 24px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   margin: 0;
   padding: 0;
 }

 .ham-wrap span {
   display: block;
   width: 100%;
   height: 4px;
   background: #ffffff;
   border-radius: 99px;
   position: static;
   transform: none;
   transition: transform 0.25s ease, opacity 0.25s ease;
 }

 .ham-menu.active .ham-wrap span:nth-child(1) {
   transform: translateY(9px) rotate(45deg);
 }

 .ham-menu.active .ham-wrap span:nth-child(2) {
   opacity: 0;
 }

 .ham-menu.active .ham-wrap span:nth-child(3) {
   transform: translateY(-9px) rotate(-45deg);
 }

 .content {
   padding: 0 0.75rem;
 }

 .results-toolbar {
   flex-wrap: wrap;
   margin-left: 0.5rem;
   margin-right: 0.5rem;
   padding-left: 0.25rem;
   padding-right: 0.25rem;
   gap: 0.5rem;
   font-size: 0.96rem;
 }

 .results-controls {
   width: 100%;
   justify-content: flex-start;
 }

 #results {
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 0.75rem;
   margin-left: 0.5rem;
   margin-right: 0.5rem;
 }

 .part-item {
   min-height: 210px;
   padding: 0.7rem;
   max-width: none;
 }

 .part-img {
   max-width: 90px;
   height: 82px;
 }

 .part-labels a {
   font-size: 0.92rem;
 }

 .part-labels small {
   font-size: 0.8rem;
 }

 .part-item .add-btn {
   min-width: 72px;
   padding: 0.5rem 0.65rem;
 }
}

@media (min-width: 901px) {
 #persistent-header,
 .main-header {
   background: var(--color-B1) !important;
   border-bottom-color: rgba(255, 255, 255, 0.08) !important;
 }

 .ham-menu {
   display: flex !important;
 }

 .filter-btn {
   display: none !important;
 }

 .filter-backdrop {
   display: none !important;
 }

 .filter-panel,
 .control-menu {
   display: block !important;
 }

 .sidebar {
   display: flex !important;
   position: sticky !important;
   top: 112px !important;
   left: auto !important;
   bottom: auto !important;
   transform: none !important;
   width: min(100%, 260px) !important;
   max-width: 260px !important;
   max-height: none !important;
   background: #f3f5f7 !important;
   border: 1px solid rgba(17, 24, 39, 0.08) !important;
   border-radius: 14px !important;
   box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04) !important;
   padding: 1rem 0.9rem !important;
   z-index: 1 !important;
   overflow: visible !important;
   transition: none !important;
   align-self: start;
   box-sizing: border-box;
   margin-right: 1rem;
 }

 .filter-panel {
   width: 100%;
 }

 .sidebar.active {
   display: flex !important;
   transform: none !important;
 }

 .filter-header {
   align-items: center;
   padding: 0 0 0.75rem;
   margin-bottom: 0.85rem;
   border-bottom: 1px solid rgba(17, 24, 39, 0.12);
 }

 .filter-header h1 {
   font-size: 1.1rem;
   font-weight: 800;
   letter-spacing: 0.02em;
   text-transform: uppercase;
   color: #111827;
 }

 .filter-actions {
   display: none !important;
 }

 .filter-accordion-toggle {
   font-size: 0.85rem;
   line-height: 1.2;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: #4b5563;
   margin-bottom: 0.65rem;
 }

 #brandFilters {
   padding: 0;
 }

 #brandFilters label {
   background: #ffffff;
   border: 1px solid rgba(17, 24, 39, 0.1);
   min-height: 46px;
   padding: 0.65rem 0.8rem;
   border-radius: 10px;
 }
}

.search-container {
  width: 100%;
  background: #e7e8eb;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  box-sizing: border-box;
}

.search-inner {
  max-width: 1280px;
  width: calc(100% - 3rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  box-sizing: border-box;
}

.input-search {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.search-container input {
  height: 48px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.7rem 0.9rem;
  margin-right: 0;
}

.filter-btn {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border: 1px solid rgba(17, 24, 39, 0.35);
  border-radius: 12px;
  color: #111111;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.filter-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  background: #f7f7f7;
  cursor: pointer;
  color: #111827;
}

.cart-icon {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-R1);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 0.3rem;
}
.control-menu{
  display: block;
}

.actions-menu{
   display:flex;
   flex-direction:row;
   padding: 1rem;
}

.action-btn{
   display: none;
}

.filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 49;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.filter-backdrop.active {
  display: block;
  opacity: 1;
}

.sidebar{
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: min(480px, calc(100vw - 1.25rem));
  max-height: min(78vh, 620px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 44, 95, 0.18);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.15);
  z-index: 50;
  padding: 1rem 1.1rem 1.25rem;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.sidebar.active {
  display: flex;
  transform: translate(-50%, 0);
  bottom: 0;
}
.filter-header{
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(18, 44, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-header h1 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-filter-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(18, 44, 95, 0.18);
  background: #f5f7fb;
  color: var(--dark-text-color);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.filter-group {
  padding-top: 0.25rem;
}

.filter-accordion {
  border-bottom: 1px solid rgba(18, 44, 95, 0.1);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.filter-accordion-toggle {
  width: 100%;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: var(--dark-text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.filter-accordion-toggle::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--dark-text-color);
  border-bottom: 2px solid var(--dark-text-color);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.filter-accordion-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.filter-accordion-toggle:hover {
  color: var(--color-B1);
}

.filter-accordion-toggle[aria-expanded="true"] {
  margin-bottom: 0.75rem;
}

#brandFilters[hidden],
#categoryFilters[hidden] {
  display: none;
}

#brandFilters,
#categoryFilters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.25rem;
  margin-right: 0;
}

#brandFilters input,
#categoryFilters input{
    height: 18px;
    width: 18px;
    flex-shrink: 0;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    accent-color: var(--color-B1);
    border-radius: var(--rad-1);
    border: solid 2px var(--color-L2);
}
.brand-filter{
   outline: none;
}
#brandFilters label,
#categoryFilters label {
    border: 1px solid rgba(18, 44, 95, 0.12);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    background-color: #f7f9fc;
    min-height: 44px;
    border-radius: 12px;
    margin-bottom: 0;
    color: var(--dark-text-color);
    font-weight: 500;
    line-height: 1.3;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

#brandFilters label:hover,
#categoryFilters label:hover {
  border-color: rgba(18, 44, 95, 0.28);
  background: #edf4ff;
}

.filter-count {
  margin-left: auto;
  padding-left: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.clear-filters-btn {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 44, 95, 0.18);
  background: #f5f7fb;
  color: var(--dark-text-color);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.clear-filters-btn:hover {
  border-color: rgba(18, 44, 95, 0.3);
  background: #edf4ff;
}
.content{
  padding: 0;
  min-width: 0;
}
#results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 0.8rem;
  justify-content: start;
  align-content: start;
  align-items: stretch;
}
.part-item{
  display:flex;
  flex-direction: column;
  align-items: stretch;
  background-color: white;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 16px;
  padding: 0.85rem 0.85rem 0.9rem;
  min-height: 220px;
  width: 100%;
  max-width: 220px;
  justify-self: start;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.part-item:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.skeleton-card {
  pointer-events: none;
}
.skeleton-block {
  background: linear-gradient(90deg, #eef1f4 25%, #f7f8fa 37%, #eef1f4 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 8px;
}
.skeleton-img {
  width: 100%;
  max-width: 130px;
  height: 110px;
  margin: 0 auto 1rem;
  border-radius: 14px;
}
.skeleton-line {
  height: 14px;
  width: 80%;
  margin: 0 auto 0.5rem;
}
.skeleton-line-short {
  width: 50%;
  margin-bottom: 0;
}
.skeleton-btn {
  height: 32px;
  width: 78px;
  margin: 0 auto;
  border-radius: 10px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.part-img-link {
  display: block;
  margin: 0 auto 1rem;
}
.part-img {
  width: 100%;
  max-width: 130px;
  height: 110px;
  object-fit: contain;
  background: #f1f1f1;
  border-radius: 14px;
  padding: 0.75rem;
  margin: 0;
  box-sizing: border-box;
}
.parts-wrap{
  display:flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  gap: 0.9rem;
  flex: 1;
}
.content {
  overflow-y: auto;
}
.part-labels{
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  text-align: center;
  align-items: center;
}
.part-labels a{
  font-size: 1rem;
  line-height: 1.35;
  color: var(--dark-text-color);
  text-align: center;
  font-weight: 700;
}
.part-labels small{
  font-size: 0.92rem;
  text-align: center;
  color: #1f2937;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.part-item .add-btn {
  margin: 0 auto;
  min-width: 78px;
  display: block;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.2;
  min-height: 38px;
}

@media (min-width: 1400px) {
  .main-layout {
   width: min(1650px, calc(100% - 2.25rem));
  }

  #results {
   grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
   gap: 0.8rem;
  }
}

/* Wide desktop screens (e.g. 16:9 monitors) have enough room for a 6th
   column once the main-layout has reached its max width; auto-fit alone
   won't add a 6th 220px column since it's ~20px short at that width, so
   cards are sized slightly smaller here to fit six across cleanly. */
@media (min-width: 1700px) {
  #results {
   grid-template-columns: repeat(6, 205px);
  }

  .part-item {
   max-width: 205px;
  }
}

@media (max-width: 900px) {
  #results {
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 0.75rem;
  }

  .part-item {
   min-height: 210px;
   padding: 0.7rem;
  }

  .part-img {
   max-width: 90px;
   height: 82px;
  }

  .part-labels a {
   font-size: 0.92rem;
  }

  .part-labels small {
   font-size: 0.8rem;
  }

  .part-item .add-btn {
   min-width: 72px;
   padding: 0.5rem 0.65rem;
  }
}

@media (max-width: 480px) {
  .main-header {
   padding: 0 0.6rem;
   height: 72px;
  }

  .logo-wrap {
   padding: 0 0.35rem;
  }

  .logo {
   height: 44px;
   max-height: 44px;
  }

  .header-left .outline-btn {
   padding: 0.35rem 0.5rem;
   font-size: 0.68rem;
   min-height: 28px;
  }

  .header-contact-btn {
   width: 32px;
   height: 32px;
   margin-right: 0.4rem;
  }

  .header-contact-btn svg {
   width: 16px;
   height: 16px;
  }

  .header-login-btn {
   width: 32px;
   height: 32px;
  }

  .header-login-btn svg {
   width: 17px;
   height: 17px;
  }

  #results {
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 0.5rem;
  }

  .part-item {
   min-height: 190px;
   padding: 0.5rem;
   max-width: none;
  }

  .part-img {
   max-width: 100%;
   height: 62px;
   padding: 0.4rem;
   margin-bottom: 0.5rem;
   border-radius: 10px;
  }

  .part-labels {
   gap: 0.2rem;
  }

  .part-labels a {
   font-size: 0.78rem;
   line-height: 1.2;
  }

  .part-labels small {
   font-size: 0.68rem;
  }

  .part-item .add-btn {
   min-width: 0;
   width: 100%;
   padding: 0.4rem 0.3rem;
   font-size: 0.78rem;
   min-height: 32px;
  }
}

.right-panel{
  display:none;
}
.right-panel-header{
  display:flex;
  flex-direction: row;
  align-items: center;
  position: sticky;
  top:0;
  background-color: var(--color-L1);
  width:100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.panel-wrap-1{
  display:flex;
  flex-direction:row;
  align-items: center;
  width: 80%;
}
.right-panel-toggle{
  display:inline-flex;
  border: solid var(--dark-text-color);
  border-width: 0 4px 4px 0;
  padding: 0.4rem;
  margin-left: 1rem;
  max-height: 16px;
}
.up{
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}
.down{
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}
.demo-login-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--dark-text-color);
  text-align: center;
}
#partsList {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.parts-list-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-L0);
  border: 2px solid var(--color-L2);
  border-radius: var(--rad-1);
  margin-bottom: 1rem;
}
.list-img {
  width: 72px;
  height: 72px;
  object-fit:contain;
  padding: 1rem 1rem 1.5rem 1rem;
}
.list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.list-info strong {
  font-size: 20px;
}
.list-info small {
  font-size: 16px;
}
.list-controls {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  font-size: 32px;
}
.list-controls button {
  background: var(--color-B2);
  border: 2px solid var(--color-B2);
  border-radius: var(--rad-1);
  width: 3rem;
  height: 3rem;
  font-size: 32px;
}
.list-remove{
  font-size: 32px;
}
.product-container {
 flex: 1 0 auto;
 background: #eef2f5;
 padding: 2rem 1rem 3rem;
}

.product-shell {
 width: min(1180px, 100%);
 margin: 0 auto;
 background: #f8fafb;
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 20px;
 box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
 padding: 1.25rem 1.25rem 1.5rem;
}

.back-link {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 color: var(--color-B1);
 font-weight: 700;
 text-decoration: none;
 margin-bottom: 1rem;
}

.product-layout {
 display: grid;
 grid-template-columns: minmax(330px, 440px) minmax(0, 1fr);
 gap: 2rem;
 align-items: start;
}

.product-layout[hidden] {
 display: none;
}

.product-loading {
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
 max-width: 440px;
 padding: 1rem 0;
}

.product-loading[hidden] {
 display: none;
}

.product-images {
 background: linear-gradient(180deg, #ffffff, #f5f7fa);
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 18px;
 padding: 1.25rem;
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.product-main-img-wrap {
 position: relative;
 cursor: zoom-in;
}

.product-main-img {
 width: 100%;
 max-height: 360px;
 object-fit: contain;
 background: #f3f4f6;
 border-radius: 14px;
 padding: 1.25rem;
 box-sizing: border-box;
}

.zoom-hint {
 position: absolute;
 bottom: 0.85rem;
 right: 0.85rem;
 width: 34px;
 height: 34px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: #ffffff;
 border: 1px solid rgba(17, 24, 39, 0.12);
 border-radius: 50%;
 color: var(--color-B1);
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
 pointer-events: none;
}

.image-zoom-overlay {
 display: none;
 position: fixed;
 inset: 0;
 background: rgba(15, 23, 42, 0.85);
 z-index: 1000;
 align-items: center;
 justify-content: center;
 padding: 2rem;
 box-sizing: border-box;
 cursor: zoom-out;
}

.image-zoom-overlay.open {
 display: flex;
}

.image-zoom-full {
 max-width: 90vw;
 max-height: 90vh;
 object-fit: contain;
 border-radius: 10px;
 background: #fff;
 padding: 1rem;
 box-sizing: border-box;
}

.image-zoom-close {
 position: absolute;
 top: 1.25rem;
 right: 1.5rem;
 width: 42px;
 height: 42px;
 border-radius: 50%;
 border: none;
 background: #ffffff;
 color: var(--color-B1);
 font-size: 1.75rem;
 line-height: 1;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
}

.image-zoom-close:hover {
 background: #ffd54a;
}

.thumbnail-row {
 display: flex;
 gap: 0.65rem;
 overflow-x: auto;
 padding-bottom: 0.2rem;
}

.thumbnail-row img {
 width: 68px;
 height: 68px;
 object-fit: contain;
 border: 1px solid rgba(17, 24, 39, 0.12);
 border-radius: 12px;
 background: #f5f6f7;
 cursor: pointer;
 padding: 0.35rem;
 box-sizing: border-box;
}

.product-wrap {
 display: flex;
 flex-direction: column;
 gap: 1.25rem;
}

.product-details {
 background: #ffffff;
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 18px;
 padding: 1.5rem 1.5rem 1.25rem;
}

.eyebrow {
 display: inline-block;
 text-transform: uppercase;
 letter-spacing: 0.08em;
 font-size: 0.72rem;
 font-weight: 800;
 color: var(--color-B1);
 margin-bottom: 0.65rem;
}

.part-number {
 color: #475569;
 font-size: 0.8rem;
 font-weight: 700;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 margin-bottom: 0.5rem;
}

.product-title {
 margin: 0;
 font-size: clamp(2rem, 3vw, 3rem);
 line-height: 1.1;
 color: #0f172a;
}

.product-meta-row {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.7rem;
 margin: 1rem 0 1.1rem;
}

.brand-pill {
 display: inline-flex;
 align-items: center;
 gap: 0.45rem;
 min-height: 32px;
 padding: 0.35rem 0.8rem;
 border-radius: 999px;
 font-size: 0.8rem;
 font-weight: 700;
 background: #eef4ff;
 color: var(--color-B1);
 border: 1px solid rgba(13, 59, 140, 0.15);
 text-decoration: none;
 transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-pill[href]:hover {
 transform: translateY(-1px);
 opacity: 0.85;
}

.brand-pill-logo {
 height: 18px;
 width: auto;
 max-width: 70px;
 object-fit: contain;
}

.product-description {
 margin: 0;
 color: #334155;
 font-size: 1rem;
 line-height: 1.7;
}

.product-actions {
 display: flex;
 align-items: center;
 justify-content: flex-start;
 gap: 1rem;
 margin-top: 1.5rem;
}

.qty-control {
 display: inline-flex;
 align-items: center;
 border: 1px solid rgba(17, 24, 39, 0.16);
 border-radius: 12px;
 background: #f8fafc;
 overflow: hidden;
}

.qty-control button {
 width: 42px;
 height: 42px;
 border: none;
 background: transparent;
 color: #0f172a;
 font-size: 1.5rem;
 cursor: pointer;
 font-weight: 700;
}

.qty-control span {
 min-width: 42px;
 text-align: center;
 font-weight: 800;
 color: #0f172a;
}

.parts-add-btn {
 background: linear-gradient(180deg, #f5f5f5, #ebebeb);
 border: 1px solid rgba(17, 24, 39, 0.18);
 color: #111827;
 font-weight: 700;
 font-size: 1rem;
 min-width: 138px;
 height: 46px;
 border-radius: 12px;
 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-section {
 background: #ffffff;
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 18px;
 padding: 1.25rem 1.5rem;
}

.product-section h3 {
 margin: 0 0 1rem;
 font-size: 1rem;
 text-transform: uppercase;
 letter-spacing: 0.08em;
 color: #334155;
}

.cross-ref-list {
 display: flex;
 flex-wrap: wrap;
 gap: 0.75rem;
}

.cross-ref-item {
 background: #f8fafc;
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 999px;
 padding: 0.55rem 0.8rem;
 font-size: 0.88rem;
 font-weight: 700;
 color: #334155;
}

.related-parts-section {
 margin-top: 1.5rem;
}

.related-parts-row {
 display: flex;
 flex-wrap: wrap;
 gap: 1rem;
}

.related-part-card {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 width: 140px;
 padding: 0.75rem;
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 14px;
 background: #f8fafc;
 text-decoration: none;
 color: inherit;
 transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.related-part-card:hover {
 box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
 transform: translateY(-2px);
}

.related-part-card img {
 width: 100%;
 height: 90px;
 object-fit: contain;
 margin-bottom: 0.5rem;
}

.related-part-name {
 font-size: 0.85rem;
 font-weight: 600;
 color: #1f2937;
}

.related-part-number {
 font-size: 0.75rem;
 color: #64748b;
}

@media (max-width: 900px) {
 .product-shell {
   padding: 1rem;
 }

 .product-layout {
   grid-template-columns: 1fr;
   gap: 1rem;
 }

 .product-images {
   padding: 0.75rem;
 }

 .product-main-img {
   max-height: 280px;
 }

 .product-details,
 .product-section {
   padding: 1rem;
 }

 .product-actions {
   flex-wrap: wrap;
 }

 .related-part-card {
   width: 110px;
 }
}
.login-body{
 min-height: 100vh;
 margin: 0;
 background: linear-gradient(180deg, #0b2d6a 0%, #0d3b8c 100%);
 display: flex;
 align-items: center;
 justify-content: center;
 font-family: Arial, sans-serif;
}

.login-container {
 width: min(100%, 520px);
 display: flex;
 flex-direction: column;
 align-items: center;
 padding: 2rem 1rem 3rem;
 box-sizing: border-box;
}

.login-logo {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 1.25rem;
}

.login-logo img {
 width: min(52vw, 220px);
 height: auto;
 filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.login-box {
 width: 100%;
 background: rgba(255, 255, 255, 0.96);
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 22px;
 box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
 padding: 1.5rem 1.25rem 1.25rem;
 box-sizing: border-box;
}

.login-form {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.login-field {
 display: flex;
 flex-direction: column;
 gap: 0.45rem;
 color: #111827;
 font-size: 0.9rem;
 font-weight: 700;
}

.login-box input {
 width: 100%;
 height: 48px;
 padding: 0.7rem 0.85rem;
 border: 1px solid rgba(17, 24, 39, 0.18);
 border-radius: 12px;
 background: #fff;
 color: #111827;
 font-size: 1rem;
 box-sizing: border-box;
}

.login-box input:focus {
 outline: 2px solid rgba(13, 59, 140, 0.18);
 border-color: rgba(13, 59, 140, 0.35);
}

.btn-login {
 width: 100%;
 height: 48px;
 margin-top: 0.35rem;
 background: linear-gradient(180deg, #0d3b8c, #0a2c67);
 border: none;
 border-radius: 12px;
 color: #fff;
 font-size: 1rem;
 font-weight: 800;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 cursor: pointer;
 box-shadow: 0 12px 24px rgba(13, 59, 140, 0.2);
}

.login-help {
 margin: 0.25rem 0 0;
 text-align: center;
 color: #475569;
 font-size: 0.9rem;
}

.login-lang-toggle {
 position: fixed;
 top: 1.25rem;
 right: 1.25rem;
}

@media (max-width: 640px) {
 .login-container {
   padding-top: 1.5rem;
 }

 .login-box {
   padding: 1.25rem 1rem 1rem;
 }

 .login-lang-toggle {
   top: 0.85rem;
   right: 0.85rem;
 }
}
.admin-dashboard-shell {
 flex: 1 0 auto;
 width: min(1360px, calc(100% - 2rem));
 margin: 2rem auto 3rem;
 display: flex;
 flex-direction: column;
 gap: 1.35rem;
}

.admin-topbar {
 display: flex;
 align-items: end;
 justify-content: space-between;
 gap: 1rem;
 padding: 1.5rem 1.5rem 1.1rem;
 background: linear-gradient(180deg, rgba(10, 45, 103, 0.96), rgba(10, 45, 103, 0.9));
 border: 1px solid rgba(255, 255, 255, 0.08);
 border-radius: 20px;
 box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.admin-topbar-copy {
 display: flex;
 flex-direction: column;
 gap: 0.25rem;
}

.admin-kicker {
 margin: 0;
 font-size: 0.72rem;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: rgba(255, 255, 255, 0.72);
 font-weight: 800;
}

.admin-topbar h1 {
 margin: 0;
 font-size: clamp(2rem, 3vw, 2.6rem);
 line-height: 1.1;
 color: #ffffff;
}

.admin-topbar-actions,
.admin-actions {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 flex-wrap: wrap;
 gap: 0.6rem;
}

.admin-btn-light {
 background: rgba(255, 255, 255, 0.08);
 border: 1px solid rgba(255, 255, 255, 0.22);
 color: #ffffff;
 font-weight: 700;
}

.admin-btn-solid {
 background: #edf4ff;
 border: 1px solid rgba(13, 59, 140, 0.16);
 color: var(--color-B1);
 font-weight: 700;
}

.admin-grid {
 display: grid;
 grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.9fr);
 gap: 1.35rem;
}

.admin-card {
 background: rgba(255, 255, 255, 0.92);
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 20px;
 box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
 padding: 1.35rem 1.25rem;
}

.brand-container {
 grid-column: 1;
}

.search-parts-container {
 grid-column: 2;
}

#userManagement {
 grid-column: 1 / -1;
}

.admin-card-header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 padding-bottom: 1rem;
 margin-bottom: 1rem;
 border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.admin-card-header h2 {
 margin: 0.25rem 0 0;
 font-size: clamp(1.2rem, 2vw, 1.6rem);
 color: #111827;
}

.brand-list,
.admin-results-wrap,
.user-list {
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
}

.admin-brand-row,
.admin-part-row,
.admin-user-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 background: linear-gradient(180deg, #ffffff, #f8fafc);
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 14px;
 padding: 0.9rem 1rem;
 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-brand-row .brand-link {
 display: inline-flex;
 align-items: center;
 gap: 0.6rem;
 min-height: 42px;
 color: #111827;
 text-decoration: none;
 font-weight: 700;
}

.admin-brand-id {
 font-weight: 600;
 font-size: 0.82rem;
 color: #6b7280;
 white-space: nowrap;
}

.admin-brand-row .brand-link:hover,
.admin-part-row .admin-part-main:hover {
 color: var(--color-B1);
}

.admin-part-row {
 align-items: stretch;
}

.admin-part-main {
 display: flex;
 flex-direction: column;
 justify-content: center;
 gap: 0.25rem;
 min-width: 0;
 color: #111827;
 text-decoration: none;
}

.admin-part-main strong {
 display: block;
 color: #111827;
 font-size: 0.96rem;
 letter-spacing: 0.02em;
}

.admin-part-main span {
 display: block;
 color: #4b5563;
 font-size: 0.88rem;
}

.admin-part-meta {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 84px;
 height: 38px;
 padding: 0.45rem 0.8rem;
 border-radius: 10px;
 border: 1px solid rgba(13, 59, 140, 0.14);
 background: #edf4ff;
 color: var(--color-B1);
 font-weight: 700;
 text-align: center;
 cursor: pointer;
}

.search-wrap {
 display: flex;
 align-items: center;
 gap: 0.7rem;
 margin: 0 0 1rem;
}

.search-wrap input {
 width: 100%;
 margin-right: 0;
}

.search-btn-sm {
 background: var(--color-B1);
 border: none;
 border-radius: 10px;
 color: #fff;
 min-width: 88px;
 min-height: 42px;
 font-weight: 700;
}

.input-sm,
.input-field {
 height: 42px;
 padding: 0.7rem 0.9rem;
 border: 1px solid rgba(17, 24, 39, 0.15);
 border-radius: 10px;
 background: #fff;
 color: #111827;
 font-size: 0.96rem;
 box-sizing: border-box;
}

.input-sm:focus,
.input-field:focus,
#adminSearch:focus {
 outline: 2px solid rgba(13, 59, 140, 0.18);
 border-color: rgba(13, 59, 140, 0.35);
}

#adminSearch {
 width: 100%;
 max-width: none;
}

#userManagement {
 display: block;
}

.user-create {
 display: grid;
 grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(150px, 0.8fr) auto;
 gap: 0.75rem;
 align-items: center;
 margin-bottom: 1rem;
}

.primary-btn {
 background: linear-gradient(180deg, #0d3b8c, #0a2c67);
 border: none;
 color: #fff;
 min-height: 42px;
 border-radius: 10px;
 font-weight: 800;
 padding: 0.65rem 1rem;
}

.admin-user-row {
 flex-wrap: wrap;
}

.admin-user-row .user-info {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 flex-wrap: wrap;
 color: #111827;
 font-weight: 700;
}

.admin-user-row .user-role {
 font-size: 0.8rem;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 color: var(--color-B1);
 background: #edf4ff;
 border: 1px solid rgba(13, 59, 140, 0.14);
 border-radius: 999px;
 padding: 0.25rem 0.55rem;
}

.admin-user-row .user-actions {
 display: flex;
 align-items: center;
 gap: 0.55rem;
 margin-left: auto;
}

.admin-user-row button {
 min-height: 36px;
 border-radius: 9px;
 border: 1px solid rgba(17, 24, 39, 0.12);
 background: #fff;
 color: #111827;
 font-weight: 700;
 padding: 0.45rem 0.75rem;
 cursor: pointer;
}

.admin-user-row button:last-child {
 border-color: rgba(190, 24, 24, 0.18);
 color: #991b1b;
 background: #fef2f2;
}

.admin-empty-state {
 padding: 1rem;
 text-align: center;
 color: #6b7280;
 background: #f8fafc;
 border: 1px dashed rgba(17, 24, 39, 0.1);
 border-radius: 12px;
}

mark {
 background: #dfeeff;
 color: #0f172a;
 padding: 0 0.15em;
 border-radius: 4px;
}

@media (max-width: 980px) {
 .admin-grid {
   grid-template-columns: 1fr;
 }

 .brand-container,
 .search-parts-container,
 #userManagement {
   grid-column: auto;
 }

 .admin-topbar {
   align-items: flex-start;
   flex-direction: column;
   padding: 1.25rem;
 }

 .admin-topbar-actions,
 .admin-actions {
   width: 100%;
   justify-content: flex-start;
 }

 .user-create {
   grid-template-columns: 1fr;
 }
}

@media (max-width: 640px) {
 .admin-dashboard-shell {
   width: calc(100% - 1rem);
   margin-top: 1rem;
 }

 .admin-card {
   padding: 1rem;
 }

 .admin-card-header {
   align-items: flex-start;
   flex-direction: column;
 }

 .admin-brand-row,
 .admin-part-row,
 .admin-user-row {
   flex-direction: column;
   align-items: flex-start;
 }

 .admin-user-row .user-actions {
   width: 100%;
   margin-left: 0;
   justify-content: flex-start;
 }

 .search-wrap {
   flex-direction: column;
   align-items: stretch;
 }

 .search-btn-sm {
   width: 100%;
 }
}

.admin-form-shell {
 flex: 1 0 auto;
 width: min(1100px, calc(100% - 2rem));
 margin: 2rem auto 3rem;
 display: flex;
 flex-direction: column;
 gap: 1.35rem;
}

.admin-form-card {
 background: rgba(255, 255, 255, 0.94);
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 20px;
 box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
 padding: 1.5rem;
}

.admin-form-section {
 display: flex;
 flex-direction: column;
 gap: 1rem;
 padding: 1rem 0;
 border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.admin-form-section:last-of-type {
 border-bottom: none;
 padding-bottom: 0.25rem;
}

.admin-form-section-header {
 display: flex;
 flex-direction: column;
 gap: 0.2rem;
}

.admin-form-section-header.inline-header {
 flex-direction: row;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
}

.admin-form-section-header h2 {
 margin: 0.2rem 0 0;
 font-size: clamp(1.15rem, 2vw, 1.55rem);
 color: #111827;
}

.admin-form-grid {
 display: grid;
 gap: 1rem;
}

.admin-form-grid.two-column {
 grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-row {
 display: flex;
 flex-direction: column;
 gap: 0.5rem;
}

.admin-form-row label {
 font-size: 0.82rem;
 font-weight: 800;
 color: #334155;
 letter-spacing: 0.04em;
 text-transform: uppercase;
}

.admin-form-row input,
.admin-form-row select,
.admin-form-row textarea,
#brandName,
#partNumber,
#partName,
#partNameFr,
#brandSelect,
#partDesc,
#partDescFr,
.cross-ref-input {
 width: 100%;
 min-height: 46px;
 padding: 0.75rem 0.9rem;
 border: 1px solid rgba(17, 24, 39, 0.15);
 border-radius: 12px;
 background: #ffffff;
 color: #111827;
 font-size: 1rem;
 box-sizing: border-box;
 transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-form-row textarea,
.description-field {
 min-height: 120px;
 resize: vertical;
}

.admin-form-row input:focus,
.admin-form-row select:focus,
.admin-form-row textarea:focus,
#brandName:focus,
#partNumber:focus,
#partName:focus,
#partNameFr:focus,
#brandSelect:focus,
#partDesc:focus,
#partDescFr:focus,
.cross-ref-input:focus {
 outline: 2px solid rgba(13, 59, 140, 0.18);
 border-color: rgba(13, 59, 140, 0.35);
 box-shadow: 0 0 0 4px rgba(13, 59, 140, 0.06);
}

.admin-form-actions {
 display: flex;
 align-items: center;
 justify-content: flex-start;
 flex-wrap: wrap;
 gap: 0.7rem;
 padding-top: 1.25rem;
}

.back-btn,
.secondary-btn {
 background: transparent;
 border: 1px solid rgba(255, 255, 255, 0.2);
 border-radius: 999px;
 color: #ffffff;
 font-weight: 700;
 min-height: 42px;
 padding: 0.55rem 1rem;
 cursor: pointer;
}

.primary-btn,
.form-btn {
 background: linear-gradient(180deg, #0d3b8c, #0a2c67);
 border: none;
 border-radius: 10px;
 color: #ffffff;
 font-weight: 800;
 min-height: 42px;
 padding: 0.7rem 1.05rem;
 cursor: pointer;
}

.delete-btn {
 background: linear-gradient(180deg, #ef4444, #b91c1c);
 border: none;
 border-radius: 10px;
 color: #ffffff;
 font-weight: 800;
 min-height: 42px;
 padding: 0.7rem 1.05rem;
 cursor: pointer;
}

.admin-form-card .outline-btn,
.admin-form-card .admin-btn-solid {
 min-height: 42px;
 padding: 0.7rem 1rem;
 border-radius: 10px;
}

.admin-form-card .admin-btn-solid {
 background: #edf4ff;
 border: 1px solid rgba(13, 59, 140, 0.14);
 color: var(--color-B1);
 font-weight: 700;
}

.admin-cross-ref-list {
 display: flex;
 flex-direction: column;
 gap: 0.7rem;
}

.cross-ref-row {
 display: flex;
 align-items: center;
 gap: 0.75rem;
}

.cross-ref-row .input-field,
.cross-ref-row .cross-ref-input {
 flex: 1;
}

.cross-ref-row .delete-btn {
 min-width: 92px;
 flex-shrink: 0;
}

.admin-image-list {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
 gap: 0.9rem;
}

.image-item {
 position: relative;
 display: flex;
}

.image-card {
 position: relative;
 width: 100%;
 min-height: 120px;
 border: 1px solid rgba(17, 24, 39, 0.1);
 border-radius: 14px;
 background: linear-gradient(180deg, #ffffff, #f8fafc);
 overflow: hidden;
 box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.image-card img {
 width: 100%;
 height: 120px;
 object-fit: cover;
 display: block;
}

.main-label {
 position: absolute;
 top: 0.5rem;
 left: 0.5rem;
 background: rgba(13, 59, 140, 0.9);
 color: #fff;
 font-size: 0.68rem;
 font-weight: 800;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 border-radius: 999px;
 padding: 0.3rem 0.5rem;
}

.image-card .delete-btn {
 position: absolute;
 right: 0.5rem;
 top: 0.5rem;
 min-width: 32px;
 min-height: 32px;
 padding: 0.25rem 0.45rem;
 border-radius: 999px;
 font-size: 0.85rem;
 line-height: 1;
}

.admin-image-hint {
 min-height: 1.25rem; 
 margin-top: 0.35rem;
 color: #475569;
 font-size: 0.88rem;
}

.save-message {
 display: none;
 margin-top: 1rem;
 padding: 0.8rem 0.9rem;
 background: #ecfdf5;
 border: 1px solid rgba(22, 163, 74, 0.2);
 border-radius: 12px;
 color: #166534;
 font-weight: 700;
}

@media (max-width: 720px) {
 .admin-form-shell {
   width: calc(100% - 1rem);
   margin-top: 1rem;
 }

 .admin-form-card {
   padding: 1rem;
 }

 .admin-form-grid.two-column {
   grid-template-columns: 1fr;
 }

 .admin-form-section-header.inline-header {
   flex-direction: column;
   align-items: flex-start;
 }

 .admin-form-actions {
   flex-direction: column;
   align-items: stretch;
 }

 .admin-form-actions > * {
   width: 100%;
 }

 .cross-ref-row {
   flex-direction: column;
   align-items: stretch;
 }
}
#formTitle{
    margin-left: 1.5rem;
    margin-top: 1rem;
}
.drop-down option{
    font-size: 28px;
    height: 32px;
    outline: 2px solid red;
}
.top-actions{
    height: 64px;
}
.part-form-wrap{
    margin-right: 3rem;
    margin-left: 3rem;
}
.part-form-wrap label{
    font-size: 28px;
}
.part-form-wrap hr{
    margin-bottom: 1rem;
}
.form-section{
    margin-bottom: 1rem;
    display:flex;
}
.form-wrap{
    margin-left: 1rem;
}
.form-wrap-a{
    margin-left: 1rem;
    display:flex;
    flex-direction:column;
}
.new-part{
    flex-direction:row;
    align-items: center;
    margin-bottom: 0.5rem;  
}
#crossRefContainer{
    margin-bottom: 0.5rem;
}
.cross-ref-row{
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}
.new-part input{
    margin-left: 0.5rem;
}
.lang-form{
    flex-direction:column;
}
.img-wrap{
    flex-direction: column;
}
.img-wrap button{
    margin-left: 1rem;
    margin-top: 0.5rem;
}


.request-page {
 max-width: 1220px;
 margin: 0 auto;
 padding: 2rem 1.25rem 3rem;
}

.request-layout {
 display: grid;
 grid-template-columns: minmax(0, 1.5fr) minmax(300px, 420px);
 gap: 1.5rem;
 align-items: start;
}

.request-left,
.request-right {
 background: rgba(255, 255, 255, 0.72);
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 20px;
 box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.request-left {
 padding: 1.5rem;
 min-height: 420px;
}

.request-left h2 {
 margin: 0 0 1rem;
 font-size: clamp(1.4rem, 2vw, 2rem);
 color: #111827;
}

#requestList {
 display: flex;
 flex-direction: column;
 gap: 0.9rem;
}

.request-empty-state {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 min-height: 280px;
 padding: 2rem 1.25rem;
 text-align: center;
 color: #475569;
}

.request-empty-icon {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 52px;
 height: 52px;
 margin-bottom: 1rem;
 border: 2px solid rgba(13, 59, 140, 0.2);
 border-radius: 50%;
 color: var(--color-B1);
 font-size: 2rem;
 font-weight: 400;
 line-height: 1;
}

.request-empty-title,
.request-empty-message {
 margin: 0;
}

.request-empty-title {
 color: #111827;
 font-size: 1.1rem;
 font-weight: 800;
}

.request-empty-message {
 max-width: 30rem;
 margin-top: 0.45rem;
 line-height: 1.5;
}

.request-empty-action {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 42px;
 margin-top: 1.25rem;
 padding: 0.65rem 1rem;
 border-radius: 10px;
 background: var(--color-B1);
 color: #fff;
 font-weight: 800;
 text-decoration: none;
}

.request-empty-action:hover {
 background: #092550;
}

#requestList .list-item {
 display: grid;
 grid-template-columns: 74px minmax(0, 1fr) auto auto;
 align-items: center;
 gap: 0.9rem;
 background: linear-gradient(180deg, #ffffff, #f8fafc);
 border: 1px solid rgba(17, 24, 39, 0.08);
 border-radius: 16px;
 padding: 0.75rem 0.9rem;
 margin: 0;
 box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

#requestList .list-img {
 width: 74px;
 height: 74px;
 object-fit: contain;
 border-radius: 12px;
 background: #f3f4f6;
 padding: 0.45rem;
 box-sizing: border-box;
 margin: 0;
}

#requestList .list-info {
 min-width: 0;
}

#requestList .list-info strong {
 display: block;
 font-size: 1rem;
 line-height: 1.3;
 color: #111827;
}

#requestList .list-info small {
 display: block;
 color: #475569;
 font-size: 0.83rem;
 margin-top: 0.2rem;
}

#requestList .list-controls {
 display: inline-flex;
 align-items: center;
 gap: 0.55rem;
 margin: 0;
 font-size: 1rem;
 color: #111827;
 font-weight: 700;
}

#requestList .list-controls input {
 width: 64px;
 height: 40px;
 border: 1px solid rgba(17, 24, 39, 0.16);
 border-radius: 10px;
 background: #fff;
 font-size: 1rem;
 text-align: center;
 padding: 0;
 margin: 0;
}

#requestList .list-controls button,
#requestList .list-remove {
 width: 36px;
 height: 36px;
 min-width: 36px;
 border-radius: 10px;
 border: 1px solid rgba(17, 24, 39, 0.1);
 background: #edf3ff;
 color: var(--color-B1);
 cursor: pointer;
 font-size: 1.2rem;
 line-height: 1;
 padding: 0;
 font-weight: 700;
}

#requestList .list-remove {
 background: #fff1f2;
 border-color: rgba(170, 22, 52, 0.18);
 color: #9f1239;
}

.request-right {
 position: sticky;
 top: 20px;
 padding: 1.5rem;
 height: fit-content;
}

.request-right h3 {
 margin: 0 0 1rem;
 font-size: 1.1rem;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 color: #334155;
}

.request-field {
 display: block;
 margin-bottom: 0.85rem;
 color: #334155;
 font-size: 0.9rem;
 font-weight: 700;
}

.request-field span {
 display: block;
 margin-bottom: 0.35rem;
}

.request-right input {
 display: block;
 width: 100%;
 min-height: 48px;
 padding: 0.8rem 0.9rem;
 margin-bottom: 0.85rem;
 border: 1px solid rgba(17, 24, 39, 0.14);
 border-radius: 12px;
 font-size: 1rem;
 color: #111827;
 background: #fff;
 box-sizing: border-box;
}

.request-field input {
 margin-bottom: 0;
}

.request-right input:focus {
 outline: 2px solid rgba(13, 59, 140, 0.18);
 border-color: rgba(13, 59, 140, 0.35);
}

.submit-btn {
 width: 100%;
 padding: 0.9rem 1rem;
 margin-top: 0.5rem;
 background: linear-gradient(180deg, #0d3b8c, #0a2c67);
 color: #ffffff;
 border: none;
 border-radius: 12px;
 cursor: pointer;
 font-size: 1rem;
 font-weight: 800;
 letter-spacing: 0.02em;
 box-shadow: 0 10px 20px rgba(13, 59, 140, 0.18);
}

.submit-btn:hover {
 background: linear-gradient(180deg, #0d3b8c, #092550);
}

.submit-btn:disabled {
 background: #94a3b8;
 box-shadow: none;
 cursor: not-allowed;
}

mark {
 background-color: #ffe58a;
 padding: 1px 3px;
 border-radius: 3px;
}

@media (max-width: 900px) {
 .request-page {
   padding: 1rem 0.75rem 2rem;
 }

 .request-layout {
   grid-template-columns: 1fr;
 }

 .request-left,
 .request-right {
   padding: 1rem;
 }

 .request-right {
   position: static;
 }

 #requestList .list-item {
   grid-template-columns: 60px minmax(0, 1fr) auto;
 }

 #requestList .list-remove {
   grid-column: 2 / -1;
   justify-self: end;
 }
}

.contact-page {
  width: min(1220px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

.contact-heading {
  margin-bottom: 1.5rem;
}

.contact-heading h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: #111827;
}

.contact-heading p {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-card-header {
  background: var(--color-B1);
  color: #ffffff;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-card-header strong {
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.contact-card-header span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card-body {
  padding: 1.1rem 1.15rem 1.3rem;
  flex: 1;
}

.contact-card-body p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: #1f2937;
  line-height: 1.45;
}

.contact-card-body p:last-child {
  margin-bottom: 0;
}

.contact-person {
  font-weight: 700;
  color: #111827 !important;
  margin-bottom: 0.15rem !important;
}

.contact-person + .contact-role {
  margin-top: -0.15rem;
}

.contact-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-person span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
}

.contact-address {
  color: #374151 !important;
}

.contact-phone a,
.contact-email a {
  color: var(--color-B1);
  text-decoration: none;
  font-weight: 600;
}

.contact-phone a:hover,
.contact-email a:hover {
  text-decoration: underline;
}

.contact-fax {
  color: #6b7280 !important;
}

.contact-subperson {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.not-found-page {
  width: min(560px, calc(100% - 2rem));
  margin: 3rem auto 4rem;
  text-align: center;
}

.not-found-code {
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 800;
  color: var(--color-B1);
  line-height: 1;
}

.not-found-page h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: #111827;
}

.not-found-page p {
  margin: 0 0 1.75rem;
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.5;
}

.not-found-search {
  width: 100%;
  margin: 0 0 1.75rem;
}

.not-found-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-B1);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-B1);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.not-found-home-link:hover {
  background: var(--color-B1);
  color: #ffffff;
}

/* Respect the OS-level "reduce motion" accessibility setting by turning
   off decorative animations/transitions (hover lifts, toast slide-in,
   skeleton shimmer, etc.) for users who have it enabled. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
