/**
 * Theme 1 — Food delivery app interface
 * Scoped to body[class*="theme1-v"] .food-app-shell
 */

body[class*="theme1-v"] {
    --food-bg: #f4f4f5;
    --food-surface: #ffffff;
    --food-text: #18181b;
    --food-muted: #71717a;
    --food-border: #e4e4e7;
    --food-radius: 16px;
    --food-radius-sm: 12px;
    --food-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --food-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --first-font: "Plus Jakarta Sans", "Montserrat", sans-serif;
    --body-font: "Plus Jakarta Sans", "Montserrat", sans-serif;
    background: var(--food-bg) !important;
}

/* Override sticky-footer flex that pulls footer over products */
body[class*="theme1-v"] .main-wrapper.food-app-shell {
    display: block !important;
    min-height: 0 !important;
    background: var(--food-bg);
    --food-tile-width: 148px;
    --food-tile-img: 148px;
}

body[class*="theme1-v"] .main-wrapper.food-app-shell > .site-footer,
body[class*="theme1-v"] .main-wrapper.food-app-shell .store-footer-extended {
    margin-top: 48px !important;
    z-index: 0 !important;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container,
body[class*="theme1-v"] .food-app-shell .food-app-main {
    width: 100%;
    max-width: min(1100px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

body[class*="theme1-v"] .food-app-shell .food-app-main {
    padding: 0 0 24px;
    max-height: none !important;
    overflow: visible !important;
}

body[class*="theme1-v"] .food-app-shell .main-left-col,
body[class*="theme1-v"] .food-app-shell .tabs-wrapper {
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}

/* ─── Header (food app layout) ─── */
body[class*="theme1-v"] .food-app-shell .site-header {
    background: var(--food-surface) !important;
    box-shadow: var(--food-shadow) !important;
    border-bottom: 1px solid var(--food-border) !important;
    position: sticky;
    top: 0;
    z-index: 200;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    grid-template-areas: "menu logo actions";
    align-items: center;
    gap: 8px 12px;
    padding: 10px 16px !important;
    max-width: min(1100px, 100%) !important;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .nav-drawer-toggle {
    grid-area: menu;
    grid-column: auto !important;
    justify-self: start;
    width: 40px;
    height: 40px;
    color: var(--food-text);
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .header-logo {
    grid-area: logo;
    grid-column: auto !important;
    justify-self: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .header-logo h1 {
    margin: 0 !important;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .header-logo__link {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(180px, calc(100vw - 148px));
    margin: 0 auto;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .header-logo__img {
    display: block;
    max-height: 36px !important;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .header-text-logo {
    font-family: var(--body-font) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--food-text) !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .header-actions {
    grid-area: actions;
    grid-column: auto !important;
    justify-self: end;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px !important;
    margin: 0 !important;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) {
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    grid-template-areas:
        "menu logo actions"
        "location location location" !important;
    row-gap: 10px;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) .nav-drawer-toggle {
    grid-area: menu !important;
    grid-column: auto !important;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) .header-logo {
    grid-area: logo !important;
    grid-column: auto !important;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) .header-actions {
    grid-area: actions !important;
    grid-column: auto !important;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .location-trigger-btn {
    grid-area: location;
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--food-bg);
    border: 1px solid var(--food-border);
    border-radius: var(--food-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--food-text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
    box-shadow: none;
    transform: none;
    min-width: 0;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .location-trigger-btn:hover {
    border-color: color-mix(in srgb, var(--theme-color) 40%, var(--food-border));
    filter: none;
    box-shadow: none;
    transform: none;
}

body[class*="theme1-v"] .food-app-shell .header-container--primary .location-trigger-btn svg {
    flex-shrink: 0;
    color: var(--theme-color);
    stroke: var(--theme-color) !important;
}

body[class*="theme1-v"] .food-app-shell .delivery-address-display {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[class*="theme1-v"] .food-app-shell .header-icon-btn {
    width: 40px !important;
    height: 40px !important;
    color: var(--food-text) !important;
    border-radius: var(--food-radius-sm) !important;
}

body[class*="theme1-v"] .food-app-shell .header-icon-btn svg path {
    fill: currentColor !important;
}

body[class*="theme1-v"] .food-app-shell .header-icon-btn.cart-toggle-btn svg path {
    fill: none !important;
    stroke: currentColor !important;
}

body[class*="theme1-v"] .food-app-shell .cart-badge {
    background: var(--theme-color) !important;
    font-size: 10px !important;
}

@media (min-width: 768px) {
    body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary {
        padding: 12px 24px !important;
        gap: 10px 16px;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .header-logo__img {
        max-height: 40px !important;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .location-trigger-btn {
        max-width: 100%;
    }

    .food-restaurant-hero {
        max-width: none;
        width: 100%;
        margin: 0 0 8px;
        border-radius: 0;
    }

    .food-restaurant-hero__cover {
        max-height: 600px;
    }
}

@media (max-width: 767px) {
    body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary {
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
        grid-template-areas: "menu logo actions" !important;
        padding: 8px 12px !important;
        gap: 6px !important;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary:has(.location-trigger-btn) {
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "menu logo actions"
            "location location location" !important;
        row-gap: 8px;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .location-trigger-btn {
        display: flex !important;
        grid-column: 1 / -1 !important;
        width: 100%;
        padding: 8px 12px;
        font-size: 12px;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .location-trigger-btn svg {
        width: 18px;
        height: 18px;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .nav-drawer-toggle {
        width: 36px;
        height: 36px;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .header-logo__link {
        max-width: min(140px, calc(100vw - 132px));
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .header-logo__img {
        max-height: 32px !important;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .header-text-logo {
        font-size: 14px !important;
    }

    body[class*="theme1-v"] .food-app-shell .header-container--primary .header-icon-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ─── Restaurant hero (1920×600 wide banner) ─── */
.food-restaurant-hero {
    margin-bottom: 8px;
    width: 100%;
}

.food-restaurant-hero__cover {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 1920 / 600;
    max-height: min(600px, 56vw);
    min-height: 280px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-color) 80%, #000) 0%, var(--theme-color) 100%);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.food-restaurant-hero__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.food-restaurant-hero__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.38) 38%,
        rgba(0, 0, 0, 0.12) 62%,
        transparent 100%
    );
}

.food-restaurant-hero__cover--has-image::after {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.42) 42%,
        rgba(0, 0, 0, 0.08) 68%,
        transparent 100%
    );
}

.food-restaurant-hero__body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(1100px, 100%);
    margin: 0 auto;
    padding: 24px 16px 20px;
    box-sizing: border-box;
}

.food-restaurant-hero__name {
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.food-restaurant-hero__tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 14px;
    line-height: 1.45;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.food-restaurant-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.food-restaurant-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--food-text, #1a1a1a);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
}

.food-restaurant-hero__chip svg {
    flex-shrink: 0;
    color: var(--theme-color);
}

.food-restaurant-hero__chip--link {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.food-restaurant-hero__chip--link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

/* ─── Store location (address + delivery) ─── */
.food-store-location {
    padding: 0 16px 16px;
    margin-top: -4px;
}

.food-store-location__inner {
    max-width: min(1100px, 100%);
    margin: 0 auto;
    background: var(--food-surface);
    border: 1px solid var(--food-border);
    border-radius: var(--food-radius);
    overflow: hidden;
    box-shadow: var(--food-shadow);
}

.food-store-location__panel {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.food-store-location__title {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--food-text);
    letter-spacing: -0.02em;
}

.food-store-location__address,
.food-store-location__hours {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--food-muted, #666);
}

.food-store-location__address svg,
.food-store-location__hours svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--theme-color);
}

.food-store-location__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.food-store-location__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--food-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.food-store-location__btn--primary {
    background: var(--theme-color);
    color: #fff;
    width: 100%;
}

.food-store-location__btn--primary:hover {
    filter: brightness(1.05);
    color: #fff;
}

body:has(.food-store-location) .food-app-shell .header-container--primary .location-trigger-btn {
    display: none !important;
}

body:has(.food-store-location) .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) {
    grid-template-areas: "menu logo actions" !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
}

@media (max-width: 767px) {
    .food-store-location {
        padding: 0 12px 12px;
    }

    .food-store-location__panel {
        padding: 14px 16px;
    }
}

/* ─── Category navigation (single horizontal slide row) ─── */
.food-app-shell .category-navigation-wrapper {
    position: sticky;
    top: var(--food-sticky-top, 88px);
    z-index: 100;
    background: var(--food-surface);
    border-bottom: 1px solid var(--food-border);
    box-shadow: none;
    margin-bottom: 4px;
    width: 100%;
    overflow: hidden;
}

.food-app-shell .category-navigation {
    padding: 10px 0;
    overflow: hidden;
    max-width: min(1100px, 100%);
    margin: 0 auto;
}

body[class*="theme1-v"] .food-app-shell .category-pills-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    gap: 8px !important;
    padding: 0 16px !important;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.food-app-shell .category-pills-container::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

body[class*="theme1-v"] .food-app-shell .category-pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
    border: 1px solid var(--food-border) !important;
    border-radius: 999px !important;
    background: var(--food-surface) !important;
    color: var(--food-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 8px 16px !important;
    min-height: 36px;
    transform: none !important;
    box-shadow: none !important;
}

body[class*="theme1-v"] .food-app-shell .category-pill:hover {
    border-color: var(--theme-color) !important;
    color: var(--theme-color) !important;
    background: color-mix(in srgb, var(--theme-color) 8%, #fff) !important;
    transform: none !important;
    box-shadow: none !important;
}

body[class*="theme1-v"] .food-app-shell .category-pill.active,
body[class*="theme1-v"] .food-app-shell .category-pill.active:hover {
    background: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #fff !important;
}

/* ─── Menu section ─── */
body[class*="theme1-v"] .food-app-shell .products-section {
    padding: 0 0 48px !important;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    overflow: visible !important;
    width: 100%;
}

body[class*="theme1-v"] .food-app-shell #product_view.product_tableese,
body[class*="theme1-v"] .food-app-shell .product_tableese {
    padding-bottom: 48px !important;
    min-height: 120px;
}

body[class*="theme1-v"] .food-app-shell .products-container {
    max-width: none !important;
    margin: 0 !important;
}

body[class*="theme1-v"] .food-app-shell .products-container .row {
    justify-content: stretch !important;
    gap: 0 !important;
}

body[class*="theme1-v"] .food-app-shell .food-tile-card .product-card-inner {
    display: none !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.food-menu-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}

.food-category-section {
    padding: 12px 0 4px;
    scroll-margin-top: 156px;
}

.food-category-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px 10px;
}

.food-category-section__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--food-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.food-category-section__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--food-muted);
    white-space: nowrap;
}

.food-category-section__view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #fff;
    background: var(--food-accent, #e85d04);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(232, 93, 4, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.food-category-section__view-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.32);
    color: #fff;
}

.food-category-section__view-all span {
    font-size: 14px;
    line-height: 1;
}

/* Horizontal scroll row (Chowdeck-style) */
.food-category-row {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.food-category-row::-webkit-scrollbar {
    display: none;
}

.food-category-row__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    padding: 0 16px 12px;
    width: max-content;
    min-width: 0;
}

.food-category-row__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: var(--food-tile-width, 148px);
    max-width: var(--food-tile-width, 148px);
}

.food-app-shell .food-category-row__item.product_item {
    display: block;
    padding: 0 !important;
    width: var(--food-tile-width, 148px) !important;
    max-width: var(--food-tile-width, 148px) !important;
    min-width: var(--food-tile-width, 148px) !important;
    flex: 0 0 var(--food-tile-width, 148px) !important;
}

.food-category-row--slide::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--food-surface, #fff));
}

/* Shop / category catalog: 2 columns mobile, 4 columns tablet+ (homepage keeps horizontal slide) */
body[class*="theme1-v"] .food-app-shell .store-catalog-page .food-category-row--grid {
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
}

body[class*="theme1-v"] .food-app-shell .store-catalog-page .food-category-row--grid::after {
    display: none;
}

body[class*="theme1-v"] .food-app-shell .store-catalog-page #product_view .food-menu-sections .food-category-row--grid .food-category-row__track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-flow: unset !important;
    gap: 12px;
    padding: 0 16px 12px;
}

body[class*="theme1-v"] .food-app-shell .store-catalog-page #product_view .food-menu-sections .food-category-row--grid .food-category-row__item.product_item {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    float: none !important;
    clear: none !important;
}

@media (min-width: 768px) {
    body[class*="theme1-v"] .food-app-shell .store-catalog-page #product_view .food-menu-sections .food-category-row--grid .food-category-row__track {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px;
        padding: 0 24px 16px;
    }
}

body[class*="theme1-v"] .food-app-shell .store-catalog-page .product-card.food-tile-card {
    max-width: none !important;
}

body[class*="theme1-v"] .food-app-shell .store-catalog-page .food-tile-card__photo {
    height: auto;
    aspect-ratio: 1;
}

body[class*="theme1-v"] .food-app-shell .store-catalog-page .food-tile-card__photo .product-image-fallback {
    min-height: 0;
    aspect-ratio: 1;
}

body[class*="theme1-v"] .food-app-shell #product_view .food-menu-sections .food-category-row--slide .food-category-row__track {
    display: flex !important;
    flex-flow: row nowrap !important;
    width: max-content !important;
}

body[class*="theme1-v"] .food-app-shell #product_view .food-menu-sections .food-category-row--slide .food-category-row__item.product_item {
    float: none !important;
    clear: none !important;
}

/* ─── Tile card (image top, details below) ─── */
.food-tile-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.food-tile-card__visual {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 0;
    overflow: visible;
}

.food-tile-card__photo {
    display: block;
    width: 100%;
    height: var(--food-tile-img, 148px);
    border-radius: 14px;
    overflow: hidden;
    background: var(--food-bg);
    position: relative;
    box-shadow:
        inset 0 -10px 18px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.food-tile-card__photo img,
.food-tile-card__photo .product-image-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-tile-card__photo .product-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--food-tile-img, 148px);
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--theme-color) 18%, #fff), color-mix(in srgb, var(--theme-color) 8%, #fff));
    color: var(--theme-color);
}

.food-tile-card .food-dish-card__pot-rim {
    top: 0;
    left: 10%;
    right: 10%;
    height: 6px;
}

.food-tile-card .food-dish-card__steam {
    top: -4px;
    width: 70%;
    height: 36px;
}

.food-tile-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px 0;
    min-width: 0;
}

.food-tile-card__name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--food-text);
}

.food-tile-card__name a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-tile-card__price ins {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--food-text);
}

.food-tile-card__price del {
    font-size: 11px;
    color: var(--food-muted);
}

.food-tile-card__add {
    right: 6px;
    bottom: 6px;
    width: 30px;
    height: 30px;
}

.food-tile-card__add svg {
    width: 16px;
    height: 16px;
}

.food-tile-card--sold-out {
    opacity: 0.75;
}

body[class*="theme1-v"] .food-app-shell .product-card.food-tile-card {
    max-width: var(--food-tile-width, 148px) !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.food-app-shell .food-tile-card .product-card-inner {
    display: none !important;
}

@media (hover: hover) {
    .food-tile-card:hover .food-tile-card__photo img {
        transform: scale(1.04);
    }

    .food-tile-card:hover .food-dish-card__smoke {
        animation-duration: 2.6s;
    }
}

/* Skeleton */
.food-skeleton-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 16px;
}

.food-skeleton-section {
    padding: 0 16px;
}

.food-skeleton-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow: hidden;
}

.food-skeleton-tile {
    flex: 0 0 148px;
    width: 148px;
}

.food-skeleton-tile .food-skeleton-thumb {
    width: 100%;
    height: 148px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ececee 25%, #f4f4f5 50%, #ececee 75%);
    background-size: 200% 100%;
    animation: food-shimmer 1.4s ease-in-out infinite;
}

.food-skeleton-line {
    height: 10px;
    border-radius: 6px;
    margin-top: 8px;
    background: linear-gradient(90deg, #ececee 25%, #f4f4f5 50%, #ececee 75%);
    background-size: 200% 100%;
    animation: food-shimmer 1.4s ease-in-out infinite;
}

.food-skeleton-line--title {
    height: 14px;
    width: 40%;
    margin-bottom: 12px;
}

.food-skeleton-line--short {
    width: 55%;
}

@keyframes food-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.food-dish-card__visual {
    position: relative;
    overflow: visible;
}

.food-dish-card__pot-rim {
    position: absolute;
    top: 5px;
    left: 8%;
    right: 8%;
    height: 8px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #8a8a8a 0%, #525252 50%, #333 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 2px 6px rgba(0, 0, 0, 0.28);
    z-index: 4;
    pointer-events: none;
}

.food-dish-card__pot-rim::before,
.food-dish-card__pot-rim::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 10px;
    height: 14px;
    border: 2px solid #444;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    pointer-events: none;
}

.food-dish-card__pot-rim::before {
    left: -12px;
    transform: rotate(-18deg);
}

.food-dish-card__pot-rim::after {
    right: -12px;
    transform: rotate(18deg);
}

.food-tile-card .food-dish-card__photo {
    display: block;
    width: 100%;
    height: var(--food-tile-img, 148px);
    margin-top: 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    position: relative;
    box-shadow:
        inset 0 -12px 20px rgba(0, 0, 0, 0.28),
        inset 0 3px 10px rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.food-dish-card__steam {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    height: 52px;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.food-dish-card__smoke {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.55) 40%, transparent 72%);
    filter: blur(4px);
    opacity: 0;
    transform: translateY(0) scale(0.4);
    animation: food-pot-smoke 3.2s ease-out infinite;
    mix-blend-mode: screen;
}

.food-dish-card__smoke:nth-child(1) {
    left: 18%;
    animation-delay: 0s;
}

.food-dish-card__smoke:nth-child(2) {
    left: 38%;
    width: 24px;
    height: 24px;
    animation-delay: 0.65s;
}

.food-dish-card__smoke:nth-child(3) {
    left: 52%;
    animation-delay: 1.3s;
}

.food-dish-card__smoke:nth-child(4) {
    left: 66%;
    width: 18px;
    height: 18px;
    animation-delay: 1.95s;
}

.food-dish-card__smoke:nth-child(5) {
    left: 44%;
    width: 28px;
    height: 28px;
    animation-delay: 2.6s;
}

@keyframes food-pot-smoke {
    0% {
        transform: translateY(0) scale(0.35) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    40% {
        transform: translateY(-22px) scale(1) translateX(-5px);
        opacity: 0.65;
    }
    70% {
        transform: translateY(-42px) scale(1.45) translateX(6px);
        opacity: 0.35;
    }
    100% {
        transform: translateY(-58px) scale(1.75) translateX(-3px);
        opacity: 0;
    }
}

.food-dish-card__photo::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(255, 180, 80, 0.28) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 100%);
    animation: food-pot-glow 2.8s ease-in-out infinite;
}

.food-dish-card__photo::after {
    content: "";
    position: absolute;
    inset: 8px 10px auto;
    height: 30%;
    z-index: 2;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 200, 120, 0.35) 0%, transparent 70%);
    animation: food-pot-glow 2.8s ease-in-out infinite reverse;
}

@keyframes food-pot-glow {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.9;
    }
}

.food-dish-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    position: relative;
    z-index: 1;
}

body[class*="theme1-v"] .food-app-shell .food-tile-card__photo.img-wrapper {
    padding-top: 0 !important;
    height: var(--food-tile-img, 148px) !important;
}

body[class*="theme1-v"] .food-app-shell .food-tile-card__photo.img-wrapper img {
    position: absolute;
    inset: 0;
    padding: 0 !important;
}

.food-dish-card__photo .product-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 112px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--theme-color) 18%, #fff), color-mix(in srgb, var(--theme-color) 8%, #fff));
    color: var(--theme-color);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
}

.food-dish-card__photo .product-image-fallback span {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.food-dish-card__add {
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--food-surface);
    color: var(--theme-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 0 0 1.5px color-mix(in srgb, var(--theme-color) 35%, #fff);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
    text-decoration: none;
}

.food-dish-card__add svg {
    width: 18px;
    height: 18px;
}

.food-dish-card__add svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.5;
}

.food-dish-card__add:hover,
.food-dish-card__add:focus {
    background: var(--theme-color);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-color) 40%, transparent);
}

.food-dish-card__add:active {
    transform: scale(0.96);
}

.food-dish-card--sold-out {
    opacity: 0.88;
}

.food-dish-card--sold-out .food-dish-card__pot-rim {
    opacity: 0.45;
}

.food-dish-card--sold-out .food-dish-card__photo img {
    filter: grayscale(0.35);
}

@media (hover: hover) {
    .food-dish-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    }

    .food-dish-card:hover .food-dish-card__photo img {
        transform: scale(1.04);
    }

    .food-dish-card:hover .food-dish-card__smoke {
        animation-duration: 3s;
    }

    .food-dish-card:hover .food-dish-card__photo::before {
        animation-duration: 2.4s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .food-dish-card__smoke,
    .food-dish-card__photo::before {
        animation: none !important;
    }

    .food-dish-card__smoke {
        display: none;
    }
}

/* Reset legacy product-card styles inside food app */
.food-app-shell .food-dish-card.product-card,
.food-app-shell .food-dish-card .product-card-inner {
    border: none !important;
    box-shadow: none !important;
}

.food-app-shell .food-tile-card.product-card,
.food-app-shell .food-tile-card.food-dish-card.product-card {
    border: none !important;
    box-shadow: none !important;
}

.food-app-shell .food-dish-card .product-card-inner,
.food-app-shell .food-dish-card .pro-btn-wrapper {
    display: none !important;
}

body[class*="theme1-v"] .food-app-shell .food-dish-card.product-card:hover {
    transform: none;
}

body[class*="theme1-v"] .food-app-shell .food-dish-card .product-card-inner {
    padding: 0 !important;
    background: transparent !important;
}

body[class*="theme1-v"] .food-app-shell .food-dish-card__name,
body[class*="theme1-v"] .food-app-shell .food-dish-card__name a {
    font-family: var(--body-font) !important;
    letter-spacing: -0.02em !important;
}

/* ─── Skeleton loader ─── */
.food-skeleton-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.food-skeleton-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    background: var(--food-surface);
    border-radius: var(--food-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.food-skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

.food-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
    background-size: 200% 100%;
    animation: food-shimmer 1.2s infinite;
}

.food-skeleton-line--title {
    height: 16px;
    width: 70%;
}

.food-skeleton-line--short {
    width: 35%;
    margin-top: auto;
}

.food-skeleton-thumb {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
    background-size: 200% 100%;
    animation: food-shimmer 1.2s infinite;
}

@keyframes food-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Product detail modal ─── */
body[class*="theme1-v"] .food-item-modal .modal-body {
    padding: 0 !important;
}

body[class*="theme1-v"] .food-item-modal .qv-right-content {
    padding: 20px;
}

body[class*="theme1-v"] .food-item-modal .section-title h2 {
    font-family: var(--body-font) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

body[class*="theme1-v"] .food-item-modal .product-label {
    display: inline-block;
    padding: 4px 10px;
    background: color-mix(in srgb, var(--theme-color) 12%, #fff);
    color: var(--theme-color);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

body[class*="theme1-v"] .food-item-modal .cart-btn-wrp .cart-btn {
    width: 100%;
    border-radius: var(--food-radius-sm) !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: var(--theme-color) !important;
    border: none !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-options-section {
    border-radius: var(--food-radius-sm);
    border: 1px solid var(--food-border);
    background: var(--food-surface);
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
}

body[class*="theme1-v"] .food-item-modal .takeaway-options-title {
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--food-text);
}

body[class*="theme1-v"] .food-item-modal .takeaway-options-hint {
    color: var(--food-muted);
}

body[class*="theme1-v"] .food-item-modal .takeaway-option-item {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--food-radius-sm) !important;
    border-color: var(--food-border) !important;
    background: var(--food-bg) !important;
    padding: 10px 12px !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-option-item:hover {
    border-color: #d4d4d8 !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-option-item:has(.takeaway-option-checkbox:checked) {
    border-color: var(--theme-color) !important;
    background: rgba(var(--theme-color-rgb, 139, 69, 19), 0.06) !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-option-checkbox {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-option-name {
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--food-text);
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-option-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-price {
    font-family: var(--body-font);
    color: var(--theme-color);
}

body[class*="theme1-v"] .food-item-modal .takeaway-qty-spinner {
    display: inline-flex !important;
    align-items: center !important;
    background: var(--food-surface);
    border: 1px solid var(--food-border);
    border-radius: 999px;
    padding: 2px;
}

body[class*="theme1-v"] .food-item-modal .takeaway-qty-spinner .takeaway-qty-decrement,
body[class*="theme1-v"] .food-item-modal .takeaway-qty-spinner .takeaway-qty-increment {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
    padding: 0 !important;
    background: var(--theme-color) !important;
    border: none !important;
    border-radius: 50% !important;
}

body[class*="theme1-v"] .food-item-modal .takeaway-qty-spinner .takeaway-qty-input {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    padding: 0 !important;
    display: inline-block !important;
}

body[class*="theme1-v"] .takeaway-options-section {
    border-radius: var(--food-radius-sm) !important;
    background: var(--food-surface) !important;
    border: 1px solid var(--food-border) !important;
}

body[class*="theme1-v"] .takeaway-option-item {
    border-radius: var(--food-radius-sm) !important;
    border-color: var(--food-border) !important;
    background: var(--food-bg) !important;
}

body[class*="theme1-v"] .takeaway-option-item:has(.takeaway-option-checkbox:checked) {
    border-color: var(--theme-color) !important;
    background: rgba(var(--theme-color-rgb, 139, 69, 19), 0.06) !important;
}

body[class*="theme1-v"] .food-item-modal .variant-box {
    border-radius: 10px !important;
}

/* ─── Cart sidebar (theme1 polish) ─── */
body[class*="theme1-v"] .cart-sidebar {
    border-radius: var(--food-radius) 0 0 var(--food-radius);
}

body[class*="theme1-v"] .cart-sidebar-header {
    border-bottom: 1px solid var(--food-border);
}

body[class*="theme1-v"] .cart-sidebar-header h3 {
    font-family: var(--body-font);
    font-weight: 700;
}

/* ─── Mobile cart bar ─── */
body[class*="theme1-v"] .mobile-cart-bar__inner {
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--food-radius-sm) var(--food-radius-sm) 0 0;
}

body[class*="theme1-v"] .mobile-cart-bar__btn {
    border-radius: var(--food-radius-sm);
    font-weight: 600;
    background: var(--theme-color);
}

/* ─── Footer: normal document flow, never overlap products ─── */
body[class*="theme1-v"] .food-app-shell #cart-sidebar-container {
    display: contents;
}

body[class*="theme1-v"] .food-app-shell .vendor-faqs-section,
body[class*="theme1-v"] .food-app-shell .container.py-2 {
    max-width: 720px;
    margin: 32px auto 0 !important;
    clear: both;
    position: relative;
    z-index: 0;
}

body[class*="theme1-v"] .food-app-shell .site-footer.store-footer-extended,
body[class*="theme1-v"] .food-app-shell .store-footer-extended {
    max-width: 100% !important;
    width: 100% !important;
    margin: 48px 0 0 !important;
    margin-top: 48px !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 0 !important;
    clear: both;
    flex-shrink: 0;
}

body[class*="theme1-v"] .food-app-shell .site-footer .footer-main {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 24px;
}

body[class*="theme1-v"].mobile-cart-bar-active .food-app-shell .site-footer.store-footer-extended {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

body[class*="theme1-v"] .food-app-shell .site-footer.store-footer-extended {
    background: var(--food-surface) !important;
    border-top: 1px solid var(--food-border);
    color: var(--food-text) !important;
}

body[class*="theme1-v"] .food-app-shell .site-footer .footer-section-title,
body[class*="theme1-v"] .food-app-shell .site-footer .footer-about-text,
body[class*="theme1-v"] .food-app-shell .site-footer .footer-page-links a,
body[class*="theme1-v"] .food-app-shell .site-footer .footer-copy {
    color: var(--food-text) !important;
    opacity: 1;
}

body[class*="theme1-v"] .food-app-shell .site-footer .footer-about-text {
    opacity: 0.75;
}

/* ─── Main layout: single column ─── */
body[class*="theme1-v"] .food-app-shell .main-wrapper > .row {
    margin: 0;
}

body[class*="theme1-v"] .food-app-shell .main-left-col {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

@media (min-width: 992px) {
    body[class*="theme1-v"] .food-app-shell .main-right-col,
    body[class*="theme1-v"] .food-app-shell .card-summary-col {
        display: none;
    }
}

/* Extra bottom space when mobile cart bar is visible */
body[class*="theme1-v"].mobile-cart-bar-active .food-app-shell .products-section,
body[class*="theme1-v"].mobile-cart-bar-active .food-app-shell #product_view {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ─── Hide luxury banner when not used ─── */
body[class*="theme1-v"] .welcome-banner-section {
    display: none;
}

/* ─── Empty state ─── */
.food-app-shell .store-empty-state {
    padding: 48px 24px;
    text-align: center;
}

/* ─── Responsive tile sizes ─── */
@media (min-width: 768px) {
    body[class*="theme1-v"] .food-app-shell {
        --food-tile-width: 168px;
        --food-tile-img: 168px;
    }

    body[class*="theme1-v"] .food-app-shell .food-app-main,
    body[class*="theme1-v"] .food-app-shell .site-header .header-container {
        max-width: 960px;
    }

    body[class*="theme1-v"] .food-app-shell .site-footer .footer-main {
        max-width: 960px;
    }

    .food-category-section__title {
        font-size: 22px;
    }

    .food-category-section {
        scroll-margin-top: 164px;
    }

    .food-skeleton-tile {
        flex: 0 0 168px;
        width: 168px;
    }

    .food-skeleton-tile .food-skeleton-thumb {
        height: 168px;
    }

    .food-app-shell .category-navigation-wrapper {
        top: 72px;
    }

    body[class*="theme1-v"] .food-app-shell {
        --food-sticky-top: 72px;
    }
}

@media (min-width: 1024px) {
    body[class*="theme1-v"] .food-app-shell {
        --food-tile-width: 188px;
        --food-tile-img: 188px;
    }

    body[class*="theme1-v"] .food-app-shell .food-app-main,
    body[class*="theme1-v"] .food-app-shell .site-header .header-container {
        max-width: 1100px;
    }

    body[class*="theme1-v"] .food-app-shell .site-footer .footer-main {
        max-width: 1100px;
    }

    .food-category-row__track {
        gap: 16px;
        padding: 0 24px 16px;
    }

    .food-category-section__header {
        padding: 0 24px 12px;
    }

    .food-skeleton-tile {
        flex: 0 0 188px;
        width: 188px;
    }

    .food-skeleton-tile .food-skeleton-thumb {
        height: 188px;
    }
}
