/* JIGO Customer Styles - Complete Premium UI */
:root {
    --jigo-primary: #FF4B2B;
    --jigo-secondary: #FF6B35;
    --jigo-dark: #111827;
    --jigo-text: #1F2937;
    --jigo-muted: #6B7280;
    --jigo-light-muted: #9CA3AF;
    --jigo-bg: #F8F9FA;
    --jigo-card: #FFFFFF;
    --jigo-border: #E5E7EB;
    --jigo-success: #16A34A;
    --jigo-warning: #F59E0B;
    --jigo-error: #DC2626;
    --jigo-radius: 12px;
    --jigo-radius-lg: 16px;
    --jigo-radius-xl: 20px;
    --jigo-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
    --jigo-shadow: 0 1px 3px rgba(17, 24, 39, 0.1), 0 1px 2px rgba(17, 24, 39, 0.06);
    --jigo-shadow-md: 0 4px 6px rgba(17, 24, 39, 0.07), 0 2px 4px rgba(17, 24, 39, 0.06);
    --jigo-shadow-lg: 0 10px 15px rgba(17, 24, 39, 0.1), 0 4px 6px rgba(17, 24, 39, 0.05);
    --jigo-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --jigo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--jigo-font);
    background: var(--jigo-bg);
    color: var(--jigo-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* ============ CONTAINER ============ */
.jigo-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ============ HERO SECTION ============ */
.jigo-hero {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 48px 24px;
    border-bottom: 1px solid var(--jigo-border);
    position: relative;
    overflow: hidden;
}

.jigo-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 75, 43, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.jigo-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.jigo-hero-content {
    max-width: 600px;
}

.jigo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 75, 43, 0.08);
    color: var(--jigo-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.jigo-hero-badge i {
    font-size: 12px;
}

.jigo-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--jigo-dark);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.jigo-hero h1 .highlight {
    color: var(--jigo-primary);
}

.jigo-hero p {
    font-size: 16px;
    color: var(--jigo-muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ============ BUTTONS ============ */
.jigo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--jigo-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jigo-transition);
    text-decoration: none;
    border: none;
    font-family: var(--jigo-font);
}

.jigo-btn-primary {
    background: var(--jigo-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 75, 43, 0.2);
}

.jigo-btn-primary:hover {
    background: #E63E1F;
    box-shadow: 0 4px 8px rgba(255, 75, 43, 0.3);
    transform: translateY(-1px);
}

.jigo-btn-secondary {
    background: white;
    color: var(--jigo-text);
    border: 1px solid var(--jigo-border);
    box-shadow: var(--jigo-shadow-sm);
}

.jigo-btn-secondary:hover {
    border-color: #D1D5DB;
    box-shadow: var(--jigo-shadow);
    transform: translateY(-1px);
}

/* ============ SEARCH MODULE ============ */
.jigo-search-section {
    max-width: 1280px;
    margin: -24px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.jigo-search-module {
    background: white;
    border-radius: var(--jigo-radius-lg);
    box-shadow: var(--jigo-shadow-lg);
    padding: 8px;
    border: 1px solid var(--jigo-border);
}

.jigo-search-location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jigo-text);
    border-bottom: 1px solid #F3F4F6;
}

.jigo-search-location i {
    color: var(--jigo-primary);
    font-size: 14px;
}

.jigo-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
}

.jigo-search-icon {
    color: var(--jigo-light-muted);
    font-size: 16px;
    margin-left: 12px;
}

.jigo-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 12px 0;
    font-family: var(--jigo-font);
    color: var(--jigo-text);
    min-width: 0;
}

.jigo-search-input::placeholder {
    color: var(--jigo-light-muted);
}

.jigo-search-button {
    background: var(--jigo-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--jigo-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jigo-transition);
    font-family: var(--jigo-font);
    white-space: nowrap;
}

.jigo-search-button:hover {
    background: #E63E1F;
}

/* ============ SECTIONS ============ */
.jigo-section {
    margin-bottom: 48px;
}

.jigo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.jigo-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--jigo-dark);
    letter-spacing: -0.3px;
}

.jigo-section-subtitle {
    font-size: 14px;
    color: var(--jigo-muted);
    margin-top: 4px;
}

.jigo-view-all {
    color: var(--jigo-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--jigo-transition);
}

.jigo-view-all:hover {
    gap: 8px;
}

/* ============ CATEGORIES ============ */
.jigo-categories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.jigo-categories-scroll::-webkit-scrollbar {
    display: none;
}

.jigo-category-item {
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    color: var(--jigo-text);
    width: 80px;
    transition: var(--jigo-transition);
}

.jigo-category-item:hover {
    transform: translateY(-2px);
}

.jigo-category-image {
    width: 72px;
    height: 72px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--jigo-transition);
}

.jigo-category-item:hover .jigo-category-image {
    border-color: var(--jigo-primary);
    background: #FFF5F1;
}

.jigo-category-image i {
    font-size: 28px;
    color: var(--jigo-muted);
    transition: var(--jigo-transition);
}

.jigo-category-item:hover .jigo-category-image i {
    color: var(--jigo-primary);
}

.jigo-category-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--jigo-text);
    display: block;
    line-height: 1.3;
}

/* ============ RESTAURANT CARDS ============ */
.jigo-restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.jigo-restaurant-card {
    background: white;
    border-radius: var(--jigo-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--jigo-text);
    border: 1px solid var(--jigo-border);
    transition: var(--jigo-transition);
    display: block;
}

.jigo-restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--jigo-shadow-md);
    border-color: #D1D5DB;
}

.jigo-restaurant-image {
    height: 180px;
    background: #F3F4F6;
    position: relative;
    overflow: hidden;
}

.jigo-restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--jigo-transition);
}

.jigo-restaurant-card:hover .jigo-restaurant-image img {
    transform: scale(1.05);
}

.jigo-restaurant-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #D1D5DB;
}

.jigo-restaurant-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--jigo-success);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jigo-restaurant-info {
    padding: 16px;
}

.jigo-restaurant-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--jigo-dark);
    margin-bottom: 8px;
}

.jigo-restaurant-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--jigo-muted);
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.jigo-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--jigo-success);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.jigo-rating i {
    font-size: 10px;
}

.jigo-restaurant-cuisine {
    font-size: 13px;
    color: var(--jigo-muted);
    margin-bottom: 4px;
}

.jigo-restaurant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.jigo-restaurant-price {
    font-size: 13px;
    color: var(--jigo-text);
    font-weight: 500;
}

.jigo-restaurant-offer {
    font-size: 12px;
    color: var(--jigo-primary);
    font-weight: 600;
}

/* ============ CART BUTTON ============ */
.jigo-cart-btn {
    background: var(--jigo-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--jigo-font);
    transition: var(--jigo-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jigo-cart-btn:hover {
    background: #E63E1F;
    transform: translateY(-1px);
}

/* ============ EMPTY STATES ============ */
.jigo-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--jigo-radius-lg);
    border: 1px solid var(--jigo-border);
}

.jigo-empty-icon {
    font-size: 48px;
    color: #D1D5DB;
    margin-bottom: 16px;
}

.jigo-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--jigo-dark);
    margin-bottom: 8px;
}

.jigo-empty-text {
    font-size: 14px;
    color: var(--jigo-muted);
    margin-bottom: 20px;
}

/* ============ TOAST NOTIFICATIONS ============ */
.jigo-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.jigo-toast {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #16A34A;
}

.jigo-toast-success { border-left-color: #16A34A; }
.jigo-toast-success > i:first-child { color: #16A34A; }

.jigo-toast-error { border-left-color: #DC2626; }
.jigo-toast-error > i:first-child { color: #DC2626; }

.jigo-toast-info { border-left-color: #F59E0B; }
.jigo-toast-info > i:first-child { color: #F59E0B; }

.jigo-toast > i:first-child { font-size: 20px; }

.jigo-toast span { 
    flex: 1; 
    font-size: 14px; 
    color: #1F2937; 
}

.jigo-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 4px;
}

.jigo-toast-close:hover { color: #6B7280; }

.jigo-toast-hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============ SEARCH SUGGESTIONS ============ */
.jigo-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #1F2937;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #F9FAFB;
}

.suggestion-item i {
    color: #9CA3AF;
    font-size: 13px;
}

/* ============ CART ANIMATION ============ */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.cart-bounce {
    animation: cartBounce 0.5s ease-in-out;
}

/* ============ QUANTITY CONTROLS ============ */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #6B7280;
}

.qty-btn:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* ============ FAVORITE BUTTON ============ */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.favorite-btn:hover {
    background: #F3F4F6;
}

.favorite-btn i {
    font-size: 20px;
    color: #9CA3AF;
    transition: all 0.2s;
}

.favorite-btn.active i {
    color: #EF4444;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .jigo-hero {
        padding: 32px 16px;
    }
    
    .jigo-hero h1 {
        font-size: 28px;
    }
    
    .jigo-hero p {
        font-size: 14px;
    }
    
    .jigo-container {
        padding: 24px 16px;
    }
    
    .jigo-search-section {
        padding: 0 16px;
        margin-top: -16px;
    }
    
    .jigo-section {
        margin-bottom: 32px;
    }
    
    .jigo-section-title {
        font-size: 20px;
    }
    
    .jigo-category-image {
        width: 64px;
        height: 64px;
    }
    
    .jigo-category-image i {
        font-size: 24px;
    }
    
    .jigo-restaurant-image {
        height: 160px;
    }
    
    .jigo-restaurants-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .jigo-restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .jigo-restaurants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .jigo-restaurants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}