:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --dark: #111827;
  --gray: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: #ffffff;
  min-height: 100vh;
}

header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: var(--white);
}

nav a:hover {
  background: var(--primary);
  color: var(--white);
}

.search-container {
  margin: 2.5rem auto;
  max-width: 700px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 60px 16px 20px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  background: var(--white);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-box button:hover {
  background: var(--primary-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--light);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-code {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  position: relative;
  padding-bottom: 4rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5rem;
}

.read-more-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

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

.description-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.description-modal.show {
  display: flex;
}

.description-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.description-content h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.description-content p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1rem;
}

.description-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.description-close:hover {
  background: var(--dark);
  transform: rotate(90deg);
}

/* Styles codes promo */
.price-section {
  position: relative;
  margin: 1rem 0 0.5rem 0;
}

.original-price.strikethrough {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 1.25rem !important;
  margin-bottom: 0.25rem !important;
}

.discounted-price {
  color: #16a34a !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.coupon-section {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.coupon-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.coupon-input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

.coupon-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  white-space: nowrap;
}

.coupon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.coupon-remove-btn {
  padding: 0.5rem 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.coupon-message {
  font-size: 0.85rem;
  margin: 0.25rem 0 0.5rem 0;
  padding: 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.coupon-message.success {
  color: #16a34a;
  background: #dcfce7;
}

.coupon-message.error {
  color: #dc2626;
  background: #fee2e2;
}

.coupon-message.info {
  color: #2563eb;
  background: #dbeafe;
}

.coupon-message.loading {
  color: #6b7280;
  background: #f3f4f6;
}

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

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

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.product-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.whatsapp-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 0.5rem;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.read-more-btn {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

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

.audio-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.audio-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.audio-btn:active {
  transform: scale(0.95);
}

.share-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: #1877f2;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.share-btn:hover {
  background: #166fe5;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.5);
}

.share-btn:active {
  transform: scale(0.95);
}

/* Barre de recherche en haut */
.search-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.search-box-main {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  gap: 0.75rem;
}

.search-input-main {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input-main:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
}

.search-btn-main {
  background: white;
  color: #667eea;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Premium & Carrousel - Design compact */
.carousel-container {
  margin: 2rem 0;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.carousel-title {
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: left;
  padding-left: 0.5rem;
  border-left: 4px solid #667eea;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-nav {
  background: white;
  border: 2px solid #667eea;
  color: #667eea;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-nav:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

.carousel {
  display: flex !important;
  gap: 1rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  flex: 1;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  min-width: 180px !important;
  max-width: 180px !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item .product-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem;
}

.carousel-item .product-image-container {
  padding-top: 75%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.carousel-item .product-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-item .product-price {
  font-size: 1rem;
  font-weight: 700;
  color: #667eea;
  margin: 0.25rem 0;
}

/* Premium Products - Compact */
.premium-products {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: hidden !important;
  gap: 1rem !important;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.premium-products .product-card {
  min-width: 160px !important;
  max-width: 160px !important;
  flex-shrink: 0 !important;
  text-align: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem;
  transition: transform 0.3s;
}

.premium-products .product-card:hover {
  transform: scale(1.05);
}

.premium-products .product-image-container {
  padding-top: 75%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.premium-products .product-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-products .product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f59e0b;
  margin: 0.25rem 0;
}

@media (max-width: 768px) {
  .search-box-main {
    flex-direction: column;
  }
  
  .search-btn-main {
    width: 100%;
  }
  
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .carousel-item {
    min-width: 140px !important;
    max-width: 140px !important;
  }
  
  .premium-products .product-card {
    min-width: 130px !important;
    max-width: 130px !important;
  }
}

.premium-products {
  display: flex !important;
  gap: 1.5rem;
  margin: 0 0 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  overflow-x: auto;
}

.premium-products .product-card {
  font-size: 0.9rem;
  text-align: center;
  min-width: 150px !important;
  max-width: 200px !important;
  flex-shrink: 0 !important;
}

.premium-products .product-code {
  position: static;
  display: block;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  margin: 0.5rem auto;
  width: fit-content;
}

.premium-products .product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.premium-products .product-description {
  display: none;
}

.premium-products .product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0;
}

.premium-products .whatsapp-btn,
.premium-products .audio-btn,
.premium-products .share-btn {
  display: none;
}

.premium-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  z-index: 10;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-number:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-number.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  max-width: 540px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}

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

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.admin-container {
  max-width: 1400px;
  margin: 2rem auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-card p {
  color: var(--gray);
  font-weight: 600;
  font-size: 1rem;
}

.admin-table {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

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

thead {
  background: var(--primary);
  color: white;
}

thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
}

tbody tr {
  border-bottom: 1px solid var(--border);
}

tbody tr:hover {
  background: var(--light);
}

tbody td {
  padding: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

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

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

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--light);
  padding: 20px;
}

.login-box {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  max-width: 440px;
  width: 100%;
}

.login-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--primary);
}

.login-logo h2 {
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.login-logo p {
  color: var(--gray);
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
  grid-column: 1/-1;
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.tab-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .modal-content {
    margin: 10% 15px;
  }
  
  .admin-header {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-name {
    font-size: 1.125rem;
  }
  
  .product-price {
    font-size: 1.5rem;
  }
}
