/* ==========================================================================
   ADMIN PANEL DASHBOARD & MANAGEMENT STYLES
   ========================================================================== */

/* Admin Layout */
.admin-body {
  background-color: var(--bg-page);
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

.admin-sidebar {
  width: 280px;
  background-color: #0f172a;
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: all var(--transition-normal);
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 4px;
}

.admin-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.admin-sidebar-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
}

.admin-nav {
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.admin-nav-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.admin-nav-item.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.admin-nav-item svg, .admin-nav-item i {
  font-size: 1.15rem;
  width: 20px;
  display: inline-flex;
  justify-content: center;
}

.admin-sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Admin Main Content */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-page);
}

.admin-topbar {
  height: 70px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-content-area {
  padding: 2rem;
  flex-grow: 1;
}

/* Mobile Sidebar Drawer & Overlay Controls */
.admin-mobile-menu-btn {
  display: none !important;
}

.admin-sidebar-close-btn {
  display: none !important;
}

.admin-sidebar-overlay {
  display: none;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

body.sidebar-open {
  overflow: hidden !important;
}

@media (max-width: 992px) {
  .admin-body {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .admin-mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
    padding: 0;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    cursor: pointer;
  }

  .admin-sidebar-close-btn {
    display: flex !important;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: var(--radius-full);
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    cursor: pointer;
  }

  .admin-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .admin-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1600 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .admin-topbar {
    height: 60px;
    padding: 0 0.85rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .admin-topbar-store-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .admin-user-info {
    display: none;
  }

  .admin-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .admin-content-area {
    padding: 0.85rem;
  }

  .panel-card {
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
  }

  .panel-card-header {
    padding: 1rem;
  }

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

/* Dashboard Metric Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.1;
}

.stat-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.stat-icon-success {
  background: #dcfce7;
  color: #16a34a;
}

.stat-icon-warning {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon-info {
  background: #e0f2fe;
  color: #0284c7;
}

/* Admin Sections & Panels */
.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.panel-card-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-card-body {
  padding: 1.75rem;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-page);
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: var(--border-color-light);
}

.table-product-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.table-product-img,
.table-prod-thumb {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  background-color: var(--bg-page);
  display: block;
}

/* Theme Gallery Grid */
.themes-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
}

.theme-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.theme-card.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.theme-card-preview {
  height: 70px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.theme-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-card-title {
  font-weight: 700;
  font-size: 1rem;
}

.theme-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Image Upload Preview Box */
.image-upload-preview-box {
  width: 100%;
  height: 160px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-page);
  transition: all var(--transition-fast);
}

.image-upload-preview-box:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.image-preview-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.upload-overlay-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   MULTI-CATEGORY SELECTOR & MANAGEMENT STYLES
   ========================================================================== */

.categories-checkbox-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 160px;
  overflow-y: auto;
}

.category-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.category-toggle-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.category-toggle-chip.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.category-toggle-icon {
  font-weight: 800;
  font-size: 0.85rem;
  width: 14px;
  display: inline-flex;
  justify-content: center;
}

.category-toggle-name {
  line-height: 1.2;
}

.table-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: 240px;
}

/* CSV Import Modal Styling */
#csv-preview-container .data-table th,
#csv-preview-container .data-table td {
  padding: 0.5rem 0.75rem;
}

#csv-preview-container .data-table code {
  background: var(--bg-page);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ==========================================================================
   BULK ACTIONS BAR (PRODUTOS EM MASSA)
   ========================================================================== */

.bulk-actions-container {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease;
  flex-wrap: wrap;
}

.bulk-actions-container.active {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bulk-info-text {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bulk-badge-count {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.bulk-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   ATTRIBUTE GROUPS MANAGEMENT STYLES
   ========================================================================== */

.attribute-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.attribute-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.attribute-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.attribute-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.attribute-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.attribute-values-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-light);
  min-height: 50px;
}

.attribute-val-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.attribute-val-remove {
  cursor: pointer;
  color: var(--color-danger);
  font-size: 0.9rem;
  font-weight: bold;
}

.attribute-val-remove:hover {
  opacity: 0.7;
}

/* Attributes in Product Edit Modal */
.product-attribute-section {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.modal-attr-group-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.modal-attr-group-card.active {
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.modal-attr-group-card.inactive {
  opacity: 0.65;
  background: var(--bg-page);
  border-style: dashed;
}

.modal-attr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-color);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-attr-title-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.modal-attr-title-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.modal-attr-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-attr-body {
  padding: 0.75rem 0.9rem;
}

.modal-attr-body.collapsed {
  display: none;
}

.attr-quick-add-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border-color);
}

.attr-quick-add-input {
  flex: 1;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
}

/* Group Picker Checklist in Product Modal */
.attr-group-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: var(--bg-surface);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
}

.attr-group-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.attr-group-toggle-btn:hover {
  border-color: var(--color-primary);
}

.attr-group-toggle-btn.active {
  background: rgba(249, 115, 22, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

.stock-stepper-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stock-stepper-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stock-stepper-btn:hover {
  background: var(--border-color-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.attr-select-chips-container,
.attribute-select-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.attr-select-pill {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.attr-select-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(249, 115, 22, 0.06);
}

.attr-select-pill.selected,
.attr-select-pill.active,
.attr-select-pill[data-selected="true"] {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px var(--color-primary-glow) !important;
  transform: scale(1.02);
}

.attr-select-pill.selected::before,
.attr-select-pill.active::before,
.attr-select-pill[data-selected="true"]::before {
  content: "✓ ";
  font-weight: 800;
  margin-right: 2px;
}

/* ==========================================================================
   BANNERS ROTATIVOS (ADMIN TAB)
   ========================================================================== */

.banners-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.banner-admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.banner-admin-preview {
  position: relative;
  width: 100%;
  height: 140px;
  background: #0f172a;
  overflow: hidden;
}

.banner-admin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-admin-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
}

.banner-admin-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.banner-admin-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.banner-admin-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.banner-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color-light);
  margin-top: auto;
}

/* ==========================================================================
   ADMINISTRADORES & PERMISSÕES
   ========================================================================== */

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.role-badge-superadmin {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.role-badge-manager {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-badge-cashier {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-prod-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 1.5rem;
}

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

/* ==========================================================================
   SIZE GUIDES (ADMIN TAB)
   ========================================================================== */

.size-guides-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.size-guide-admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.size-guide-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.size-guide-admin-preview {
  position: relative;
  width: 100%;
  height: 180px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem;
}

.size-guide-admin-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.size-guide-admin-preview:hover img {
  transform: scale(1.03);
}

.size-guide-admin-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.size-guide-admin-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}

.size-guide-admin-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.35rem;
  flex: 1;
}

