@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   Delight Food Enterprise Design Tokens & Global Resets
   ========================================================================== */
*, ::before, ::after {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background-color: #FAF6F2;
    color: #1E293B;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

input, button, select, textarea {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
}

/* Brand Palette Variables */
:root {
    --brand-terracotta: #C94528;
    --brand-terracotta-dark: #A5361E;
    --brand-blush: #FDF2EC;
    --brand-blush-border: #F5DFD5;
    --brand-pill-bg: #FCE3D7;
    --brand-forest: #1E5E2F;
    --brand-forest-dark: #144223;
    --brand-forest-light: #EDF7EC;
    --brand-green: #1E5E2F;
    --brand-leaf: #45A63F;
    --brand-gold: #D97706;
}

/* Custom Component Utilities */
.bg-brand-blush {
    background-color: #FDF2EC;
}

.bg-brand-pill {
    background-color: #FCE3D7;
}

.border-brand-blush {
    border-color: #F5DFD5;
}

.text-brand-terracotta {
    color: #C94528;
}

.bg-brand-terracotta {
    background-color: #C94528;
}

.hover\:bg-brand-terracotta-dark:hover {
    background-color: #A5361E;
}

/* Shadows */
.shadow-soft {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-card {
    box-shadow: 0 10px 30px -5px rgba(201, 69, 40, 0.10);
}

.shadow-float {
    box-shadow: 0 20px 40px -10px rgba(201, 69, 40, 0.22);
}

.shadow-glow {
    box-shadow: 0 0 50px rgba(201, 69, 40, 0.25);
}

/* Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF6F2;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Animation utilities */
@keyframes pulseSubtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.animate-pulse-subtle {
    animation: pulseSubtle 3s infinite ease-in-out;
}

/* Hero Carousel Responsive Grid Stacking & Zero-Crop Transitions */
#heroSlidesWrapper {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
}

.hero-slide {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(40px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    z-index: 10;
}

.hero-slide.slide-out-left {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-40px) scale(0.98);
    z-index: 1;
}

.hero-slide.slide-out-right {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(40px) scale(0.98);
    z-index: 1;
}

/* ==========================================================================
   Native Mobile App Shell & Touch Ergonomics
   ========================================================================== */

/* Remove grey tap overlay on mobile browsers & prevent accidental double-tap zoom */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    user-select: none;
    -webkit-user-select: none;
}

/* Hide scrollbars for app-like horizontal touch carousels */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.touch-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.snap-mandatory {
    scroll-snap-type: x mandatory;
}

.snap-start {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* Safe area insets for notched iPhones and gesture bars */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}
.safe-top {
    padding-top: env(safe-area-inset-top);
}

/* Native App Touch Ripple & Haptic Scale */
.app-press {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.app-press:active {
    transform: scale(0.96);
    opacity: 0.88;
}

/* Sticky Bottom Purchase Action Bar (Product Detail on Mobile) */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: calc(3.75rem + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 35;
    transform: translateY(120%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sticky-action-bar.visible {
    transform: translateY(0);
}

/* Mobile Bottom Sheet Modal */
.bottom-sheet-panel {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bottom-sheet-panel.open {
    transform: translateY(0);
}