/* =========================================================
   ECONOM ZHASA - APP CSS
   Центральный файл стилей проекта
   ========================================================= */

/* =========================
   1. DESIGN TOKENS
   ========================= */
:root {
  --ez-bg: #f6f8fb;
  --ez-surface: #ffffff;
  --ez-surface-soft: #f9fafb;
  --ez-surface-muted: #f2f4f7;

  --ez-text: #111827;
  --ez-text-soft: #374151;
  --ez-text-muted: #6b7280;
  --ez-text-faint: #9ca3af;

  --ez-border: #e5e7eb;
  --ez-border-strong: #d1d5db;

  --ez-primary: #1d4ed8;
  --ez-primary-hover: #1e40af;
  --ez-primary-soft: #eff6ff;

  --ez-success: #16a34a;
  --ez-success-hover: #15803d;

  --ez-danger: #dc2626;
  --ez-danger-hover: #b91c1c;

  --ez-warning: #f59e0b;
  --ez-warning-hover: #d97706;

  --ez-info: #0ea5e9;
  --ez-dark: #0f172a;

  --ez-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --ez-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ez-shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);

  --ez-radius-sm: 10px;
  --ez-radius-md: 14px;
  --ez-radius-lg: 18px;
  --ez-radius-xl: 24px;

  --ez-container: 1320px;
  --ez-header-height: 84px;
}

/* =========================
   2. BASE
   ========================= */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--ez-bg);
  color: var(--ez-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  min-height: 60vh;
}

/* =========================
   3. BOOTSTRAP SAFE OVERRIDES
   ========================= */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: var(--ez-container);
}

.bg-white {
  background-color: var(--ez-surface) !important;
}

.text-muted {
  color: var(--ez-text-muted) !important;
}

.border,
.border-top,
.border-bottom,
.border-start,
.border-end {
  border-color: var(--ez-border) !important;
}

.shadow-sm {
  box-shadow: var(--ez-shadow-sm) !important;
}

/* =========================
   4. TYPOGRAPHY
   ========================= */
.page-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ez-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-title {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--ez-text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.ez-muted {
  color: var(--ez-text-muted);
}

.ez-small {
  font-size: 0.92rem;
}

/* =========================
   5. LAYOUT HELPERS
   ========================= */
.page-shell {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.page-section {
  margin-bottom: 2rem;
}

.surface {
  background: var(--ez-surface);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius-lg);
  box-shadow: var(--ez-shadow-sm);
}

.surface-soft {
  background: var(--ez-surface-soft);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius-lg);
}

.ez-card {
  background: var(--ez-surface);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius-lg);
  box-shadow: var(--ez-shadow-sm);
}

.ez-card-body {
  padding: 1.1rem;
}

/* =========================
   HEADER / NAVBAR
   ========================= */
.site-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.site-header .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 800;
  color: var(--ez-text);
}

.site-brand:hover {
  color: var(--ez-text);
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.site-brand-text {
  color: var(--ez-primary);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-header-actions .btn,
.site-header-actions a,
.site-header-actions button {
  min-height: 38px;
  border-radius: 10px;
}

/* tablet */
@media (max-width: 991.98px) {
  .brand-logo {
    height: 50px;
  }

  .site-brand-text {
    font-size: 1.12rem;
  }
}

/* mobile */
@media (max-width: 767.98px) {
  .site-header .container {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .site-brand {
    justify-content: center;
    width: 100%;
  }

  .brand-logo {
    height: 40px;
  }

  .site-brand-text {
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }

  .site-header-actions {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .site-header-actions .btn,
  .site-header-actions a,
  .site-header-actions button {
    min-height: 36px;
    padding: 0.42rem 0.7rem;
    font-size: 0.84rem;
  }
}

/* very small mobile */
@media (max-width: 420px) {
  .brand-logo {
    height: 34px;
  }

  .site-brand {
    gap: 0.45rem;
  }

  .site-brand-text {
    font-size: 0.94rem;
  }

  .site-header-actions {
    gap: 0.4rem;
  }

  .site-header-actions .btn,
  .site-header-actions a,
  .site-header-actions button {
    font-size: 0.78rem;
    padding: 0.38rem 0.58rem;
    min-height: 34px;
  }
}
/* =========================
   7. BUTTONS
   ========================= */
.btn {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.18s ease;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ez-primary);
  border-color: var(--ez-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ez-primary-hover);
  border-color: var(--ez-primary-hover);
}

.btn-outline-primary {
  color: var(--ez-primary);
  border-color: var(--ez-primary);
}

.btn-outline-primary:hover {
  background: var(--ez-primary);
  border-color: var(--ez-primary);
}

.btn-outline-secondary {
  color: var(--ez-text-soft);
  border-color: var(--ez-border-strong);
  background: var(--ez-surface);
}

.btn-outline-secondary:hover {
  color: var(--ez-text);
  border-color: var(--ez-border-strong);
  background: var(--ez-surface-muted);
}

.btn-outline-danger {
  border-color: #fecaca;
  color: var(--ez-danger);
}

.btn-outline-danger:hover {
  background: var(--ez-danger);
  border-color: var(--ez-danger);
}

.btn-secondary {
  background: #64748b;
  border-color: #64748b;
}

.btn-success {
  background: var(--ez-success);
  border-color: var(--ez-success);
}

.btn-warning {
  background: var(--ez-warning);
  border-color: var(--ez-warning);
}

.btn-danger {
  background: var(--ez-danger);
  border-color: var(--ez-danger);
}

.btn-sm {
  border-radius: 10px;
}

/* Кастомные кнопки проекта */
.btn-ez {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-ez-primary {
  background: var(--ez-primary);
  color: #fff;
}

.btn-ez-primary:hover {
  background: var(--ez-primary-hover);
  color: #fff;
}

.btn-ez-soft {
  background: var(--ez-primary-soft);
  color: var(--ez-primary);
  border-color: #dbeafe;
}

.btn-ez-soft:hover {
  background: #dbeafe;
  color: var(--ez-primary-hover);
}

.btn-ez-danger {
  background: #fef2f2;
  color: var(--ez-danger);
  border-color: #fecaca;
}

.btn-ez-danger:hover {
  background: #fee2e2;
  color: var(--ez-danger-hover);
}

/* =========================
   8. FORMS
   ========================= */
.form-control,
.form-select,
textarea.form-control {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--ez-border-strong);
  background: #fff;
  color: var(--ez-text);
  box-shadow: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.12);
}

.form-label {
  font-weight: 600;
  color: var(--ez-text-soft);
  margin-bottom: 0.45rem;
}

.form-text {
  color: var(--ez-text-muted);
}

.input-group-text {
  border-radius: 12px;
  border-color: var(--ez-border-strong);
  background: var(--ez-surface-muted);
}

/* =========================
   9. ALERTS / BADGES / TOASTS
   ========================= */
.alert {
  border: 1px solid var(--ez-border);
  border-radius: 14px;
  box-shadow: var(--ez-shadow-sm);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
}

.toast-container {
  position: fixed;
  top: 92px;
  right: 16px;
  z-index: 1080;
}

/* =========================
   10. PRODUCT / CATALOG
   ========================= */
.catalog-hero {
  padding: 1.25rem;
  border-radius: var(--ez-radius-xl);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  box-shadow: var(--ez-shadow-sm);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-panel {
  position: relative;
}

#suggest-box {
  border: 1px solid var(--ez-border);
  border-radius: 14px;
  box-shadow: var(--ez-shadow-md);
  padding: 0.35rem;
  background: #fff;
}

#suggest-box.show {
  display: block;
}

#suggest-box li {
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
}

#suggest-box li:hover,
#suggest-box li.active {
  background: var(--ez-surface-muted);
}

.categories-dropdown .btn {
  min-height: 48px;
  border-radius: 14px;
  background: #fff;
}

.categories-dropdown .list-group {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
}

.categories-dropdown .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--ez-border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.categories-dropdown .list-group-item:last-child {
  border-bottom: 0;
}

.categories-dropdown .list-group-item:hover,
.categories-dropdown .list-group-item.active {
  background: var(--ez-primary-soft);
  color: var(--ez-primary-hover);
  font-weight: 600;
}
/* =========================
   IMPROVED PRODUCT CARDS
   ========================= */
.card {
  border: 1px solid #e7ebf0;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  border-color: #dbe3ee;
}

.product-img-wrapper {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 0.6rem;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.card:hover .product-img-wrapper img {
  transform: scale(1.03);
}

.card-body {
  padding: 1rem 1rem 1.05rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #edf2f7;
}

.variant-item:first-child {
  padding-top: 0.25rem;
}

.variant-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.variant-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ez-text-soft);
}

.variant-name strong,
.variant-price {
  color: var(--ez-primary);
  font-weight: 700;
}

.cart-set-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.cart-set-form .btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.qty-input {
  width: 58px !important;
  min-width: 58px;
  height: 34px;
  padding: 0.25rem 0.35rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.variant-stock {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ez-text-muted);
  font-size: 0.76rem;
  border: 1px solid #e5e7eb;
}

.card-text {
  font-size: 0.84rem;
  color: var(--ez-text-muted) !important;
  padding-top: 0.8rem;
  margin-top: 0.8rem !important;
  border-top: 1px solid #eef2f7;
}

.card-text strong {
  color: var(--ez-text);
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .card {
    border-radius: 18px;
  }

  .product-img-wrapper {
    border-radius: 16px 16px 0 0;
    padding: 0.45rem;
  }

  .card-body {
    padding: 0.8rem;
  }

  .card-title {
    font-size: 0.94rem;
    min-height: 2.5em;
  }

  .variant-name {
    font-size: 0.86rem;
  }

  .cart-set-form {
    gap: 0.35rem;
  }

  .cart-set-form .btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .qty-input {
    width: 52px !important;
    min-width: 52px;
    height: 32px;
    font-size: 0.85rem;
  }
}

.pagination {
  margin-top: 1.5rem;
  gap: 0.25rem;
}

.pagination .page-link {
  color: var(--ez-primary);
  border: 1px solid var(--ez-border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  background: #fff;
}

.pagination .page-link:hover {
  background: var(--ez-surface-muted);
}

.pagination .page-item.active .page-link {
  background: var(--ez-primary);
  border-color: var(--ez-primary);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: var(--ez-text-faint);
  background: #f8fafc;
}

/* =========================
  11 PRODUCT DETAIL PAGE
   ========================= */
.product-detail-media,
.product-detail-info {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.product-detail-media {
  padding: 1rem;
}

.product-detail-info {
  padding: 1.4rem;
}

.product-carousel {
  border-radius: 18px;
  overflow: hidden;
}

.product-main-image-wrap {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 18px;
  padding: 1rem;
}

.product-main-image {
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.product-image-placeholder {
  color: var(--ez-text-muted);
  font-size: 1rem;
}

.product-sku {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.product-price {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 800;
  color: var(--ez-primary);
  line-height: 1.1;
}

.product-price-muted {
  color: var(--ez-text-muted);
}

.product-meta-card {
  padding: 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--ez-border);
  background: #fbfdff;
}

.product-meta-label {
  font-size: 0.82rem;
  color: var(--ez-text-muted);
  margin-bottom: 0.25rem;
}

.product-meta-value {
  color: var(--ez-text);
  font-size: 0.98rem;
}

.product-description-block {
  padding: 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--ez-border);
  background: #fff;
}

.product-description-text {
  color: var(--ez-text-soft);
  line-height: 1.7;
  white-space: pre-line;
}

.product-variants-block {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--ez-border);
  background: #fff;
}

.product-variants-list {
  display: grid;
  gap: 0.75rem;
}

.product-variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e9eef5;
  border-radius: 16px;
  background: #f9fbfd;
}

.product-variant-main {
  min-width: 0;
}

.product-variant-name {
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.2rem;
}

.product-variant-stock {
  font-size: 0.84rem;
  color: var(--ez-text-muted);
}

.product-variant-price {
  white-space: nowrap;
  font-weight: 800;
  color: var(--ez-primary);
  font-size: 1rem;
}

.product-manager-btn {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--ez-shadow-sm);
}

.product-video-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--ez-shadow-sm);
}

.product-video-card iframe {
  border: 0;
}

.product-video-title {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--ez-text);
  background: #fbfdff;
  border-top: 1px solid var(--ez-border);
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(17, 24, 39, 0.45);
  border-radius: 999px;
  padding: 1.2rem;
  background-size: 55% 55%;
}

@media (max-width: 991.98px) {
  .product-main-image-wrap {
    min-height: 360px;
  }

  .product-main-image {
    max-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .product-detail-media,
  .product-detail-info {
    border-radius: 18px;
  }

  .product-detail-media,
  .product-detail-info {
    padding: 1rem;
  }

  .product-main-image-wrap {
    min-height: 280px;
    padding: 0.75rem;
    border-radius: 14px;
  }

  .product-main-image {
    max-height: 240px;
  }

  .product-variant-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-variant-price {
    font-size: 0.96rem;
  }
}
/* =========================
   11. PRODUCT buy PAGE
   ========================= */
   .product-buy-box {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--ez-border);
  background: #fff;
}

.product-buy-form .form-select,
.product-buy-form .form-control {
  border-radius: 12px;
}

.product-buy-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-buy-meta-item {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
}

.product-buy-meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  margin-bottom: 0.2rem;
}

.product-buy-meta-value {
  display: block;
  font-weight: 700;
  color: var(--ez-text);
}

.product-qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-qty-control .btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-qty-control .form-control {
  max-width: 100px;
  height: 42px;
  font-weight: 700;
}

.product-buy-actions .btn {
  min-height: 50px;
  border-radius: 14px;
  font-weight: 700;
}

.product-buy-note {
  font-size: 0.88rem;
  color: var(--ez-text-muted);
  line-height: 1.5;
}

.product-buy-note.is-success {
  color: var(--ez-success);
}

.product-buy-note.is-error {
  color: var(--ez-danger);
}

@media (max-width: 767.98px) {
  .product-buy-meta {
    grid-template-columns: 1fr;
  }

  .product-qty-control .form-control {
    max-width: 100%;
  }
}

.variant-dropdown {
  position: relative;
}

.variant-dropdown-trigger {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--ez-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ez-shadow-sm);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.variant-dropdown-trigger:hover {
  border-color: #cbd5e1;
}

.variant-dropdown.open .variant-dropdown-trigger {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.22rem rgba(29, 78, 216, 0.12);
}

.variant-dropdown-trigger-text {
  min-width: 0;
  color: var(--ez-text);
  font-weight: 500;
  line-height: 1.4;
}

.variant-dropdown-caret {
  flex-shrink: 0;
  color: var(--ez-text-muted);
  font-size: 0.82rem;
  transition: transform 0.18s ease;
}

.variant-dropdown.open .variant-dropdown-caret {
  transform: rotate(180deg);
}

.variant-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-md);
  padding: 0.4rem;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}

.variant-dropdown.open .variant-dropdown-menu {
  display: block;
}

.variant-dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.18s ease;
}

.variant-dropdown-item:hover {
  background: var(--ez-surface-muted);
}

.variant-dropdown-item.active {
  background: var(--ez-primary-soft);
}

.variant-dropdown-item-main {
  color: var(--ez-text);
  font-weight: 600;
  line-height: 1.35;
}

.variant-dropdown-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.variant-dropdown-item-price {
  color: var(--ez-primary);
  font-weight: 700;
}

.variant-dropdown-item-stock {
  color: var(--ez-text-muted);
}

@media (max-width: 767.98px) {
  .variant-dropdown-trigger {
    min-height: 50px;
    padding: 0.8rem 0.9rem;
  }

  .variant-dropdown-trigger-text {
    font-size: 0.94rem;
  }

  .variant-dropdown-item {
    padding: 0.75rem 0.8rem;
  }

  .variant-dropdown-item-meta {
    gap: 0.5rem;
    font-size: 0.8rem;
  }
}
/* =========================
   11. PRODUCT video
   ========================= */

   .product-video-section-head {
  margin-bottom: 1.25rem;
}

.product-video-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--ez-shadow-sm);
  max-width: 100%;
}

.product-video-frame {
  background: #f8fafc;
}

.product-video-card iframe {
  border: 0;
  display: block;
}

.product-video-title {
  padding: 0.95rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--ez-text);
  background: #fbfdff;
  border-top: 1px solid var(--ez-border);
}

@media (min-width: 1200px) {
  .product-video-card {
    max-width: 920px;
    margin: 0 auto;
  }
}
/* =========================
   12. CART / CHECKOUT
   ========================= */
/* =========================
   CART PAGE
   ========================= */
.cart-summary-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 600;
  color: var(--ez-text);
}

.cart-empty-state {
  max-width: 560px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.cart-empty-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cart-empty-text {
  color: var(--ez-text-muted);
  margin-bottom: 1.25rem;
}

.cart-table-shell {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.cart-product-name {
  font-weight: 700;
  color: var(--ez-text);
  line-height: 1.35;
}

.cart-product-variant {
  font-size: 0.88rem;
  color: var(--ez-text-muted);
  margin-top: 0.15rem;
}

.cart-unit-price,
.cart-line-total {
  white-space: nowrap;
}

.cart-qty-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-qty-input {
  width: 78px;
  min-width: 78px;
  text-align: center;
  font-weight: 600;
}

.cart-stock-note {
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  white-space: nowrap;
}

.cart-remove-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-summary-box {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--ez-shadow-sm);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef2f7;
  color: var(--ez-text-soft);
}

.cart-summary-row:last-child {
  border-bottom: 0;
}

.cart-summary-row-total {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ez-text);
  padding-top: 1rem;
}

.cart-mobile-list {
  display: grid;
  gap: 1rem;
}

.cart-mobile-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--ez-shadow-sm);
}

.cart-mobile-head {
  margin-bottom: 0.85rem;
}

.cart-mobile-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cart-mobile-price-item {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--ez-border);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-mobile-label {
  font-size: 0.78rem;
  color: var(--ez-text-muted);
}

.cart-mobile-qty-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 767.98px) {
  .cart-empty-state {
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }

  .cart-summary-box,
  .checkout-form-wrap {
    border-radius: 18px;
  }

  .cart-mobile-prices {
    grid-template-columns: 1fr;
  }

  .cart-mobile-qty-form {
    flex-wrap: wrap;
  }

  .cart-qty-input {
    width: 100%;
    min-width: 100%;
  }
}

/* =========================
   INVOICE SUCCESS PAGE
   ========================= */
.invoice-success-page {
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.invoice-success-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 28px;
  box-shadow: var(--ez-shadow-md);
  padding: 2rem;
  text-align: center;
}

.invoice-success-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  font-size: 2rem;
}

.invoice-success-subtitle {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: var(--ez-text-muted);
  line-height: 1.6;
}

.invoice-success-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.invoice-success-meta-item {
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  padding: 1rem;
}

.invoice-success-meta-label {
  display: block;
  font-size: 0.82rem;
  color: var(--ez-text-muted);
  margin-bottom: 0.25rem;
}

.invoice-success-meta-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ez-text);
}

.invoice-success-link-block {
  text-align: left;
  margin-bottom: 1.5rem;
}

.invoice-success-link-group .form-control {
  font-size: 0.95rem;
}

.invoice-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.invoice-success-actions .btn {
  min-height: 46px;
}

.invoice-success-footer {
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
}

@media (max-width: 767.98px) {
  .invoice-success-page {
    min-height: auto;
    padding: 0.5rem 0 1.5rem;
  }

  .invoice-success-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .invoice-success-meta {
    grid-template-columns: 1fr;
  }

  .invoice-success-actions {
    flex-direction: column;
  }

  .invoice-success-actions .btn,
  .invoice-success-footer .btn {
    width: 100%;
  }

  .invoice-success-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }
}

/* =========================
   PUBLIC INVOICE PAGE
   ========================= */
.invoice-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.invoice-section-card,
.invoice-side-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.invoice-meta-item {
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.invoice-meta-item-full {
  grid-column: 1 / -1;
}

.invoice-meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  margin-bottom: 0.25rem;
}

.invoice-meta-value {
  display: block;
  font-weight: 600;
  color: var(--ez-text);
  line-height: 1.5;
}

.invoice-total-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--ez-primary);
  border: 1px solid #dbeafe;
  font-weight: 700;
}

.invoice-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ez-border);
}

.invoice-table {
  margin-bottom: 0;
}

.invoice-product-name {
  font-weight: 700;
  color: var(--ez-text);
  line-height: 1.35;
}

.invoice-product-sub {
  font-size: 0.86rem;
  color: var(--ez-text-muted);
  margin-top: 0.15rem;
}

.invoice-image-cell {
  width: 84px;
}

.invoice-item-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  padding: 0.2rem;
}

.invoice-change-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.invoice-old-value {
  color: var(--ez-text-faint);
  text-decoration: line-through;
}

.invoice-arrow {
  color: var(--ez-text-muted);
}

.invoice-new-value,
.invoice-stable-value {
  font-weight: 700;
  color: var(--ez-text);
}

.invoice-upload-form .input-group .btn {
  min-width: 120px;
}

.invoice-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ez-text);
}

.invoice-receipts-list {
  display: grid;
  gap: 0.75rem;
}

.invoice-receipt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--ez-border);
  background: #fbfdff;
}

.invoice-receipt-link {
  font-weight: 600;
  color: var(--ez-primary);
}

.invoice-receipt-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.invoice-receipt-amount {
  font-weight: 700;
  color: var(--ez-success);
}

.invoice-action-list {
  display: grid;
  gap: 0.75rem;
}

.invoice-link-preview {
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
}

.invoice-link-box {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-soft);
  font-size: 0.9rem;
  word-break: break-all;
}

@media (max-width: 991.98px) {
  .invoice-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .invoice-public-actions {
    width: 100%;
  }

  .invoice-public-actions .btn {
    flex: 1 1 auto;
  }

  .invoice-section-card,
  .invoice-side-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .invoice-receipt-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-receipt-right {
    width: 100%;
    justify-content: space-between;
  }
}



/* =========================
   14 ADMIN DASHBOARD
   ========================= */
.admin-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 600;
  color: var(--ez-text);
  text-transform: capitalize;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-dashboard-item {
  min-width: 0;
}

.admin-panel-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-panel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ez-shadow-md);
  border-color: #d8e1ec;
}

.admin-panel-card-muted {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.admin-panel-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.admin-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ez-text);
}

.admin-panel-text {
  color: var(--ez-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

@media (max-width: 1199.98px) {
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-panel-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .admin-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
  }

  .admin-panel-title {
    font-size: 1.05rem;
  }
}
/* =========================
   LIVE ORDERS PAGE
   ========================= */
.live-orders-toolbar-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1rem 1.1rem;
}

.live-orders-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.live-orders-filter {
  min-width: 220px;
}

.live-orders-select {
  min-width: 220px;
}

.live-orders-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-orders-updated-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.live-orders-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.live-order-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.live-order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ez-shadow-md);
  border-color: #d9e2ec;
}

.live-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.live-order-id {
  font-weight: 800;
  color: var(--ez-text);
  font-size: 1rem;
}

.live-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.live-order-meta-item,
.live-order-comment {
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.live-order-meta-label {
  font-size: 0.78rem;
  color: var(--ez-text-muted);
  margin-bottom: 0.2rem;
}

.live-order-meta-value {
  color: var(--ez-text);
  font-weight: 500;
  line-height: 1.45;
}

.live-order-comment {
  margin-bottom: 0.75rem;
}

.live-order-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.live-order-time {
  color: var(--ez-text-soft);
  font-variant-numeric: tabular-nums;
}

.live-order-amount {
  font-weight: 800;
  color: var(--ez-text);
  white-space: nowrap;
}

.live-order-actions {
  display: flex;
  gap: 0.75rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid transparent;
  text-transform: none;
}

.live-badge.new {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

.live-badge.paid {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}
.live-badge.paid {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.live-badge.shipped {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.live-badge.delivered {
  background: #ecfdf5;
  color: #065f46;
  border-color: #bbf7d0;
}

.live-badge.canceled {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.live-orders-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 22px;
  box-shadow: var(--ez-shadow-sm);
  padding: 2rem 1rem;
}

.live-orders-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.live-orders-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.25rem;
}

.live-orders-empty-text {
  color: var(--ez-text-muted);
}

.live-orders-skeleton {
  border-radius: 22px;
  background: linear-gradient(90deg, #f6f7f9, #eef1f5, #f6f7f9);
  background-size: 200% 100%;
  animation: ez-shimmer 1.2s infinite;
  height: 190px;
  border: 1px solid var(--ez-border);
}

@keyframes ez-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (min-width: 700px) {
  .live-orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .live-orders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .live-orders-toolbar-card,
  .live-order-card,
  .live-orders-empty {
    border-radius: 18px;
  }

  .live-orders-toolbar {
    align-items: stretch;
  }

  .live-orders-filter,
  .live-orders-select {
    min-width: 100%;
    width: 100%;
  }

  .live-orders-toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .live-orders-toolbar-actions .btn,
  .live-orders-updated-pill {
    width: 100%;
    justify-content: center;
  }

  .live-order-meta-grid {
    grid-template-columns: 1fr;
  }

  .live-order-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
/* =========================
   CUSTOM FILTER DROPDOWN
   ========================= */
.filter-dropdown {
  position: relative;
  width: 100%;
  min-width: 220px;
}

.filter-dropdown-trigger {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--ez-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ez-shadow-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ez-text);
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-dropdown-trigger:hover {
  border-color: #cbd5e1;
}

.filter-dropdown.open .filter-dropdown-trigger {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.22rem rgba(29, 78, 216, 0.12);
}

.filter-dropdown-caret {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  transition: transform 0.18s ease;
}

.filter-dropdown.open .filter-dropdown-caret {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-md);
  padding: 0.4rem;
  display: none;
  overflow: hidden;
}

.filter-dropdown.open .filter-dropdown-menu {
  display: block;
}

.filter-dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  text-align: left;
  color: var(--ez-text);
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.filter-dropdown-item:hover {
  background: var(--ez-surface-muted);
}

.filter-dropdown-item.active {
  background: var(--ez-primary-soft);
  color: var(--ez-primary);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .filter-dropdown {
    min-width: 100%;
  }

  .filter-dropdown-trigger {
    min-height: 48px;
    padding: 0.8rem 0.9rem;
  }
}

/* =========================
   ORDER STATUS BAR
   ========================= */
.order-status-bar {
  position: sticky;
  z-index: 1029;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ez-border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.order-status-bar__inner {
  max-width: var(--ez-container);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.order-status-chip {
  min-height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.order-status-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--ez-shadow-md);
  text-decoration: none;
}

.order-status-chip__label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.order-status-chip__count {
  min-width: 24px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #6b7280;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.order-status-chip__count.is-updated {
  animation: order-status-bounce 0.45s ease;
  background: #dc2626;
}

.order-status-chip.is-new {
  border-color: #bfdbfe;
}
.order-status-chip.is-new .order-status-chip__label {
  color: #2563eb;
}

.order-status-chip.is-paid {
  border-color: #bbf7d0;
}
.order-status-chip.is-paid .order-status-chip__label {
  color: #15803d;
}

.order-status-chip.is-packed {
  border-color: #fde68a;
}
.order-status-chip.is-packed .order-status-chip__label {
  color: #ca8a04;
}

.order-status-chip.is-shipped {
  border-color: #a5f3fc;
}
.order-status-chip.is-shipped .order-status-chip__label {
  color: #0891b2;
}

@keyframes order-status-bounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@media (max-width: 767.98px) {
  .order-status-bar__inner {
    padding: 0.65rem 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .order-status-chip {
    min-height: 54px;
    border-radius: 14px;
    padding: 0.5rem 0.45rem;
  }

  .order-status-chip__label {
    font-size: 0.78rem;
  }

  .order-status-chip__count {
    min-width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .order-status-bar__inner {
    padding: 0.55rem 0.65rem;
    gap: 0.45rem;
  }

  .order-status-chip {
    min-height: 50px;
    padding: 0.45rem 0.35rem;
  }

  .order-status-chip__label {
    font-size: 0.74rem;
  }
}
/* =========================
   ORDER STATUS BAR
   ========================= */
.order-status-bar {
  position: sticky;
  z-index: 1029;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.order-status-bar__inner {
  max-width: var(--ez-container);
  margin: 0 auto;
  padding: 12px 14px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.order-status-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 14px;

  font-weight: 600;
  font-size: 14px;

  text-decoration: none;
  transition: all .15s ease;

  background: #fff;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
}

.order-status-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  text-decoration: none;
}

.order-status-chip__label {
  line-height: 1.1;
  font-weight: 700;
}

.order-status-chip__count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #6b7280;
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.order-status-chip__count.is-updated {
  animation: order-status-bounce 0.45s ease;
  background: #dc2626;
}

.order-status-chip.is-new {
  border-color: #bfdbfe;
}
.order-status-chip.is-new .order-status-chip__label {
  color: #2563eb;
}

.order-status-chip.is-paid {
  border-color: #bbf7d0;
}
.order-status-chip.is-paid .order-status-chip__label {
  color: #15803d;
}

.order-status-chip.is-packed {
  border-color: #fde68a;
}
.order-status-chip.is-packed .order-status-chip__label {
  color: #ca8a04;
}

.order-status-chip.is-shipped {
  border-color: #a5f3fc;
}
.order-status-chip.is-shipped .order-status-chip__label {
  color: #0891b2;
}

@keyframes order-status-bounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* mobile / tablet */
@media (max-width: 767.98px) {
  .order-status-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .order-status-chip {
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 12px;
  }

  .order-status-chip__count {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
    padding: 0 7px;
  }
}
/* =========================
   filter dropdown
   ========================= */

   .filter-dropdown {
  position: relative;
  width: 100%;
  min-width: 220px;
}

.filter-dropdown-trigger {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--ez-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ez-shadow-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ez-text);
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-dropdown-trigger:hover {
  border-color: #cbd5e1;
}

.filter-dropdown.open .filter-dropdown-trigger {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.22rem rgba(29, 78, 216, 0.12);
}

.filter-dropdown-caret {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  transition: transform 0.18s ease;
}

.filter-dropdown.open .filter-dropdown-caret {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-md);
  padding: 0.4rem;
  display: none;
  overflow: hidden;
}

.filter-dropdown.open .filter-dropdown-menu {
  display: block;
}

.filter-dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  text-align: left;
  color: var(--ez-text);
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.filter-dropdown-item:hover {
  background: var(--ez-surface-muted);
}

.filter-dropdown-item.active {
  background: var(--ez-primary-soft);
  color: var(--ez-primary);
  font-weight: 700;
}

.admin-status-dropdown {
  width: 100%;
}

.admin-status-dropdown .filter-dropdown-trigger {
  min-height: 52px;
  font-weight: 600;
}

.admin-status-dropdown .filter-dropdown-menu {
  max-height: 260px;
  overflow-y: auto;
}

.admin-status-dropdown .filter-dropdown-item {
  font-size: 0.96rem;
}

/* =========================
   ADMIN CATEGORIES PAGE
   ========================= */
.categories-admin-page {
  max-width: 1000px;
}

.categories-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.categories-admin-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.categories-admin-subtitle {
  color: var(--ez-text-muted);
  max-width: 700px;
  line-height: 1.55;
}

.categories-admin-count {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.categories-admin-toolbar-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
}

.categories-admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.categories-admin-search {
  flex: 1 1 420px;
  min-width: 280px;
}

.categories-admin-search .form-label {
  margin-bottom: 0.55rem;
}

.categories-admin-search .form-control {
  min-height: 52px;
  font-size: 1rem;
}

.categories-admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.categories-admin-toolbar-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.categories-admin-table-shell {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.categories-admin-table {
  margin-bottom: 0;
}

.categories-admin-table thead th {
  background: #f8fafc;
  color: var(--ez-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ez-border);
  padding: 1.1rem 1rem;
  white-space: nowrap;
}

.categories-admin-table tbody td {
  padding: 1.15rem 1rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.categories-admin-table tbody tr:hover {
  background: #fbfdff;
}

.categories-admin-id {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.76rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-soft);
  font-weight: 700;
  font-size: 0.84rem;
}

.categories-admin-name {
  color: var(--ez-text);
  font-weight: 700;
  line-height: 1.4;
}

.categories-admin-slug {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  word-break: break-word;
  max-width: 100%;
}

.categories-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.categories-admin-actions .btn {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.categories-admin-empty-row {
  text-align: center;
  padding: 2.4rem 1rem;
}

.categories-admin-empty-icon {
  font-size: 1.8rem;
  color: var(--ez-text-faint);
}

.categories-admin-empty-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.3rem;
}

.categories-admin-empty-text {
  color: var(--ez-text-muted);
  line-height: 1.6;
}

.categories-admin-mobile-list {
  display: grid;
  gap: 0.9rem;
}

.categories-admin-mobile-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-sm);
  padding: 0.9rem;
}

.categories-admin-mobile-top {
  margin-bottom: 0.8rem;
}

.categories-admin-mobile-id {
  font-size: 0.82rem;
  color: var(--ez-text-muted);
  margin-top: 0.2rem;
}

.categories-admin-mobile-meta-item {
  padding: 0.78rem 0.82rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.categories-admin-mobile-label {
  font-size: 0.76rem;
  color: var(--ez-text-muted);
}

.categories-admin-mobile-empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.5rem 1rem;
}

@media (max-width: 767.98px) {
  .categories-admin-page {
    max-width: 100%;
  }

  .categories-admin-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .categories-admin-title {
    font-size: 1.35rem;
  }

  .categories-admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .categories-admin-count {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .categories-admin-toolbar-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .categories-admin-toolbar {
    align-items: stretch;
    gap: 1rem;
  }

  .categories-admin-search {
    min-width: 100%;
    width: 100%;
  }

  .categories-admin-search .form-control {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .categories-admin-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .categories-admin-toolbar-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.85rem;
    font-size: 0.92rem;
  }

  .categories-admin-toolbar-actions .btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .categories-admin-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .categories-admin-actions .btn,
  .categories-admin-actions form {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .categories-admin-toolbar-actions {
    grid-template-columns: 1fr;
  }

  .categories-admin-title {
    font-size: 1.25rem;
  }

  .categories-admin-mobile-card {
    padding: 0.85rem;
  }

  .categories-admin-slug {
    font-size: 0.82rem;
    padding: 0.38rem 0.68rem;
  }
}

/* =========================
   ADMIN SELLERS PAGE
   ========================= */
.sellers-admin-page {
  max-width: 1000px;
}

.sellers-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.sellers-admin-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.sellers-admin-subtitle {
  color: var(--ez-text-muted);
  max-width: 700px;
  line-height: 1.55;
}

.sellers-admin-count {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.sellers-admin-toolbar-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
}

.sellers-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sellers-admin-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.2rem;
}

.sellers-admin-toolbar-subtitle {
  color: var(--ez-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sellers-admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sellers-admin-toolbar-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sellers-admin-table-shell {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.sellers-admin-table {
  margin-bottom: 0;
}

.sellers-admin-table thead th {
  background: #f8fafc;
  color: var(--ez-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ez-border);
  padding: 1.1rem 1rem;
  white-space: nowrap;
}

.sellers-admin-table tbody td {
  padding: 1.15rem 1rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.sellers-admin-table tbody tr:hover {
  background: #fbfdff;
}

.sellers-admin-id {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.76rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-soft);
  font-weight: 700;
  font-size: 0.84rem;
}

.sellers-admin-name {
  color: var(--ez-text);
  font-weight: 700;
  line-height: 1.4;
}

.sellers-admin-city {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  word-break: break-word;
  max-width: 100%;
}

.sellers-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.sellers-admin-actions .btn {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sellers-admin-mobile-list {
  display: grid;
  gap: 0.9rem;
}

.sellers-admin-mobile-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-sm);
  padding: 0.9rem;
}

.sellers-admin-mobile-top {
  margin-bottom: 0.8rem;
}

.sellers-admin-mobile-id {
  font-size: 0.82rem;
  color: var(--ez-text-muted);
  margin-top: 0.2rem;
}

.sellers-admin-mobile-meta {
  display: grid;
  gap: 0.75rem;
}

.sellers-admin-mobile-meta-item {
  padding: 0.78rem 0.82rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sellers-admin-mobile-label {
  font-size: 0.76rem;
  color: var(--ez-text-muted);
}

.sellers-admin-empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 2rem 1.25rem;
}

.sellers-admin-empty-icon {
  font-size: 1.8rem;
  color: var(--ez-text-faint);
}

.sellers-admin-empty-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.3rem;
}

.sellers-admin-empty-text {
  color: var(--ez-text-muted);
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .sellers-admin-page {
    max-width: 100%;
  }

  .sellers-admin-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .sellers-admin-title {
    font-size: 1.35rem;
  }

  .sellers-admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .sellers-admin-count {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .sellers-admin-toolbar-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .sellers-admin-toolbar {
    align-items: stretch;
    gap: 0.9rem;
  }

  .sellers-admin-toolbar-actions {
    width: 100%;
  }

  .sellers-admin-toolbar-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.9rem;
    font-size: 0.92rem;
  }

  .sellers-admin-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .sellers-admin-actions .btn,
  .sellers-admin-actions form {
    width: 100%;
  }

  .sellers-admin-empty {
    border-radius: 18px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 420px) {
  .sellers-admin-title {
    font-size: 1.25rem;
  }

  .sellers-admin-mobile-card {
    padding: 0.85rem;
  }

  .sellers-admin-city {
    font-size: 0.82rem;
    padding: 0.38rem 0.68rem;
  }
}
/* =========================
   ADMIN SELLER FORM PAGE
   ========================= */
.seller-form-page {
  max-width: 860px;
}

.seller-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.seller-form-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.seller-form-subtitle {
  color: var(--ez-text-muted);
  max-width: 620px;
  line-height: 1.55;
}

.seller-form-mode {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.seller-form-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.seller-form-body {
  padding: 1.3rem;
}

.seller-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seller-form-field {
  min-width: 0;
}

.seller-form-field-full {
  grid-column: 1 / -1;
}

.seller-form-field .form-label {
  margin-bottom: 0.55rem;
}

.seller-form-field .form-control {
  min-height: 52px;
  font-size: 1rem;
}

.seller-form-divider {
  height: 1px;
  background: #eef2f7;
  margin: 1.4rem 0 0;
}

.seller-form-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
}

.seller-form-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .seller-form-page {
    max-width: 100%;
  }

  .seller-form-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .seller-form-title {
    font-size: 1.35rem;
  }

  .seller-form-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .seller-form-mode {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .seller-form-card {
    border-radius: 18px;
  }

  .seller-form-body {
    padding: 1rem;
  }

  .seller-form-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .seller-form-field .form-control {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .seller-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .seller-form-actions .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.92rem;
    padding: 0.72rem 0.95rem;
  }
}

@media (max-width: 420px) {
  .seller-form-title {
    font-size: 1.25rem;
  }
}
/* =========================
   ADMIN CATEGORY FORM PAGE
   ========================= */

.category-form-page {
  max-width: 860px;
}

.category-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;

  padding: 1.2rem 1.25rem;

  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.category-form-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.category-form-subtitle {
  color: var(--ez-text-muted);
  max-width: 620px;
  line-height: 1.55;
}

.category-form-mode {
  display: inline-flex;
  align-items: center;

  padding: 0.72rem 1rem;

  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);

  box-shadow: var(--ez-shadow-sm);

  font-weight: 700;
  color: var(--ez-text);
}

.category-form-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.category-form-body {
  padding: 1.3rem;
}

.category-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.category-form-field-full {
  grid-column: 1 / -1;
}

.category-form-field .form-label {
  margin-bottom: 0.55rem;
}

.form-hint {
  font-size: .85rem;
  color: var(--ez-text-muted);
}

.category-form-field .form-control {
  min-height: 52px;
  font-size: 1rem;
}

.category-form-divider {
  height: 1px;
  background: #eef2f7;
  margin-top: 1.4rem;
}

.category-form-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;

  padding-top: 1.4rem;
}

.category-form-actions .btn {
  min-height: 48px;
  padding: .78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
}

/* MOBILE */

@media (max-width:768px){

  .category-form-page{
    max-width:100%;
  }

  .category-form-head{
    padding:1rem;
    border-radius:18px;
  }

  .category-form-title{
    font-size:1.35rem;
  }

  .category-form-subtitle{
    font-size:.9rem;
  }

  .category-form-mode{
    width:100%;
    justify-content:flex-start;
  }

  .category-form-card{
    border-radius:18px;
  }

  .category-form-body{
    padding:1rem;
  }

  .category-form-grid{
    grid-template-columns:1fr;
  }

  .category-form-field .form-control{
    min-height:48px;
  }

  .category-form-actions{
    flex-direction:column;
  }

  .category-form-actions .btn{
    width:100%;
    min-height:46px;
  }

}
/* =========================
   ADMIN INVOICES PAGE
   ========================= */
.invoices-admin-page {
  max-width: 1320px;
}

.invoices-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.invoices-admin-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.invoices-admin-subtitle {
  color: var(--ez-text-muted);
  max-width: 760px;
  line-height: 1.55;
}

.invoices-admin-count {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.invoices-admin-filter-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
}

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

.invoices-admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr));
  gap: 1rem;
}

.invoices-admin-filter-field .form-label {
  margin-bottom: 0.55rem;
}

.invoices-admin-filter-field .form-control {
  min-height: 52px;
  font-size: 1rem;
}

.invoices-admin-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.invoices-admin-filter-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.invoices-admin-table-shell {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.invoices-admin-table {
  margin-bottom: 0;
}

.invoices-admin-table thead th {
  background: #f8fafc;
  color: var(--ez-text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ez-border);
  padding: 1rem;
  white-space: nowrap;
}

.invoices-admin-table tbody td {
  padding: 1rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.invoices-admin-table tbody tr {
  transition: background 0.16s ease;
}

.invoices-admin-table tbody tr:hover {
  background: #fbfdff;
}

.invoices-admin-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.76rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-soft);
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

.invoices-admin-date {
  color: var(--ez-text-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.invoices-admin-customer {
  color: var(--ez-text);
  font-weight: 700;
  line-height: 1.35;
}

.invoices-admin-phone {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.invoices-admin-total {
  color: var(--ez-text);
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
}

.invoices-admin-muted {
  color: var(--ez-text-faint);
}

.invoices-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.invoices-admin-actions .btn {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.invoices-admin-mobile-list {
  display: grid;
  gap: 1rem;
}

.invoices-admin-mobile-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 20px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1rem;
}

.invoices-admin-mobile-top {
  margin-bottom: 0.9rem;
}

.invoices-admin-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.invoices-admin-mobile-date {
  color: var(--ez-text-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.invoices-admin-mobile-phone {
  color: var(--ez-text-muted);
  font-size: 0.9rem;
}

.invoices-admin-mobile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.invoices-admin-mobile-meta-item {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.invoices-admin-mobile-label {
  font-size: 0.76rem;
  color: var(--ez-text-muted);
}

.invoices-admin-status {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.86rem;
}

.invoices-admin-status.is-active {
  color: var(--ez-success);
}

.invoices-admin-status.is-muted {
  color: var(--ez-text-muted);
}

.invoices-admin-mobile-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.invoices-admin-empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 2rem 1.25rem;
}

.invoices-admin-empty-icon {
  font-size: 1.8rem;
  color: var(--ez-text-faint);
}

.invoices-admin-empty-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.3rem;
}

.invoices-admin-empty-text {
  color: var(--ez-text-muted);
  line-height: 1.6;
}

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

  .invoices-admin-filter-field-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .invoices-admin-page {
    max-width: 100%;
  }

  .invoices-admin-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .invoices-admin-title {
    font-size: 1.35rem;
  }

  .invoices-admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .invoices-admin-count {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .invoices-admin-filter-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .invoices-admin-filter-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .invoices-admin-filter-field .form-control {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .invoices-admin-filter-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .invoices-admin-filter-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.95rem;
    font-size: 0.92rem;
  }

  .invoices-admin-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .invoices-admin-actions .btn,
  .invoices-admin-actions form {
    width: 100%;
  }

  .invoices-admin-mobile-meta {
    grid-template-columns: 1fr;
  }

  .invoices-admin-mobile-files {
    grid-template-columns: 1fr 1fr;
  }

  .invoices-admin-empty {
    border-radius: 18px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 420px) {
  .invoices-admin-title {
    font-size: 1.25rem;
  }

  .invoices-admin-mobile-card {
    padding: 0.9rem;
  }

  .invoices-admin-mobile-files {
    grid-template-columns: 1fr;
  }

  .invoices-admin-phone {
    font-size: 0.82rem;
    padding: 0.34rem 0.66rem;
  }
}

/* =========================
   INVOICE ACTION BUTTONS
   ========================= */

.invoice-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 0.7rem;

  border-radius: 10px;

  font-size: 0.84rem;
  font-weight: 600;

  border: 1px solid var(--ez-border);

  background: #fff;

  transition: all 0.15s ease;
}

.invoice-action-btn i {
  font-size: 0.85rem;
}

.invoice-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}

/* EDIT */

.invoice-action-edit {
  color: #3b82f6;
  border-color: #cfe1ff;
}

.invoice-action-edit:hover {
  background: #eef4ff;
}

/* PDF */

.invoice-action-pdf {
  color: #ef4444;
  border-color: #ffd6d6;
}

.invoice-action-pdf:hover {
  background: #fff1f1;
}

/* XLSX */

.invoice-action-xlsx {
  color: #16a34a;
  border-color: #d6f5e1;
}

.invoice-action-xlsx:hover {
  background: #effdf5;
}
/* =========================
   ADMIN PRODUCTS PAGE
   ========================= */
.products-admin-page {
  max-width: 1320px;
}

.products-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.products-admin-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.products-admin-subtitle {
  color: var(--ez-text-muted);
  max-width: 760px;
  line-height: 1.55;
}

.products-admin-count {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.products-admin-toolbar-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
}

.products-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.products-admin-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.2rem;
}

.products-admin-toolbar-subtitle {
  color: var(--ez-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.products-admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.products-admin-toolbar-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.products-admin-table-shell {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.products-admin-table {
  margin-bottom: 0;
}

.products-admin-table thead th {
  background: #f8fafc;
  color: var(--ez-text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ez-border);
  padding: 1rem;
  white-space: nowrap;
}

.products-admin-table tbody td {
  padding: 1rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.products-admin-table tbody tr {
  transition: background 0.16s ease;
}

.products-admin-table tbody tr:hover {
  background: #fbfdff;
}

.products-admin-image-wrap {
  width: 84px;
}

.products-admin-image {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--ez-border);
  background: #fff;
}

.products-admin-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: var(--ez-text-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem;
}

.products-admin-name {
  color: var(--ez-text);
  font-weight: 700;
  line-height: 1.4;
}

.products-admin-sku,
.products-admin-category {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  max-width: 100%;
  word-break: break-word;
}

.products-admin-muted {
  color: var(--ez-text-faint);
}

.products-admin-variants {
  display: grid;
  gap: 0.65rem;
}

.products-admin-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
}

.products-admin-variant-main {
  min-width: 0;
}

.products-admin-variant-name {
  font-weight: 700;
  color: var(--ez-text);
  line-height: 1.35;
}

.products-admin-variant-stock {
  font-size: 0.82rem;
  color: var(--ez-text-muted);
  margin-top: 0.15rem;
}

.products-admin-variant-price {
  white-space: nowrap;
  font-weight: 800;
  color: var(--ez-primary);
  font-size: 0.94rem;
}

.products-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.products-admin-actions .btn {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.products-admin-mobile-list {
  display: grid;
  gap: 1rem;
}

.products-admin-mobile-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 20px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1rem;
}

.products-admin-mobile-top {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 1rem;
}

.products-admin-mobile-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--ez-border);
  background: #fff;
}

.products-admin-mobile-meta {
  display: grid;
  gap: 0.75rem;
}

.products-admin-mobile-meta-item {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.products-admin-mobile-label {
  font-size: 0.76rem;
  color: var(--ez-text-muted);
}

.products-admin-mobile-variants-block {
  margin-top: 0.2rem;
}

.products-admin-mobile-section-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ez-text-soft);
  margin-bottom: 0.65rem;
}

.products-admin-mobile-empty-variants {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
  font-size: 0.9rem;
}

.products-admin-empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 2rem 1.25rem;
}

.products-admin-empty-icon {
  font-size: 1.8rem;
  color: var(--ez-text-faint);
}

.products-admin-empty-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.3rem;
}

.products-admin-empty-text {
  color: var(--ez-text-muted);
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .products-admin-mobile-top {
    grid-template-columns: 84px 1fr;
  }

  .products-admin-mobile-image {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 767.98px) {
  .products-admin-page {
    max-width: 100%;
  }

  .products-admin-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .products-admin-title {
    font-size: 1.35rem;
  }

  .products-admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .products-admin-count {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .products-admin-toolbar-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .products-admin-toolbar {
    align-items: stretch;
    gap: 0.9rem;
  }

  .products-admin-toolbar-actions {
    width: 100%;
  }

  .products-admin-toolbar-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.9rem;
    font-size: 0.92rem;
  }

  .products-admin-mobile-card {
    border-radius: 18px;
    padding: 0.95rem;
  }

  .products-admin-mobile-top {
    grid-template-columns: 76px 1fr;
    gap: 0.8rem;
  }

  .products-admin-mobile-image {
    width: 76px;
    height: 76px;
    border-radius: 14px;
  }

  .products-admin-variant-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .products-admin-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .products-admin-actions .btn,
  .products-admin-actions form {
    width: 100%;
  }

  .products-admin-empty {
    border-radius: 18px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 420px) {
  .products-admin-title {
    font-size: 1.25rem;
  }

  .products-admin-mobile-card {
    padding: 0.85rem;
  }

  .products-admin-mobile-top {
    grid-template-columns: 68px 1fr;
  }

  .products-admin-mobile-image {
    width: 68px;
    height: 68px;
  }

  .products-admin-sku,
  .products-admin-category {
    font-size: 0.82rem;
    padding: 0.34rem 0.66rem;
  }
}

/* =========================
   ADMIN PRODUCT FORM PAGE
   ========================= */
.product-form-page {
  max-width: 1180px;
}

.product-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.product-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.product-form-subtitle {
  color: var(--ez-text-muted);
  max-width: 760px;
  line-height: 1.55;
}

.product-form-mode {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.product-form-card,
.product-form-actions-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.product-form-card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef2f7;
  background: #fbfdff;
}

.product-form-card-head-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-form-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ez-text);
}

.product-form-card-body {
  padding: 1.25rem;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-form-field {
  min-width: 0;
}

.product-form-field-full {
  grid-column: 1 / -1;
}

.product-form-field .form-label {
  margin-bottom: 0.55rem;
}

.product-form-field .form-control,
.product-form-field .form-select {
  min-height: 52px;
  font-size: 1rem;
}

.product-form-field textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.product-form-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-form-preview-card {
  width: 160px;
}

.product-form-preview-image {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--ez-border);
  display: block;
}

.product-form-preview-caption {
  font-size: 0.82rem;
  color: var(--ez-text-muted);
  margin-top: 0.45rem;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.product-gallery-card {
  background: #fbfdff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  padding: 0.75rem;
}

.product-gallery-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--ez-border);
  display: block;
}

.product-gallery-delete {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--ez-text-soft);
}

.product-video-list {
  display: grid;
  gap: 0.9rem;
}

.product-video-row {
  background: #fbfdff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  padding: 0.9rem;
}

.product-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.product-video-delete {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ez-text-soft);
}

.product-variants-table-head {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr 2fr 1.2fr;
  gap: 0.85rem;
  padding: 0 0.2rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ez-text-muted);
}

.product-variants-list {
  display: grid;
  gap: 1rem;
}

.product-variant-editor-card {
  background: #fbfdff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  padding: 1rem;
}

.product-variant-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr 2fr 1.2fr;
  gap: 0.85rem;
  align-items: end;
}

.product-new-variant-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr 2fr;
  gap: 0.85rem;
  align-items: end;
}

.product-variant-delete-wrap {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.product-variant-delete {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--ez-text-soft);
}

.product-variant-extra {
  border-top: 1px solid #eef2f7;
  padding-top: 0.9rem;
}

.product-add-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px)) 1fr;
  gap: 0.85rem;
  align-items: end;
}

.product-add-stock-note {
  min-height: 52px;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ez-text-muted);
  line-height: 1.45;
}

.product-form-actions-card {
  padding: 1.1rem 1.25rem;
}

.product-form-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.product-form-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1199.98px) {
  .product-variant-grid,
  .product-new-variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-add-stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-add-stock-note {
    min-height: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .product-video-grid {
    grid-template-columns: 1fr;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .product-form-page {
    max-width: 100%;
  }

  .product-form-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .product-form-title {
    font-size: 1.35rem;
  }

  .product-form-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .product-form-mode {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .product-form-card,
  .product-form-actions-card {
    border-radius: 18px;
  }

  .product-form-card-head {
    padding: 0.95rem 1rem;
  }

  .product-form-card-head-with-action {
    align-items: stretch;
  }

  .product-form-card-head-with-action .btn {
    width: 100%;
  }

  .product-form-card-body {
    padding: 1rem;
  }

  .product-form-field .form-control,
  .product-form-field .form-select {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .product-form-field textarea.form-control {
    min-height: 120px;
  }

  .product-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .product-gallery-image {
    height: 110px;
  }

  .product-variant-grid,
  .product-new-variant-grid,
  .product-add-stock-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .product-variant-delete-wrap {
    min-height: auto;
  }

  .product-form-actions-card {
    padding: 1rem;
  }

  .product-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .product-form-actions .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.92rem;
    padding: 0.72rem 0.95rem;
  }
}

@media (max-width: 420px) {
  .product-form-title {
    font-size: 1.25rem;
  }

  .product-gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-form-preview-card,
  .product-form-preview-image {
    width: 100%;
  }
}
/* =========================
   ADMIN CUSTOM SELECT
   ========================= */
.admin-select {
  position: relative;
  width: 100%;
}

.admin-select-trigger {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ez-border-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ez-shadow-sm);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  color: var(--ez-text);
  font-weight: 500;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-select-trigger:hover {
  border-color: #cbd5e1;
}

.admin-select.open .admin-select-trigger {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.22rem rgba(29, 78, 216, 0.12);
}

.admin-select-caret {
  flex-shrink: 0;
  color: var(--ez-text-muted);
  font-size: 0.82rem;
  transition: transform 0.18s ease;
}

.admin-select.open .admin-select-caret {
  transform: rotate(180deg);
}

.admin-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-md);
  padding: 0.4rem;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}

.admin-select.open .admin-select-menu {
  display: block;
}

.admin-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  text-align: left;
  color: var(--ez-text);
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-select-option:hover {
  background: var(--ez-surface-muted);
}

.admin-select-option.active {
  background: var(--ez-primary-soft);
  color: var(--ez-primary);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .admin-select-trigger {
    min-height: 48px;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .admin-select-option {
    padding: 0.8rem 0.85rem;
    font-size: 0.94rem;
  }
}
/* =========================
   ADMIN USERS PAGE
   ========================= */
.users-admin-page {
  max-width: 1100px;
}

.users-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.users-admin-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.users-admin-subtitle {
  color: var(--ez-text-muted);
  max-width: 700px;
  line-height: 1.55;
}

.users-admin-count {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.users-admin-toolbar-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
}

.users-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.users-admin-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.2rem;
}

.users-admin-toolbar-subtitle {
  color: var(--ez-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.users-admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.users-admin-toolbar-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.users-admin-table-shell {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.users-admin-table {
  margin-bottom: 0;
}

.users-admin-table thead th {
  background: #f8fafc;
  color: var(--ez-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ez-border);
  padding: 1.1rem 1rem;
  white-space: nowrap;
}

.users-admin-table tbody td {
  padding: 1.15rem 1rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.users-admin-table tbody tr:hover {
  background: #fbfdff;
}

.users-admin-id {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.76rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-soft);
  font-weight: 700;
  font-size: 0.84rem;
}

.users-admin-name {
  color: var(--ez-text);
  font-weight: 700;
  line-height: 1.4;
}

.users-admin-role {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--ez-border);
  background: #f8fafc;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: capitalize;
}

.users-admin-role--admin {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.users-admin-role--manager {
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.users-admin-role--user {
  color: #6b7280;
  border-color: #e5e7eb;
  background: #f9fafb;
}

.users-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.users-admin-actions .btn {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.users-admin-mobile-list {
  display: grid;
  gap: 0.9rem;
}

.users-admin-mobile-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-sm);
  padding: 0.9rem;
}

.users-admin-mobile-top {
  margin-bottom: 0.8rem;
}

.users-admin-mobile-id {
  font-size: 0.82rem;
  color: var(--ez-text-muted);
  margin-top: 0.2rem;
}

.users-admin-mobile-meta {
  display: grid;
  gap: 0.75rem;
}

.users-admin-mobile-meta-item {
  padding: 0.78rem 0.82rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.users-admin-mobile-label {
  font-size: 0.76rem;
  color: var(--ez-text-muted);
}

.users-admin-empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 2rem 1.25rem;
}

.users-admin-empty-icon {
  font-size: 1.8rem;
  color: var(--ez-text-faint);
}

.users-admin-empty-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ez-text);
  margin-bottom: 0.3rem;
}

.users-admin-empty-text {
  color: var(--ez-text-muted);
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .users-admin-page {
    max-width: 100%;
  }

  .users-admin-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .users-admin-title {
    font-size: 1.35rem;
  }

  .users-admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .users-admin-count {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .users-admin-toolbar-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .users-admin-toolbar {
    align-items: stretch;
    gap: 0.9rem;
  }

  .users-admin-toolbar-actions {
    width: 100%;
  }

  .users-admin-toolbar-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.9rem;
    font-size: 0.92rem;
  }

  .users-admin-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .users-admin-actions .btn,
  .users-admin-actions form {
    width: 100%;
  }

  .users-admin-empty {
    border-radius: 18px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 420px) {
  .users-admin-title {
    font-size: 1.25rem;
  }

  .users-admin-mobile-card {
    padding: 0.85rem;
  }

  .users-admin-role {
    font-size: 0.82rem;
    padding: 0.38rem 0.68rem;
  }
}
/* =========================
   ADMIN USER FORM PAGE
   ========================= */
.user-form-page {
  max-width: 860px;
}

.user-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.user-form-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.user-form-subtitle {
  color: var(--ez-text-muted);
  max-width: 620px;
  line-height: 1.55;
}

.user-form-mode {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-sm);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

.user-form-alert {
  border-radius: 18px;
}

.user-form-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.user-form-body {
  padding: 1.3rem;
}

.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.user-form-field {
  min-width: 0;
}

.user-form-field-full {
  grid-column: 1 / -1;
}

.user-form-field .form-label {
  margin-bottom: 0.55rem;
}

.user-form-field .form-control {
  min-height: 52px;
  font-size: 1rem;
}

.user-form-divider {
  height: 1px;
  background: #eef2f7;
  margin: 1.4rem 0 0;
}

.user-form-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
}

.user-form-actions .btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .user-form-page {
    max-width: 100%;
  }

  .user-form-head {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .user-form-title {
    font-size: 1.35rem;
  }

  .user-form-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .user-form-mode {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .user-form-card {
    border-radius: 18px;
  }

  .user-form-body {
    padding: 1rem;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .user-form-field .form-control {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .user-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .user-form-actions .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.92rem;
    padding: 0.72rem 0.95rem;
  }
}

@media (max-width: 420px) {
  .user-form-title {
    font-size: 1.25rem;
  }
}

.salespersons-admin-page{
max-width:1100px;
}

.salespersons-admin-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:1rem;
flex-wrap:wrap;
padding:1.2rem;
background:#fff;
border:1px solid var(--ez-border);
border-radius:24px;
}

.salespersons-admin-title{
font-size:1.7rem;
font-weight:800;
}

.salespersons-admin-subtitle{
color:var(--ez-text-muted);
}

.salespersons-admin-count{
padding:.7rem 1rem;
border-radius:999px;
border:1px solid var(--ez-border);
background:#f8fafc;
font-weight:700;
}

.salespersons-form-card{
background:#fff;
border:1px solid var(--ez-border);
border-radius:24px;
padding:1.2rem;
}

.salespersons-form-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:1rem;
}

.salespersons-form-actions{
margin-top:1rem;
}

.salespersons-table-shell{
background:#fff;
border:1px solid var(--ez-border);
border-radius:24px;
overflow:hidden;
}

.salespersons-id{
background:#f8fafc;
padding:.3rem .6rem;
border-radius:999px;
font-weight:700;
font-size:.85rem;
}

.salespersons-delete-btn{
border:1px solid #ffd6d6;
background:#fff;
padding:.45rem .75rem;
border-radius:10px;
color:#e11d48;
font-weight:600;
display:inline-flex;
align-items:center;
gap:.4rem;
}

.salespersons-delete-btn:hover{
background:#fff1f2;
}

.salespersons-empty{
text-align:center;
padding:2rem;
background:#fff;
border:1px solid var(--ez-border);
border-radius:24px;
}

@media(max-width:768px){

.salespersons-form-grid{
grid-template-columns:1fr;
}
}
/* =========================
   ADMIN AUDIT PAGE
   ========================= */

.audit-admin-page {
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* HEADER */
.audit-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
}

.audit-admin-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
  margin: 0;
}

.audit-admin-subtitle {
  color: var(--ez-text-muted);
  max-width: 760px;
  line-height: 1.55;
  margin-top: 0.35rem;
}

.audit-admin-count {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  font-weight: 700;
  color: var(--ez-text);
  white-space: nowrap;
}

/* FILTERS */
.audit-admin-filter-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1.25rem;
}

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

.audit-admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audit-admin-filter-grid .form-control,
.audit-admin-filter-grid .form-select {
  min-height: 48px;
  border-radius: 12px;
}

.audit-admin-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* DAY GROUP */
.audit-day-block {
  display: grid;
  gap: 0.9rem;
}

.audit-day-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--ez-text-soft);
  font-size: 0.98rem;
}

.audit-day-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ez-primary);
  flex-shrink: 0;
}

/* TABLE */
.audit-table-wrapper {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  overflow: hidden;
}

.audit-table {
  margin-bottom: 0;
}

.audit-table thead th {
  background: #f8fafc;
  color: var(--ez-text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ez-border);
  padding: 1rem;
  white-space: nowrap;
}

.audit-table tbody td {
  padding: 1rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.audit-table tbody tr:hover {
  background: #fbfdff;
}

.audit-time {
  color: var(--ez-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.audit-user {
  font-weight: 700;
  color: var(--ez-text);
}

.audit-entity-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  color: var(--ez-text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

/* AUDIT BADGES - isolated from bootstrap .badge */
.audit-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.audit-action-badge--success {
  background: #ecfdf5;
  color: #059669;
  border-color: #bbf7d0;
}

.audit-action-badge--primary {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.audit-action-badge--danger {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.audit-action-badge--warning {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.audit-action-badge--secondary {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.audit-action-badge--purple {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

/* MOBILE CARD */
.audit-mobile {
  display: grid;
  gap: 0.9rem;
}

.audit-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 18px;
  box-shadow: var(--ez-shadow-sm);
  padding: 1rem;
}

.audit-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.audit-card-body {
  display: grid;
  gap: 0.65rem;
}

.audit-card-entity {
  color: var(--ez-text-muted);
  font-size: 0.92rem;
}

/* EMPTY */
.audit-empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 24px;
  box-shadow: var(--ez-shadow-sm);
  padding: 2rem 1.25rem;
  color: var(--ez-text-muted);
}

/* MODAL */
.audit-modal {
  border-radius: 24px;
  border: 1px solid var(--ez-border);
  overflow: hidden;
}

.audit-modal .modal-header {
  border-bottom: 1px solid var(--ez-border);
  background: #fff;
}

.audit-modal .modal-body {
  padding: 1.25rem;
  background: #fff;
}

.audit-modal .modal-title {
  font-weight: 800;
  color: var(--ez-text);
}

/* META */
.audit-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.audit-meta-item {
  background: #f8fafc;
  border: 1px solid var(--ez-border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.audit-meta-item-full {
  grid-column: 1 / -1;
}

.audit-meta-label {
  font-size: 0.76rem;
  color: var(--ez-text-muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.audit-meta-value {
  color: var(--ez-text);
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

/* SEARCH */
.audit-search {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ez-border);
  padding: 0 0.9rem;
  margin-bottom: 1rem;
}

/* DIFF */
.audit-diff {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.diff-row {
  border: 1px solid var(--ez-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.diff-key {
  padding: 0.8rem 0.95rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--ez-border);
  font-weight: 800;
  color: var(--ez-text);
  word-break: break-word;
}

.diff-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.diff-old,
.diff-new {
  padding: 0.95rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

.diff-old {
  background: #fff5f5;
  color: #991b1b;
}

.diff-new {
  background: #f0fdf4;
  color: #166534;
}

.diff-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.9rem;
  background: #fff;
  color: #94a3b8;
  border-left: 1px solid var(--ez-border);
  border-right: 1px solid var(--ez-border);
}

/* RAW JSON */
.audit-json-wrap {
  margin-top: 1rem;
}

.audit-json-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.audit-json-card {
  background: #fff;
  border: 1px solid var(--ez-border);
  border-radius: 16px;
  overflow: hidden;
}

.audit-json-title {
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--ez-border);
  font-weight: 800;
  color: var(--ez-text);
}

.audit-json-pre {
  margin: 0;
  padding: 0.95rem;
  max-height: 320px;
  overflow: auto;
  background: #fbfdff;
  color: var(--ez-text);
  font-size: 0.83rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .audit-admin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-json-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .audit-admin-page {
    max-width: 100%;
  }

  .audit-admin-head,
  .audit-admin-filter-card,
  .audit-table-wrapper,
  .audit-card,
  .audit-empty,
  .audit-modal {
    border-radius: 18px;
  }

  .audit-admin-head {
    padding: 1rem;
  }

  .audit-admin-title {
    font-size: 1.35rem;
  }

  .audit-admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .audit-admin-count {
    width: 100%;
    justify-content: flex-start;
  }

  .audit-admin-filter-grid {
    grid-template-columns: 1fr;
  }

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

  .audit-admin-filter-actions .btn {
    width: 100%;
  }

  .audit-meta {
    grid-template-columns: 1fr;
  }

  .diff-values {
    grid-template-columns: 1fr;
  }

  .diff-arrow {
    display: none;
  }

  .audit-modal .modal-body {
    padding: 1rem;
  }

  .audit-json-pre {
    max-height: 240px;
    font-size: 0.8rem;
  }
}
/* =========================
   15. FOOTER
   ========================= */
footer {
  background: rgba(255, 255, 255, 0.88) !important;
  border-top: 1px solid var(--ez-border) !important;
  backdrop-filter: blur(10px);
}

footer .container {
  min-height: 88px;
}

footer a {
  font-size: 0.98rem;
  padding: 0.65rem 1rem;
  border-radius: 12px !important;
  transition: all 0.18s ease;
}

footer a:hover {
  transform: translateY(-1px);
  text-decoration: none;
}



/* =========================
   16. FLOATING BUTTONS
   ========================= */
.floating-buttons-messengers {
  position: fixed;
  left: 16px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1050;
}

.floating-buttons-messengers .float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #fff;
  box-shadow: var(--ez-shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none !important;
}

.floating-buttons-messengers .float-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--ez-shadow-lg);
}

.floating-buttons-messengers .float-btn.wa {
  background: #25d366;
}

.floating-buttons-messengers .float-btn.tg {
  background: #229ed9;
}

/* =========================
   17. UTILITIES
   ========================= */
.ez-hidden {
  display: none !important;
}

.ez-rounded {
  border-radius: var(--ez-radius-lg);
}

.ez-shadow {
  box-shadow: var(--ez-shadow-sm);
}

.ez-border {
  border: 1px solid var(--ez-border);
}

.w-fit {
  width: fit-content;
}

/* =========================
   18. RESPONSIVE
   ========================= */
@media (max-width: 991.98px) {
  .brand-logo {
    height: 60px;
    max-height: 64px;
  }

  .navbar-brand span {
    font-size: 1.15rem !important;
  }

  .catalog-toolbar {
    align-items: stretch;
  }

  .checkout-form-wrap {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
  }

  .card-title {
    font-size: 0.98rem;
  }

  .floating-buttons-messengers {
    left: 12px;
    bottom: 72px;
  }

  .floating-buttons-messengers .float-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  footer a {
    width: 100%;
    justify-content: center;
  }

  .auth-card {
    padding: 1.25rem;
    border-radius: 18px;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 52px;
    max-height: 56px;
  }

  .navbar-brand span {
    font-size: 1rem !important;
  }

  .qty-input {
    width: 58px !important;
    min-width: 58px;
  }

  .table > :not(caption) > * > * {
    padding: 0.8rem 0.65rem;
  }
}

.categories-dropdown {
  min-width: 280px;
  width: 280px;
  position: relative;
}

.categories-dropdown .btn {
  min-width: 280px;
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ez-border);
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--ez-text);
  box-shadow: var(--ez-shadow-sm);
}

.categories-dropdown .btn:hover,
.categories-dropdown .btn:focus,
.categories-dropdown .btn:active {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: var(--ez-text) !important;
  box-shadow: var(--ez-shadow-sm) !important;
}

.categories-menu-collapse {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  z-index: 50;
  margin-top: 0 !important;
}

.categories-menu-collapse.collapsing {
  height: auto !important;
  overflow: hidden;
  transition: opacity 0.16s ease !important;
  opacity: 0;
  display: block;
}

.categories-menu-collapse.collapse:not(.show) {
  display: none;
}

.categories-menu-collapse.collapse.show {
  display: block;
  opacity: 1;
}

.categories-dropdown .list-group {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ez-border);
  box-shadow: var(--ez-shadow-md);
  padding: 0.4rem;
  margin: 0;
}

.categories-dropdown .list-group-item {
  border: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 0.8rem 1rem;
  font-size: 0.96rem;
  color: var(--ez-text);
  background: transparent !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.categories-dropdown .list-group-item:hover {
  background: var(--ez-surface-muted) !important;
}

.categories-dropdown .list-group-item.active {
  background: var(--ez-primary-soft) !important;
  color: var(--ez-primary) !important;
  font-weight: 700;
}

.caret {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

#categories-toggle[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

@media (max-width: 767.98px) {
  .categories-dropdown {
    width: 100%;
    min-width: 100%;
  }

  .categories-dropdown .btn {
    min-width: 100%;
  }

  .categories-menu-collapse {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 0.5rem !important;
  }

  .categories-menu-collapse.collapsing {
    transition: none !important;
    opacity: 1;
  }
}