/* =====================================================
   Sipariş Sayfası CSS
   assets/css/siparis.css
   Online yemek siparişi — sp- prefix
   ===================================================== */

/* ── Tokens ────────────────────────────────────── */
:root {
    --brand: #F63049;
    --brand-dark: #d42a40;
    --green: #22c55e;
    --green-dark: #16a34a;
    --orange: #f59e0b;
    --red: #ef4444;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
    --transition: all .2s ease;
    --topbar-h: 60px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--zinc-50);
    color: var(--zinc-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--topbar-h);
}

/* ── Top Bar ───────────────────────────────────── */
.sp-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--zinc-200);
    box-shadow: var(--shadow-sm);
}
.sp-topbar-inner {
    max-width: 1200px; margin: 0 auto;
    height: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px;
}
.sp-topbar-back {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--zinc-600);
    text-decoration: none;
    transition: var(--transition);
}
.sp-topbar-back:hover { background: var(--zinc-100); color: var(--zinc-900); }
.sp-topbar-back i { font-size: 20px; }
.sp-topbar-brand {
    display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.sp-topbar-logo {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    object-fit: cover; border: 1px solid var(--zinc-200);
}
.sp-topbar-name {
    font-weight: 600; font-size: 15px; color: var(--zinc-900);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-topbar-cart {
    position: relative;
    width: 42px; height: 42px;
    display: none; align-items: center; justify-content: center;
    background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 20px;
    transition: var(--transition);
}
.sp-topbar-cart:hover { background: var(--brand-dark); }
.sp-cart-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    background: var(--green); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

/* Topbar Actions */
.sp-topbar-actions {
    display: flex; align-items: center; gap: 8px;
}
.sp-topbar-auth {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--zinc-200); background: #fff;
    font-size: 13px; font-weight: 600; color: var(--zinc-600);
    cursor: pointer; transition: var(--transition);
    font-family: inherit; white-space: nowrap;
}
.sp-topbar-auth:hover { border-color: var(--zinc-300); background: var(--zinc-50); }
.sp-topbar-auth i { font-size: 18px; }
.sp-topbar-auth.logged-in {
    border-color: var(--brand); color: var(--brand);
    background: rgba(246,48,73,.04);
}
.sp-topbar-auth.logged-in:hover {
    background: rgba(246,48,73,.08);
}

/* ── Auth Modal / Drawer ───────────────────────── */
.sp-auth-overlay {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.sp-auth-overlay.active { display: flex; }
.sp-auth-modal {
    background: #fff; border-radius: var(--radius-xl);
    width: 100%; max-width: 420px;
    overflow: hidden; position: relative;
    animation: spModalIn .25s ease;
}
.sp-auth-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
}
.sp-auth-header h3 {
    font-size: 20px; font-weight: 700; color: var(--zinc-900);
}
.sp-auth-close {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: var(--zinc-100); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--zinc-600);
    transition: var(--transition);
}
.sp-auth-close:hover { background: var(--zinc-200); color: var(--zinc-900); }
.sp-auth-body { padding: 0 24px 24px; }

/* Auth Steps */
.sp-auth-step { display: none; }
.sp-auth-step.active { display: block; }

/* Auth Choice */
.sp-auth-choice-desc {
    font-size: 14px; color: var(--zinc-500); line-height: 1.5;
    margin-bottom: 20px;
}
.sp-auth-choice-btns { display: flex; flex-direction: column; gap: 10px; }
.sp-auth-choice-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-md); background: #fff;
    cursor: pointer; transition: var(--transition);
    text-align: left; font-family: inherit;
}
.sp-auth-choice-btn:hover { border-color: var(--brand); background: rgba(246,48,73,.02); }
.sp-auth-choice-btn .icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--zinc-100); display: flex;
    align-items: center; justify-content: center;
    font-size: 20px; color: var(--zinc-600);
    flex-shrink: 0; transition: var(--transition);
}
.sp-auth-choice-btn:hover .icon { background: rgba(246,48,73,.1); color: var(--brand); }
.sp-auth-choice-btn .text strong {
    display: block; font-size: 14px; color: var(--zinc-800); margin-bottom: 2px;
}
.sp-auth-choice-btn .text span {
    font-size: 12px; color: var(--zinc-500);
}

/* Auth Form Fields */
.sp-auth-form { display: flex; flex-direction: column; gap: 14px; }
.sp-auth-field { display: flex; flex-direction: column; gap: 4px; }
.sp-auth-field label {
    font-size: 13px; font-weight: 600; color: var(--zinc-700);
}
.sp-auth-field label .req { color: var(--red); }
.sp-auth-field input {
    padding: 11px 14px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); font-size: 14px;
    font-family: inherit; outline: none;
    transition: var(--transition); color: var(--zinc-800);
}
.sp-auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(246,48,73,.08); }
.sp-auth-field input::placeholder { color: var(--zinc-400); }
.sp-auth-phone-wrap {
    display: flex; align-items: stretch;
}
.sp-auth-phone-prefix {
    display: flex; align-items: center; padding: 0 12px;
    background: var(--zinc-100); border: 1px solid var(--zinc-200);
    border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px; font-weight: 600; color: var(--zinc-500);
}
.sp-auth-phone-wrap input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex: 1;
}
.sp-auth-error {
    display: none; align-items: center; gap: 8px;
    padding: 10px 14px; background: #fef2f2;
    border: 1px solid #fecaca; border-radius: var(--radius-sm);
    font-size: 13px; color: #dc2626;
}
.sp-auth-error.visible { display: flex; }
.sp-auth-error i { font-size: 16px; flex-shrink: 0; }
.sp-auth-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px; background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.sp-auth-submit:hover:not(:disabled) { background: var(--brand-dark); }
.sp-auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.sp-auth-link {
    text-align: center; font-size: 13px; color: var(--zinc-500);
}
.sp-auth-link a {
    color: var(--brand); text-decoration: none; font-weight: 600;
    cursor: pointer;
}
.sp-auth-link a:hover { text-decoration: underline; }
.sp-auth-back {
    display: flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--zinc-500); font-family: inherit;
    margin-bottom: 16px; padding: 0;
    transition: var(--transition);
}
.sp-auth-back:hover { color: var(--zinc-700); }
.sp-auth-back i { font-size: 16px; }

/* Auth Success */
.sp-auth-success {
    text-align: center; padding: 20px 0;
}
.sp-auth-success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #f0fdf4; color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 16px;
}
.sp-auth-success h4 {
    font-size: 18px; font-weight: 700; color: var(--zinc-900);
    margin-bottom: 4px;
}
.sp-auth-success p {
    font-size: 14px; color: var(--zinc-500); margin-bottom: 20px;
}
.sp-auth-success-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.sp-auth-success-btn:hover { background: var(--brand-dark); }

/* Auth Profile */
.sp-auth-profile { text-align: center; padding: 10px 0; }
.sp-auth-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700; margin: 0 auto 16px;
}
.sp-auth-profile-name {
    font-size: 18px; font-weight: 700; color: var(--zinc-900);
    margin-bottom: 2px;
}
.sp-auth-profile-phone {
    font-size: 14px; color: var(--zinc-500); margin-bottom: 20px;
}
.sp-auth-profile-actions { display: flex; flex-direction: column; gap: 8px; }
.sp-auth-profile-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); background: #fff;
    cursor: pointer; transition: var(--transition);
    font-family: inherit; font-size: 14px; font-weight: 500;
    color: var(--zinc-700); text-align: left;
    text-decoration: none;
}
.sp-auth-profile-btn:hover { border-color: var(--zinc-300); background: var(--zinc-50); }
.sp-auth-profile-btn i { font-size: 18px; color: var(--zinc-400); }
.sp-auth-profile-btn.danger { color: var(--red); }
.sp-auth-profile-btn.danger i { color: var(--red); }
.sp-auth-profile-btn.danger:hover { border-color: #fecaca; background: #fef2f2; }

/* ── Main Layout ───────────────────────────────── */
.sp-layout {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 380px;
    gap: 24px; padding: 24px 20px 60px;
    min-height: calc(100vh - var(--topbar-h));
}

/* ── Left Column: Menu ─────────────────────────── */
.sp-menu { min-width: 0; }

/* Restaurant Info Card */
.sp-restaurant-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 20px;
    border: 1px solid var(--zinc-200);
    display: flex; align-items: center; gap: 16px;
}
.sp-restaurant-card-logo {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    object-fit: cover; border: 1px solid var(--zinc-200); flex-shrink: 0;
}
.sp-restaurant-card-info { flex: 1; min-width: 0; }
.sp-restaurant-card-name {
    font-weight: 700; font-size: 18px; color: var(--zinc-900);
    margin-bottom: 2px;
}
.sp-restaurant-card-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.sp-restaurant-card-meta span {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--zinc-500);
}
.sp-restaurant-card-meta i { font-size: 16px; }

/* Status Badge */
.sp-status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600;
    flex-shrink: 0;
}
.sp-status-badge.open { background: #f0fdf4; color: #16a34a; }
.sp-status-badge.closed { background: #fef2f2; color: #ef4444; }
.sp-status-badge::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
}

/* Order Type Tabs */
.sp-order-types {
    display: flex; gap: 8px; margin-bottom: 20px;
    background: var(--zinc-100); padding: 4px; border-radius: var(--radius-md);
}
.sp-order-type {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    border: none; background: transparent; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--zinc-500);
    transition: var(--transition); font-family: inherit;
}
.sp-order-type:hover { color: var(--zinc-700); }
.sp-order-type.active {
    background: #fff; color: var(--zinc-900);
    box-shadow: var(--shadow-sm);
}
.sp-order-type i { font-size: 18px; }

/* Category Navigation */
.sp-categories {
    display: flex; gap: 8px; overflow-x: auto;
    padding-bottom: 4px; margin-bottom: 20px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.sp-categories::-webkit-scrollbar { display: none; }
.sp-category-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 20px;
    border: 1px solid var(--zinc-200); background: #fff;
    font-size: 13px; font-weight: 500; color: var(--zinc-600);
    white-space: nowrap; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.sp-category-btn:hover { border-color: var(--zinc-300); background: var(--zinc-50); }
.sp-category-btn.active {
    background: var(--zinc-900); color: #fff;
    border-color: var(--zinc-900);
}
.sp-category-btn i { font-size: 16px; }
.sp-category-count {
    background: var(--zinc-100); color: var(--zinc-500);
    font-size: 11px; font-weight: 600; padding: 1px 6px;
    border-radius: 8px;
}
.sp-category-btn.active .sp-category-count {
    background: rgba(255,255,255,.2); color: #fff;
}

/* Search */
.sp-search {
    position: relative; margin-bottom: 20px;
}
.sp-search i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 18px; color: var(--zinc-400); pointer-events: none;
}
.sp-search input {
    width: 100%; padding: 12px 16px 12px 42px;
    border: 1px solid var(--zinc-200); border-radius: var(--radius-md);
    background: #fff; font-size: 14px; color: var(--zinc-800);
    transition: var(--transition); outline: none;
    font-family: inherit;
}
.sp-search input:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(246,48,73,.1);
}
.sp-search input::placeholder { color: var(--zinc-400); }

/* Menu Items Grid */
.sp-items-grid {
    display: flex; flex-direction: column; gap: 12px;
}

/* Category Section */
.sp-cat-section { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.sp-cat-title {
    font-size: 18px; font-weight: 700; color: var(--zinc-900);
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--zinc-100);
    display: flex; align-items: center; gap: 8px;
}
.sp-cat-title i { color: var(--zinc-400); font-size: 20px; }

/* Menu Item Card */
.sp-item {
    display: flex; gap: 14px; padding: 14px;
    background: #fff; border-radius: var(--radius-md);
    border: 1px solid var(--zinc-200);
    cursor: pointer; transition: var(--transition);
    position: relative;
    margin-bottom: 10px;
}
.sp-item:hover {
    border-color: var(--zinc-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.sp-item-img-wrap {
    width: 100px; height: 100px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; position: relative;
}
.sp-item-img {
    width: 100%; height: 100%; object-fit: cover;
}
.sp-item-img-placeholder {
    width: 100%; height: 100%;
    background: var(--zinc-100); display: flex;
    align-items: center; justify-content: center;
}
.sp-item-img-placeholder i { font-size: 28px; color: var(--zinc-300); }
.sp-item-badges {
    position: absolute; top: 6px; left: 6px;
    display: flex; gap: 4px; flex-wrap: wrap;
}
.sp-item-badge {
    font-size: 10px; font-weight: 600; padding: 2px 6px;
    border-radius: 4px; text-transform: uppercase;
    line-height: 1.3;
}
.sp-item-badge.new { background: var(--green); color: #fff; }
.sp-item-badge.popular { background: var(--orange); color: #fff; }
.sp-item-badge.spicy { background: var(--red); color: #fff; }

.sp-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-item-name {
    font-weight: 600; font-size: 15px; color: var(--zinc-900);
    margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-item-desc {
    font-size: 13px; color: var(--zinc-500); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: auto;
}
.sp-item-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px;
}
.sp-item-price-wrap { display: flex; align-items: baseline; gap: 6px; }
.sp-item-price {
    font-size: 16px; font-weight: 700; color: var(--brand);
}
.sp-item-old-price {
    font-size: 13px; color: var(--zinc-400);
    text-decoration: line-through;
}
.sp-item-add-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--brand); background: #fff;
    color: var(--brand); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
    font-size: 18px; flex-shrink: 0;
}
.sp-item-add-btn:hover { background: var(--brand); color: #fff; }
.sp-item-unavailable {
    font-size: 12px; color: var(--red); font-weight: 500;
    display: flex; align-items: center; gap: 4px;
}
.sp-item-unavailable i { font-size: 14px; }

.sp-item.unavailable {
    opacity: .55;
    pointer-events: none;
    user-select: none;
}
.sp-item.unavailable .sp-item-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,.4);
    border-radius: inherit;
}

.sp-item-tags {
    display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap;
}
.sp-item-tag {
    font-size: 10px; padding: 2px 6px; border-radius: 4px;
    background: var(--zinc-100); color: var(--zinc-500);
    display: flex; align-items: center; gap: 3px;
}

/* Empty state */
.sp-empty {
    text-align: center; padding: 48px 20px;
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--zinc-200);
}
.sp-empty i { font-size: 48px; color: var(--zinc-300); margin-bottom: 12px; }
.sp-empty h3 { font-size: 16px; color: var(--zinc-600); margin-bottom: 4px; }
.sp-empty p { font-size: 14px; color: var(--zinc-400); }

/* ── Right Column: Cart ────────────────────────── */
.sp-cart-col {
    position: sticky; top: calc(var(--topbar-h) + 24px);
    align-self: start; height: fit-content;
}
.sp-cart {
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--zinc-200);
    overflow: hidden;
}
.sp-cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--zinc-100);
    display: flex; align-items: center; justify-content: space-between;
}
.sp-cart-header h3 {
    font-size: 16px; font-weight: 700; color: var(--zinc-900);
    display: flex; align-items: center; gap: 8px;
}
.sp-cart-header h3 i { color: var(--brand); }
.sp-cart-count {
    font-size: 12px; font-weight: 600; color: #fff;
    background: var(--brand); padding: 2px 8px; border-radius: 10px;
}
.sp-cart-clear {
    font-size: 13px; color: var(--zinc-400); background: none; border: none;
    cursor: pointer; transition: var(--transition);
}
.sp-cart-clear:hover { color: var(--red); }

/* Cart Items */
.sp-cart-items {
    max-height: 340px; overflow-y: auto; padding: 8px 0;
}
.sp-cart-items::-webkit-scrollbar { width: 4px; }
.sp-cart-items::-webkit-scrollbar-track { background: transparent; }
.sp-cart-items::-webkit-scrollbar-thumb { background: var(--zinc-200); border-radius: 2px; }
.sp-cart-items::-webkit-scrollbar-thumb:hover { background: var(--zinc-300); }

.sp-cart-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    transition: var(--transition);
}
.sp-cart-item:hover { background: var(--zinc-50); }
.sp-cart-item-img {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0;
}
.sp-cart-item-img-ph {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--zinc-100); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sp-cart-item-img-ph i { font-size: 18px; color: var(--zinc-300); }
.sp-cart-item-info { flex: 1; min-width: 0; }
.sp-cart-item-name {
    font-size: 13px; font-weight: 600; color: var(--zinc-800);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-cart-item-extras {
    font-size: 11px; color: var(--zinc-400); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-cart-item-price {
    font-size: 13px; font-weight: 700; color: var(--zinc-900);
    white-space: nowrap;
}

/* Quantity Controls */
.sp-qty {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--zinc-200); border-radius: var(--radius-sm);
    overflow: hidden;
}
.sp-qty button {
    width: 28px; height: 28px; border: none; background: var(--zinc-50);
    cursor: pointer; font-size: 14px; color: var(--zinc-600);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.sp-qty button:hover { background: var(--zinc-200); }
.sp-qty button.sp-qty-remove:hover { background: #fef2f2; color: var(--red); }
.sp-qty span {
    width: 30px; text-align: center; font-size: 13px;
    font-weight: 600; color: var(--zinc-800);
}

/* Cart Empty */
.sp-cart-empty {
    padding: 40px 20px; text-align: center;
}
.sp-cart-empty i { font-size: 40px; color: var(--zinc-200); margin-bottom: 8px; }
.sp-cart-empty p { font-size: 14px; color: var(--zinc-400); }

/* Cart Summary */
.sp-cart-summary {
    padding: 16px 20px; border-top: 1px solid var(--zinc-100);
    display: flex; flex-direction: column; gap: 8px;
}
.sp-cart-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--zinc-500);
}
.sp-cart-row span:last-child { font-weight: 500; color: var(--zinc-700); }
.sp-cart-row.total {
    padding-top: 8px; margin-top: 4px;
    border-top: 1px solid var(--zinc-100);
    font-size: 16px; font-weight: 700; color: var(--zinc-900);
}
.sp-cart-row.total span:last-child { color: var(--brand); }
.sp-cart-row.discount span:last-child { color: var(--green); }
.sp-cart-row.free-delivery {
    padding: 4px 10px; background: #f0fdf4; border-radius: var(--radius-sm);
    color: #16a34a; font-size: 12px;
}

/* Coupon */
.sp-coupon {
    display: flex; gap: 8px; padding: 0 20px 12px;
}
.sp-coupon input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); font-size: 13px;
    font-family: inherit; outline: none;
    transition: var(--transition);
}
.sp-coupon input:focus { border-color: var(--brand); }
.sp-coupon button {
    padding: 8px 16px; border: none;
    background: var(--zinc-100); color: var(--zinc-600);
    font-size: 13px; font-weight: 600; border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition);
    white-space: nowrap; font-family: inherit;
}
.sp-coupon button:hover { background: var(--zinc-200); }
.sp-coupon-applied {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin: 0 20px 12px;
    background: #f0fdf4; border-radius: var(--radius-sm);
    font-size: 13px; color: #16a34a;
}
.sp-coupon-applied .code { font-weight: 700; }
.sp-coupon-applied .remove {
    margin-left: auto; cursor: pointer; color: var(--zinc-400);
    font-size: 16px;
}
.sp-coupon-applied .remove:hover { color: var(--red); }

/* Min Order Warning */
.sp-min-order-warn {
    margin: 0 20px 12px; padding: 8px 12px;
    background: #fffbeb; border-radius: var(--radius-sm);
    font-size: 12px; color: #b45309;
    display: flex; align-items: center; gap: 6px;
}
.sp-min-order-warn i { font-size: 16px; flex-shrink: 0; }

/* Checkout Button */
.sp-checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: calc(100% - 40px); margin: 0 20px 20px;
    padding: 14px 20px;
    background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.sp-checkout-btn:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sp-checkout-btn:disabled { opacity: .5; cursor: not-allowed; }
.sp-checkout-btn i { font-size: 20px; }

/* ── Item Detail Modal ─────────────────────────── */
.sp-modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.sp-modal-overlay.active { display: flex; }
.sp-modal {
    background: #fff; border-radius: var(--radius-xl);
    width: 100%; max-width: 520px; max-height: 90vh;
    overflow-y: auto; position: relative;
    animation: spModalIn .25s ease;
}
@keyframes spModalIn {
    from { transform: translateY(20px) scale(.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.sp-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--zinc-600);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.sp-modal-close:hover { background: #fff; color: var(--zinc-900); }
.sp-modal-img {
    width: 100%; height: 260px; object-fit: cover;
}
.sp-modal-img-ph {
    width: 100%; height: 180px; background: var(--zinc-100);
    display: flex; align-items: center; justify-content: center;
}
.sp-modal-img-ph i { font-size: 48px; color: var(--zinc-300); }
.sp-modal-body { padding: 20px 24px 24px; }
.sp-modal-name {
    font-size: 20px; font-weight: 700; color: var(--zinc-900);
    margin-bottom: 6px;
}
.sp-modal-desc {
    font-size: 14px; color: var(--zinc-500); line-height: 1.5;
    margin-bottom: 16px;
}
.sp-modal-meta {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.sp-modal-meta-item {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--zinc-500);
    background: var(--zinc-50); padding: 4px 10px;
    border-radius: 20px;
}
.sp-modal-meta-item i { font-size: 15px; }

/* Portion Options */
.sp-modal-portions { margin-bottom: 16px; }
.sp-modal-section-title {
    font-size: 14px; font-weight: 700; color: var(--zinc-800);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.sp-modal-section-title .required {
    font-size: 10px; font-weight: 600; padding: 2px 6px;
    background: #fef2f2; color: var(--red); border-radius: 4px;
}
.sp-modal-section-title .optional {
    font-size: 10px; font-weight: 600; padding: 2px 6px;
    background: var(--zinc-100); color: var(--zinc-500); border-radius: 4px;
}
.sp-portion-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); margin-bottom: 6px;
}
.sp-portion-option:hover { border-color: var(--zinc-300); }
.sp-portion-option.selected { border-color: var(--brand); background: rgba(246,48,73,.03); }
.sp-portion-radio {
    width: 18px; height: 18px; border: 2px solid var(--zinc-300);
    border-radius: 50%; flex-shrink: 0; position: relative;
    transition: var(--transition);
}
.sp-portion-option.selected .sp-portion-radio {
    border-color: var(--brand);
}
.sp-portion-option.selected .sp-portion-radio::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: var(--brand);
}
.sp-portion-name { flex: 1; font-size: 14px; font-weight: 500; }
.sp-portion-price { font-size: 14px; font-weight: 600; color: var(--brand); }

/* Extras */
.sp-modal-extras { margin-bottom: 16px; }
.sp-extra-group { margin-bottom: 12px; }

/* İçindekiler (Ingredients) */
.sp-modal-ingredients { margin-bottom: 16px; }
.sp-ingredient-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-ingredient-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    background: var(--zinc-50); border: 1.5px solid var(--zinc-200);
    color: var(--zinc-700); cursor: pointer;
    transition: all .2s ease; user-select: none;
}
.sp-ingredient-chip i { font-size: 14px; color: #22c55e; transition: all .2s ease; }
.sp-ingredient-chip.removed {
    background: #fef2f2; border-color: #fecaca; color: #b91c1c;
    text-decoration: line-through;
}
.sp-ingredient-chip.removed i { color: #ef4444; transform: rotate(45deg); }

/* Sepette çıkarılan malzemeler */
.sp-cart-item-removed {
    font-size: 11px; color: #ef4444; margin-top: 2px;
    display: flex; align-items: center; gap: 3px;
}
.sp-cart-item-removed i { font-size: 11px; }
.sp-extra-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); margin-bottom: 6px;
}
.sp-extra-option:hover { border-color: var(--zinc-300); }
.sp-extra-option.selected { border-color: var(--brand); background: rgba(246,48,73,.03); }
.sp-extra-checkbox {
    width: 18px; height: 18px; border: 2px solid var(--zinc-300);
    border-radius: 4px; flex-shrink: 0; position: relative;
    transition: var(--transition);
}
.sp-extra-option.selected .sp-extra-checkbox {
    border-color: var(--brand); background: var(--brand);
}
.sp-extra-option.selected .sp-extra-checkbox::after {
    content: '✓'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 700;
}
.sp-extra-name { flex: 1; font-size: 14px; font-weight: 500; }
.sp-extra-price { font-size: 13px; font-weight: 600; color: var(--zinc-500); }
.sp-extra-price.free { color: var(--green); }

/* Note */
.sp-modal-note { margin-bottom: 16px; }
.sp-modal-note textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
    resize: vertical; min-height: 60px; outline: none;
    transition: var(--transition);
}
.sp-modal-note textarea:focus { border-color: var(--brand); }

/* Modal Footer (add to cart) */
.sp-modal-footer {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 24px 24px;
}
.sp-modal-qty {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--zinc-200); border-radius: var(--radius-sm);
}
.sp-modal-qty button {
    width: 38px; height: 38px; border: none; background: var(--zinc-50);
    cursor: pointer; font-size: 16px; color: var(--zinc-600);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.sp-modal-qty button:hover { background: var(--zinc-200); }
.sp-modal-qty span {
    width: 38px; text-align: center; font-size: 15px;
    font-weight: 600; color: var(--zinc-800);
}
.sp-modal-add-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.sp-modal-add-btn:hover { background: var(--brand-dark); }
.sp-modal-add-btn .price-text { margin-left: auto; }

/* ── Checkout Drawer ───────────────────────────── */
.sp-checkout-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    display: none; justify-content: flex-end;
}
.sp-checkout-overlay.active { display: flex; }
.sp-checkout-drawer {
    width: 100%; max-width: 480px; height: 100%;
    background: #fff; overflow-y: auto;
    animation: spDrawerIn .3s ease;
}
@keyframes spDrawerIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.sp-drawer-header {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; background: #fff;
    border-bottom: 1px solid var(--zinc-200);
}
.sp-drawer-close {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    border: none; background: var(--zinc-100); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--zinc-600);
    transition: var(--transition);
}
.sp-drawer-close:hover { background: var(--zinc-200); }
.sp-drawer-header h3 {
    font-size: 18px; font-weight: 700; color: var(--zinc-900);
}
.sp-drawer-body { padding: 20px; }
.sp-drawer-section {
    margin-bottom: 20px;
}
.sp-drawer-section-title {
    font-size: 14px; font-weight: 700; color: var(--zinc-800);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.sp-drawer-section-title i { color: var(--brand); font-size: 18px; }

/* Form */
.sp-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 12px;
}
.sp-form-row.full { grid-template-columns: 1fr; }
.sp-form-group { display: flex; flex-direction: column; gap: 4px; }
.sp-form-label {
    font-size: 13px; font-weight: 600; color: var(--zinc-700);
}
.sp-form-label .req { color: var(--red); }
.sp-form-input {
    padding: 10px 12px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); font-size: 14px;
    font-family: inherit; outline: none;
    transition: var(--transition); color: var(--zinc-800);
}
.sp-form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(246,48,73,.08); }
.sp-form-input::placeholder { color: var(--zinc-400); }
textarea.sp-form-input { resize: vertical; min-height: 70px; }
.sp-phone-wrap {
    display: flex; align-items: stretch;
}
.sp-phone-prefix {
    display: flex; align-items: center; padding: 0 12px;
    background: var(--zinc-100); border: 1px solid var(--zinc-200);
    border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px; font-weight: 600; color: var(--zinc-500);
}
.sp-phone-wrap .sp-form-input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Saved Addresses */
.sp-saved-addresses {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 12px;
}
.sp-saved-addr {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition);
}
.sp-saved-addr:hover { border-color: var(--zinc-300); }
.sp-saved-addr.selected { border-color: var(--brand); background: rgba(246,48,73,.03); }
.sp-saved-addr-radio {
    width: 18px; height: 18px; border: 2px solid var(--zinc-300);
    border-radius: 50%; flex-shrink: 0; position: relative;
    transition: var(--transition);
}
.sp-saved-addr.selected .sp-saved-addr-radio {
    border-color: var(--brand);
}
.sp-saved-addr.selected .sp-saved-addr-radio::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: var(--brand);
}
.sp-saved-addr-label {
    font-size: 12px; font-weight: 600; color: var(--brand);
    background: rgba(246,48,73,.08); padding: 2px 8px;
    border-radius: 4px;
}
.sp-saved-addr-text {
    flex: 1; font-size: 13px; color: var(--zinc-600);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Payment Methods */
.sp-payment-methods {
    display: flex; flex-direction: column; gap: 8px;
}
.sp-payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition);
}
.sp-payment-option:hover { border-color: var(--zinc-300); }
.sp-payment-option.selected { border-color: var(--brand); background: rgba(246,48,73,.03); }
.sp-payment-radio {
    width: 18px; height: 18px; border: 2px solid var(--zinc-300);
    border-radius: 50%; flex-shrink: 0; position: relative;
    transition: var(--transition);
}
.sp-payment-option.selected .sp-payment-radio {
    border-color: var(--brand);
}
.sp-payment-option.selected .sp-payment-radio::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: var(--brand);
}
.sp-payment-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--zinc-100); display: flex;
    align-items: center; justify-content: center;
    font-size: 20px; color: var(--zinc-500);
}
.sp-payment-name { font-size: 14px; font-weight: 600; color: var(--zinc-800); }
.sp-payment-desc { font-size: 12px; color: var(--zinc-500); }

/* Order Note */
.sp-order-note textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--zinc-200);
    border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
    resize: vertical; min-height: 60px; outline: none;
    transition: var(--transition);
}
.sp-order-note textarea:focus { border-color: var(--brand); }

/* Drawer Summary */
.sp-drawer-summary {
    background: var(--zinc-50); border-radius: var(--radius-md);
    padding: 16px; margin-bottom: 16px;
}
.sp-drawer-summary-row {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--zinc-600);
    padding: 6px 0;
}
.sp-drawer-summary-row.total {
    font-size: 16px; font-weight: 700; color: var(--zinc-900);
    border-top: 1px solid var(--zinc-200);
    padding-top: 10px; margin-top: 4px;
}
.sp-drawer-summary-row.total span:last-child { color: var(--brand); }

/* Submit */
.sp-submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px 24px;
    background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.sp-submit-btn:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.sp-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.sp-submit-btn .spinner {
    width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.sp-alert {
    display: none; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 16px;
}
.sp-alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.sp-alert.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.sp-alert.visible { display: flex; }
.sp-alert i { font-size: 18px; flex-shrink: 0; }

/* ── Footer ────────────────────────────────────── */
.sp-footer {
    text-align: center; padding: 20px;
    font-size: 12px; color: var(--zinc-400);
    border-top: 1px solid var(--zinc-100);
}
.sp-footer a { color: var(--zinc-500); text-decoration: none; }
.sp-footer a:hover { color: var(--brand); }

/* ── Mobile Cart Bar (Bottom) ──────────────────── */
.sp-mobile-cart-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    padding: 12px 16px;
    background: #fff; border-top: 1px solid var(--zinc-200);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.sp-mobile-cart-bar-inner {
    display: flex; align-items: center; gap: 12px;
}
.sp-mobile-cart-info { flex: 1; }
.sp-mobile-cart-info .items {
    font-size: 13px; color: var(--zinc-500);
}
.sp-mobile-cart-info .total {
    font-size: 16px; font-weight: 700; color: var(--zinc-900);
}
.sp-mobile-cart-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.sp-mobile-cart-btn:hover { background: var(--brand-dark); }
.sp-mobile-cart-btn i { font-size: 18px; }

/* ── Mobile Cart Drawer ────────────────────────── */
.sp-mobile-cart-overlay {
    position: fixed; inset: 0; z-index: 250;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    display: none;
}
.sp-mobile-cart-overlay.active { display: block; }
.sp-mobile-cart-drawer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 260;
    background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 85vh; overflow-y: auto;
    transform: translateY(100%); transition: transform .3s ease;
}
.sp-mobile-cart-drawer.active { transform: translateY(0); }
.sp-mobile-cart-drawer-header {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: #fff;
    border-bottom: 1px solid var(--zinc-100);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.sp-mobile-cart-drawer-header::before {
    content: ''; position: absolute; top: 8px;
    left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 2px;
    background: var(--zinc-200);
}
.sp-mobile-cart-drawer-header h3 {
    font-size: 16px; font-weight: 700; color: var(--zinc-900);
}
.sp-mobile-cart-drawer-close {
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--zinc-100); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--zinc-600);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
    .sp-layout {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
    }
    .sp-cart-col { display: none; }
    .sp-topbar-cart { display: flex; }
    .sp-mobile-cart-bar { display: block; }
    .sp-topbar-auth span { display: none; }
    .sp-topbar-auth { padding: 8px 10px; }
}

@media (max-width: 640px) {
    :root { --topbar-h: 56px; }
    .sp-layout { padding: 16px 12px 80px; gap: 16px; }
    .sp-restaurant-card { padding: 14px; gap: 12px; flex-wrap: wrap; }
    .sp-restaurant-card-name { font-size: 16px; }
    .sp-item { padding: 10px; gap: 10px; }
    .sp-item-img-wrap { width: 80px; height: 80px; }
    .sp-item-name { font-size: 14px; }
    .sp-item-price { font-size: 15px; }
    .sp-order-types { flex-wrap: wrap; }
    .sp-order-type { padding: 8px 12px; font-size: 13px; }
    .sp-form-row { grid-template-columns: 1fr; }
    .sp-modal { max-width: 100%; margin: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 95vh; align-self: flex-end; }
    .sp-modal-img { height: 200px; }
    .sp-checkout-drawer { max-width: 100%; }
}

/* ===================== Auth Inline Banner ===================== */
.sp-auth-inline-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.sp-auth-inline-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--zinc-700);
    line-height: 1.5;
}
.sp-auth-inline-text i {
    font-size: 20px;
    color: #f59e0b;
    flex-shrink: 0;
}
.sp-auth-inline-text a {
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}
.sp-auth-inline-text a:hover {
    text-decoration-style: solid;
}

/* ===================== Checkout Logged-in Info ===================== */
.sp-auth-logged-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
}
.sp-auth-logged-info i {
    font-size: 18px;
}

/* ===================== Confirmation View ===================== */
.sp-layout-single {
    grid-template-columns: 1fr !important;
}
.sp-confirm-wrap {
    max-width: 560px;
    margin: 40px auto;
    text-align: center;
}
.sp-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}
.sp-confirm-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--zinc-900);
    margin-bottom: 6px;
}
.sp-confirm-subtitle {
    font-size: 15px;
    color: var(--zinc-500);
    margin-bottom: 28px;
}
.sp-confirm-card {
    background: #fff;
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: left;
}
.sp-confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--zinc-100);
}
.sp-confirm-row-total {
    border-bottom: none;
}
.sp-confirm-label {
    color: var(--zinc-500);
    font-size: 14px;
}
.sp-confirm-value {
    font-size: 14px;
    color: var(--zinc-900);
}
.sp-confirm-total {
    font-size: 16px;
    color: var(--brand);
}
.sp-confirm-items {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--zinc-100);
}
.sp-confirm-items-label {
    font-size: 13px;
    color: var(--zinc-500);
    display: block;
    margin-bottom: 6px;
}
.sp-confirm-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sp-confirm-items-list li {
    font-size: 13px;
    color: var(--zinc-700);
}
.sp-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.sp-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: opacity .15s;
}
.sp-confirm-btn:hover { opacity: .85; }
.sp-confirm-btn-primary {
    background: var(--brand);
    color: #fff;
}
.sp-confirm-btn-secondary {
    background: var(--zinc-100);
    color: var(--zinc-700);
    font-weight: 600;
}

/* ===================== 404 / Back Link ===================== */
.sp-empty-top { margin-top: 60px; }
.sp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}
.sp-back-link:hover { text-decoration: underline; }
