/**
 * MaviNokta GEL-AL Su — Online Sipariş Sayfası Stilleri
 * Modern E-Ticaret & Hızlı Teslimat Tasarım Sistemi
 */

:root {
    /* Renk Paleti */
    --brand: #0284c7;
    --brand-dark: #0369a1;
    --brand-deep: #075985;
    --brand-light: #38bdf8;
    --brand-surface: #f0f9ff;
    --brand-border: #bae6fd;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --accent-surface: #fffbeb;
    --accent-border: #fde68a;

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --surface-3: #e2e8f0;
    --border: #e2e8f0;
    --border-subtle: rgba(226, 232, 240, 0.8);

    --text: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --text-inverse: #ffffff;

    --danger: #ef4444;
    --danger-dark: #b91c1c;
    --danger-soft: #fef2f2;
    --danger-border: #fecaca;
    --success: #10b981;
    --success-dark: #047857;
    --success-soft: #ecfdf5;
    --success-border: #a7f3d0;

    /* Gölgeler */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 18px -3px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 6px 16px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 24px 50px -12px rgba(15, 23, 42, 0.22);
    --shadow-brand: 0 8px 20px -4px rgba(2, 132, 199, 0.3);
    --shadow-cart: 0 8px 24px -4px rgba(245, 158, 11, 0.4);

    /* Boyutlar & Radyus */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    --header-h: 64px;
    --sidebar-w: 240px;
    --cart-w: 420px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Animasyon Eğrisi */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.5;
}

button, a, .p-card, .cat-item, .cat-toggle, .brand, .hdr-btn {
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

/* ═══════════════════════════════════════════════════
   1. SITE HEADER & NAVIGATION
   ═══════════════════════════════════════════════════ */
.site-header {
    height: var(--header-h);
    flex-shrink: 0;
    background: linear-gradient(135deg, #075985 0%, #0284c7 60%, #0369a1 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 60;
    box-shadow: 0 4px 20px rgba(7, 89, 133, 0.18);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s var(--ease-out);
}

a.brand {
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-logo-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.brand-text span:not(.live-status-pill) {
    font-size: 11px;
    color: #bae6fd;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hdr-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(8px);
    transition: all 0.2s var(--ease-out);
}

.hdr-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.hdr-btn:active {
    transform: scale(0.97);
}

.hdr-btn.icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    position: relative;
    border-radius: 11px;
}

.hdr-btn.primary {
    background: #ffffff;
    color: var(--brand-deep);
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hdr-btn.primary:hover {
    background: #f0f9ff;
    color: var(--brand);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hdr-btn.cart-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-cart);
    position: relative;
}

.hdr-btn.cart-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
}

.hdr-btn.cart-btn .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 0 0 2px #f59e0b;
    animation: badgePop 0.3s var(--ease-out);
}

.hdr-btn.cart-btn .cart-badge.show {
    display: flex;
}

@keyframes badgePop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.hdr-btn.active-nav {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.guest-btns {
    display: flex;
    gap: 8px;
}

.member-btns {
    display: none;
    align-items: center;
    gap: 8px;
}

.member-btns.show {
    display: flex;
}

.guest-btns.hidden {
    display: none;
}

.header-user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #f0f9ff;
}

.header-user-name small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #7dd3fc;
    letter-spacing: 0.02em;
}

.hdr-btn.profile-btn {
    position: relative;
}

.profile-order-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4), 0 0 0 2px #0284c7;
}

.profile-order-badge.show {
    display: flex;
}

/* ═══════════════════════════════════════════════════
   2. MAIN SHOP LAYOUT
   ═══════════════════════════════════════════════════ */
.page {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.page.active {
    display: flex;
}

.shop-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
    width: 100%;
}

/* Sol Kenar Çubuğu (Kategoriler) - Masaüstü */
.shop-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-sidebar-head {
    flex-shrink: 0;
    padding: 20px 20px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.cat-toggle {
    display: none;
}

.cat-select-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 24px;
    -webkit-overflow-scrolling: touch;
}

.cat-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-item {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s var(--ease-out);
    position: relative;
}

.cat-item:hover {
    background: var(--surface-2);
    color: var(--text);
    transform: translateX(2px);
}

.cat-item.active {
    background: var(--brand-surface);
    color: var(--brand-dark);
    font-weight: 800;
}

.cat-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--brand);
}

.cat-item-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-item-count {
    flex-shrink: 0;
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 700;
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    min-width: 24px;
    text-align: center;
    transition: all 0.18s;
}

.cat-item.active .cat-item-count {
    background: #bae6fd;
    color: var(--brand-deep);
}

/* Ana Ürün Alanı */
.shop-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 20px 24px 36px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.shop-main-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.shop-seo-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 20%, rgba(56, 189, 248, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    box-shadow: var(--shadow-sm);
    animation: shopIntroIn 0.45s var(--ease-out) both;
}

.shop-seo-intro > div:first-child > span {
    display: block;
    margin-bottom: 5px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-seo-intro h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.shop-seo-intro p {
    max-width: 72ch;
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 13.5px;
}

.shop-seo-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.shop-seo-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--brand-deep);
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.shop-seo-benefits i { color: var(--brand); }

@keyframes shopIntroIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Misafir Bilgilendirme Bannerı */
.guest-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    box-shadow: var(--shadow-xs);
}

.guest-banner.show {
    display: flex;
}

.guest-banner span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-banner span i {
    font-size: 16px;
    color: #d97706;
}

.guest-banner button {
    border: none;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    transition: all 0.18s;
}

.guest-banner button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* Arama ve Araç Çubuğu */
.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: stretch;
    position: sticky;
    top: -20px;
    z-index: 20;
    padding: 8px 0 12px;
    background: var(--bg);
}

.search-wrap {
    position: relative;
    flex: 1;
}

.search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    font-size: 14px;
}

.search-wrap input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 14px 0 42px;
    font: inherit;
    font-size: 14px;
    background: var(--surface);
    outline: none;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s var(--ease-out);
}

.search-wrap input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
    background: #fff;
}

/* ═══════════════════════════════════════════════════
   3. PRODUCT LIST & CARDS (MODERN DESIGN)
   ═══════════════════════════════════════════════════ */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cat-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--border);
}

.cat-section-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-section-head h3::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--brand-light), var(--brand));
    flex-shrink: 0;
}

.cat-section-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

/* Masaüstü Ürün Grid'i */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

/* Ürün Kartı */
.p-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
}

.p-card:hover {
    border-color: #bae6fd;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.p-card.out-of-stock {
    opacity: 0.55;
    cursor: not-allowed;
}

.p-card.has-campaign::before {
    content: 'İndirim';
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
    letter-spacing: 0.02em;
}

.p-img-wrap {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 40%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    padding: 5px;
}

.p-img-wrap img {
    max-width: 99%;
    max-height: 99%;
    object-fit: contain;
    transition: transform 0.3s var(--ease-out);
}

.p-card:hover .p-img-wrap img {
    transform: scale(1.08);
}

.p-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-name {
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    min-height: 2.7em;
}

.p-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 16px;
    letter-spacing: -0.02em;
}

.p-price-old {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-subtle);
    text-decoration: line-through;
}

.p-campaign-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ea580c;
    background: #ffedd5;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Sepete Ekleme & Miktar Kontrolü */
.p-cart-control {
    width: 100%;
    height: 38px;
}

.p-add {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
    transition: all 0.18s var(--ease-out);
}

.p-add:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.p-add:active {
    transform: scale(0.98);
}

.p-add:disabled {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.p-card-qty {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    grid-template-columns: 1fr minmax(36px, auto) 1fr;
    align-items: stretch;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    background: var(--brand-surface);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
}

.p-cart-control.in-cart .p-add {
    display: none;
}

.p-cart-control.in-cart .p-card-qty {
    display: grid;
}

.p-card-qty-btn {
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 13px;
    transition: background 0.15s;
}

.p-card-qty-btn:hover:not(:disabled) {
    background: #e0f2fe;
    color: var(--brand-deep);
}

.p-card-qty-btn:active:not(:disabled) {
    background: #bae6fd;
}

.p-card-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.p-card-qty-value {
    min-width: 36px;
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    border-left: 1px solid var(--brand-border);
    border-right: 1px solid var(--brand-border);
    background: #fff;
}

/* Yükleme ve Boş Durum */
.loading-state, .empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
}

.loading-state i, .empty-state i {
    font-size: 42px;
    color: var(--brand);
    margin-bottom: 14px;
    display: block;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-xl);
    max-width: 480px;
    margin: 30px auto;
    box-shadow: var(--shadow-xs);
}

.empty-state strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════
   4. SAĞ SEPET ÇEKMECESİ (CART DRAWER & CHECKOUT)
   ═══════════════════════════════════════════════════ */
.cart-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-backdrop.show {
    display: block;
    opacity: 1;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, var(--cart-w));
    z-index: 200;
    background: #fff;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.28s var(--ease-out), visibility 0s linear 0.28s;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.12);
}

.cart-panel.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.cart-panel-header {
    position: relative;
    padding: 16px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: linear-gradient(135deg, #075985 0%, #0284c7 100%);
    color: #fff;
}

.cart-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cart-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 16px;
    flex-shrink: 0;
}

.cart-panel-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.cart-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-count-pill, .cart-step-chip {
    color: #e0f2fe;
    font-size: 11px;
    font-weight: 700;
}

.cart-close-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: all 0.18s;
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: scale(1.05);
}

.cart-progress {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.cart-progress-segment {
    height: 3.5px;
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s;
}

.cart-progress-segment.complete {
    background: #34d399;
}

.cart-progress-segment.active {
    background: #ffffff;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    background: #fbfcfe;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.cart-step-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.step-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title i {
    color: var(--brand);
}

.step-desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.cart-clear-inline {
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.cart-clear-inline:hover {
    background: var(--danger-soft);
}

/* Sepet Kalemleri */
#cartItems {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-minimum-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    background: var(--brand-surface);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.cart-minimum-note[hidden] {
    display: none;
}

.cart-minimum-note i {
    margin-top: 2px;
}

.cart-minimum-note.is-pending {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.cart-minimum-note.is-met,
.cart-minimum-note.is-exempt {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.cart-line {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s;
}

.cart-line:hover {
    border-color: #cbd5e1;
}

.cart-line-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff, #f1f5f9);
    border: 1px solid var(--border-subtle);
    display: grid;
    place-items: center;
}

.cart-line-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-line-content {
    min-width: 0;
}

.cart-line-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cart-line-name {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-line-unit {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.cart-line-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.cart-line-price {
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.2;
}

.cart-line-price small {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cart-line-qty {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    gap: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 7px;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s;
}

.qty-btn i {
    line-height: 1;
    display: block;
}

.qty-btn[data-act="dec"] {
    background: #fff7ed;
    color: #c2410c;
}

.qty-btn[data-act="dec"]:hover {
    background: #ffedd5;
    color: #9a3412;
}

.qty-btn[data-act="inc"] {
    background: #ecfdf5;
    color: #047857;
}

.qty-btn[data-act="inc"]:hover {
    background: #d1fae5;
    color: #065f46;
}

.qty-btn.is-remove {
    margin-left: 2px;
    background: var(--danger-soft);
    color: var(--danger);
}

.qty-btn.is-remove:hover {
    background: #fee2e2;
    color: var(--danger-dark);
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-val {
    font-weight: 800;
    min-width: 26px;
    text-align: center;
    font-size: 13px;
    color: var(--text);
}

.cart-empty {
    text-align: center;
    padding: 44px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
}

.cart-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    font-size: 24px;
}

.cart-empty strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-browse-btn {
    margin-top: 16px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--brand-dark);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}

.cart-browse-btn:hover {
    background: var(--brand-surface);
    border-color: var(--brand);
}

/* Adres & Ödeme Kartları */
.checkout-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xs);
    margin-bottom: 12px;
}

.checkout-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.checkout-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: var(--brand-dark);
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    font-size: 14px;
    line-height: 1;
}

.checkout-card-icon i {
    display: block;
    line-height: 1;
    width: 1em;
    text-align: center;
}

.checkout-card-head strong {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.checkout-card-head > div span {
    color: var(--text-muted);
    font-size: 11px;
    display: block;
}

.order-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.order-address-grid .field {
    min-width: 0;
    margin: 0;
}

.order-address-grid .field--full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.field label .req {
    color: var(--danger);
}

.field input, .field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13.5px;
    background: var(--surface);
    outline: none;
    transition: all 0.2s;
}

.field input:focus, .field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.field textarea {
    resize: vertical;
    min-height: 70px;
}

/* Ödeme Yöntemi Seçimi */
.payment-label {
    display: block;
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.choice-btn {
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.choice-btn i {
    font-size: 20px;
    color: var(--text-subtle);
    transition: color 0.2s;
}

.choice-btn small {
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.8;
}

.choice-btn:hover {
    border-color: #cbd5e1;
    background: var(--surface-2);
}

.choice-btn.active {
    background: var(--brand-surface);
    border-color: var(--brand);
    color: var(--brand-dark);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.choice-btn.active i {
    color: var(--brand);
}

/* Sipariş Özeti */
.summary-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 12.5px;
}

.summary-box .s-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-box .s-row:last-child {
    margin-bottom: 0;
}

.summary-box .s-row b {
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.summary-box .s-items {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.checkout-legal {
    margin: 14px 0 0;
    padding: 12px 14px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.checkout-legal a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: underline;
}

/* Sepet Alt Barı (Footer) */
.cart-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 14px 16px calc(14px + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 14px;
    font-weight: 700;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.total-label {
    display: flex;
    flex-direction: column;
}

.total-label span {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.total-label small {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.total-row > span:last-child {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-dark);
}

.step-actions {
    display: flex;
    gap: 10px;
}

.step-actions .submit-btn, .step-actions .btn-back {
    flex: 1;
}

.submit-btn {
    height: 46px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s var(--ease-out);
}

.submit-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-back {
    height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s;
}

.btn-back:hover {
    background: var(--surface-2);
}

/* ═══════════════════════════════════════════════════
   5. MOBİL SABİT ALT SEPET BARI (FLOATING CART PILL)
   ═══════════════════════════════════════════════════ */
.mobile-cart-float {
    display: none;
}

@media (max-width: 900px) {
    .mobile-cart-float {
        display: none;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: calc(14px + var(--safe-bottom));
        z-index: 180;
        background: linear-gradient(135deg, #075985 0%, #0284c7 100%);
        color: #fff;
        border-radius: var(--radius-lg);
        padding: 12px 18px;
        box-shadow: 0 10px 30px rgba(2, 132, 199, 0.42), 0 4px 12px rgba(15, 23, 42, 0.12);
        cursor: pointer;
        align-items: center;
        justify-content: space-between;
        transform: translateY(120%);
        transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        border: 1px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
    }

    .mobile-cart-float.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-cart-float:active {
        transform: scale(0.98) translateY(0);
    }

    .mcf-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mcf-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.2);
        display: grid;
        place-items: center;
        font-size: 17px;
        color: #fff;
    }

    .mcf-details {
        display: flex;
        flex-direction: column;
    }

    .mcf-count {
        font-size: 11px;
        color: #bae6fd;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .mcf-total {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .mcf-right {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13.5px;
        font-weight: 800;
        background: #fff;
        color: var(--brand-deep);
        padding: 9px 16px;
        border-radius: var(--radius-md);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
}

/* ═══════════════════════════════════════════════════
   6. PROFİL & SİPARİŞ TAKİBİ SAYFALARI
   ═══════════════════════════════════════════════════ */
.profile-page {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-page-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.profile-page-header h2 {
    margin: 0 0 2px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-page-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.profile-back-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s;
}

.profile-back-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-surface);
}

.profile-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.profile-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    overflow-y: auto;
}

.profile-side-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
}

.profile-side-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
}

.profile-side-user strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.profile-side-user span {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-nav-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    padding: 12px 14px 6px;
}

.profile-nav-btn {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.18s;
}

.profile-nav-btn i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--text-subtle);
}

.profile-nav-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

.profile-nav-btn.active {
    background: var(--brand-surface);
    color: var(--brand-dark);
}

.profile-nav-btn.active i {
    color: var(--brand);
}

.profile-nav-btn .nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
}

.profile-nav-btn .nav-badge.show {
    display: inline-flex;
}

.profile-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 24px 28px 48px;
}

.profile-content-inner {
    max-width: 780px;
}

.profile-section-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-title i {
    color: var(--brand);
}

.profile-pane {
    display: none;
}

.profile-pane.active {
    display: block;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.profile-card h3 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card h3 i {
    color: var(--brand);
}

.profile-info-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.abone-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px dashed var(--brand-light);
    color: var(--brand-dark);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-weight: 800;
    font-size: 14px;
}

.abone-badge button {
    border: none;
    background: var(--brand-surface);
    color: var(--brand-dark);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.abone-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.profile-msg {
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.profile-msg.ok {
    display: block;
    background: var(--success-soft);
    color: var(--success-dark);
    border: 1px solid var(--success-border);
}

.profile-msg.err {
    display: block;
    background: var(--danger-soft);
    color: var(--danger-dark);
    border: 1px solid var(--danger-border);
}

/* Sipariş Takip Hero Barı */
.ot-hero {
    background: linear-gradient(135deg, #075985 0%, #0284c7 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
}

.ot-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ot-hero h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ot-hero p {
    margin: 0;
    font-size: 13px;
    opacity: 0.88;
}

.ot-refresh-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s;
}

.ot-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ot-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ot-stat {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
}

.ot-stat b {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
}

.ot-stat span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

/* Sipariş Kartları */
.order-track-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-track-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.order-track-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.ot-card-accent {
    height: 4px;
    width: 100%;
    background: #94a3b8;
}

.order-track-card.st-pending .ot-card-accent {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.order-track-card.st-preparing .ot-card-accent,
.order-track-card.st-confirmed .ot-card-accent {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.order-track-card.st-on_way .ot-card-accent {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.order-track-card.st-delivered .ot-card-accent,
.order-track-card.st-completed .ot-card-accent {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.ot-card-body {
    padding: 20px;
}

.ot-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.ot-id {
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ot-id-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    background: var(--brand-surface);
    color: var(--brand-dark);
}

.ot-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ot-status {
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ot-status.st-pending { background: #fffbeb; color: #b45309; }
.ot-status.st-preparing, .ot-status.st-confirmed { background: #e0f2fe; color: #0369a1; }
.ot-status.st-on_way { background: #f5f3ff; color: #6d28d9; }
.ot-status.st-delivered, .ot-status.st-completed { background: #ecfdf5; color: #047857; }
.ot-status.st-cancelled { background: #f1f5f9; color: #64748b; }

.ot-cancelled-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 6px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.ot-cancelled-banner.is-customer {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ot-status .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: otPulse 1.4s ease-in-out infinite;
}

@keyframes otPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.ot-progress-wrap {
    margin: 16px 0 6px;
    padding: 16px 12px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
}

.ot-progress {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.ot-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-subtle);
}

.ot-progress-step .ot-dot {
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: var(--text-subtle);
    display: grid;
    place-items: center;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.25s;
}

.ot-progress-step.done {
    color: var(--success-dark);
}

.ot-progress-step.done .ot-dot {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.ot-progress-step.active {
    color: var(--brand-dark);
}

.ot-progress-step.active .ot-dot {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.ot-progress-bar {
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 18px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    z-index: 0;
    overflow: hidden;
}

.ot-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #0284c7);
    transition: width 0.4s var(--ease-out);
}

.ot-items-wrap {
    margin-top: 14px;
}

.ot-items-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    margin-bottom: 8px;
}

.ot-item-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ot-item-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.ot-item-chip em {
    font-style: normal;
    color: var(--brand);
    font-weight: 800;
}

.ot-address {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
}

.ot-address i {
    color: var(--brand);
    margin-top: 3px;
    flex-shrink: 0;
}

.ot-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.ot-pay {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.ot-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
    text-align: right;
}

.ot-total small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ot-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}

.ot-edit-btn {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
    transition: all 0.18s;
}

.ot-edit-btn:hover:not(.is-disabled):not(:disabled) {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    transform: translateY(-1px);
}

.ot-edit-btn.is-disabled,
.ot-edit-btn:disabled {
    background: #e2e8f0;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.ot-edit-hint {
    font-size: 11.5px;
    font-weight: 600;
    color: #6d28d9;
    text-align: center;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   7. MODALLAR (GİRİŞ, ŞİFRE vb.) & DİYALOGLAR
   ═══════════════════════════════════════════════════ */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-backdrop.show {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
    margin: auto;
    border: 1px solid var(--border);
    animation: modalIn 0.25s var(--ease-out);
}

.modal-box--wide {
    max-width: 540px;
    max-height: min(94vh, 820px);
}

@keyframes modalIn {
    0% { opacity: 0; transform: scale(0.95) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: all 0.18s;
}

.modal-close:hover {
    background: var(--surface-3);
    color: var(--text);
}

.modal-body {
    padding: 20px 22px 24px;
    overflow-y: auto;
    flex: 1;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--surface-2);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.auth-tab {
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: 10px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
}

.auth-tab.active {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: var(--shadow-xs);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-error {
    display: none;
    background: var(--danger-soft);
    color: var(--danger-dark);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.auth-error.show {
    display: block;
}

.auth-ok {
    display: none;
    background: var(--success-soft);
    color: var(--success-dark);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.auth-ok.show {
    display: block;
}

.auth-forgot {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--brand-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    border: none;
    background: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.auth-back:hover {
    color: var(--brand);
}

.auth-help {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.auth-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.2s;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

.pass-field {
    position: relative;
    display: flex;
    align-items: center;
}

.pass-field input {
    width: 100%;
    padding-right: 46px;
}

.pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.pass-toggle:hover {
    color: var(--text);
}

/* ═══════════════════════════════════════════════════
   8. ÜYE KAYIT SAYFASI (REGISTER PAGE)
   ═══════════════════════════════════════════════════ */
.register-page {
    overflow-y: auto;
    align-items: flex-start;
    padding: 32px 20px 48px;
    background:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.18), transparent 34%),
        linear-gradient(145deg, #f0f9ff 0%, #f8fafc 55%, #e0f2fe 100%);
}

.register-layout {
    width: 100%;
    max-width: 960px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(186, 230, 253, 0.9);
    box-shadow: var(--shadow-xl);
}

.register-intro {
    padding: 40px 32px;
    color: #fff;
    background: linear-gradient(155deg, #0c2744 0%, #0369a1 58%, #0284c7 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.register-intro-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 24px;
    margin-bottom: 20px;
}

.register-intro h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    line-height: 1.15;
    font-weight: 800;
}

.register-intro p {
    margin: 0;
    color: #dbeafe;
    font-size: 13.5px;
    line-height: 1.6;
}

.register-benefits {
    display: grid;
    gap: 14px;
}

.register-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
}

.register-benefit i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #7dd3fc;
    background: rgba(255, 255, 255, 0.12);
}

.register-panel {
    padding: 36px 36px 36px;
}

.register-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.register-panel-head h2 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 800;
}

.register-panel-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.register-back-btn {
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s;
}

.register-back-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.register-address-group {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.register-address-group legend {
    padding: 0 8px;
    color: var(--brand-dark);
    font-size: 12.5px;
    font-weight: 800;
}

.register-address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .register-address-grid {
        grid-template-columns: 1fr 1fr;
    }
    .register-address-grid .field--full {
        grid-column: 1 / -1;
    }
}

.register-address-note {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 11.5px;
}

.register-login-row {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.register-login-link {
    border: none;
    background: none;
    color: var(--brand-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 2px 6px;
}

.register-login-link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   9. OVERLAYS & TOASTS
   ═══════════════════════════════════════════════════ */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 350;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.success-overlay.show {
    display: flex;
}

.success-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px 26px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s var(--ease-out);
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.success-box h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.success-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13.5px;
}

.order-id-pill {
    display: inline-block;
    background: var(--brand-surface);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    margin: 14px 0 20px;
    border: 1px solid var(--brand-border);
}

.clear-cart-btn {
    width: 100%;
    margin-top: 6px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}

.clear-cart-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

.edit-order-section {
    margin-bottom: 16px;
}

.edit-order-section > strong {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.edit-order-empty {
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
}

.edit-order-line {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    margin-bottom: 8px;
}

.edit-order-line-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
    display: grid;
    place-items: center;
}

.edit-order-line-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.edit-order-line-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.edit-order-line-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 2px 0 8px;
}

.edit-order-line-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.edit-order-line-row b {
    color: var(--brand-dark);
    font-size: 13.5px;
    white-space: nowrap;
}

.edit-order-add {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.edit-order-add select {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    background: var(--surface);
    outline: none;
}

.edit-order-add select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.edit-order-add-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    background: var(--brand-surface);
    color: var(--brand-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit-order-add-btn:hover {
    background: #e0f2fe;
    border-color: var(--brand);
}

.edit-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
}

.edit-order-total b {
    color: var(--brand-dark);
    font-size: 16px;
}

.edit-pay-grid {
    margin-bottom: 0;
}

.edit-order-foot {
    flex-shrink: 0;
    padding: 12px 22px calc(14px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: #fff;
}

.edit-order-foot-actions {
    display: flex;
    gap: 8px;
}

.edit-order-foot-actions .submit-btn {
    flex: 1.4;
    height: 44px;
    font-size: 13.5px;
}

.edit-order-danger,
.edit-order-secondary {
    height: 44px;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
}

.edit-order-danger {
    flex: 1;
    border: 1px solid var(--danger-border);
    background: var(--danger-soft);
    color: var(--danger-dark);
}

.edit-order-danger:hover {
    background: #fee2e2;
}

.edit-order-secondary {
    flex: 1;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
}

.edit-cancel-prompt {
    text-align: center;
}

.edit-cancel-prompt p {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.edit-cancel-prompt-actions {
    display: flex;
    gap: 10px;
}

.edit-cancel-prompt-actions .edit-order-danger,
.edit-cancel-prompt-actions .edit-order-secondary {
    flex: 1;
    min-height: 48px;
    height: 48px;
    padding: 0 14px;
    font-size: 14.5px;
    border-radius: var(--radius-md);
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    z-index: 400;
    background: #0f172a;
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease-out);
    max-width: min(92vw, 380px);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.ok {
    background: #047857;
}

.toast.err {
    background: #b91c1c;
}

.order-notify {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 450;
    max-width: min(380px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid #bae6fd;
    border-left: 5px solid var(--brand);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    display: none;
    cursor: pointer;
    animation: modalIn 0.25s var(--ease-out);
}

.order-notify.show {
    display: block;
}

.order-notify-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.order-notify-title i {
    color: var(--brand);
}

.order-notify-body {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

.order-notify-action {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand);
}

/* ═══════════════════════════════════════════════════
   10. RESPONSIVE OPTIMIZATIONS (MOBILE 3-COL & DROPDOWN)
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    body.page-shop {
        overflow: auto;
    }

    .page.active.page-shop {
        overflow: visible;
        display: block;
    }

    .shop-layout {
        flex-direction: column;
        overflow: visible;
    }

    /* Mobilde Açılır Kategori Menüsü (Dropdown) */
    .shop-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow: visible;
        position: relative;
        z-index: 45;
        background: var(--surface);
        padding: 4px 0;
    }

    .shop-sidebar-head {
        display: none !important;
    }

    /* Açılır Menü Butonu (Trigger) */
    .cat-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 24px);
        margin: 6px 12px;
        padding: 10px 14px;
        border: 1.5px solid var(--border);
        border-radius: var(--radius-md);
        background: #ffffff;
        color: var(--text);
        font: inherit;
        cursor: pointer;
        text-align: left;
        gap: 10px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
        transition: all 0.2s var(--ease-out);
    }

    .cat-toggle:hover {
        border-color: #cbd5e1;
        background: var(--surface-2);
    }

    .cat-toggle-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }

    .cat-toggle-text small {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--brand);
    }

    .cat-toggle-text strong {
        font-size: 14px;
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text);
    }

    .cat-toggle i {
        color: var(--brand);
        font-size: 13px;
        transition: transform 0.25s var(--ease-out);
    }

    .shop-sidebar.is-open .cat-toggle {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
        background: #ffffff;
    }

    .shop-sidebar.is-open .cat-toggle i {
        transform: rotate(180deg);
    }

    /* Açılan Kategori Listesi */
    .cat-select-wrap {
        display: none !important;
        position: absolute !important;
        left: 12px;
        right: 12px;
        top: calc(100% - 2px);
        overflow-y: auto;
        max-height: min(65vh, 400px);
        padding: 8px;
        margin: 0;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2), 0 2px 8px rgba(15, 23, 42, 0.06);
        z-index: 70;
        animation: dropdownIn 0.2s var(--ease-out);
    }

    @keyframes dropdownIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .shop-sidebar.is-open .cat-select-wrap {
        display: block !important;
    }

    .cat-menu {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .cat-item {
        width: 100%;
        border: none;
        background: transparent;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        font: inherit;
        font-size: 13.5px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
        box-shadow: none;
        transition: all 0.15s;
    }

    .cat-item:hover {
        background: var(--surface-2);
        color: var(--text);
    }

    .cat-item.active {
        background: var(--brand-surface);
        color: var(--brand-dark);
        font-weight: 800;
        border-left: 3px solid var(--brand);
    }

    .cat-item-count {
        background: var(--surface-2);
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: var(--radius-pill);
    }

    .cat-item.active .cat-item-count {
        background: #bae6fd;
        color: var(--brand-deep);
    }

    /* Mobilde Yan Yana 2 Ürün Grid'i */
    .shop-main {
        overflow: visible;
        padding: 12px 8px calc(76px + var(--safe-bottom));
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .p-card {
        border-radius: var(--radius-md);
    }

    .p-card.has-campaign::before {
        top: 5px;
        left: 5px;
        font-size: 8px;
        padding: 2px 5px;
    }

    .p-img-wrap {
        height: 120px;
        padding: 8px;
    }

    .p-body {
        padding: 10px 8px 11px;
    }

    .p-name {
        font-size: 13px;
        min-height: 2.6em;
        line-height: 1.25;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .p-foot {
        gap: 6px;
    }

    .p-price {
        font-size: 14px;
        gap: 4px;
    }

    .p-price-old {
        font-size: 9.5px;
    }

    .p-campaign-tag {
        font-size: 8px;
        padding: 1px 4px;
    }

    .p-cart-control {
        height: 30px;
    }

    .p-add {
        font-size: 10.5px;
        font-weight: 700;
        border-radius: 7px;
        gap: 4px;
    }

    .p-card-qty {
        border-radius: 7px;
        grid-template-columns: 1fr minmax(26px, auto) 1fr;
    }

    .p-card-qty-btn {
        font-size: 11px;
    }

    .p-card-qty-value {
        min-width: 24px;
        font-size: 12px;
        font-weight: 800;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .toolbar {
        top: var(--header-h);
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .header-user-name {
        display: none;
    }

    .profile-page {
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .p-img-wrap {
        height: 108px;
        padding: 6px;
    }

    .p-body {
        padding: 8px 6px 9px;
    }

    .p-name {
        font-size: 12px;
        min-height: 2.5em;
        margin-bottom: 4px;
    }

    .p-price {
        font-size: 13px;
    }

    .p-cart-control {
        height: 28px;
    }

    .p-add {
        font-size: 10px;
        border-radius: 6px;
    }

    .p-card-qty {
        border-radius: 6px;
    }

    .p-card-qty-value {
        min-width: 20px;
        font-size: 11px;
    }

    .shop-main {
        padding: 10px 6px calc(76px + var(--safe-bottom));
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 12px;
    }

    .brand strong {
        font-size: 14px;
    }

    .live-status-pill {
        display: none;
    }

    .profile-layout {
        flex-direction: column;
        overflow: auto;
    }

    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px 14px;
        overflow: visible;
    }

    .profile-side-user, .profile-nav-label {
        display: none;
    }

    .profile-nav {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
    }

    .profile-nav-btn {
        flex-shrink: 0;
        width: auto;
        background: var(--surface-2);
        border: 1px solid var(--border);
    }

    .profile-nav-btn.active {
        border-color: var(--brand);
    }

    .profile-content {
        overflow: visible;
        padding: 16px 14px 40px;
    }

    body.page-profile {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    body.page-profile .page.page-profile,
    body.page-profile .profile-page {
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .register-page {
        padding: 16px 12px 36px;
    }

    .register-layout {
        grid-template-columns: 1fr;
        border-radius: var(--radius-lg);
    }

    .register-intro {
        padding: 24px 20px;
        gap: 18px;
    }

    .register-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .register-panel {
        padding: 24px 20px 28px;
    }
}

@media (max-width: 520px) {
    .cart-panel {
        width: 100%;
        border-radius: 0;
    }

    .edit-order-foot-actions,
    .edit-cancel-prompt-actions {
        flex-direction: column;
    }

    .edit-order-foot-actions .submit-btn,
    .edit-order-danger,
    .edit-order-secondary {
        width: 100%;
        flex: none;
    }

    .edit-cancel-prompt-actions .edit-order-danger,
    .edit-cancel-prompt-actions .edit-order-secondary {
        width: 100%;
        min-height: 48px;
        height: 48px;
        font-size: 14.5px;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
    }

    .register-benefits {
        grid-template-columns: 1fr;
    }

    .register-panel-head {
        flex-direction: column-reverse;
    }
}

@media (max-width: 700px) {
    .shop-seo-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding: 16px;
    }

    .shop-seo-benefits { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .cart-panel, .toast, .p-card, .mobile-cart-float, .p-img-wrap img, .shop-seo-intro {
        transition: none !important;
        animation: none !important;
    }
}
