/* FoodDesk Local CSS - Simulating Tailwind-like Utilities */
:root {
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --primary: #ea580c;
    /* Orange-600 */
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    /* Slate-100 */
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #ea580c;
    --radius: 0.5rem;

    /* Food Custom Colors */
    --food-green: #22c55e;
    --food-yellow: #eab308;
    --food-orange-dark: #c2410c;
}

*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--border);
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: inherit;
}

/* Typography */
.font-display {
    font-family: 'Outfit', sans-serif;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-primary {
    color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-secondary {
    color: var(--secondary-foreground);
    /* mapped */
}

.text-secondary-foreground {
    color: var(--secondary-foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-foreground {
    color: var(--foreground);
}

.text-food-yellow {
    color: var(--food-yellow);
}

.text-green-600 {
    color: #16a34a;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.capitalize {
    text-transform: capitalize;
}

.line-through {
    text-decoration: line-through;
}

/* Backgrounds */
.bg-background {
    background-color: var(--background);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary\/10 {
    background-color: rgba(234, 88, 12, 0.1);
}

.bg-primary\/20 {
    background-color: rgba(234, 88, 12, 0.2);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-secondary\/10 {
    background-color: rgba(241, 245, 249, 0.1);
}

.bg-secondary\/50 {
    background-color: rgba(241, 245, 249, 0.5);
}

.bg-card {
    background-color: var(--card);
}

.bg-card\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-card\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bg-accent\/10 {
    background-color: rgba(241, 245, 249, 0.1);
}

.bg-accent\/30 {
    background-color: rgba(241, 245, 249, 0.3);
}

.bg-muted {
    background-color: var(--muted);
}

.bg-food-green {
    background-color: var(--food-green);
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-green-500\/10 {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-transparent {
    background-color: transparent;
}

/* Layout */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-col-reverse {
    flex-direction: column-reverse;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.flex-1 {
    flex: 1 1 0%;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pl-4 {
    padding-left: 1rem;
}

.ml-auto {
    margin-left: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-8 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

/* Sizing */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-16 {
    height: 4rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.h-7 {
    height: 1.75rem;
}

.w-2 {
    width: 0.5rem;
}

.h-2 {
    height: 0.5rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* Borders & Rounded */
.rounded-full {
    border-radius: 9999px;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-border {
    border-color: var(--border);
}

.border-border\/50 {
    border-color: rgba(226, 232, 240, 0.5);
}

.border-secondary\/20 {
    border-color: rgba(241, 245, 249, 0.2);
}

/* Effects */
.shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-card-hover {
    box-shadow: 0 12px 18px -6px rgba(15, 23, 42, 0.18);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.opacity-90 {
    opacity: 0.9;
}

.blur-2xl {
    filter: blur(40px);
}

.blur-3xl {
    filter: blur(64px);
}

.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.top-3 {
    top: 0.75rem;
}

.top-20 {
    top: 5rem;
}

.bottom-0 {
    bottom: 0;
}

.bottom-4 {
    bottom: 1rem;
}

.bottom-10 {
    bottom: 2.5rem;
}

.left-0 {
    left: 0;
}

.left-3 {
    left: 0.75rem;
}

.left-4 {
    left: 1rem;
}

.left-10 {
    left: 2.5rem;
}

.right-0 {
    right: 0;
}

.right-1 {
    right: 0.25rem;
}

.right-3 {
    right: 0.75rem;
}

.right-10 {
    right: 2.5rem;
}

.-top-1 {
    top: -0.25rem;
}

.-right-1 {
    right: -0.25rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.z-\[100\] {
    z-index: 100;
}

/* Misc */
.overflow-hidden {
    overflow: hidden;
}

.object-cover {
    object-fit: cover;
}

.cursor-pointer {
    cursor: pointer;
}

/* Animations (Simplified) */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.10);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:bg-muted:hover {
    background-color: var(--muted);
}

.hover\:bg-secondary:hover {
    background-color: var(--secondary);
}

.hover\:bg-primary:hover {
    background-color: var(--primary);
}

.hover\:text-primary-foreground:hover {
    color: var(--primary-foreground);
}

.hover\:shadow-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.group:hover .group-hover\:text-primary {
    color: var(--primary);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.10);
}

/* Gradients */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary {
    --tw-gradient-from: var(--primary);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-primary\/5 {
    --tw-gradient-from: rgba(234, 88, 12, 0.05);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-primary\/10 {
    --tw-gradient-from: rgba(234, 88, 12, 0.1);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-primary\/20 {
    --tw-gradient-from: rgba(234, 88, 12, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-accent\/5 {
    --tw-gradient-to: rgba(241, 245, 249, 0.05);
}

.to-accent\/10 {
    --tw-gradient-to: rgba(241, 245, 249, 0.1);
}

.to-accent\/20 {
    --tw-gradient-to: rgba(241, 245, 249, 0.2);
}

.to-food-orange-dark {
    --tw-gradient-to: var(--food-orange-dark);
}

.via-background {
    --tw-gradient-stops: var(--tw-gradient-from), var(--background), var(--tw-gradient-to);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, var(--primary), var(--food-orange-dark));
}

/* Icons */
.lucide {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:bottom-0 {
        bottom: 0;
    }

    .sm\:right-0 {
        right: 0;
    }

    .sm\:top-auto {
        top: auto;
    }

    .sm\:flex-col {
        flex-direction: column;
    }

    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:max-w-\[420px\] {
        max-width: 420px;
    }

    .md\:h-20 {
        height: 5rem;
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .md\:gap-6 {
        gap: 1.5rem;
    }

    .md\:p-8 {
        padding: 2rem;
    }

    .md\:p-12 {
        padding: 3rem;
    }

    .md\:h-\[400px\] {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Animations Keyframes (Basic) */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll helpers for kiosk categories */
.overflow-x-auto {
    overflow-x: auto;
}
.kiosk-categories-scroll {
    -webkit-overflow-scrolling: touch;
}
.kiosk-categories-scroll::-webkit-scrollbar {
    display: none;
}

.kiosk-product-image {
    width: 100%;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    display: block;
}

.kiosk-product-card {
    height: 100%;
}

.kiosk-product-body {
    min-height: 56px;
}

.kiosk-product-footer {
    margin-top: auto;
}

.kiosk-recent-card {
    height: 100%;
}

.kiosk-recent-footer {
    margin-top: auto;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

/* Premium Layout Utilities */
.bg-secondary\/20 {
    background-color: rgba(241, 245, 249, 0.2);
}
.bg-secondary\/30 {
    background-color: rgba(241, 245, 249, 0.3);
}
.bg-secondary\/40 {
    background-color: rgba(241, 245, 249, 0.4);
}
.border-border\/50 {
    border-color: rgba(226, 232, 240, 0.5);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.8);
}
/* Responsive Sidebar */
@media (min-width: 768px) {
    .md\:grid-cols-\[minmax\(0\,1\.8fr\)\,340px\] {
        grid-template-columns: minmax(0, 1.8fr) 340px;
    }
    .md\:inline-flex {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .kiosk-product-card {
        padding: 0.75rem;
        border-radius: 1.25rem;
    }
}
