/* =============================================
   AutoPeças Catálogo — catalog.css
   Custom styles on top of style.css
   ============================================= */

/* ---------- CSS Variables overrides ---------- */
:root {
  --primary-color: #E8181F;
  --secondary-color: #1a1a2e;
}

/* ---------- Vehicle Selector Widget ---------- */
.vehicle__selector--widget {
  background: #f8f9fa;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  padding: 18px 16px 20px;
  margin-bottom: 20px;
}
.vehicle__selector--widget .widget__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vehicle__selector--widget .widget__title svg { flex-shrink: 0; }

.vehicle__selector--select {
  width: 100%;
  display: block;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.875rem;
  background: #fff;
  color: #333;
  margin-bottom: 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.vehicle__selector--select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(232,24,31,0.15); }
.vehicle__selector--btn {
  width: 100%;
  padding: 9px 16px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
.vehicle__selector--btn:hover { background: #c0141a; }

/* ---------- OEM Search Widget ---------- */
.oem__search--widget {
  margin-bottom: 20px;
}
.oem__search--form {
  display: flex;
  gap: 6px;
}
.oem__search--input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.875rem;
}
.oem__search--input:focus { outline: none; border-color: var(--primary-color); }
.oem__search--btn {
  padding: 8px 14px;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}
.oem__search--btn:hover { background: #2d2d4e; }

/* ---------- Product Card Part# Badge ---------- */
.product__card--partnum {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #555;
  background: #f0f0f0;
  border-radius: 3px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.product__card--brand {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 2px;
}

/* ---------- Product Details — Part Info ---------- */
.product__details--partref {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 3px solid var(--primary-color);
}
.product__details--partref .ref__item { font-size: 0.875rem; }
.product__details--partref .ref__label { font-weight: 600; color: #555; }
.product__details--partref .ref__value { color: #222; }

/* ---------- Compatibility Table (product-details) ---------- */
.compatibility__table--wrapper {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}
.compatibility__table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  margin: 0;
}
.compatibility__table thead th {
  background: var(--secondary-color);
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}
.compatibility__table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.compatibility__table tbody tr:nth-child(even) { background: #f9f9f9; }
.compatibility__table tbody tr:hover { background: #fff3f3; }

/* ---------- Solicitar Orçamento button ---------- */
.product__details--quote__btn {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.product__details--quote__btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.product__details--cart__btn {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.product__details--cart__btn:hover {
  background: #111827;
  border-color: #111827;
}

.catalog__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog__header-btn {
  border: 1px solid #d9dde3;
  background: #fff;
  color: #1f2937;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.catalog__header-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.catalog__header-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.catalog__header-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.catalog__header-btn--primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.catalog__header-btn--primary:hover:not(:disabled) {
  background: #bf0f16;
  border-color: #bf0f16;
  color: #fff;
}

.catalog__header-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.widget__form--checkmark {
  cursor: pointer;
}

.catalog-search__suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  z-index: 40;
  overflow: hidden;
  display: none;
  max-height: 360px;
  overflow-y: auto;
}

.catalog-search__suggestions.is-open {
  display: block;
}

.catalog-search__suggestion {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #edf0f4;
}

.catalog-search__suggestion:last-child {
  border-bottom: 0;
}

.catalog-search__suggestion:hover,
.catalog-search__suggestion:focus {
  background: #f8fafc;
}

.catalog-search__suggestion-handler {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.catalog-search__suggestion-title {
  font-size: 0.9rem;
  color: #111827;
  line-height: 1.35;
}

.catalog-search__suggestion-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

mark.catalog-search__mark {
  background: #fff3bf;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.header__search--box,
.admin__search {
  position: relative;
}

.catalog-search__suggestions--admin {
  top: calc(100% + 4px);
  right: 42px;
}

.product__card--footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-viewall {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.catalog-viewall__btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  transition: background 0.18s ease;
}

.catalog-viewall__btn:hover {
  background: var(--primary-color);
}

.product__card--btn-secondary {
  background: #111827;
  border: none;
  color: #fff;
}

.product__card--btn-secondary:hover {
  background: #000;
  color: #fff;
}

.catalog-cart__overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1100;
}

.catalog-cart__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.catalog-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 1101;
  display: flex;
  flex-direction: column;
}

.catalog-cart.is-open {
  transform: translateX(0);
}

.catalog-cart__header,
.catalog-cart__footer {
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
}

.catalog-cart__footer {
  border-bottom: 0;
  border-top: 1px solid #edf0f4;
  display: flex;
  gap: 10px;
}

.catalog-cart__title {
  margin: 0;
  font-size: 1.1rem;
}

.catalog-cart__summary {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.catalog-cart__close {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #6b7280;
}

.catalog-cart__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.catalog-cart__body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
}

.catalog-cart__empty {
  border: 1px dashed #d0d7de;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #6b7280;
}

.catalog-cart__item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}

.catalog-cart__item-image {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
}

.catalog-cart__item-handler {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 4px;
}

.catalog-cart__item-title {
  font-size: 0.95rem;
  margin: 0 0 10px;
  line-height: 1.35;
}

.catalog-cart__item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.catalog-cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px;
}

.catalog-cart__qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
}

.catalog-cart__remove,
.catalog-cart__secondary,
.catalog-cart__primary,
.catalog-order-modal__actions button {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
}

.catalog-cart__remove {
  background: transparent;
  color: var(--primary-color);
  padding: 0;
}

.catalog-cart__secondary {
  flex: 1;
  background: #f3f4f6;
  color: #111827;
}

.catalog-cart__primary {
  flex: 2;
  background: var(--primary-color);
  color: #fff;
}

.catalog-order-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1110;
}

.catalog-order-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.catalog-order-modal__dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

.catalog-order-modal__dialog h3 {
  margin-bottom: 10px;
}

.catalog-order-modal__dialog p {
  color: #6b7280;
  margin-bottom: 18px;
}

.catalog-order-modal__actions {
  display: grid;
  gap: 10px;
}

.catalog-order-modal__actions button {
  background: #111827;
  color: #fff;
}

.catalog-order-modal__actions button:last-child {
  background: var(--primary-color);
}

.catalog-order-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  color: #6b7280;
}

.catalog-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1120;
}

.catalog-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.catalog-mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1199;
}

.catalog-mobile-menu__header {
  display: none;
}

@media (max-width: 991px) {
  .offcanvas__header--menu__open {
    display: flex !important;
    align-items: center;
  }

  .offcanvas__header--menu__open--btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
    z-index: 2;
  }

  .shop__sidebar--widget.widget__area {
    display: none !important;
  }

  .catalog-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
  }

  .catalog-mobile-menu__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
  }

  .catalog-mobile-menu__close {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
  }

  body.catalog-mobile-menu-open {
    overflow: hidden;
  }

  body.catalog-mobile-menu-open .catalog-mobile-menu__overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.catalog-mobile-menu-open .shop__sidebar--widget.widget__area {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: min(88vw, 360px);
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    z-index: 1200;
    margin: 0;
    padding: 16px 14px 22px;
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.2);
  }

  .main__header--inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .offcanvas__header--menu__open {
    order: 1;
  }

  .main__logo {
    order: 2;
    margin-left: auto;
    margin-right: auto;
  }

  .lang-switcher {
    order: 3;
    margin-right: 0 !important;
    margin-left: auto;
  }

  .catalog__header-actions {
    order: 4;
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }
}

@media (max-width: 767px) {
  .main__logo--img {
    max-height: 34px;
    width: auto;
  }

  .lang-switcher {
    width: auto;
    gap: 5px !important;
  }

  .lang-switcher > span {
    display: none;
  }

  .catalog__header-actions {
    gap: 8px;
  }

  .catalog__header-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .shop__header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }

  .product__showing--count {
    margin: 0;
    text-align: left;
  }

  .catalog-cart__footer {
    flex-direction: column;
  }
}

/* ---------- Admin Panel Styles ---------- */
.admin__layout {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
  font-family: 'Inter', sans-serif;
}

/* -- Sidebar -- */
.admin__sidebar {
  width: 260px;
  min-width: 260px;
  background: #1a1a2e;
  color: #cdd5e0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s;
}
.admin__sidebar--logo {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin__sidebar--logo a { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.admin__sidebar--logo .logo__text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.admin__sidebar--logo .logo__sub { font-size: 0.7rem; color: #aaa; letter-spacing: 1px; text-transform: uppercase; }
.admin__sidebar--logo .logo__icon {
  width: 38px;
  height: 38px;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin__nav {
  flex: 1;
  padding: 16px 0;
}
.admin__nav--label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6b7280;
  padding: 12px 24px 6px;
}
.admin__nav--item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
}
.admin__nav--item:hover { color: #fff; background: rgba(255,255,255,0.05); border-left-color: rgba(232,24,31,0.4); }
.admin__nav--item.active { color: #fff; background: rgba(232,24,31,0.15); border-left-color: var(--primary-color); }
.admin__nav--item svg { flex-shrink: 0; }

/* -- Main content area -- */
.admin__main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* -- Top bar -- */
.admin__topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}
.admin__topbar--toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #374151;
}
.admin__topbar--title { font-size: 1.1rem; font-weight: 600; color: #111827; }
.admin__topbar--right { display: flex; align-items: center; gap: 12px; }
.admin__topbar--user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}
.admin__topbar--avatar {
  width: 34px;
  height: 34px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* -- Content area -- */
.admin__content { padding: 28px; flex: 1; }
.admin__section { display: none; }
.admin__section.active { display: block; }

/* -- Stats Cards -- */
.admin__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.admin__stat--card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin__stat--icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin__stat--icon.red { background: rgba(232,24,31,0.1); color: var(--primary-color); }
.admin__stat--icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.admin__stat--icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.admin__stat--icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.admin__stat--value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1.2; }
.admin__stat--label { font-size: 0.8rem; color: #6b7280; }

/* -- Card / Panel -- */
.admin__card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.admin__card--header {
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin__card--header h2 { font-size: 1rem; font-weight: 600; color: #111827; margin: 0; }
.admin__card--toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin__search {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.admin__search input {
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 0.875rem;
  width: 220px;
}
.admin__search button {
  border: none;
  background: #f3f4f6;
  padding: 7px 11px;
  cursor: pointer;
  color: #6b7280;
  border-left: 1px solid #d1d5db;
}
.admin__filter--select {
  padding: 7px 12px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.875rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
}
.admin__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.admin__btn.primary { background: var(--primary-color); color: #fff; }
.admin__btn.primary:hover { background: #c0141a; }
.admin__btn.secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.admin__btn.secondary:hover { background: #e5e7eb; }
.admin__btn.danger { background: #fee2e2; color: #dc2626; }
.admin__btn.danger:hover { background: #fecaca; }
.admin__btn.sm { padding: 5px 10px; font-size: 0.8rem; }
.admin__btn.icon { padding: 6px 8px; }

/* -- Table -- */
.admin__table--wrapper { overflow-x: auto; }
.admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin__table thead th {
  background: #f9fafb;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.admin__table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  color: #374151;
}
.admin__table tbody tr:hover { background: #f9fafb; }
.admin__table .product__img--thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
}
.admin__table .product__name { font-weight: 500; color: #111827; }
.admin__table .partnum__badge {
  display: inline-block;
  background: #f0f0f0;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 3px;
  color: #555;
  font-weight: 600;
}
.admin__table .stock__badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.admin__table .stock__badge.in { background: #d1fae5; color: #065f46; }
.admin__table .stock__badge.low { background: #fef3c7; color: #92400e; }
.admin__table .stock__badge.out { background: #fee2e2; color: #991b1b; }
.admin__table .actions__cell { display: flex; gap: 6px; align-items: center; }

/* -- Checkbox in table header -- */
.admin__table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary-color); }

/* -- Pagination -- */
.admin__pagination {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
}
.admin__pagination--pages { display: flex; gap: 4px; }
.admin__pagination--page {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  color: #374151;
}
.admin__pagination--page.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.admin__pagination--page:hover:not(.active) { background: #f3f4f6; }

/* -- Modal -- */
.admin__modal--overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin__modal--overlay.active { display: flex; }
.admin__modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.admin__modal--header {
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.admin__modal--header h3 { font-size: 1rem; font-weight: 600; color: #111827; margin: 0; }
.admin__modal--close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.admin__modal--close:hover { color: #111827; }
.admin__modal--tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  background: #f9fafb;
  flex-shrink: 0;
}
.admin__modal--tab {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.admin__modal--tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.admin__modal--body { padding: 24px; overflow-y: auto; flex: 1; }
.admin__modal--footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  background: #f9fafb;
}
.admin__modal--tab-pane { display: none; }
.admin__modal--tab-pane.active { display: block; }

/* -- Form elements inside modal -- */
.admin__form--group {
  margin-bottom: 16px;
}
.admin__form--label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.admin__form--label .required { color: var(--primary-color); }
.admin__form--control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.875rem;
  color: #111827;
  transition: border-color 0.15s;
}
.admin__form--control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(232,24,31,0.1); }
.admin__form--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin__form--row.cols3 { grid-template-columns: 1fr 1fr 1fr; }

/* -- Image upload zone -- */
.admin__upload--zone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.admin__upload--zone:hover { border-color: var(--primary-color); color: var(--primary-color); background: #fff5f5; }
.admin__upload--zone svg { margin-bottom: 8px; }
.admin__upload--zone p { margin: 0; font-size: 0.875rem; }
.admin__upload--preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.admin__upload--preview img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* -- Compatibility table (admin modal) -- */
.compat__table--wrapper { overflow-x: auto; }
.compat__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.compat__table thead th {
  background: #f3f4f6;
  padding: 8px 10px;
  font-weight: 600;
  color: #374151;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.compat__table tbody td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; }
.compat__table input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  font-size: 0.8rem;
}
.compat__table .delete__row--btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 3px;
}
.compat__add--row {
  margin-top: 10px;
}

/* -- Category / Brand simple table -- */
.admin__simple--table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin__simple--table th {
  background: #f9fafb;
  padding: 10px 14px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.admin__simple--table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 992px) {
  .admin__sidebar {
    transform: translateX(-100%);
  }
  .admin__sidebar.open {
    transform: translateX(0);
  }
  .admin__main {
    margin-left: 0;
  }
  .admin__topbar--toggle { display: flex; }
  .admin__stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .admin__stats { grid-template-columns: 1fr; }
  .admin__form--row { grid-template-columns: 1fr; }
  .admin__form--row.cols3 { grid-template-columns: 1fr; }
  .admin__card--header { flex-direction: column; align-items: stretch; }
  .admin__card--toolbar { flex-direction: column; }
  .admin__search input { width: 100%; }
}
