:root {
  --primary-color: #0d6efd;
  --secondary-color: #fd7e14;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --success-color: #198754;
  --danger-color: #dc3545;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #fff4ea, #ff6d4d);
  color: #152039;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.restaurant-name {
  font-weight: 700;
  font-size: 1.8rem;
}

.restaurant-address {
  font-size: 1rem;
  opacity: 0.9;
}

/* Product Card Styles */
.product-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.product-image {
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-title {
  font-weight: 600;
  color: var(--dark-color);
}

.product-description {
  color: #6c757d;
  font-size: 0.7rem;
}

.product-price {
  font-weight: 700;
  color: #ff6d4d;
}

.add-to-cart-btn {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #e0670d;
  border-color: #e0670d;
  color: white;
}

/* Cart Styles */
.cart-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.cart-header {
  background-color: #ff6d4d;
  color: white;
  padding: 1rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.cart-item {
  border-bottom: 1px solid #eee;
  padding: 0.8rem 0;
}

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

.cart-total {
  background-color: var(--light-color);
  font-weight: 700;
  padding: 1rem;
}

.whatsapp-btn {
  background-color: #25D366;
  border-color: #25D366;
  color: white;
  font-weight: 600;
}

.whatsapp-btn:hover {
  background-color: #1da851;
  border-color: #1da851;
  color: white;
}

/* Floating Cart Button for Mobile */
.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border: none;
}

.floating-cart-btn:hover {
  background-color: #e0670d;
}

/* Admin Styles */
.admin-header {
  background: linear-gradient(135deg, var(--dark-color), #343a40);
  color: white;
  padding: 1.5rem 0;
}

.admin-section {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.admin-section-title {
  border-bottom: 2px solid #ff6d4d;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.table-actions .btn {
  margin-right: 5px;
}

.table-actions .btn:last-child {
  margin-right: 0;
}

/* Modal Styles */
.modal-header {
  background-color: #ff6d4d;
  color: white;
}

.modal-header.admin {
  background-color: var(--dark-color);
}

/* Form Styles */
.form-label {
  font-weight: 600;
  color: var(--dark-color);
}

/* Badge Styles */
.badge-category {
  background-color: #ff6d4d;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cart-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 0;
  }
  
  .cart-container.show {
    transform: translateY(0);
  }
  
  .floating-cart-btn {
    display: flex;
  }
  
  .restaurant-name {
    font-size: 1.5rem;
  }
}

/* Loading Spinner */
.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

/* Logo del restaurante */
.restaurant-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .restaurant-logo {
        width: 90px;
        height: 45px;
    }
    
    .restaurant-name {
        font-size: 1.2rem;
    }
    
    .restaurant-address {
        font-size: 0.85rem;
    }
    
    .text-center-xs {
        margin-top: 5px !important;
        text-align: center !important;
    }
    
    .mb-6-xs {
        margin-bottom: 6rem !important;
    }
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);
    background-color: var(--bs-modal-footer-bg);
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    border-bottom-right-radius: var(--bs-modal-inner-border-radius);
    border-bottom-left-radius: var(--bs-modal-inner-border-radius);
}