/* ============================================
   Paket Servisi — menu, sepet, checkout
   ============================================ */

/* ============================================
   Hero slider — operator-curated campaigns
   image-only (no overlay text), 5/3 ratio,
   horizontal scroll-snap, auto-rotate 5s, dots.
   ============================================ */
.tk-hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: var(--color-bg-glass);
}
.tk-hero-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.tk-hero-slider__track::-webkit-scrollbar { display: none; }
.tk-hero-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}
.tk-hero-slide__img,
.tk-hero-slide picture,
.tk-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (hover: hover) {
    a.tk-hero-slide img { transition: transform var(--transition-slow); }
    a.tk-hero-slide:hover img { transform: scale(1.02); }
}
.tk-hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.tk-hero-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background var(--transition-fast), width var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.tk-hero-slider__dot.is-active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* ============================================
   Status chips — replaces the plain-text band
   ETA / kurye / min sepet pill cards + zone line
   ============================================ */
.tk-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: var(--space-md);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--color-primary) 6%, transparent) 0%,
        transparent 100%);
    border-bottom: 1px solid var(--color-border);
}
.tk-status__chip {
    flex: 1 1 calc(33% - 8px);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}
@media (hover: hover) {
    .tk-status__chip:hover {
        border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
    }
}
.tk-status__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-primary) 15%, transparent);
    color: var(--color-primary);
}
.tk-status__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.tk-status__label {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    font-weight: 600;
}
.tk-status__value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text, inherit);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tk-status__zone {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--color-text-secondary, #aaa);
    font-size: var(--text-sm);
    padding: 0 4px;
}
body.theme-light .tk-status__value { color: #111; }

/* Zone line — single discreet row under the hero, in place of the
   old status chip cluster. ETA/Kurye/Min moved to the info modal;
   the address stays here because it's the one detail a customer
   might want to confirm before scrolling into the menu. */
.tk-zone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px var(--space-md);
    color: var(--color-text-secondary, #aaa);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border);
}
.tk-zone svg { color: var(--color-primary); flex-shrink: 0; }

/* ============================================
   Featured products carousel
   Horizontal scroll-snap. Two visible cards on
   mobile (cell ~46vw — second card peeks the
   third, hinting scrollability), three on tablet+.
   Re-uses .product-card-grid for visual parity
   with the category grid sections below.
   ============================================ */
.tk-featured {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}
.tk-featured__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 var(--space-md);
    margin-bottom: var(--space-sm);
}
.tk-featured__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0;
    color: var(--color-primary-light, var(--color-primary));
}
.tk-featured__scroll {
    display: flex;
    gap: var(--space-md);
    padding: 4px var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-left: var(--space-md);
}
.tk-featured__scroll::-webkit-scrollbar { display: none; }
.tk-featured__cell {
    flex: 0 0 46vw;
    max-width: 240px;
    scroll-snap-align: start;
}
@media (min-width: 767px) {
    .tk-featured__cell {
        flex-basis: 30vw;
        max-width: 220px;
    }
}
@media (min-width: 1024px) {
    .tk-featured__cell { flex-basis: 22vw; }
}
.tk-featured__cell .product-card-grid {
    height: 100%;
}

/* Featured carousel cards force a square image regardless of the
   product's natural ratio. The shared aspect-ratio clamp JS sets
   inline `style="aspect-ratio: ..."` based on naturalWidth/Height
   — we override that with !important here so featured rows always
   read as a tidy 1:1 grid. */
.tk-featured__cell .product-card-grid__image {
    aspect-ratio: 1 / 1 !important;
}

/* Banners (closed, error) */
.tk-banner {
    margin: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: 1.5;
}
.tk-banner--closed {
    background: rgba(255, 152, 0, 0.12);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}
.tk-banner--closed strong { display: block; margin-bottom: 4px; }
.tk-banner--error {
    background: rgba(244, 67, 54, 0.12);
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* /paket page uses the dine-in menu's product card system, so no
   takeaway-specific menu structure needed here. The product card +
   button styles live further below alongside .product-card__add. */

/* Cart icon in the top-header (takeaway pages only).
   Uses `--color-header-fg` — the same per-tenant header foreground
   variable the back button uses, set in head.php from a contrast
   computation against the header background. Means: dark header →
   white icon, light header → dark icon, regardless of body theme.
   Theme-based overrides would be wrong here because a light-themed
   tenant can still have a dark/branded header (Aurora). */
.tk-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--color-header-fg, var(--color-text));
    background: color-mix(in srgb, var(--color-header-fg, #fff) 16%, transparent);
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tk-cart-icon:hover {
    background: color-mix(in srgb, var(--color-header-fg, #fff) 26%, transparent);
    transform: scale(1.05);
}
.tk-cart-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor; /* inherits from .tk-cart-icon's color */
}

.tk-cart-icon__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0px 0px 4px 2px var(--color-bg);
    animation: tk-badge-bump .25s ease;
}
.tk-cart-icon__badge--empty { display: none; }
@keyframes tk-badge-bump {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   Add-to-cart pill on takeaway product cards
   Glovo / Wolt / Yemeksepeti pattern: a labeled
   pill ("+ Ekle") rather than a tiny circle.
   Easier to read intent, easier to hit with a
   thumb, looks intentional next to the price.
   ============================================ */
.product-card__add,
.product-card-grid__add {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}
.product-card__add:hover,
.product-card-grid__add:hover {
    transform: scale(1.04);
    background: color-mix(in srgb, var(--color-primary) 88%, #fff);
}
.product-card__add svg,
.product-card-grid__add svg { flex-shrink: 0; }
.product-card__add--pulse,
.product-card-grid__add--pulse {
    animation: tk-add-pulse .35s ease;
}
@keyframes tk-add-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
    100% { transform: scale(1); }
}

/* Variant placeholder — different look so customer learns to tap card */
.product-card__add--variants,
.product-card-grid__add--variants {
    background: var(--color-bg-glass);
    color: var(--color-text-secondary, #ccc);
    box-shadow: none;
    cursor: pointer;
    border: 1px solid var(--color-border);
}
.product-card__add--variants:hover,
.product-card-grid__add--variants:hover {
    background: var(--color-bg-glass-strong);
    transform: none;
}

/* Inline button on the list card sits next to/under the price */
.product-card--takeaway .product-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Grid card: button overlaps the price area in the bottom-right */
.product-card-grid--takeaway .product-card-grid__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: var(--space-sm);
}

/* ============================================
   Product Detail — takeaway footer
   Sticky bottom CTA: variant picker + Sepete Ekle.
   Sits ABOVE the bottom-nav. Page padding-bottom in
   the global rule below makes room for both.
   ============================================ */
.tk-pd-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--nav-height, 62px);
    z-index: 90; /* below the lifted MENU button (102) so it can peek over */
    padding: 12px var(--space-md) calc(12px + var(--safe-bottom, 0px));
    background: var(--color-bg-glass-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tk-pd-foot__variants {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tk-pd-foot__variants::-webkit-scrollbar { display: none; }

.tk-pd-variant {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    min-width: 90px;
    padding: 8px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.tk-pd-variant:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-card-hover);
}
.tk-pd-variant.is-active {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 16%, transparent);
}
.tk-pd-variant__label {
    color: var(--color-text-secondary, #ccc);
    font-size: 0.78rem;
    font-weight: 500;
}
.tk-pd-variant__price {
    font-weight: 700;
    color: var(--color-primary);
}
body.theme-light .tk-pd-variant__price { color: var(--color-primary); }

/* Bottom row of the detail-page footer: qty stepper + CTA. */
.tk-pd-foot__row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.tk-pd-qty {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    background: var(--color-bg-glass-strong);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}
.tk-pd-qty button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}
.tk-pd-qty button:hover { transform: scale(1.06); }
.tk-pd-qty span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: .85rem;
}

.tk-pd-add {
    flex: 1;
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.tk-pd-add svg { flex-shrink: 0; opacity: .92; }
.tk-pd-add:hover { opacity: .95; }
.tk-pd-add:active { transform: translateY(1px); }
.tk-pd-add__label {
    letter-spacing: 0.04em;
    flex: 1;
    text-align: left;
    padding-left: 4px;
}
.tk-pd-add__price {
    font-weight: 800;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Make room for the takeaway product footer */
body.page-product.page-takeaway .page-content {
    padding-bottom: calc(var(--nav-height, 62px) + 150px + var(--safe-bottom, 0px));
}
body.page-product.page-takeaway:not(:has(.tk-pd-foot__variants)) .page-content {
    padding-bottom: calc(var(--nav-height, 62px) + 100px + var(--safe-bottom, 0px));
}

/* The MENU button now lives as a body-level sibling of .bottom-nav-wrap
   (see bottom_nav.php) with z-index: 110 globally — that puts it above
   the takeaway cart bar (90) automatically, no per-page override needed. */

/* Focus mode: takeaway product detail and checkout pages hide the
   bottom-nav entirely. These are conversion surfaces — the info /
   search / language shortcuts in the nav are noise at this point.
   With nav out of the way, the sticky CTA can sit flush at bottom: 0
   instead of floating awkwardly above a competing nav. */
body.page-takeaway-focus .bottom-nav-wrap,
body.page-takeaway-focus .bottom-nav__menu-btn {
    display: none !important;
}
body.page-takeaway-focus .tk-pd-foot {
    bottom: 0;
    padding-bottom: calc(12px + var(--safe-bottom, 0px));
}
body.page-takeaway-focus.page-product .page-content {
    padding-bottom: calc(150px + var(--safe-bottom, 0px));
}
body.page-takeaway-focus.page-product:not(:has(.tk-pd-foot__variants)) .page-content {
    padding-bottom: calc(100px + var(--safe-bottom, 0px));
}

/* Checkout focus mode: the submit button anchors to the bottom of
   the viewport so it's always one tap away regardless of scroll
   position — same conversion-funnel principle as the detail page's
   sticky CTA. The form's visibility toggle (hidden until cart has
   items) means an empty-cart state doesn't show this fixed bar. */
body.page-takeaway-focus .tk-submit {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    margin-top: 0;
    padding: 16px 20px calc(16px + var(--safe-bottom, 0px));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}
body.page-takeaway-focus .tk-form__note {
    /* Push the trust-mark note above the fixed submit so it's not
       hidden behind it. */
    margin-bottom: calc(80px + var(--safe-bottom, 0px));
}
body.page-takeaway-focus .tk-checkout {
    padding-bottom: calc(20px + var(--safe-bottom, 0px));
}

/* ============================================
   Cart line thumbnails — small product image
   Adds visual hierarchy + brand recognition.
   ============================================ */
.tk-line__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-glass);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.tk-line__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--color-primary) 12%, transparent),
        color-mix(in srgb, var(--color-secondary, var(--color-primary)) 6%, transparent));
}

/* ============================================
   Toast — slide-in confirmation (large card)
   Two clear actions: "Sepete Git" + "Devam Et",
   5s auto-dismiss, pause on touch. Big enough to
   read instantly without leaning in.
   ============================================ */
.tk-toast-host {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--nav-height, 62px) + var(--nav-height) + var(--safe-bottom, 0px));
    z-index: 60;
    width: calc(100vw - 24px);
    max-width: 460px;
    pointer-events: none;
}
/* On focus pages (no bottom-nav) the toast hugs the bottom edge */
body.page-takeaway-focus .tk-toast-host {
    bottom: calc(var(--nav-height) + 70px);
}

.tk-toast {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-modal, rgba(20, 20, 20, 0.97));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition: opacity .25s ease, transform .25s ease;
}
.tk-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tk-toast__head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tk-toast__img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-glass);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.tk-toast__check {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, #000));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.tk-toast__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--color-text, #fff);
}
.tk-toast__qty {
    font-size: 0.72rem;
    color: var(--color-text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.tk-toast__title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Two-button action row */
.tk-toast__actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 8px;
}
.tk-toast__btn {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}
.tk-toast__btn--ghost {
    background: var(--color-bg-glass-strong);
    color: var(--color-text-secondary, #ccc);
}
.tk-toast__btn--ghost:hover {
    background: var(--color-bg-card-hover);
    color: var(--color-text, #fff);
}
.tk-toast__btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 35%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tk-toast__btn--primary:hover {
    background: color-mix(in srgb, var(--color-primary) 90%, #fff);
}

/* Light theme — invert surface for readability */
body.theme-light .tk-toast {
    background: rgba(255, 255, 255, 0.98);
    color: #222;
}
body.theme-light .tk-toast__title { color: #111; }
body.theme-light .tk-toast__qty { color: #666; }
body.theme-light .tk-toast__btn--ghost {
    background: rgba(0, 0, 0, 0.05);
    color: #444;
}
body.theme-light .tk-toast__btn--ghost:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #111;
}

/* ============================================
   Cart page (/paket/sepet) — product-focused
   --------------------------------------------
   Design intent (per Figma reference): the products
   ARE the page. White / glass cards with a clear
   thumbnail, name, qty controls, line total. Below
   them, a single distinct summary card carrying
   the totals + the "Sipariş Ver" CTA — gradient
   surface so the bottom-line area reads at a glance.
   ============================================ */
.tk-cart-page {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-md) var(--space-2xl);
}
.tk-cart-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}
.tk-cart-page__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
}
.tk-cart-page__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-glass);
    color: var(--color-text-secondary, #aaa);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.tk-cart-page__close:hover {
    background: var(--color-bg-glass-strong);
    color: var(--color-text, #fff);
}

/* Distinct summary card — warm brand surface, not "just another form
   row". Matches the Figma reference's stand-out total area. */
.tk-summary--card {
    margin: var(--space-lg) 0 0;
    padding: var(--space-lg);
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--color-primary) 85%, #000),
        color-mix(in srgb, var(--color-primary) 65%, transparent));
    border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
    border-radius: var(--radius-xl);
    color: #fff;
    box-shadow: 0 6px 24px color-mix(in srgb, var(--color-primary) 28%, transparent);
}
.tk-summary--card .tk-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tk-summary--card .tk-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.92);
}
.tk-summary--card .tk-summary__row--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.tk-summary--card .tk-summary__row--total span:last-child { font-size: 1.2rem; }
.tk-summary--card .tk-summary__free-tag {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tk-summary--card .tk-summary__zone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: var(--space-md) 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-sm);
}

.tk-summary__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: var(--space-md);
    padding: 16px;
    background: #fff;
    color: var(--color-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.tk-summary__cta:hover { transform: translateY(-1px); }
.tk-summary__cta:active { transform: translateY(0); }
.tk-summary__cta.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ============================================
   Info form page (/paket/onay)
   Each section a card; sticky submit at bottom.
   ============================================ */
.tk-info-page {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-md) calc(20px + var(--safe-bottom, 0px));
}
.tk-info-page__head { margin-bottom: var(--space-md); }
.tk-info-page__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0 0 4px;
}
.tk-info-page__sub {
    color: var(--color-text-secondary, #aaa);
    font-size: var(--text-sm);
    margin: 0;
}
.tk-info-card {
    margin-bottom: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.tk-info-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0 0 var(--space-md);
    color: var(--color-text-secondary, #ccc);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}
.tk-info-card__optional {
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 4px;
    text-transform: none;
    letter-spacing: 0;
}

/* Inline summary block on the onay page (no card chrome) */
.tk-summary--inline {
    margin: var(--space-md) 0;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-glass);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}
.tk-summary--inline .tk-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}
.tk-summary--inline .tk-summary__row--total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    font-size: var(--text-base);
    font-weight: 700;
}

/* Side-by-side payment radios — card pills */
.tk-payment--two-col {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.tk-payment--two-col .tk-payment__opt {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--color-bg-glass);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}
.tk-payment--two-col .tk-payment__opt:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-glass-strong);
}
.tk-payment--two-col .tk-payment__opt:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.tk-payment--two-col .tk-payment__opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tk-payment--two-col .tk-payment__opt-icon {
    color: var(--color-text-secondary, #aaa);
    transition: color var(--transition-fast);
}
.tk-payment--two-col .tk-payment__opt:has(input:checked) .tk-payment__opt-icon {
    color: var(--color-primary);
}
.tk-payment--two-col .tk-payment__opt-name {
    font-weight: 600;
    font-size: var(--text-sm);
}

/* Sticky submit footer on /paket/onay */
.tk-info-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 14px var(--space-md) calc(14px + var(--safe-bottom, 0px));
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.tk-info-foot__submit {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.tk-info-foot__submit:hover { opacity: .94; }
.tk-info-foot__submit:active { transform: translateY(1px); }
.tk-info-foot__submit:disabled { opacity: 0.4; cursor: not-allowed; }
.tk-info-foot__submit-label { flex: 1; text-align: left; padding-left: 4px; }
.tk-info-foot__submit-total {
    font-weight: 800;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
}
.tk-info-foot__trust {
    margin: 8px 0 0;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tk-info-foot__trust svg { color: #25d366; flex-shrink: 0; }

/* ============================================
   Legacy single-page checkout (kept for reference
   in case any tenant still has /paket/checkout
   bookmarked). Now mostly unused.
   ============================================ */
.tk-checkout {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-md) var(--space-2xl);
}
.tk-checkout__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}
.tk-checkout__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
}
.tk-checkout__actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
}
.tk-checkout__continue {
    font-size: var(--text-sm);
    color: var(--color-primary-light, var(--color-primary));
    text-decoration: none;
    font-weight: 500;
}
.tk-checkout__continue:hover { text-decoration: underline; }
.tk-checkout__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-glass);
    color: var(--color-text-secondary, #aaa);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.tk-checkout__close:hover {
    background: var(--color-bg-glass-strong);
    color: var(--color-text, #fff);
}

/* Empty cart hero */
.tk-cart__empty {
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.tk-cart__empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: var(--color-bg-glass);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-cart__empty-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0 0 var(--space-sm);
}
.tk-cart__empty-text {
    color: var(--color-text-secondary, #aaa);
    margin: 0 0 var(--space-lg);
    font-size: var(--text-sm);
}
.tk-cart__empty-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: opacity var(--transition-fast);
}
.tk-cart__empty-cta:hover { opacity: .92; }

/* Cart line — card-per-item */
.tk-cart__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-md);
}
.tk-line {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
}
.tk-line:hover { border-color: var(--color-border-light, var(--color-primary)); }
.tk-line__main { flex: 1; min-width: 0; }
.tk-line__name {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
/* Bilingual altyazı — default-language name shown small + italic so
   it reads as helper info, not a duplicate title. Active only when
   the cart entry carries a name_default field (operator opted into
   Garson Çeviri Yardımı). */
.tk-line__name-default {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 3px;
    line-height: 1.3;
}
/* Compact monospace rozet for the operator-defined product code.
   Visible whenever set; useful both for waiter shorthand and
   code-driven kitchens. */
.tk-line__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.18);
    color: var(--color-text-secondary, #64748b);
}
.tk-line__variant {
    color: var(--color-text-secondary, #aaa);
    font-size: var(--text-sm);
    margin-bottom: 4px;
}
.tk-line__unit {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}
.tk-line__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-sm);
}
.tk-line__qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-glass);
    border-radius: 999px;
    padding: 4px 6px;
}
.tk-line__qty button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}
.tk-line__qty button:hover { transform: scale(1.07); }
.tk-line__qty span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}
.tk-line__price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    white-space: nowrap;
}
body.theme-light .tk-line__price { color: var(--color-primary); }

.tk-cart__min {
    margin: var(--space-md) 0 0;
    padding: 10px 14px;
    background: rgba(255, 152, 0, 0.12);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    text-align: center;
}

/* Summary card */
.tk-summary {
    margin: var(--space-md) 0;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg,
    color-mix(in srgb, var(--color-primary) 85%, #000),
    color-mix(in srgb, var(--color-primary) 65%, transparent));
    color:#fff;
}
.tk-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: var(--text-base);
    color: #fff;
}
.tk-summary__row--free .tk-summary__free-tag {
    background: rgba(76, 175, 80, 0.18);
    color: #66bb6a;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tk-summary__row--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: var(--text-lg);
    font-weight: 700;
    color: inherit;
}
.tk-summary__row--total span:last-child {
    color: var(--color-primary);
    font-size: 1.25rem;
}
body.theme-light .tk-summary__row--total span:last-child { color: #fff; }
.tk-summary__zone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: var(--space-md) 0 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* Form sections */
.tk-form { padding-top: var(--space-md); }
.tk-form__heading {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0 0 var(--space-md);
}
.tk-form__card {
    margin-bottom: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.tk-field { display: block; margin-bottom: var(--space-md); }
.tk-field:last-child { margin-bottom: 0; }
.tk-field__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text-secondary, #ccc);
}
.tk-field__optional {
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 4px;
}
.tk-field input[type="text"],
.tk-field input[type="tel"],
.tk-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: inherit;
    font-size: var(--text-base);
    font-family: inherit;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.tk-field input:focus,
.tk-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-glass-strong);
}
.tk-field input::placeholder,
.tk-field textarea::placeholder { color: var(--color-text-muted); }

/* Location button */
.tk-loc-btn {
    width: 100%;
    margin-top: var(--space-sm);
    padding: 12px 14px;
    background: var(--color-bg-glass);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    color: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.tk-loc-btn:hover {
    background: var(--color-bg-glass-strong);
    border-style: solid;
    border-color: var(--color-primary);
}
.tk-loc-btn--ok {
    border-style: solid;
    border-color: #4caf50;
    color: #66bb6a;
    background: rgba(76, 175, 80, 0.10);
}
.tk-loc-btn__status {
    margin-left: auto;
    font-weight: 500;
    color: var(--color-text-muted);
}
.tk-loc-btn--ok .tk-loc-btn__status { color: #66bb6a; }

/* Payment radios — card-style */
.tk-payment {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.tk-payment__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.tk-payment__opt:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-glass-strong);
}
.tk-payment__opt input[type="radio"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}
.tk-payment__opt:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.tk-payment__opt-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.tk-payment__opt-name { font-weight: 600; font-size: var(--text-base); }
.tk-payment__opt-meta { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Submit button — full width, prominent, with total */
.tk-submit {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.tk-submit:hover { opacity: 0.94; }
.tk-submit:active { transform: translateY(1px); }
.tk-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.tk-submit__total { font-weight: 800; font-size: 1.1rem; }

.tk-form__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: var(--space-md);
    padding: 10px 14px;
    background: rgba(37, 211, 102, 0.10);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary, #ccc);
    line-height: 1.5;
}
.tk-form__note svg { color: #25d366; flex-shrink: 0; margin-top: 2px; }
.tk-form__note strong { color: inherit; }

/* Sent (confirmation) */
.tk-sent {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}
.tk-sent__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-md);
    background: var(--color-primary);
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    line-height: 72px;
}
.tk-sent__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin: 0 0 var(--space-sm);
}
.tk-sent__text {
    color: var(--color-text-secondary, #bbb);
    margin: 0 0 var(--space-lg);
    line-height: 1.5;
}
.tk-sent__btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
}
.page-takeaway .page-content {
    min-height: 85dvh;
}