/* ========================================================
   Las Tucucletas - Custom Stylesheet (Google Stitch & Reference UX)
   Font: Montserrat & Handwriting Accent (Yellowtail / Kaushan)
   Palette: Ochre Orange, Olive Green, Deep Forest, Warm Cream
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Yellowtail&display=swap');

:root {
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-script: 'Kaushan Script', 'Yellowtail', cursive;

    /* Theme Colors */
    --color-bg: #FAF6EF;
    --color-bg-card: #FFFFFF;
    --color-primary: #E28125;
    --color-primary-hover: #C96E1B;
    --color-dark: #2B1D12;
    --color-text: #3D2D20;
    --color-muted: #7A6F66;

    /* Card Accent Colors (Image 2 style) */
    --card-olive: #5F7A2A;
    --card-amber: #D88224;
    --card-forest: #486221;
    --card-terracotta: #BE582B;
    --card-dark: #322316;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Helpers */
.font-montserrat {
    font-family: var(--font-sans);
}

.font-script {
    font-family: var(--font-script);
}

/* Header & Nav */
.site-nav {
    background: rgba(250, 246, 239, 0.95);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.nav-phone-pill {
    background: #FFFFFF;
    border: 1.5px solid #E6D7C3;
    color: #4A3B32;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.nav-phone-pill .icon-bubble {
    width: 24px;
    height: 24px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Price Stamp Badge (Inspired by Image 2 circle badge) */
.price-stamp {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0,0,0,0.12);
    text-align: center;
    line-height: 1.1;
    z-index: 10;
}

.price-stamp .stamp-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #8C7E72;
    text-transform: uppercase;
}

.price-stamp .stamp-current {
    font-size: 1.15rem;
    font-weight: 900;
    color: #2D1E12;
}

.price-stamp .stamp-old {
    font-size: 0.7rem;
    color: #A3968C;
    text-decoration: line-through;
    font-weight: 600;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 5rem;
    background: radial-gradient(circle at 80% 20%, rgba(226, 129, 37, 0.08) 0%, transparent 60%);
}

.hero-food-plate {
    filter: drop-shadow(0 25px 35px rgba(45, 30, 18, 0.22));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-food-plate:hover {
    transform: scale(1.03) rotate(-1deg);
}

.hero-description-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(230, 215, 195, 0.6);
}

/* Wavy Organic Transitions */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Category Filter Pills (Mobile friendly sticky bar) */
.category-pills-bar {
    position: sticky;
    top: 72px;
    z-index: 30;
    background: rgba(250, 246, 239, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(230, 215, 195, 0.5);
}

.category-pill {
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
    color: #5C4B40;
    border: 1.5px solid #E6D7C3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.category-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.category-pill.active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(226, 129, 37, 0.35);
}

/* Food Cards Grid (Image 2 style with overlapping pop-out dish) */
.dish-card {
    position: relative;
    border-radius: 26px;
    padding: 24px 20px 20px 20px;
    margin-top: 45px; /* space for pop-out plate */
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.dish-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.2);
}

.dish-card.bg-olive {
    background: linear-gradient(145deg, #64822B, #536E21);
}

.dish-card.bg-amber {
    background: linear-gradient(145deg, #DE8726, #C77215);
}

.dish-card.bg-forest {
    background: linear-gradient(145deg, #4A6321, #3B5017);
}

.dish-card.bg-terracotta {
    background: linear-gradient(145deg, #C25B2D, #A7471C);
}

/* Dish Pop-out Image */
.dish-card-img-wrapper {
    position: relative;
    margin-top: -65px;
    margin-bottom: 12px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dish-card-img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s ease;
}

.dish-card:hover .dish-card-img {
    transform: scale(1.06) rotate(-2deg);
}

/* Card Price Stamp Positioning */
.card-price-badge {
    position: absolute;
    top: 50px;
    right: 14px;
}

/* Order Now Dark Pill Button */
.btn-card-order {
    background: #1F1710;
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-card-order:hover {
    background: #FFFFFF;
    color: #1F1710;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Primary Brand Buttons */
.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    font-weight: 800;
    border-radius: 9999px;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(226, 129, 37, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(226, 129, 37, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-weight: 800;
    border-radius: 9999px;
    padding: 10px 26px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Floating Bottom Cart Bar (Sticky on Mobile & Desktop) */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 500px;
    background: #23160D;
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 10px 14px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(226, 129, 37, 0.4);
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-bar.hidden-bar {
    transform: translate(-50%, 120%);
    opacity: 0;
    pointer-events: none;
}

/* Offcanvas Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #FAF6EF;
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
}

.cart-drawer.active {
    transform: translateX(0);
}

/* Custom Modal */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 10, 0.7);
    backdrop-filter: blur(5px);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-card {
    background: #FFFFFF;
    border-radius: 28px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.custom-modal-overlay.active .custom-modal-card {
    transform: scale(1);
}

/* Stepper Pill */
.stepper-pill {
    display: inline-flex;
    align-items: center;
    background: #F2EBE0;
    border-radius: 9999px;
    padding: 4px;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: none;
    color: #332215;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background 0.15s ease;
}

.stepper-btn:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

.stepper-qty {
    min-width: 36px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Admin Status Badges */
.badge-status {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-pending {
    background: #FFF3CD;
    color: #856404;
}

.badge-verified {
    background: #D4EDDA;
    color: #155724;
}

.badge-kitchen {
    background: #CCE5FF;
    color: #004085;
}

.badge-dispatched {
    background: #E2E3E5;
    color: #383D41;
}

.badge-delivered {
    background: #D1E7DD;
    color: #0F5132;
}

/* Pulsing dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E28125;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}
