:root {
    --primary-color: #000;
    --secondary-color: #28A745;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px;
}

/* Bootstrap customization */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

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

.btn-secondary:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://costillayparrilla.com/uploads/imagenes/Costilla-Parrilla-banner-fondo.jpg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.1;
    z-index: 0;
}

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

.hero-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

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

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.category-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 50px 0;
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
        margin-top: 30px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: 100vh;
    padding-top: 30px;
    width: 250px;
    z-index: 1050;
    transition: left 0.3s ease;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.admin-content {
    padding: 30px;
    margin-left: 250px;
    min-height: 100vh;
    background-color: #f8f9fa;
    transition: margin-left 0.3s ease;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1060;
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #e55a2b;
    transform: scale(1.05);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .admin-content {
        margin-left: 0;
        padding: 20px;
        padding-top: 80px;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-sidebar .nav-link {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
        margin-bottom: 0;
    }
    
    .admin-sidebar .nav-link:hover {
        transform: none;
        background-color: rgba(255, 107, 53, 0.8);
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast customization */
.toast {
    border-radius: 10px;
}

/* File upload styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Delivery option styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Transfer info styling */
.transfer-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-line;
}

.transfer-info strong {
    color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.transfer-info small {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
}

/* Payment method section */
.form-check-label {
    cursor: pointer;
    font-weight: 500;
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}