/* ==================== GLOBAL STYLES ==================== */

:root {
  --primary-color: #d4562a;
  --secondary-color: #1a1a1a;
  --accent-color: #f39c12;
  --light-gray: #f5f5f5;
  --border-color: #ddd;
  --text-dark: #333;
  --text-light: #666;
  --success-color: #27ae60;
  --error-color: #e74c3c;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* ==================== TYPOGRAPHY ==================== */

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.8rem; }
h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* ==================== CONTAINER ==================== */

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

/* ==================== NAVBAR ==================== */

nav.navbar {
  background: linear-gradient(135deg, var(--secondary-color), #2a2a2a);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .logo img {
  height: 40px;
  width: auto;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: white;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-menu a:hover {
  color: var(--accent-color);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* ==================== HERO SECTION ==================== */

.hero {
  background: linear-gradient(135deg, rgba(212, 86, 42, 0.8), rgba(193, 71, 31, 0.8)),
              url('images/background-image.jpeg') center/cover no-repeat;
  color: white;
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: slideInUp 0.8s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero .btn {
  animation: slideInUp 0.8s ease 0.4s backwards;
}

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

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

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

.btn-secondary:hover {
  background: #000;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* ==================== SECTIONS ==================== */

section {
  padding: 60px 20px;
}

section.light-bg {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ==================== CATEGORIES ==================== */

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

.category-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(212, 86, 42, 0.2);
}

.category-card-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border-color);
  transition: var(--transition);
}

.category-card:hover .category-card-image {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card h3 {
  color: var(--text-dark);
}

/* ==================== PRODUCTS ==================== */

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

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  background: var(--light-gray);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-badge.featured {
  background: var(--primary-color);
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  color: var(--primary-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-stock {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.product-stock.in-stock {
  color: var(--success-color);
}

.product-stock.low-stock {
  color: var(--accent-color);
}

.product-stock.out-of-stock {
  color: var(--error-color);
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-price-original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.product-discount {
  background: var(--error-color);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.product-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.product-actions .btn-add-cart {
  background: var(--primary-color);
  color: white;
}

.product-actions .btn-add-cart:hover {
  background: var(--accent-color);
}

.product-actions .btn-details {
  background: var(--secondary-color);
  color: white;
}

.product-actions .btn-details:hover {
  background: #000;
}

/* ==================== FILTERS ==================== */

.filters-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.filter-group select,
.filter-group input {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
}

/* ==================== TESTIMONIALS ==================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.testimonial-stars {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ==================== WHY CHOOSE US ==================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
}

/* ==================== CART ==================== */

.cart-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.cart-items {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--light-gray);
  border-radius: 5px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.quantity-input button {
  background: var(--light-gray);
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-input button:hover {
  background: var(--primary-color);
  color: white;
}

.quantity-input input {
  width: 50px;
  border: none;
  text-align: center;
  font-weight: 600;
}

.remove-btn {
  background: var(--error-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.remove-btn:hover {
  opacity: 0.8;
}

.cart-summary {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cart-summary-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  border-top: 2px solid white;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-cart p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ==================== CHECKOUT ==================== */

.checkout-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.form-section h3 {
  color: var(--primary-color);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

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

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

.form-required::after {
  content: ' *';
  color: var(--error-color);
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover {
  border-color: var(--primary-color);
  background: rgba(212, 86, 42, 0.05);
}

.payment-option input[type="radio"] {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.payment-option label {
  cursor: pointer;
  font-weight: 600;
  flex: 1;
  margin: 0;
}

.order-summary-checkout {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.order-summary-checkout h3 {
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid white;
}

.order-item:last-child {
  border-bottom: none;
}

.checkout-btn {
  width: 100%;
  margin-top: 1rem;
}

/* ==================== FOOTER ==================== */

footer {
  background: linear-gradient(135deg, var(--secondary-color), #2a2a2a);
  color: white;
  padding: 3rem 20px 1rem;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.8rem;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
}

/* ==================== MODAL ==================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

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

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

.modal-header h2 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  margin-bottom: 1.5rem;
}

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

/* ==================== ALERTS ==================== */

.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .navbar-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .cart-summary {
    position: static;
  }

  .filters-row {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .modal-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .navbar .container {
    justify-content: space-between;
  }

  .navbar .logo {
    font-size: 1.3rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  section {
    padding: 40px 15px;
  }

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

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

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

  /* Mobile products sidebar fix */
  [style*="grid-template-columns: 250px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==================== WHATSAPP CHAT BUTTON ==================== */

.whatsapp-chat {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-chat::before {
  content: '💬';
  font-size: 1.2rem;
}

.whatsapp-chat:hover {
  background: #128C7E;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==================== IMAGE OPTIMIZATIONS ==================== */

img {
  max-width: 100%;
  height: auto;
}

/* ==================== LOADING ANIMATION ==================== */

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

.product-card {
  animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

/* ==================== ADMIN PANEL ==================== */

.admin-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  background: var(--secondary-color);
  color: white;
  padding: 2rem 1rem;
  border-right: 1px solid var(--border-color);
}

.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-tab {
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
}

.admin-tab:hover, .admin-tab.active {
  background: var(--primary-color);
  color: white;
}

.admin-main {
  padding: 2rem;
  background: var(--light-gray);
}

.admin-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-content.active {
  display: block;
}

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

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-color);
}

.stat-card h3 {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.admin-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.admin-card table th, .admin-card table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
}

.admin-card table th {
  background: #f8f9fa;
  font-weight: 700;
}

@media (max-width: 768px) {
  .admin-container {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    padding: 1rem;
  }
  
  .admin-tabs {
    flex-direction: row;
    overflow-x: auto;
  }
}
