/*
 * InstaQR customer-site theme (mobile-first).
 * Loaded only on the customer site (layouts/guest.blade.php). Plain CSS, so no Vite/Tailwind rebuild is needed.
 * Brand colour comes from the restaurant theme setting: --color-base = "r, g, b".
 */

:root {
    --tt-brand: rgb(var(--color-base, 22, 163, 74));
    --tt-brand-soft: rgba(var(--color-base, 22, 163, 74), 0.1);
    --tt-brand-softer: rgba(var(--color-base, 22, 163, 74), 0.06);
    --tt-bg: #f7f5f0;
    --tt-card: #ffffff;
    --tt-text: #1f2328;
    --tt-muted: #6b7280;
    --tt-line: #ece8df;
    --tt-radius: 16px;
    --tt-radius-sm: 12px;
    --tt-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 14px rgba(17, 24, 39, 0.06);
    --tt-shadow-lg: 0 10px 30px rgba(17, 24, 39, 0.16);
}

html.dark {
    --tt-bg: #0f1115;
    --tt-card: #1a1d23;
    --tt-text: #f3f4f6;
    --tt-muted: #9ca3af;
    --tt-line: #2a2e36;
    --tt-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ---------- Base ---------- */
body.tt-shop {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--tt-bg) !important;
    color: var(--tt-text);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

body.tt-shop #main-content,
body.tt-shop #main-content > main,
body.tt-shop .tt-shell > .flex.mt-4 {
    background: transparent !important;
}

body.tt-shop .tt-shell {
    background: var(--tt-bg);
    box-shadow: none !important;
}

/* Comfortable tap targets everywhere on mobile */
@media (max-width: 1023px) {
    body.tt-shop button,
    body.tt-shop a {
        touch-action: manipulation;
    }
}

/* ---------- Header ---------- */
body.tt-shop .tt-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--tt-line);
}

html.dark body.tt-shop .tt-header {
    background: rgba(17, 19, 24, 0.92);
}

body.tt-shop .tt-header nav {
    background: transparent !important;
}

body.tt-shop .tt-header .app-logo img,
body.tt-shop .tt-header .app-logo svg {
    border-radius: 10px;
}

body.tt-shop .tt-header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--tt-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--color-base, 22, 163, 74), 0.35);
}

body.tt-shop #mobile-menu-2 {
    background: var(--tt-card) !important;
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    overflow: hidden;
}

/* ---------- Welcome strip ---------- */
body.tt-shop .tt-welcome {
    margin: 14px 16px 0;
    padding: 16px 18px;
    border-radius: var(--tt-radius);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--tt-brand) 0%, rgba(var(--color-base, 22, 163, 74), 0.82) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(var(--color-base, 22, 163, 74), 0.28);
}

body.tt-shop .tt-welcome__hello {
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

body.tt-shop .tt-welcome__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2px;
}

body.tt-shop .tt-welcome__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

body.tt-shop .tt-welcome__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

body.tt-shop .tt-welcome__pill svg {
    width: 16px;
    height: 16px;
}

/* ---------- Order-type bar (old one) is replaced by the welcome strip ---------- */
body.tt-shop .tt-ot-bar {
    display: none !important;
}

/* ---------- Menu chips (Show All / Hot / Iced ...) ---------- */
body.tt-shop .tt-menu-chips-wrap {
    margin-top: 14px !important;
    margin-bottom: 4px !important;
}

@media (max-width: 1023px) {
    body.tt-shop .tt-menu-chips {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 6px;
        scrollbar-width: none;
        /* room for the active chip's shadow inside the scroll area */
        padding: 4px 4px 12px !important;
        margin: -4px -4px -8px;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card--active {
        box-shadow: 0 4px 10px rgba(var(--color-base, 22, 163, 74), 0.28) !important;
    }

    body.tt-shop .tt-menu-chips::-webkit-scrollbar {
        display: none;
    }

    body.tt-shop .tt-menu-chips > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card {
        border-radius: 999px !important;
        min-height: 40px;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card > div {
        padding: 8px 16px !important;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card__icon {
        width: 16px !important;
        height: 16px !important;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card__title {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: visible !important;
    }

    /* "show more" toggle is not needed with a scrolling row */
    body.tt-shop .tt-menu-chips-more {
        display: none !important;
    }

    body.tt-shop .tt-menu-chips [x-show] {
        display: block !important;
    }
}

body.tt-shop .tt-shop-menu-card {
    border-color: var(--tt-line) !important;
    box-shadow: none !important;
}

body.tt-shop .tt-shop-menu-card--active {
    box-shadow: 0 6px 16px rgba(var(--color-base, 22, 163, 74), 0.3) !important;
    border-color: transparent !important;
}

/* ---------- Filters row (category dropdown + search + veg) ---------- */
body.tt-shop .tt-filters {
    margin-top: 10px !important;
}

body.tt-shop .tt-filters input[type='text'],
body.tt-shop .tt-filters button {
    border-radius: 12px !important;
    border-color: var(--tt-line) !important;
    min-height: 44px;
}

body.tt-shop .tt-search {
    position: relative;
}

body.tt-shop .tt-search input {
    padding-left: 38px !important;
    background: var(--tt-card) !important;
    font-size: 14px;
}

body.tt-shop .tt-search::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M17 10.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Z'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

[dir='rtl'] body.tt-shop .tt-search::before {
    left: auto;
    right: 13px;
}

[dir='rtl'] body.tt-shop .tt-search input {
    padding-left: 12px !important;
    padding-right: 38px !important;
}

body.tt-shop .tt-toggles {
    margin: 8px 16px 0 !important;
    gap: 14px !important;
}

@media (max-width: 1023px) {
    body.tt-shop .tt-toggles {
        justify-content: flex-start !important;
        margin-top: 10px !important;
    }

    body.tt-shop .tt-toggles > div {
        justify-content: flex-start !important;
        margin-top: 0 !important;
    }
}

/* ---------- Section heading ---------- */
body.tt-shop .tt-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 10px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

body.tt-shop .tt-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tt-line);
}

/* ---------- Item cards ---------- */
body.tt-shop .tt-item-card {
    background: var(--tt-card) !important;
    border: 1px solid var(--tt-line) !important;
    border-radius: var(--tt-radius) !important;
    box-shadow: var(--tt-shadow) !important;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.tt-shop .tt-item-card:active {
    transform: scale(0.99);
}

body.tt-shop .tt-item-card > div {
    padding: 12px !important;
    gap: 12px !important;
}

body.tt-shop .tt-item-img {
    width: 88px !important;
    height: 88px !important;
    border-radius: 14px !important;
    flex-shrink: 0;
    background: #f1ede4;
}

@media (min-width: 1024px) {
    body.tt-shop .tt-item-img {
        width: 104px !important;
        height: 104px !important;
    }
}

body.tt-shop .tt-item-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-transform: capitalize;
}

body.tt-shop .tt-item-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tt-text) !important;
}

body.tt-shop .tt-item-card--oos {
    opacity: 0.72;
}

body.tt-shop .tt-item-card--oos .tt-item-img {
    filter: grayscale(0.9);
}

body.tt-shop .tt-oos-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c !important;
    font-size: 12px;
    font-weight: 600;
}

body.tt-shop .tt-low-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
}

/* Add button + qty stepper as pills */
body.tt-shop .tt-add-btn {
    min-width: 84px;
    height: 38px;
    justify-content: center;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3) !important;
}

body.tt-shop .tt-add-btn::before {
    content: '+';
    margin-right: 6px;
    font-size: 16px;
    line-height: 1;
}

body.tt-shop .tt-stepper {
    margin: 0 !important;
    max-width: none !important;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--tt-brand);
    box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3);
}

body.tt-shop .tt-stepper button {
    height: 38px !important;
    width: 38px;
    padding: 0 !important;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.tt-shop .tt-stepper button svg {
    width: 12px !important;
    height: 12px !important;
    color: #fff !important;
}

body.tt-shop .tt-stepper input {
    width: 34px !important;
    min-width: 34px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px !important;
}

/* ---------- Floating cart bar ---------- */
body.tt-shop .tt-cart-bar {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 30 !important;
}

body.tt-shop .tt-cart-bar > div {
    border-radius: 18px !important;
    padding: 12px 12px 12px 18px !important;
    background: #111827 !important;
    box-shadow: var(--tt-shadow-lg);
}

body.tt-shop .tt-cart-bar__info {
    font-weight: 600;
    font-size: 14px !important;
}

body.tt-shop .tt-cart-bar button {
    border-radius: 12px !important;
    background: var(--tt-brand) !important;
    color: #fff !important;
    border: 0 !important;
    min-height: 42px;
    padding: 0 16px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Keep content above the floating cart bar */
body.tt-shop .tt-menu-list {
    padding-bottom: 110px;
}

/* ---------- Floating actions (call waiter) ---------- */
body.tt-shop .tt-floating-actions {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: flex-end !important;
}

/* ---------- Order type: bottom sheet on phones ---------- */
@media (max-width: 639px) {
    body.tt-shop .tt-ot-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    body.tt-shop .tt-ot-sheet {
        border-radius: 24px 24px 0 0 !important;
        max-width: 100% !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        animation: tt-sheet-up 0.22s ease-out;
    }

    body.tt-shop .tt-ot-sheet::before {
        content: '';
        display: block;
        width: 42px;
        height: 5px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: #d1d5db;
    }

    body.tt-shop .tt-ot-sheet h2 {
        font-size: 19px !important;
    }

    body.tt-shop .tt-ot-options {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 16px !important;
    }

    body.tt-shop .tt-ot-options > button {
        padding: 14px 6px !important;
        border-radius: 16px !important;
    }

    body.tt-shop .tt-ot-options > button > div {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 8px !important;
    }

    body.tt-shop .tt-ot-options > button > div svg {
        width: 24px !important;
        height: 24px !important;
    }

    body.tt-shop .tt-ot-options > button > span:first-of-type {
        font-size: 14px !important;
    }

    /* Descriptions make the sheet too tall on phones */
    body.tt-shop .tt-ot-options > button > span + span,
    body.tt-shop .tt-ot-options > button > span ~ span {
        display: none !important;
    }
}

@keyframes tt-sheet-up {
    from {
        transform: translateY(40px);
        opacity: 0.4;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------- Generic modals (item detail, login, etc.) ---------- */
body.tt-shop .jetstream-modal > div:last-child,
body.tt-shop .tt-item-detail {
    border-radius: 20px !important;
}

@media (max-width: 639px) {
    body.tt-shop .jetstream-modal {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.tt-shop .jetstream-modal > div:last-child {
        margin-top: 24px !important;
    }
}

/* ---------- Cart page ---------- */
body.tt-shop .tt-cart-line {
    background: var(--tt-card) !important;
    border: 1px solid var(--tt-line) !important;
    border-radius: var(--tt-radius) !important;
    box-shadow: var(--tt-shadow) !important;
    overflow: hidden;
}

body.tt-shop .tt-cart-line > div {
    background: transparent !important;
}

body.tt-shop .tt-cart-line img.object-cover {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
}

body.tt-shop .tt-cart-summary > div:not(:last-child) {
    background: var(--tt-card) !important;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius) !important;
    box-shadow: var(--tt-shadow);
}

/* Checkout buttons: always reachable at the bottom of the screen on phones */
body.tt-shop .tt-cart-summary > div:last-child {
    background: transparent !important;
}

@media (max-width: 1023px) {
    body.tt-shop .tt-cart-summary > div:last-child {
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        background: var(--tt-bg) !important;
    }
}

body.tt-shop .tt-cart-summary button {
    min-height: 46px;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ---------- Footer ---------- */
body.tt-shop footer {
    background: transparent !important;
    border-color: var(--tt-line) !important;
    padding-bottom: 120px !important;
}

@media (min-width: 1024px) {
    body.tt-shop footer {
        padding-bottom: 24px !important;
    }
}

/* ---------- Safety: never allow sideways scrolling on phones ---------- */
@media (max-width: 1023px) {
    /* clip (not hidden) so the sticky header keeps working */
    html,
    body.tt-shop {
        overflow-x: clip !important;
        max-width: 100%;
    }

    body.tt-shop img {
        max-width: 100%;
    }
}

/* =====================================================================
   v4: sticky browse bar, category photo strip, food-app style item cards
   ===================================================================== */

/* Sticky search + categories (sits right under the sticky header) */
body.tt-shop .tt-browse-bar {
    position: sticky;
    top: var(--tt-header-h, 60px);
    z-index: 30;
    margin-top: 6px;
    padding: 10px 16px 4px;
    background: var(--tt-bg);
}

body.tt-shop .tt-browse-bar.tt-stuck {
    box-shadow: 0 8px 16px -12px rgba(17, 24, 39, 0.25);
}

body.tt-shop .tt-browse-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.tt-shop .tt-browse-row input[type='text'] {
    height: 44px;
    border-radius: 14px !important;
    border-color: var(--tt-line) !important;
}

body.tt-shop .tt-diet-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    color: var(--tt-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

body.tt-shop .tt-diet-pill--on {
    border-color: #16a34a;
    background: #ecfdf5;
    color: #15803d;
}

body.tt-shop .tt-veg-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1.5px solid #16a34a;
    border-radius: 3px;
}

body.tt-shop .tt-veg-dot::after {
    content: '';
    position: absolute;
    inset: 2.5px;
    border-radius: 50%;
    background: #16a34a;
}

/* Category strip */
body.tt-shop .tt-cat-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.tt-shop .tt-cat-strip::-webkit-scrollbar {
    display: none;
}

body.tt-shop .tt-cat {
    position: relative;
    flex: 0 0 auto;
    width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    scroll-snap-align: start;
    cursor: pointer;
}

body.tt-shop .tt-cat__img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tt-brand-soft), #ffffff);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.tt-shop .tt-cat__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.tt-shop .tt-cat__img--all svg {
    width: 26px;
    height: 26px;
    color: var(--tt-brand);
}

body.tt-shop .tt-cat__initial {
    font-size: 24px;
    font-weight: 700;
    color: var(--tt-brand);
    text-transform: uppercase;
}

body.tt-shop .tt-cat__name {
    max-width: 78px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--tt-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.tt-shop .tt-cat__count {
    position: absolute;
    top: -2px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid var(--tt-bg);
    background: #111827;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

body.tt-shop .tt-cat--active .tt-cat__img {
    border-color: var(--tt-brand);
    box-shadow: 0 0 0 3px var(--tt-brand-soft), 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3);
    transform: translateY(-2px);
}

body.tt-shop .tt-cat--active .tt-cat__name {
    color: var(--tt-brand);
}

body.tt-shop .tt-cat--active .tt-cat__count {
    background: var(--tt-brand);
}

/* Item cards: photo on the right, "ADD" button overlapping the photo (food-app style) */
body.tt-shop .tt-item-card {
    position: relative;
}

body.tt-shop .tt-item-card[data-img='1'] > div {
    flex-direction: row-reverse;
    min-height: 152px;
    padding-bottom: 26px !important;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-item-img {
    width: 116px !important;
    height: 116px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}

body.tt-shop .tt-item-card[data-img='1'] .tt-item-actions {
    position: absolute;
    top: calc(12px + 116px - 20px);
    right: 12px;
    width: 116px;
    align-items: center !important;
    z-index: 2;
}

[dir='rtl'] body.tt-shop .tt-item-card[data-img='1'] .tt-item-actions {
    right: auto;
    left: 12px;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-item-actions > div {
    align-items: center !important;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-add-btn {
    min-width: 96px;
    background: #ffffff !important;
    color: var(--tt-brand) !important;
    border: 1px solid rgba(var(--color-base, 22, 163, 74), 0.35) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16) !important;
}

html.dark body.tt-shop .tt-item-card[data-img='1'] .tt-add-btn {
    background: #111827 !important;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-low-badge,
body.tt-shop .tt-item-card[data-img='1'] .tt-oos-badge {
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.12);
}

body.tt-shop .tt-item-card .tt-item-price {
    margin-top: 4px;
}

/* ---------- "Order again" banner on the menu ---------- */
body.tt-shop .tt-repeat-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #a7f3d0;
}

body.tt-shop .tt-repeat-banner button {
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

/* ---------- Order status page: alerts + buttons ---------- */
body.tt-shop .tt-notify-btn,
body.tt-shop .tt-notify-on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

body.tt-shop .tt-notify-btn {
    background: var(--tt-brand);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3);
}

body.tt-shop .tt-notify-on {
    background: var(--tt-brand-soft);
    color: var(--tt-brand);
}

body.tt-shop .tt-ready-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--tt-header-h, 60px) + 10px);
    z-index: 60;
    padding: 16px 18px;
    border-radius: 16px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--tt-shadow-lg);
    animation: tt-pop 0.35s ease-out;
}

@keyframes tt-pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

body.tt-shop .tt-repeat-btn,
body.tt-shop .tt-order-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    color: var(--tt-text);
}

body.tt-shop .tt-repeat-btn,
body.tt-shop .tt-order-card__btn--primary {
    background: var(--tt-brand);
    border-color: transparent;
    color: #ffffff;
}

body.tt-shop .tt-order-card__btn {
    flex: 1;
}

/* ---------- My Orders cards ---------- */
body.tt-shop .tt-order-card {
    padding: 14px;
    border-radius: var(--tt-radius);
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    box-shadow: var(--tt-shadow);
}

body.tt-shop .tt-status-pill {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

body.tt-shop .tt-status-pill--active {
    background: #fef3c7;
    color: #92400e;
}

body.tt-shop .tt-status-pill--done {
    background: #dcfce7;
    color: #166534;
}

/* ---------- Delivery address form ---------- */
body.tt-shop .tt-address-form {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--tt-line);
    background: var(--tt-brand-softer);
}

/* Sticky elements need ancestors without a scroll container: use clip instead of hidden/auto. */
body.tt-shop .tt-shell > .flex.mt-4,
body.tt-shop #main-content,
body.tt-shop #main-content > main,
body.tt-shop .overflow-x-hidden:has(.tt-browse-bar),
body.tt-shop .overflow-x-hidden:has(.tt-cart-summary) {
    overflow: clip !important;
}
/* Saved addresses offered as one-tap choices */
body.tt-shop .tt-saved-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    text-align: start;
}

body.tt-shop .tt-saved-address:hover {
    border-color: var(--tt-brand);
}

body.tt-shop .tt-saved-address__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--tt-brand);
}

body.tt-shop .tt-saved-address__text {
    font-size: 13px;
    color: var(--tt-text);
}

/* ===== Round 5 (12 Oct 2026) ===== */

/* Menu chips (Show All / Hot / Cold / Combo): one compact scrolling row on every screen size */
body.tt-shop .tt-menu-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 10px !important;
    margin: -4px -4px -6px;
}
body.tt-shop .tt-menu-chips::-webkit-scrollbar { display: none; }
body.tt-shop .tt-menu-chips > * { flex: 0 0 auto; }
body.tt-shop .tt-menu-chips [x-show] { display: block !important; }
body.tt-shop .tt-menu-chips-more { display: none !important; }
body.tt-shop .tt-menu-chips .tt-shop-menu-card {
    border-radius: 999px !important;
    min-height: 34px;
}
body.tt-shop .tt-menu-chips .tt-shop-menu-card > div { padding: 6px 14px !important; }
body.tt-shop .tt-menu-chips .tt-shop-menu-card__icon,
body.tt-shop .tt-menu-chips .tt-shop-menu-card .bg-gray-100,
body.tt-shop .tt-menu-chips .tt-shop-menu-card__meta { display: none !important; }
body.tt-shop .tt-menu-chips .tt-shop-menu-card__title {
    font-size: 13px !important;
    white-space: nowrap;
    overflow: visible !important;
}

/* Search bar: not full width on desktop */
@media (min-width: 768px) {
    body.tt-shop .tt-browse-row .tt-search { flex: 0 1 380px !important; }
    body.tt-shop .tt-browse-row input[type='text'] { height: 40px; }
    body.tt-shop .tt-diet-pill { height: 40px; }
}

/* Non-veg filter pill */
body.tt-shop .tt-nonveg-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1.5px solid #b91c1c;
    border-radius: 3px;
}
body.tt-shop .tt-nonveg-dot::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: 2.5px;
    bottom: 2.5px;
    background: #b91c1c;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
body.tt-shop .tt-diet-pill--nv-on {
    border-color: #b91c1c;
    background: #fef2f2;
    color: #b91c1c;
}

/* Repeat last order button on the menu page */
body.tt-shop .tt-repeat-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 16px 0;
    padding: 10px 14px;
    border: 1px solid var(--tt-line);
    border-radius: 14px;
    background: var(--tt-card);
    color: var(--tt-text);
    text-decoration: none;
}
body.tt-shop .tt-repeat-cta__icon { font-size: 20px; line-height: 1; }
body.tt-shop .tt-repeat-cta__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
body.tt-shop .tt-repeat-cta__text strong { font-size: 14px; }
body.tt-shop .tt-repeat-cta__text small { font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tt-shop .tt-repeat-cta__go {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(var(--color-base, 22, 163, 74));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
body.tt-shop .tt-menu-chips-wrap { overflow-y: hidden !important; }


/* ===== Round 6 (13 Oct 2026): home redesign ===== */
:root { --tt-cream: #fbf3e4; --tt-green-dark: rgb(var(--color-base, 22, 163, 74)); }

/* Header brand + login */
body.tt-shop .tt-header .app-logo img { height: 44px !important; width: 44px; object-fit: cover; border-radius: 50% !important; background: var(--tt-cream); }
body.tt-shop .tt-brand { display: flex; flex-direction: column; line-height: 1.1; }
body.tt-shop .tt-brand__name { font-size: 19px !important; font-weight: 700 !important; letter-spacing: -0.01em; }
body.tt-shop .tt-brand__tag { margin-top: 3px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tt-muted); white-space: nowrap; }
body.tt-shop .tt-header-login { height: 40px !important; padding: 0 16px !important; font-size: 14px !important; }
body.tt-shop .tt-header-login svg { width: 16px; height: 16px; }

/* Home block */
body.tt-shop .tt-home { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 12px; }

/* Outlet card */
body.tt-shop .tt-outlet { position: relative; }
body.tt-shop .tt-outlet__btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--tt-brand-soft); border: 1px solid rgba(var(--color-base, 22, 163, 74), 0.12); text-align: left; }
body.tt-shop .tt-outlet__pin { width: 26px; height: 26px; color: var(--tt-brand); flex-shrink: 0; }
body.tt-shop .tt-outlet__pin svg { width: 100%; height: 100%; }
body.tt-shop .tt-outlet__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.tt-shop .tt-outlet__text strong { font-size: 16px; font-weight: 700; color: var(--tt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tt-shop .tt-outlet__text small { font-size: 12.5px; color: var(--tt-muted); }
body.tt-shop .tt-outlet__chev { width: 20px; height: 20px; color: var(--tt-text); transition: transform .2s; flex-shrink: 0; }
body.tt-shop .tt-outlet__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 35; background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 16px; box-shadow: var(--tt-shadow-lg); overflow: hidden; }
body.tt-shop .tt-outlet__list a { display: flex; flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--tt-line); color: var(--tt-text); }
body.tt-shop .tt-outlet__list a:last-child { border-bottom: 0; }
body.tt-shop .tt-outlet__list a.is-on { background: var(--tt-brand-softer); font-weight: 600; }
body.tt-shop .tt-outlet__list small { font-size: 12px; color: var(--tt-muted); font-weight: 400; }

/* Quick action cards */
body.tt-shop .tt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.tt-shop .tt-action { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 12px; border-radius: 18px; text-align: left; text-decoration: none; box-shadow: var(--tt-shadow); }
body.tt-shop .tt-action--primary { background: linear-gradient(135deg, var(--tt-green-dark), rgba(var(--color-base, 22, 163, 74), 0.85)); color: #fff; }
body.tt-shop .tt-action--soft { background: var(--tt-cream); color: var(--tt-text); }
html.dark body.tt-shop .tt-action--soft { background: #2a2418; }
body.tt-shop .tt-action__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
body.tt-shop .tt-action--primary .tt-action__icon { background: rgba(255, 255, 255, 0.92); color: var(--tt-brand); }
body.tt-shop .tt-action--soft .tt-action__icon { background: #f6e3bf; color: #3d3427; }
body.tt-shop .tt-action__icon svg { width: 24px; height: 24px; }
body.tt-shop .tt-action__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.tt-shop .tt-action__text strong { font-size: 15px; font-weight: 700; line-height: 1.2; }
body.tt-shop .tt-action__text small { font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tt-shop .tt-action__go { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero banner */
body.tt-shop .tt-hero { position: relative; overflow: hidden; display: flex; align-items: stretch; min-height: 176px; border-radius: 20px; background: linear-gradient(105deg, #fbf3e4 0%, #f6e7cc 55%, #e9cfa3 100%); box-shadow: var(--tt-shadow); }
html.dark body.tt-shop .tt-hero { background: linear-gradient(105deg, #2a2418 0%, #3a2e1c 100%); }
body.tt-shop .tt-hero__text { position: relative; z-index: 2; flex: 1 1 58%; padding: 18px 0 18px 18px; display: flex; flex-direction: column; justify-content: center; }
body.tt-shop .tt-hero__kicker { font-size: 10.5px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: #5b4a33; }
html.dark body.tt-shop .tt-hero__kicker { color: #d9c49f; }
body.tt-shop .tt-hero__title { margin: 4px 0 2px; font-size: 30px; font-weight: 800; line-height: 1.05; color: #1d2a22; letter-spacing: -0.02em; }
html.dark body.tt-shop .tt-hero__title { color: #fff; }
body.tt-shop .tt-hero__title em { font-family: 'Dancing Script', cursive; font-style: normal; font-weight: 700; font-size: 1.15em; color: #b0742a; letter-spacing: 0; }
body.tt-shop .tt-hero__sub { font-size: 13.5px; color: #3d3427; }
html.dark body.tt-shop .tt-hero__sub { color: #e5dccb; }
body.tt-shop .tt-hero__btn { align-self: flex-start; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--tt-brand); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), .35); white-space: nowrap; }
body.tt-shop .tt-hero__btn svg { width: 16px; height: 16px; }
body.tt-shop .tt-hero__img { position: relative; flex: 0 0 44%; }
body.tt-shop .tt-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
body.tt-shop .tt-hero__tag { position: absolute; z-index: 3; top: 12px; right: 12px; font-family: 'Dancing Script', cursive; font-size: 15px; line-height: 1.05; text-align: right; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
@media (min-width: 768px) {
    body.tt-shop .tt-home { padding-top: 18px; }
    body.tt-shop .tt-hero { min-height: 240px; }
    body.tt-shop .tt-hero__text { padding: 28px 0 28px 32px; }
    body.tt-shop .tt-hero__title { font-size: 44px; }
    body.tt-shop .tt-actions { grid-template-columns: 1fr 1fr; max-width: 720px; }
}

/* Menu chips sit under the hero */
body.tt-shop .tt-menu-chips-wrap { margin-top: 12px !important; }

/* Category tiles with icons */
body.tt-shop .tt-cat { width: 74px !important; padding-bottom: 6px !important; }
body.tt-shop .tt-cat__img { width: 62px !important; height: 62px !important; background: var(--tt-cream) !important; border: 0 !important; box-shadow: none !important; }
html.dark body.tt-shop .tt-cat__img { background: #2a2418 !important; }
body.tt-shop .tt-cat__img--icon { font-size: 28px; line-height: 1; }
body.tt-shop .tt-cat__img--all { background: var(--tt-cream) !important; }
body.tt-shop .tt-cat--active .tt-cat__img { background: var(--tt-brand) !important; transform: none !important; box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), .35) !important; }
body.tt-shop .tt-cat--active .tt-cat__img--all svg { color: #fff !important; }
body.tt-shop .tt-cat--active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--tt-brand); }
body.tt-shop .tt-cat__name { font-size: 12.5px !important; color: var(--tt-text) !important; }
body.tt-shop .tt-cat__count { display: none !important; }
body.tt-shop .tt-browse-bar .tt-browse-row { margin-top: 4px; padding-bottom: 6px; }

/* Section header: title, line, View All */
body.tt-shop .tt-sec__head { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
body.tt-shop .tt-sec__head .tt-section-title { margin: 0 !important; font-size: 22px !important; font-weight: 800 !important; }
body.tt-shop .tt-sec__head .tt-section-title::after { display: none !important; }
body.tt-shop .tt-sec__line { flex: 0 0 34px; height: 3px; border-radius: 3px; background: var(--tt-brand); }
body.tt-shop .tt-sec__all { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--tt-text); white-space: nowrap; }
body.tt-shop .tt-sec__all svg { width: 16px; height: 16px; }

/* Item cards: image on top, 2 per row on phones */
body.tt-shop .tt-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { body.tt-shop .tt-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1280px) { body.tt-shop .tt-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.tt-shop .tt-card { display: flex; flex-direction: column; min-width: 0; background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 18px; overflow: hidden; box-shadow: var(--tt-shadow); }
body.tt-shop .tt-card__media { position: relative; aspect-ratio: 4 / 3; background: #f1e7d6; cursor: pointer; overflow: hidden; }
html.dark body.tt-shop .tt-card__media { background: #2a2418; }
body.tt-shop .tt-card__media > img:not(.tt-card__type) { width: 100%; height: 100%; object-fit: cover; }
body.tt-shop .tt-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; }
body.tt-shop .tt-card__type { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; padding: 2px; border-radius: 4px; background: #fff; }
body.tt-shop .tt-card__oos { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 700; }
body.tt-shop .tt-card--oos .tt-card__media img { filter: grayscale(.9); }
body.tt-shop .tt-card--oos { opacity: .8; }
body.tt-shop .tt-card__body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 12px; }
body.tt-shop .tt-card__name { font-size: 14.5px !important; font-weight: 700 !important; line-height: 1.25; text-transform: uppercase; color: var(--tt-text); cursor: pointer; overflow-wrap: anywhere; }
body.tt-shop .tt-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
body.tt-shop .tt-card__tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: #e8f5ec; color: #166534; font-size: 11px; font-weight: 600; }
body.tt-shop .tt-card__tag--warn { background: #fef3c7; color: #92400e; }
body.tt-shop .tt-card__tag img { width: 13px; height: 13px; }
body.tt-shop .tt-card__desc { font-size: 12px; line-height: 1.4; color: var(--tt-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
body.tt-shop .tt-card__prep { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--tt-muted); }
body.tt-shop .tt-card__prep svg { width: 13px; height: 13px; flex-shrink: 0; }
body.tt-shop .tt-card__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
body.tt-shop .tt-card__price { font-size: 17px !important; font-weight: 800 !important; color: var(--tt-text) !important; }
body.tt-shop .tt-card .tt-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
body.tt-shop .tt-card__buy { display: flex; align-items: center; }
body.tt-shop .tt-card .tt-add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0 !important; height: 36px !important; padding: 0 14px !important; border-radius: 12px !important; background: var(--tt-brand) !important; color: #fff !important; font-size: 13.5px !important; font-weight: 700 !important; box-shadow: 0 4px 10px rgba(var(--color-base, 22, 163, 74), .3) !important; }
body.tt-shop .tt-card .tt-add-btn::before { content: none !important; }
body.tt-shop .tt-card .tt-add-btn svg { width: 16px; height: 16px; }
body.tt-shop .tt-card .tt-add-btn--ghost { background: var(--tt-card) !important; color: var(--tt-text) !important; border: 1px solid var(--tt-line) !important; box-shadow: none !important; }
body.tt-shop .tt-card .tt-stepper { display: flex; align-items: center; height: 36px !important; border-radius: 12px !important; }
body.tt-shop .tt-card .tt-stepper button { width: 32px !important; height: 36px !important; }
body.tt-shop .tt-card .tt-stepper input { width: 26px !important; min-width: 26px !important; height: 36px !important; text-align: center; }
@media (max-width: 380px) {
    body.tt-shop .tt-card__foot { flex-direction: column; align-items: stretch; }
    body.tt-shop .tt-card .tt-item-actions { align-items: stretch; margin-left: 0; }
    body.tt-shop .tt-card .tt-add-btn { width: 100%; }
}

/* Order type picker */
body.tt-shop .tt-otm { display: flex; align-items: flex-end; justify-content: center; background: rgba(17, 24, 39, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
body.tt-shop .tt-otm__sheet { position: relative; width: 100%; max-width: 520px; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--tt-card); box-shadow: var(--tt-shadow-lg); animation: tt-sheet-up .22s ease-out; }
@media (min-width: 640px) {
    body.tt-shop .tt-otm { align-items: center; padding: 16px; }
    body.tt-shop .tt-otm__sheet { border-radius: 26px; padding: 18px 22px 22px; }
    body.tt-shop .tt-otm__grab { display: none !important; }
}
body.tt-shop .tt-otm__grab { display: block; width: 44px; height: 5px; margin: 0 auto 8px; border-radius: 999px; background: #d6d3cd; }
body.tt-shop .tt-otm__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tt-bg); color: var(--tt-muted); }
body.tt-shop .tt-otm__close svg { width: 18px; height: 18px; }
body.tt-shop .tt-otm__head { padding: 6px 40px 14px 2px; }
body.tt-shop .tt-otm__kicker { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tt-brand); }
body.tt-shop .tt-otm__head h2 { margin-top: 2px; font-size: 22px; font-weight: 800; color: var(--tt-text); }
body.tt-shop .tt-otm__head p { margin-top: 2px; font-size: 13.5px; color: var(--tt-muted); }
body.tt-shop .tt-otm__opts { display: flex; flex-direction: column; gap: 10px; }
body.tt-shop .tt-otm__opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 18px; border: 2px solid var(--tt-line); background: var(--tt-card); text-align: left; transition: border-color .15s, background .15s, transform .1s; }
body.tt-shop .tt-otm__opt:active { transform: scale(.99); }
body.tt-shop .tt-otm__opt:hover { border-color: rgba(var(--color-base, 22, 163, 74), .45); }
body.tt-shop .tt-otm__opt.is-on { border-color: var(--tt-brand); background: var(--tt-brand-softer); }
body.tt-shop .tt-otm__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--tt-brand-soft); color: var(--tt-brand); }
body.tt-shop .tt-otm__opt[data-type='pickup'] .tt-otm__icon { background: #fdf0d9; color: #a16207; }
body.tt-shop .tt-otm__icon svg { width: 28px; height: 28px; }
body.tt-shop .tt-otm__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.tt-shop .tt-otm__text strong { font-size: 16.5px; font-weight: 700; color: var(--tt-text); }
body.tt-shop .tt-otm__text small { font-size: 12.5px; color: var(--tt-muted); }
body.tt-shop .tt-otm__check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--tt-line); display: flex; align-items: center; justify-content: center; color: transparent; }
body.tt-shop .tt-otm__check svg { width: 15px; height: 15px; }
body.tt-shop .tt-otm__opt.is-on .tt-otm__check { background: var(--tt-brand); border-color: var(--tt-brand); color: #fff; }
body.tt-shop .tt-otm__browse { display: block; margin: 14px auto 0; font-size: 13.5px; font-weight: 600; color: var(--tt-muted); text-decoration: underline; text-underline-offset: 3px; }
body.tt-shop .tt-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
body.tt-shop .tt-action { min-width: 0; }
body.tt-shop .tt-action__icon { width: 40px; height: 40px; }
body.tt-shop .tt-action__icon svg { width: 21px; height: 21px; }
@media (max-width: 380px) { body.tt-shop .tt-action { gap: 8px; padding: 10px; } body.tt-shop .tt-action__go { display: none; } }
body.tt-shop .tt-header-login { padding: 0 12px !important; }
@media (max-width: 400px) { body.tt-shop .tt-brand__tag { letter-spacing: .14em; } }
body.tt-shop .tt-header .app-logo { min-width: 0; overflow: hidden; }
body.tt-shop .tt-brand { min-width: 0; overflow: hidden; }
body.tt-shop .tt-brand__name, body.tt-shop .tt-brand__tag { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
    body.tt-shop .tt-header .app-logo img { height: 38px !important; width: 38px; }
    body.tt-shop .tt-brand__name { font-size: 17px !important; }
    body.tt-shop .tt-brand__tag { font-size: 8.5px; letter-spacing: .12em; }
    body.tt-shop .tt-header-login { height: 36px !important; padding: 0 11px !important; font-size: 13px !important; }
    body.tt-shop .tt-header-login svg { width: 14px; height: 14px; }
    body.tt-shop .tt-header nav > div > div { gap: 0 !important; }
}
@media (min-width: 1024px) { body.tt-shop .tt-outlet { display: none; } }

body.tt-shop .tt-cat { width: auto !important; min-width: 74px; max-width: 104px; }
body.tt-shop .tt-cat__name { max-width: 104px !important; white-space: nowrap; }

/* ===== Round 8: centred popups on phones + keyboard-safe layout ===== */
@media (max-width: 639px) {
    body.tt-shop .jetstream-modal:not([style*="display: none"]) {
        display: flex !important;
        bottom: auto !important;
        height: var(--tt-vvh, 100dvh);
        padding: 12px !important;
    }
    body.tt-shop .jetstream-modal > div:last-child {
        margin: auto !important;
        width: 100%;
        max-height: calc(var(--tt-vvh, 100dvh) - 24px);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
body.tt-shop.tt-kb-open .tt-cart-bar,
body.tt-shop.tt-kb-open .tt-floating-actions { display: none !important; }
body.tt-shop.tt-kb-open .tt-cart-summary > div:last-child { position: static !important; }
/* ===== Round 9: saved address choice ===== */
body.tt-shop .tt-saved-address { position: relative; padding-right: 96px !important; }
body.tt-shop .tt-saved-address__go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--tt-brand); white-space: nowrap; }
body.tt-shop .tt-add-address { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 12px; border: 2px dashed rgba(var(--color-base, 22, 163, 74), .45); border-radius: 14px; background: var(--tt-brand-softer); color: var(--tt-brand); font-size: 14px; font-weight: 700; }
/* ===== Round 10: back button, footer, desktop sizing, about, order-success buttons ===== */

/* Back button under the header on every page except the menu */
body.tt-shop .tt-backbar { padding: 12px 16px 0; }
body.tt-shop .tt-back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px 0 10px; border-radius: 999px; background: var(--tt-card); border: 1px solid var(--tt-line); box-shadow: var(--tt-shadow); color: var(--tt-text); font-size: 14px; font-weight: 600; }
body.tt-shop .tt-back svg { width: 18px; height: 18px; }
body.tt-shop .tt-backbar + .flex.mt-4 { margin-top: 8px !important; }

/* Footer sits at the bottom of short pages, with no empty band below it */
body.tt-shop { display: flex; flex-direction: column; min-height: 100svh; }
body.tt-shop > .tt-shell { flex: 1 0 auto; min-height: 0 !important; width: 100%; }
body.tt-shop footer { flex-shrink: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
body.tt-shop:has(.tt-cart-bar) footer { padding-bottom: 104px !important; }

/* Order success: two equal buttons with space between */
body.tt-shop .tt-success-actions { display: flex; gap: 12px; margin: 18px 0 8px; }
body.tt-shop .tt-success-btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--tt-brand); color: #fff; font-size: 14px; font-weight: 700; text-align: center; box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), .25); }
body.tt-shop .tt-success-btn--ghost { background: var(--tt-card); color: var(--tt-brand); border: 2px solid var(--tt-brand); box-shadow: none; }
body.tt-shop .tt-success-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* About page */
body.tt-shop .tt-page { padding: 8px 16px 24px; }
body.tt-shop .tt-about { max-width: 720px; margin: 0 auto; padding: 20px; border-radius: 20px; background: var(--tt-card); border: 1px solid var(--tt-line); box-shadow: var(--tt-shadow); }
body.tt-shop .tt-about__head { display: flex; align-items: center; gap: 14px; }
body.tt-shop .tt-about__logo { width: 64px !important; height: 64px !important; border-radius: 50%; object-fit: cover; background: var(--tt-cream); flex-shrink: 0; }
body.tt-shop .tt-about__name { font-size: 24px; font-weight: 800; color: var(--tt-text); line-height: 1.15; }
body.tt-shop .tt-about__tag { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tt-muted); }
body.tt-shop .tt-about__body { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--tt-text); }
body.tt-shop .tt-about__body p + p { margin-top: 10px; }
body.tt-shop .tt-about__info { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--tt-bg); }
body.tt-shop .tt-about__row { display: flex; gap: 10px; font-size: 14px; color: var(--tt-text); word-break: break-word; }
body.tt-shop .tt-about__cta { display: flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 46px; border-radius: 14px; background: var(--tt-brand); color: #fff; font-weight: 700; font-size: 15px; }

/* Desktop: smaller item cards, more per row, lower hero */
@media (min-width: 1024px) {
    body.tt-shop .tt-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
    body.tt-shop .tt-card__media { aspect-ratio: 16 / 10; }
    body.tt-shop .tt-card__body { padding: 10px 12px 12px; gap: 4px; }
    body.tt-shop .tt-card__name { font-size: 14px !important; }
    body.tt-shop .tt-card__price { font-size: 16px !important; }
    body.tt-shop .tt-card .tt-add-btn { height: 34px !important; font-size: 13px !important; }
    body.tt-shop .tt-hero { min-height: 190px; }
    body.tt-shop .tt-hero__title { font-size: 38px; }
    body.tt-shop .tt-hero__img { flex-basis: 38%; }
    body.tt-shop .tt-sec__head .tt-section-title { font-size: 20px !important; }
}
@media (min-width: 1280px) {
    body.tt-shop .tt-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
body.tt-shop .tt-status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #fef3c7; color: #92400e; white-space: nowrap; }
body.tt-shop .tt-status-badge--confirmed, body.tt-shop .tt-status-badge--preparing { background: #e0f2fe; color: #075985; }
body.tt-shop .tt-status-badge--food_ready, body.tt-shop .tt-status-badge--picked_up, body.tt-shop .tt-status-badge--out_for_delivery, body.tt-shop .tt-status-badge--reached_destination { background: #ede9fe; color: #5b21b6; }
body.tt-shop .tt-status-badge--delivered, body.tt-shop .tt-status-badge--completed { background: #dcfce7; color: #166534; }
body.tt-shop .tt-status-badge--cancelled, body.tt-shop .tt-status-badge--canceled { background: #fee2e2; color: #991b1b; }
body.tt-shop .tt-cart-head { display: flex; align-items: center; gap: 12px; padding: 4px 16px 0; }
body.tt-shop .tt-cart-head__title { font-size: 20px; font-weight: 800; color: var(--tt-text); }
/* ===== Round 11: simple customer order tracker ===== */
body.tt-shop .tt-track__note { font-size: 14px; font-weight: 700; color: var(--tt-text); margin-bottom: 12px; }
body.tt-shop .tt-track__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
body.tt-shop .tt-track__steps::before, body.tt-shop .tt-track__steps::after { content: ""; position: absolute; top: 13px; left: 12.5%; height: 3px; border-radius: 3px; }
body.tt-shop .tt-track__steps::before { right: 12.5%; background: var(--tt-line); }
body.tt-shop .tt-track__steps::after { width: calc(75% * var(--tt-track-fill, 0)); background: var(--tt-brand); }
body.tt-shop .tt-track__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
body.tt-shop .tt-track__dot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tt-card); border: 2px solid var(--tt-line); color: #fff; }
body.tt-shop .tt-track__dot svg { width: 14px; height: 14px; }
body.tt-shop .tt-track__step.is-done .tt-track__dot, body.tt-shop .tt-track__step.is-now .tt-track__dot { background: var(--tt-brand); border-color: var(--tt-brand); }
body.tt-shop .tt-track__step.is-now .tt-track__dot { box-shadow: 0 0 0 5px rgba(var(--color-base, 22, 163, 74), .18); }
body.tt-shop .tt-track__label { font-size: 11.5px; font-weight: 600; color: var(--tt-muted); line-height: 1.2; }
body.tt-shop .tt-track__step.is-done .tt-track__label, body.tt-shop .tt-track__step.is-now .tt-track__label { color: var(--tt-text); }
body.tt-shop .tt-track__step.is-now .tt-track__label { color: var(--tt-brand); font-weight: 800; }
/* ===== Round 12: bold name field, edit/delete saved addresses ===== */
body.tt-shop .tt-name-label { font-size: 16px !important; font-weight: 800 !important; color: var(--tt-text) !important; }
body.tt-shop .tt-name-input { font-size: 16px !important; font-weight: 700 !important; }
body.tt-shop .tt-saved-address-wrap { border-radius: 14px; }
body.tt-shop .tt-saved-address-wrap .tt-saved-address { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
body.tt-shop .tt-saved-address-wrap.is-editing .tt-saved-address { border-color: var(--tt-brand) !important; }
body.tt-shop .tt-saved-address__actions { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 10px; border: 1px solid var(--tt-line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--tt-card); }
body.tt-shop .tt-addr-act { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tt-line); background: var(--tt-card); color: var(--tt-text); font-size: 13px; font-weight: 700; }
body.tt-shop .tt-addr-act svg { width: 15px; height: 15px; }
body.tt-shop .tt-addr-act--danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
body.tt-shop .tt-address-form__head { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--tt-muted); }
body.tt-shop .tt-addr-cancel { font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--tt-brand); text-decoration: underline; }
/* ===== Round 13: phones show 4 and a half category icons, so the cut-off one hints "scroll for more" ===== */
@media (max-width: 1023px) {
    body.tt-shop .tt-browse-bar { container-type: inline-size; }
    body.tt-shop .tt-cat-strip { --tt-cat-w: calc((100vw - 16px - 40px) / 4.5); margin-right: -16px; padding-right: 16px; scroll-padding-left: 2px; }
    @supports (width: 1cqw) {
        body.tt-shop .tt-cat-strip { --tt-cat-w: calc((100cqw + 14px - 40px) / 4.5); }
    }
    body.tt-shop .tt-cat { width: var(--tt-cat-w) !important; min-width: 0 !important; max-width: none !important; }
    body.tt-shop .tt-cat__img { width: min(62px, var(--tt-cat-w)) !important; height: min(62px, var(--tt-cat-w)) !important; }
    /* Names may use the 10px gap beside the icon; long names (e.g. "Sandwiches") are set a little smaller. */
    body.tt-shop .tt-cat__name { max-width: calc(var(--tt-cat-w) + 10px) !important; overflow: hidden; text-overflow: ellipsis; }
    body.tt-shop .tt-cat__name--long { font-size: 11px !important; letter-spacing: -.01em; }
}