:root {
    --primary-color: #000000;
    --accent-color: #D2034B;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-animate { opacity: 0; animation: slideInUp 0.8s ease forwards; }
.section-animate:nth-child(1) { animation-delay: 0.1s; }
.section-animate:nth-child(2) { animation-delay: 0.2s; }
.section-animate:nth-child(3) { animation-delay: 0.3s; }
.section-animate:nth-child(4) { animation-delay: 0.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #D2034B 0%, #8B0230 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hover-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(210, 3, 75, 0.2) !important;
}

/* Status Badges */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: capitalize;
}

.status-placed { background-color: #6c757d; color: white; }
.status-accepted { background-color: #A50339; color: white; }
.status-preparing { background-color: #ffc107; color: black; }
.status-ready { background-color: #065F46; color: white; }
.status-picked_up { background-color: #6f42c1; color: white; }
.status-on_the_way { background-color: #fd7e14; color: white; }
.status-delivered { background-color: #198754; color: white; }
.status-cancelled { background-color: #dc3545; color: white; }

/* Timeline Utility */
.order-timeline { position: relative; padding-left: 30px; }
.order-timeline::before {
    content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e5e7eb;
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before {
    content: ''; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px;
    border-radius: 50%; background: #e5e7eb; border: 2px solid white; box-shadow: 0 0 0 2px white;
}
.timeline-item.active::before { background: var(--accent-color); }

/* Mobile Bottom Nav (Legacy support until refactor) */
.mobile-nav { display: none; }
@media (max-width: 768px) {
    .mobile-nav {
        display: block; position: fixed; bottom: 0; left: 0; right: 0;
        background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 50; padding: 0.5rem 0;
    }
    .mobile-nav .nav { display: flex; justify-content: space-around; align-items: center; }
    .mobile-nav .nav-link {
        display: flex; flex-direction: column; align-items: center;
        color: #6b7280; text-decoration: none; font-size: 0.7rem; padding: 0.25rem;
    }
    .mobile-nav .nav-link i { font-size: 1.25rem; margin-bottom: 2px; }
    .mobile-nav .nav-link.active { color: var(--accent-color); font-weight: 500; }
    body { padding-bottom: 70px; }
}

/* Rating Stars */
.rating-stars { color: #F59E0B; }
.rating-stars i { cursor: pointer; transition: transform 0.2s; }
.rating-stars i:hover { transform: scale(1.2); }

/* Vendor & Product Cards (Custom transitions) */
.vendor-card, .product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.vendor-card:hover, .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Reduce Motion Pref */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
