.inventory-page {
  margin: 0 auto;
}

.inventory-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.admin-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 0.4rem;
  padding: var(--space-3) var(--space-8);
  margin-bottom: calc(var(--space-20) * 0.4);
  font-size: 0.9rem;
}

.admin-badge {
  background: #0ea5e9;
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: 0.4rem;
  font-weight: 500;
  font-size: 0.8rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-info {
  color: #0369a1;
  font-weight: 500;
}

.panel-link, .logout-link {
  color: #0369a1;
  text-decoration: none;
  font-size: 0.8rem;
  padding: var(--space-2) var(--space-3);
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}

.panel-link {
  background: rgba(3, 105, 161, 0.1);
}

.logout-link {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.panel-link:hover {
  background: rgba(3, 105, 161, 0.2);
  transform: translateY(-1px);
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.inventory-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.inventory-actions {
  margin-top: var(--space-3);
}

.log-link {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: #f3f4f6;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.log-link:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: calc(var(--space-20) * 0.6);
}

.stat-card {
  background: white;
  padding: var(--space-10);
  border-radius: 0.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-left: 4px solid #e5e7eb;
}

.stat-card.in-stock {
  border-left-color: #10b981;
}

.stat-card.low-stock {
  border-left-color: #f59e0b;
}

.stat-card.out-of-stock {
  border-left-color: #ef4444;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: var(--space-3);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.inventory-section {
  margin-bottom: calc(var(--space-20) * 0.6);
}

.inventory-section h2 {
  margin-bottom: var(--space-8);
  font-size: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.product-card {
  background: white;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

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

.product-card img, .product-card .no-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-info {
  padding: var(--space-8);
}

.product-info h3 {
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
}

.stock-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.stock-status {
  background: #fee2e2;
  color: #991b1b;
  padding: var(--space-2) var(--space-3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.price {
  font-weight: bold;
  color: var(--text-primary);
}

.product-actions {
  display: flex;
  gap: var(--space-3);
}

.btn-edit, .btn-view, .btn-small {
  padding: var(--space-3) var(--space-6);
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-edit {
  background: #3b82f6;
  color: white;
}

.btn-view {
  background: var(--text-secondary);
  color: white;
}

.btn-small {
  background: #f3f4f6;
  color: var(--text-primary);
  padding: var(--space-2) var(--space-3);
}

.btn-edit:hover, .btn-view:hover, .btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.inventory-table {
  background: white;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.inventory-table table {
  width: 100%;
  border-collapse: collapse;
}

.inventory-table th {
  background: var(--bg-primary);
  padding: var(--space-6);
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid #e5e7eb;
  font-family: var(--font-sans);
}

.inventory-table td {
  padding: var(--space-6);
  border-bottom: 1px solid #f3f4f6;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.product-cell img {
  width: 50px;
  height: 50px;
  border-radius: 0.4rem;
  object-fit: cover;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-image {
  width: 50px;
  height: 50px;
  border-radius: 0.4rem;
  object-fit: cover;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.variant-info {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: var(--space-2);
  font-style: italic;
  font-family: var(--font-sans);
}

.status-badge {
  padding: var(--space-2) var(--space-3);
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-sans);
}

.status-badge.in_stock {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.low_stock {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.out_of_stock {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.pre_order {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.discontinued {
  background: #f3f4f6;
  color: var(--text-secondary);
}

.stock-number {
  font-weight: bold;
  font-family: var(--font-sans);
}

.unlimited {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.actions-cell {
  display: flex;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .inventory-page {
    padding: var(--space-6);
  }

  .admin-notice {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .admin-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

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

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

  .inventory-table {
    overflow-x: auto;
  }
}
