/* ════════════════════════════════════════════════════════════════════════════════ */
/* CATALOGS PAGE - Styles */
/* ════════════════════════════════════════════════════════════════════════════════ */

:root {
  --primary-color: #014651;
  --secondary-color: #0a8fa0;
  --accent-color: #00c4d4;
  --dark-color: #1a1a1a;
  --light-color: #f5f7fa;
  --light-gray: #ecf0f1;
  --border-color: #e0e6ed;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --bg-subtle: #e8f5f7;
}

/* ════════════════════════════════════════════════════════════════════════════════ */
/* Animations */
/* ════════════════════════════════════════════════════════════════════════════════ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ────────────────────────────────────────────────────────────────────────────────── */
/* Layout Base */
/* ────────────────────────────────────────────────────────────────────────────────── */

.app-layout {
  display: flex;
  height: 100vh;
  background-color: var(--light-color);
}

.sidebar {
  width: 300px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #025666 100%);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  color: white;
  box-shadow: 0 2px 8px rgba(3, 110, 126, 0.1);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.sidebar-title i {
  font-size: 24px;
  color: var(--accent-color);
}

.btn-icon {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Search Bar */
.search-bar {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-bar i {
  color: var(--accent-color);
}

.search-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Catalog List */
.catalog-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.catalog-item {
  padding: 14px 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease-out;
}

.catalog-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: var(--accent-color);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.catalog-item.active {
  background: var(--accent-color);
  color: var(--primary-color);
  border-left-color: white;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.25);
}

.catalog-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-item-name i {
  font-size: 16px;
  line-height: 1;
}

.catalog-item-meta {
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.catalog-item-status {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalog-item-status.ativo {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.catalog-item-status.pausado {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.catalog-item-status.rejeitado {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ccc;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
  color: #888;
}

/* ────────────────────────────────────────────────────────────────────────────────── */
/* Main Content Area */
/* ────────────────────────────────────────────────────────────────────────────────── */

.catalogs-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--light-color);
  position: relative;
}

.catalogs-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  animation: slideIn 0.3s ease-out;
}

.catalogs-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.catalogs-header-left h5 {
  margin: 0;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 20px;
  letter-spacing: -0.3px;
}

.catalogs-header-left .btn-icon {
  color: var(--primary-color);
}

.catalogs-header-actions {
  display: flex;
  gap: 10px;
}

.catalogs-header-actions .btn {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.catalogs-header-actions .btn-outline-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.catalogs-header-actions .btn-outline-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.catalogs-header-actions .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: white;
}

.catalogs-header-actions .btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Main Content */
.catalogs-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalogs-content.has-content {
  display: block;
  align-items: auto;
  justify-content: auto;
}

.catalog-details {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  animation: fadeIn 0.3s ease-out;
}

.catalog-details-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, rgba(240, 249, 251, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
  margin: -30px -30px 28px -30px;
  padding: 24px 30px;
  border-radius: 8px 8px 0 0;
}

.catalog-details-header-content {
  flex: 1;
}

.catalog-details-header-left {
  flex: 1;
}

.catalog-details-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  margin-bottom: 8px;
  letter-spacing: -0.8px;
}

.catalog-details-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.catalog-details-actions {
  display: flex;
  gap: 8px;
}

.catalog-details-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.catalog-details-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Catalog Fields */
.catalog-field {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
}

.catalog-field-label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-field-value {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-badge.ativo {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.status-badge.pausado {
  background: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.status-badge.rejeitado {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Quality Badge */
.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.quality-badge .quality-score {
  font-size: 18px;
  font-weight: 700;
}

.quality-badge.high { 
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.quality-badge.medium { 
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.quality-badge.low { 
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Quality Issues */
.quality-issues {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #dc3545;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
  animation: slideIn 0.3s ease-out;
}

.quality-issues-title {
  font-weight: 700;
  color: #856404;
  margin: 0 0 10px 0;
  font-size: 14px;
}

.quality-issues-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quality-issues-list li {
  padding: 6px 0;
  color: #333;
  font-size: 13px;
  display: flex;
  gap: 8px;
}

.quality-issues-list li:before {
  content: "⚠";
  color: #ffc107;
  font-weight: bold;
  min-width: 16px;
}

/* Products Section */
.catalog-products {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.catalog-products-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 20px 0;
  letter-spacing: -0.3px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* Quick Stats Grid - Modern Card Design */
/* ═══════════════════════════════════════════════════════════════ */

.catalog-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0 0 30px 0;
  padding: 24px 0;
  border-bottom: 2px solid var(--border-color);
}

.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, rgba(240, 249, 251, 0.5) 100%);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.quick-stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(3, 110, 126, 0.12);
  border-color: var(--secondary-color);
}

.quick-stat-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(3, 110, 126, 0.1) 0%, rgba(10, 159, 181, 0.05) 100%);
  border-radius: 10px;
}

.quick-stat-info {
  flex: 1;
}

.quick-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

.quick-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.quick-stat-value.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}

/* Quality Color Variants */
.quality-stat .quick-stat-value.quality-high {
  color: #10b981;
}

.quality-stat .quick-stat-value.quality-medium {
  color: #f59e0b;
}

.quality-stat .quick-stat-value.quality-low {
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════ */
/* Info Section - Organized Grid Layout */
/* ═══════════════════════════════════════════════════════════════ */

.catalog-info-section {
  margin: 30px 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 251, 0.4) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.info-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
}

.info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* Enhanced Stat Cards with Icons */
/* ═══════════════════════════════════════════════════════════════ */

.stat-card-primary {
  background: linear-gradient(135deg, #f0f9fb 0%, #e0f2fe 100%);
  border-color: #00d4ff;
  border-width: 2px;
}

.stat-card-primary:hover {
  box-shadow: 0 12px 32px rgba(3, 110, 126, 0.2);
  border-color: #036e7e;
}

.stat-card-quality {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  border-width: 2px;
}

.stat-card-quality:hover {
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
  border-color: #d97706;
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
  text-align: center;
}

.product-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.3s ease-out;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(2, 47, 64, 0.12);
  backdrop-filter: blur(14px);
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 48px rgba(2, 47, 64, 0.18);
  transform: translateY(-4px);
}

.product-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.product-gallery img,
.product-gallery .product-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-card-status.status-active {
  font-size: 11px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(21, 87, 36, 0.1);
}

.product-card-status.status-inactive {
  font-size: 11px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(114, 28, 36, 0.1);
}

.product-card-img {
  width: 100%;
  height: 140px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 36px;
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 14px;
}

.product-card-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--dark-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card-price {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-status {
  display: inline-block;
  padding: 4px 8px;
  background: var(--bg-subtle);
  border-radius: 4px;
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 600;
  border: 1px solid var(--border-color);
}

/* Stats Cards */
.catalogs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.3s ease-out 0.1s backwards;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, white 100%);
  padding: 18px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(3, 110, 126, 0.1);
  transform: translateY(-2px);
}

.stat-card.active {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, rgba(3, 110, 126, 0.05) 0%, rgba(10, 159, 181, 0.02) 100%);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 6px 0;
  animation: bounce 2s infinite;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Modal */
.modal-header {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, white 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 20px;
}

.modal-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 18px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.form-control,
.form-select,
.form-control-plaintext {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(3, 110, 126, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Detail Row Styling */
.detail-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row strong {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
  display: block;
  margin-bottom: 6px;
}

.detail-row p {
  margin: 0;
  color: #333;
  font-size: 14px;
  word-break: break-word;
}

/* ────────────────────────────────────────────────────────────────────────────────── */
/* Buttons */
/* ────────────────────────────────────────────────────────────────────────────────── */

.btn {
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: -0.3px;
}

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

/* Primary Buttons */
.btn-success {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #025666 0%, #08879a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(3, 110, 126, 0.25);
}

/* Info Buttons */
.btn-info {
  background: var(--info-color);
  color: white;
}

.btn-info:hover {
  background: #0891b2;
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

/* Warning/Secondary Buttons */
.btn-outline-warning {
  border: 1.5px solid #f59e0b;
  color: #f59e0b;
  background: transparent;
}

.btn-outline-warning:hover {
  background: #fffbeb;
  border-color: #d97706;
  color: #d97706;
}

/* Secondary Buttons */
.btn-secondary {
  background: #64748b;
  color: white;
}

.btn-secondary:hover {
  background: #475569;
  color: white;
}

/* Danger Buttons */
.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* Primary Outline */
.btn-outline-primary {
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

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

/* Small Button Variant */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Offers Button */
.btn-offers {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.btn-offers:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.spinner-border {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    width: 280px;
    height: 100vh;
    z-index: 999;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .catalogs-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .catalogs-header-left,
  .catalogs-header-actions {
    width: 100%;
  }

  .catalogs-header-actions {
    justify-content: flex-start;
  }

  .catalog-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .catalog-field-label {
    font-size: 12px;
  }

  .catalogs-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .catalogs-stats {
    grid-template-columns: 1fr;
  }

  .catalogs-content {
    padding: 10px;
  }

  .catalog-details {
    padding: 15px;
  }

  .catalog-details-title {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* ════════════════════════════════════════════════════════════════════════════════ */
/* Botão de Ofertas - Estilo Especial */
/* ════════════════════════════════════════════════════════════════════════════════ */

.btn-offers {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-offers:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

.btn-offers:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

/* Animação de pulso no ícone */
.btn-offers i {
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
