/* QR2 Görsel Menü — coral/kırmızı kurumsal tema (klasik /table QR'a dokunulmaz) */

.vm-phone-shell {
    --vm-accent: #ff4b4b;
    --vm-accent-dark: #e63e3e;
    --vm-accent-deep: #c2410c;
    --vm-accent-soft: #fff1f1;
    --vm-accent-glow: rgba(255, 75, 75, 0.18);

    --to-page-bg: #f5f5f5;
    --to-surface: #ffffff;
    --to-green-deep: var(--vm-accent-dark);
    --to-green-mid: var(--vm-accent);
    --to-green-soft: #ff7a7a;
    --to-mint: #fff5f5;
    --to-mint-2: #fafafa;
    --to-text: #1a1a2e;
    --to-text-muted: #8a8a9a;
    --to-border: #ececf0;
    --to-shadow-sm: 0 2px 16px rgba(255, 75, 75, 0.08);
    --to-radius-md: 14px;
    --to-radius-lg: 20px;
}

/* ── Splash / Error / Join ─────────────────────────────── */
.vm-phone-shell .vm-visual-page.to-splash {
    background: linear-gradient(165deg, #c2410c 0%, #ff4b4b 55%, #ff7a7a 100%);
}

.vm-phone-shell .vm-visual-page.to-error-page h2 {
    color: var(--vm-accent-dark);
}

.vm-phone-shell .vm-visual-page .to-join-card {
    background: var(--to-surface);
    border-radius: 24px 24px 0 0;
    margin-top: -1rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

.vm-phone-shell .vm-visual-page .to-input:focus,
.vm-phone-shell .vm-visual-page .to-textarea:focus {
    border-color: var(--vm-accent);
    box-shadow: 0 0 0 3px var(--vm-accent-glow);
}

/* ── Primary buttons ───────────────────────────────────── */
.vm-phone-shell .vm-visual-page .to-btn-primary {
    background: linear-gradient(135deg, var(--vm-accent-dark), var(--vm-accent));
    border-radius: 999px;
    box-shadow: 0 6px 20px var(--vm-accent-glow);
}

.vm-phone-shell .vm-visual-page .to-btn-outline {
    border-color: var(--to-border);
    color: var(--to-text-muted);
    border-radius: 999px;
}

/* ── Header & search (ürün listesi) ───────────────────── */
.vm-phone-shell .vm-visual-page.to-menu-page {
    background: var(--to-page-bg);
}

.vm-phone-shell .vm-menu-header {
    background: var(--to-surface);
    border-bottom: 1px solid var(--to-border);
}

.vm-phone-shell .vm-visual-page .to-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--to-page-bg);
    border: 1px solid var(--to-border);
    color: var(--to-text);
}

.vm-phone-shell .vm-visual-page .to-header-orders-btn,
.vm-phone-shell .vm-visual-page .to-people-btn {
    background: var(--vm-accent-soft);
    border-color: transparent;
    color: var(--vm-accent);
}

.vm-phone-shell .vm-visual-page .to-order-count-badge,
.vm-phone-shell .vm-visual-page .to-people-count {
    background: var(--vm-accent);
}

.vm-phone-shell .vm-visual-page .to-search-row {
    background: var(--to-surface);
    border: 1px solid var(--to-border);
    border-radius: 14px;
    box-shadow: var(--to-shadow-sm);
}

.vm-phone-shell .vm-visual-page .to-search-input {
    color: var(--to-text);
}

.vm-phone-shell .vm-menu-hero-title {
    padding: 0.75rem 1rem 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--vm-accent);
    letter-spacing: -0.02em;
}

.vm-phone-shell .vm-menu-hero-title span {
    color: var(--to-text);
}

/* ── Ürün listesi (referans: yatay kart) ─────────────── */
.vm-phone-shell .vm-visual-page .to-menu-items.vm-product-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 1rem 1rem;
    grid-template-columns: none;
    row-gap: unset;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.vm-phone-shell .vm-visual-page .vm-product-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--to-surface);
    border-radius: var(--to-radius-lg);
    padding: 0.65rem 0.75rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}

.vm-phone-shell .vm-visual-page .vm-product-row:active {
    transform: scale(0.99);
}

.vm-phone-shell .vm-visual-page .vm-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--to-page-bg);
}

.vm-phone-shell .vm-visual-page .vm-product-thumb-ph {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #ffe4e4, #fff5f5);
    flex-shrink: 0;
}

.vm-phone-shell .vm-visual-page .vm-product-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vm-phone-shell .vm-visual-page .vm-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--to-text);
    line-height: 1.25;
}

.vm-phone-shell .vm-visual-page .vm-product-cat {
    font-size: 0.75rem;
    color: var(--to-text-muted);
}

.vm-phone-shell .vm-visual-page .vm-product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.vm-phone-shell .vm-visual-page .vm-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--vm-accent);
}

.vm-phone-shell .vm-visual-page .vm-product-prep {
    font-size: 0.72rem;
    color: var(--to-text-muted);
}

.vm-phone-shell .vm-visual-page .vm-product-body-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.vm-phone-shell .vm-visual-page .vm-product-body-top .vm-product-name {
    flex: 1;
    min-width: 0;
}

.vm-phone-shell .vm-fav-btn,
.vm-phone-shell .vm-visual-page .vm-fav-btn {
    flex-shrink: 0;
    border: none;
    background: #f8fafc;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: #cbd5e1;
    transition: color 0.15s, background 0.15s, transform 0.15s;
    line-height: 0;
    box-sizing: border-box;
}

.vm-phone-shell .vm-fav-btn:active,
.vm-phone-shell .vm-visual-page .vm-fav-btn:active {
    transform: scale(0.92);
}

.vm-phone-shell .vm-fav-btn.is-fav,
.vm-phone-shell .vm-visual-page .vm-fav-btn.is-fav {
    color: var(--vm-accent);
    background: var(--vm-accent-soft);
}

.vm-phone-shell .vm-fav-btn-lg,
.vm-phone-shell .vm-visual-page .vm-fav-btn-lg {
    width: 40px;
    height: 40px;
}

.vm-phone-shell .to-modal .vm-modal-title-row,
.vm-phone-shell .vm-visual-page .vm-modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.vm-phone-shell .vm-visual-page .vm-modal-title-row .to-modal-name {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.vm-phone-shell .vm-visual-page .vm-favorites-empty {
    margin: 2rem 0 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--to-text-muted);
}

.vm-phone-shell .vm-visual-page .vm-favorites-empty-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--vm-accent-soft);
}

.vm-phone-shell .vm-visual-page .vm-favorites-empty p {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
}

.vm-phone-shell .vm-visual-page .vm-favorites-empty-hint {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
}

.vm-phone-shell .to-bottom-nav-item-fav .to-bottom-nav-icon-wrap {
    background: var(--vm-accent-soft);
}

.vm-phone-shell .to-bottom-nav-item-fav.active .to-bottom-nav-icon-wrap {
    background: var(--vm-accent);
}

.vm-phone-shell .to-bottom-nav-item-fav .to-nav-svg {
    stroke: var(--vm-accent);
}

.vm-phone-shell .to-bottom-nav-item-fav.active .to-nav-svg {
    stroke: #fff;
    fill: #fff;
}

.vm-phone-shell .vm-visual-page .vm-product-action {
    flex-shrink: 0;
}

.vm-phone-shell .vm-visual-page .vm-product-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--vm-accent-soft);
    color: var(--vm-accent);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.vm-phone-shell .vm-visual-page .vm-product-thumb-video {
    object-fit: cover;
    background: #0f172a;
}

.vm-phone-shell .vm-visual-page .vm-modal-hero-video {
    object-fit: cover;
    background: #0f172a;
}

.vm-phone-shell .vm-visual-page .vm-product-row:has(.vm-product-thumb-video) {
    border: 1px solid rgba(255, 75, 75, 0.12);
}

.vm-phone-shell .vm-visual-page .vm-product-qty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--vm-accent-soft);
    border-radius: 999px;
    padding: 0.2rem 0.35rem;
}

.vm-phone-shell .vm-visual-page .vm-product-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--vm-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-phone-shell .vm-visual-page .vm-product-qty-num {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--vm-accent-dark);
    font-size: 0.88rem;
}

/* ── Ürün detay modal ────────────────────────────────── */
.vm-phone-shell .to-modal {
    border-radius: 28px 28px 0 0;
    overflow: hidden;
}

.vm-phone-shell .to-modal .vm-modal-hero {
    position: relative;
    width: 100%;
    padding: 0;
    background: #0f172a;
}

.vm-phone-shell .to-modal .vm-modal-hero-img,
.vm-phone-shell .to-modal .vm-modal-hero-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: min(44dvh, 340px);
    min-height: 220px;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    object-position: center center;
    background: #f1f5f9;
    box-shadow: none;
}

.vm-phone-shell .to-modal .vm-modal-hero-ph {
    width: 100%;
    height: min(36dvh, 260px);
    min-height: 180px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(180deg, var(--vm-accent-soft) 0%, #fff 100%);
    box-shadow: none;
}

.vm-phone-shell .to-modal .vm-fav-btn-hero {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.15);
}

.vm-phone-shell .to-modal .to-modal-body {
    padding: 1rem 1.15rem 1.5rem;
    gap: 0.55rem;
}

.vm-phone-shell .to-modal .to-modal-body .to-modal-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--to-text);
    margin: 0;
}

.vm-phone-shell .to-modal .to-modal-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--vm-accent);
}

.vm-phone-shell .to-modal .to-modal-desc {
    font-size: 0.84rem;
    line-height: 1.45;
}

.vm-phone-shell .to-modal .vm-modal-prep {
    font-size: 0.78rem;
    color: var(--to-text-muted);
}

/* ── Sepet / Siparişim ───────────────────────────────── */
.vm-phone-shell .vm-visual-page.vm-order-page,
.vm-phone-shell .vm-visual-page.to-cart-page {
    background: var(--to-page-bg);
}

.vm-phone-shell .vm-visual-page .vm-order-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--to-text);
}

.vm-phone-shell .vm-visual-page .vm-order-header-sub {
    font-size: 0.8rem;
    color: var(--to-text-muted);
}

.vm-phone-shell .vm-visual-page .to-cart-items {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
}

.vm-phone-shell .vm-visual-page .to-cart-item {
    border-radius: var(--to-radius-lg);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--to-border);
}

.vm-phone-shell .vm-visual-page .vm-cart-thumb,
.vm-phone-shell .vm-visual-page .vm-cart-thumb-ph {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vm-phone-shell .vm-visual-page .vm-cart-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--vm-accent-soft);
}

.vm-phone-shell .vm-visual-page .vm-cart-cat {
    font-size: 0.72rem;
    color: var(--to-text-muted);
}

.vm-phone-shell .vm-visual-page .to-cart-item-total {
    color: var(--vm-accent);
}

.vm-phone-shell .vm-visual-page .to-qty-btn {
    border-radius: 50%;
    background: var(--vm-accent-soft);
    border-color: transparent;
    color: var(--vm-accent-dark);
}

.vm-phone-shell .vm-visual-page .to-cart-summary {
    border-radius: var(--to-radius-lg);
    border: 1px solid var(--to-border);
}

.vm-phone-shell .vm-visual-page .to-summary-total {
    color: var(--to-text);
    font-size: 1.1rem;
}

.vm-phone-shell .vm-visual-page .to-summary-total span:last-child {
    color: var(--vm-accent);
}

.vm-phone-shell .vm-visual-page .to-cart-actions {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

.vm-phone-shell .vm-visual-page .to-cart-actions .to-btn-primary.to-cart-place-order {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
}

.vm-phone-shell .vm-visual-page .vm-checkout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ── Siparişlerim / Tracking ─────────────────────────── */
.vm-phone-shell .vm-visual-page.to-tracking-page {
    background: var(--to-page-bg);
}

.vm-phone-shell .vm-visual-page .to-order-card {
    border-radius: var(--to-radius-lg);
    border: 1px solid var(--to-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.vm-phone-shell .vm-visual-page .to-order-num {
    font-weight: 700;
    color: var(--to-text);
}

.vm-phone-shell .vm-visual-page .to-status-badge {
    border-radius: 999px;
    font-size: 0.72rem;
}

.vm-phone-shell .vm-visual-page .to-status-pending,
.vm-phone-shell .vm-visual-page .to-status-preparing {
    background: #fff7ed;
    color: #c2410c;
}

.vm-phone-shell .vm-visual-page .to-status-ready {
    background: #ecfdf5;
    color: #059669;
}

.vm-phone-shell .vm-visual-page .to-status-delivered,
.vm-phone-shell .vm-visual-page .to-status-completed {
    background: var(--vm-accent-soft);
    color: var(--vm-accent-dark);
}

.vm-phone-shell .vm-visual-page .to-order-total {
    color: var(--vm-accent);
    font-weight: 800;
}

.vm-phone-shell .vm-visual-page .to-header-add-order-btn {
    background: var(--vm-accent);
    color: #fff;
    border-color: transparent;
    border-radius: 999px;
}

.vm-phone-shell .vm-visual-page .to-empty-orders .to-btn-primary {
    margin-top: 0.5rem;
}

.vm-phone-shell .vm-visual-page .vm-orders-summary {
    background: var(--to-surface);
    border-color: var(--to-border);
}

.vm-phone-shell .vm-visual-page .vm-orders-summary-primary {
    color: var(--to-text);
}

.vm-phone-shell .vm-visual-page .vm-orders-summary-primary .vm-orders-summary-amount {
    color: var(--vm-accent);
}

/* ── Sepet bar (floating) ────────────────────────────── */
.vm-phone-shell .vm-visual-page .to-cart-bar {
    background: linear-gradient(135deg, var(--vm-accent-dark), var(--vm-accent));
    border-radius: 999px;
    margin: 0 1rem;
    left: 0;
    right: 0;
    width: auto;
    max-width: calc(100% - 2rem);
    box-shadow: 0 8px 28px var(--vm-accent-glow);
}

.vm-phone-shell .vm-visual-page .to-cart-go-btn {
    background: #fff;
    color: var(--vm-accent);
    border-radius: 999px;
    font-weight: 700;
}

.vm-phone-shell .vm-visual-page .to-cart-count-badge {
    background: #fff;
    color: var(--vm-accent);
}

/* ── Alt navigasyon ──────────────────────────────────── */
.vm-phone-shell .to-bottom-nav {
    border-top-color: var(--to-border);
    background: var(--to-surface);
    flex-shrink: 0;
    min-height: 3.5rem;
}

.vm-phone-shell .to-bottom-nav-item.active .to-bottom-nav-icon-wrap {
    background: var(--vm-accent);
}

.vm-phone-shell .to-bottom-nav-item.active .to-bottom-nav-label {
    color: var(--vm-accent);
}

.vm-phone-shell .to-bottom-nav-badge {
    background: var(--vm-accent);
}

/* ── People panel ────────────────────────────────────── */
.vm-phone-shell .vm-visual-page .to-people-panel {
    border-radius: 22px 22px 18px 18px;
    margin-bottom: 0.85rem;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.14);
}

.vm-phone-shell .vm-visual-page .to-participant-me {
    border-color: var(--vm-accent);
    background: var(--vm-accent-soft);
}

.vm-phone-shell .vm-visual-page .to-participant-me .to-participant-avatar {
    box-shadow: 0 0 0 3px var(--vm-accent-soft),
                0 6px 18px var(--to-avatar-glow, rgba(220, 38, 38, 0.35)),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
