/**
 * Yemek Rehberi - Stylesheet
 * sosyotik.com/yemek
 * v3.0 - Professional Sidebar Layout
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #F63049;
    --primary-dark: #d42a40;
    --primary-light: rgba(246, 48, 73, 0.08);
    --secondary: #10B981;
    --secondary-light: rgba(16, 185, 129, 0.08);
    --dark: #1a1a2e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --sidebar-width: 260px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== Layout ===== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, rgba(246, 48, 73, 0.04) 0%, rgba(246, 48, 73, 0.01) 50%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(246, 48, 73, 0.06);
    padding: 0.625rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: 0 1px 20px rgba(246, 48, 73, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.96);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}

.logo:hover { opacity: 0.85; }

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(246, 48, 73, 0.25);
}

.logo-icon i {
    font-size: 1.25rem;
    color: #fff;
}

.logo span {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ===== Search Bar ===== */
.search-bar {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.8125rem;
    font-family: inherit;
    background: var(--gray-50);
    transition: all var(--transition);
    color: var(--gray-800);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(246, 48, 73, 0.08);
}

.search-bar input::placeholder { color: var(--gray-400); }

.search-bar > i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
    pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(246, 48, 73, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(246, 48, 73, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(246, 48, 73, 0.03);
}

/* ═══════════════════════════════════════════════════
   TOOLBAR — Filtreler (Header altı)
   ═══════════════════════════════════════════════════ */
.toolbar {
    background: linear-gradient(180deg, rgba(246, 48, 73, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    border-bottom: 1px solid var(--gray-100);
    padding: 0.5rem 0;
}

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.toolbar-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

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

.toolbar-field > i {
    position: absolute;
    left: 0.5rem;
    color: var(--gray-400);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.toolbar-select {
    padding: 0.375rem 1.75rem 0.375rem 1.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--gray-700);
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 10px;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 120px;
}

.toolbar-select:hover {
    border-color: var(--gray-300);
}

.toolbar-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(246, 48, 73, 0.06);
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* Toolbar Price Inputs */
.toolbar-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.toolbar-input {
    width: 72px;
    padding: 0.375rem 0.5rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--gray-700);
    background: #fff;
    transition: all var(--transition);
}

.toolbar-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(246, 48, 73, 0.06);
}

.toolbar-input::placeholder {
    color: var(--gray-400);
}

.toolbar-price-sep {
    color: var(--gray-300);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Toolbar Chip Toggle */
.toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    white-space: nowrap;
}

.toolbar-chip input { display: none; }

.toolbar-chip i {
    font-size: 0.875rem;
}

.toolbar-chip:hover {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.toolbar-chip.active {
    background: rgba(246, 48, 73, 0.06);
    border-color: rgba(246, 48, 73, 0.2);
    color: var(--primary);
    font-weight: 600;
}

/* Toolbar Apply Button */
.toolbar-apply {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: var(--gray-900);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.toolbar-apply:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.toolbar-apply i {
    font-size: 0.8rem;
}

/* Toolbar Active Tags */
.toolbar-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.toolbar-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1875rem 0.5rem;
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 500;
}

.toolbar-tag i {
    font-size: 0.7rem;
}

.toolbar-tag a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    color: var(--gray-400);
    transition: all 0.15s;
    text-decoration: none;
    margin-left: 0.125rem;
}

.toolbar-tag a:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.toolbar-tag a i { font-size: 0.5rem; }

.toolbar-tag--order {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.toolbar-tag--location {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.toolbar-clear {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color var(--transition);
}

.toolbar-clear:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   MOBILE CATEGORY TOGGLE
   ═══════════════════════════════════════════════════ */
.sidebar-toggle {
    display: none; /* shown on mobile via media query */
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--gray-900);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:active {
    transform: scale(0.92);
}

.sidebar-toggle .badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== Sidebar Overlay (mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════════
   PAGE LAYOUT — Sidebar (categories) + Content
   ═══════════════════════════════════════════════════ */
.page-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: calc(100vh - 120px);
}

/* ═══════════════════════════════════════════════════
   CATEGORY SIDEBAR
   ═══════════════════════════════════════════════════ */
.filter-sidebar {
    position: sticky;
    top: 100px; /* header + toolbar yaklaşık */
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--gray-200);
    z-index: 10;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

.filter-sidebar::-webkit-scrollbar { width: 3px; }
.filter-sidebar::-webkit-scrollbar-track { background: transparent; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-header h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}

.sidebar-header h3 i {
    font-size: 1rem;
    color: var(--primary);
}

.sidebar-close {
    display: none; /* shown on mobile */
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}

.sidebar-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* ===== Sidebar Categories ===== */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 1px;
}

.sidebar-cat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-xs);
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
}

.sidebar-cat:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.sidebar-cat.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-cat i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.6;
}

.sidebar-cat.active i {
    opacity: 1;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════════════ */
.main-content {
    padding: 1.25rem 1.5rem 2rem;
    min-width: 0;
}

.content-area {
    max-width: 100%;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.results-count {
    color: var(--gray-500);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.results-count strong {
    color: var(--gray-900);
    font-weight: 700;
}

.results-icon {
    font-size: 0.8em;
}

/* ═══════════════════════════════════════════════════
   ITEMS GRID — 5 columns desktop
   ═══════════════════════════════════════════════════ */
.items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.item-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ═══════════════════════════════════════════════════
   ITEM CARD — Minimal & Professional
   ═══════════════════════════════════════════════════ */
.item-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== Item Image ===== */
.item-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--gray-100);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.item-card:hover .item-image img {
    transform: scale(1.04);
}

.item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 2.5rem;
    background: var(--gray-100);
}

/* ===== Item Badges ===== */
.item-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-featured {
    background: var(--primary);
    color: #fff;
}

.badge-new {
    background: var(--secondary);
    color: #fff;
}

.badge-vegan {
    background: #22c55e;
    color: #fff;
}

.badge-halal {
    background: #3b82f6;
    color: #fff;
}

.badge-order {
    background: #f59e0b;
    color: #fff;
    padding: 0.3rem;
    border-radius: 50%;
    font-size: 0.7rem;
}

/* ===== Rating Badge (image bottom-left) ===== */
.badge-rating {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--gray-800);
    z-index: 2;
}

.badge-rating i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.badge-rating small {
    font-weight: 400;
    color: var(--gray-400);
    font-size: 0.5625rem;
}

/* ===== Online Order Card Highlight ===== */
.item-card.has-order {
    border-color: rgba(245, 158, 11, 0.3);
}

.item-card.has-order:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

/* ===== Online Order Button (in card) ===== */
.item-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-left: auto;
    transition: all var(--transition);
    text-decoration: none;
}

.item-order-btn:hover {
    transform: scale(1.1);
    background: #ef4444;
}

/* ===== Price Tag ===== */
.item-price-tag {
    display: none; /* Moved to item-footer */
}

.item-price-tag .old-price {
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 0.125rem;
    font-weight: 400;
}

/* ===== Item Body ===== */
.item-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-category {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.item-category i { font-size: 0.75rem; }

.item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

/* ===== Item Meta (Online Order Info) ===== */
.item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
    font-size: 0.625rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    white-space: nowrap;
}

.meta-item i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.meta-rating i {
    color: #f59e0b;
    opacity: 1;
}

.meta-rating small {
    color: var(--gray-400);
    font-size: 0.5625rem;
}

.meta-free {
    color: #16a34a;
    font-weight: 600;
}

.meta-dot {
    color: var(--gray-300);
    font-size: 0.5rem;
    margin: 0 0.1rem;
}

/* ===== Item Footer (Price + Restaurant) ===== */
.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.item-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.item-price .current-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
}

.item-price .old-price {
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 400;
}

.item-restaurant-mini {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex-shrink: 1;
}

.item-restaurant-mini .item-restaurant-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-100);
    flex-shrink: 0;
}

.item-restaurant-mini .item-restaurant-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-restaurant-mini .item-restaurant-logo--placeholder i {
    color: var(--gray-400);
    font-size: 0.625rem;
}

.item-restaurant-mini .item-restaurant-name {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.item-description {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

/* ===== Item Restaurant Info ===== */
.item-restaurant {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--gray-100);
}

.item-restaurant-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-100);
    flex-shrink: 0;
}

.item-restaurant-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-restaurant-logo--placeholder i {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.item-restaurant-info {
    flex: 1;
    min-width: 0;
}

.item-restaurant-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-restaurant-location {
    font-size: 0.625rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.item-restaurant-location i { font-size: 0.625rem; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.625rem;
    border-radius: var(--radius-xs);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination a {
    background: #fff;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.875rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.8125rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.footer a:hover { color: #fff; }

/* ===== Header Actions ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-auth {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(246, 48, 73, 0.2);
}

.btn-auth:hover {
    box-shadow: 0 4px 16px rgba(246, 48, 73, 0.3);
    transform: translateY(-1px);
}

.btn-auth i { font-size: 1rem; }

.btn-auth.logged-in {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-auth.logged-in:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* ===== Auth Overlay ===== */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Auth Drawer ===== */
.auth-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 440px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.auth-drawer.active {
    right: 0;
}

.auth-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.auth-drawer-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.auth-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition);
}

.auth-drawer-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* ===== Auth Steps ===== */
.auth-step {
    padding: 1.25rem 1.25rem;
    flex: 1;
}

.auth-illustration {
    text-align: center;
    margin-bottom: 0.75rem;
}

.auth-illustration i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.auth-desc {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* ===== Auth Choice Buttons ===== */
.auth-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.auth-choice-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.auth-choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.auth-choice-btn .choice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-choice-btn .choice-icon i {
    font-size: 1.25rem;
    color: #fff;
}

.auth-choice-btn .choice-text {
    flex: 1;
}

.auth-choice-btn .choice-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.0625rem;
}

.auth-choice-btn .choice-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.3;
}

.auth-choice-btn .choice-arrow {
    color: var(--gray-300);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.auth-choice-btn:hover .choice-arrow {
    transform: translateX(3px);
    color: var(--gray-500);
}

/* Login variant */
.auth-choice-login {
    border-color: rgba(59, 130, 246, 0.2);
}
.auth-choice-login:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.02);
}
.auth-choice-login .choice-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Register variant */
.auth-choice-register {
    border-color: rgba(16, 185, 129, 0.2);
}
.auth-choice-register:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.02);
}
.auth-choice-register .choice-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ===== Auth Back Button ===== */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

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

.auth-back i {
    font-size: 1rem;
}

.auth-field {
    margin-bottom: 0.875rem;
}

.auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.auth-optional {
    font-weight: 400;
    color: var(--gray-400);
}

.auth-phone-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.auth-phone-input:focus-within {
    border-color: var(--primary);
}

.auth-phone-prefix {
    padding: 0 0.625rem;
    font-weight: 700;
    color: var(--gray-500);
    font-size: 0.85rem;
    border-right: 2px solid var(--gray-200);
    background: var(--gray-50);
    height: 40px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.auth-phone-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 0.75rem;
    height: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--gray-900);
}

.auth-input-icon {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.auth-input-icon:focus-within {
    border-color: var(--primary);
}

.auth-input-icon i {
    padding: 0 0.625rem;
    color: var(--gray-400);
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-input-icon input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 0.75rem 0 0;
    height: 40px;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.auth-submit {
    width: 100%;
    padding: 0.7rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition);
    margin-top: 0.375rem;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb, 239, 68, 68), 0.3);
}

.auth-error {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #ef4444;
    text-align: center;
    min-height: 1.25rem;
}

.auth-welcome {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.auth-welcome i {
    font-size: 1.25rem;
    margin-right: 0.25rem;
    color: var(--primary);
}

/* ===== Auth Success ===== */
.auth-success-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-success-icon i {
    font-size: 4rem;
    color: #10b981;
}

.auth-success-title {
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}

.auth-success-msg {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ===== Auth Profile ===== */
.auth-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-profile-avatar span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.auth-profile-avatar i {
    font-size: 2rem;
    color: #fff;
}

.auth-profile-name {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.auth-profile-phone {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0 0 1.75rem;
}

.auth-profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.auth-profile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.auth-profile-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.auth-profile-item i:first-child {
    font-size: 1.25rem;
    color: var(--gray-400);
    width: 24px;
    text-align: center;
}

.auth-profile-item span { flex: 1; }

.auth-profile-item i:last-child {
    font-size: 1rem;
    color: var(--gray-300);
}

.auth-logout {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition);
}

.auth-logout:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* ═════════════════════════════════════════════
   ADRES YÖNETİMİ
   ═════════════════════════════════════════════ */

/* Adreslerim Header */
.addr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.addr-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.addr-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.addr-add-btn:hover {
    background: var(--primary);
    color: #fff;
}

.addr-add-btn i {
    font-size: 1rem;
}

/* Adres Listesi */
.addr-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.addr-loading {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.addr-loading i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.addr-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.addr-empty i {
    font-size: 3rem;
    color: var(--gray-300);
    display: block;
    margin-bottom: 0.75rem;
}

.addr-empty p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
}

/* Adres Kartı */
.addr-card {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.addr-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.addr-card-default {
    border-color: rgba(var(--primary-rgb, 239, 68, 68), 0.3);
    background: rgba(var(--primary-rgb, 239, 68, 68), 0.02);
}

.addr-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.addr-card-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.addr-card-label i {
    font-size: 1.125rem;
    color: var(--primary);
}

.addr-card-label strong {
    font-weight: 700;
    color: var(--gray-900);
}

.addr-card-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(var(--primary-rgb, 239, 68, 68), 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.addr-card-badge i {
    font-size: 0.75rem;
}

.addr-card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.addr-card-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.addr-card-action:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.addr-card-delete:hover {
    background: #fef2f2;
    color: #ef4444;
}

.addr-card-body {
    padding-left: 1.625rem;
}

.addr-card-text {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.addr-card-detail {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* Adres Formu */
.addr-form-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Harita */
.addr-map-wrap {
    margin-bottom: 1rem;
}

.addr-map {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    overflow: hidden;
}

.addr-map-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.addr-map-hint i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Etiket Chip'leri */
.addr-label-chips {
    display: flex;
    gap: 0.5rem;
}

.addr-chip {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.5rem;
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.addr-chip:hover {
    border-color: var(--gray-300);
}

.addr-chip.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb, 239, 68, 68), 0.05);
    color: var(--primary);
}

.addr-chip i {
    font-size: 1.125rem;
}

/* İl / İlçe yan yana */
.addr-row {
    display: flex;
    gap: 0.75rem;
}

.addr-half {
    flex: 1;
    min-width: 0;
}

/* Google Places autocomplete dropdown z-index fix */
.pac-container {
    z-index: 10000 !important;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
}

.pac-item {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.pac-item:hover {
    background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ═══════════════════════════════════════════════════ */

/* ≤1280px: 4 columns */
@media (max-width: 1280px) {
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ≤1024px: 3 columns, hide sidebar on desktop */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 200;
        transition: left 0.3s ease;
        border-right: none;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .filter-sidebar.open {
        left: 0;
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-content {
        padding: 1rem;
    }
}

/* ≤768px: 2 columns + toolbar stacks */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 0.375rem;
    }

    .toolbar-row {
        flex-wrap: wrap;
    }

    .toolbar-controls {
        gap: 0.375rem;
    }

    .toolbar-sep {
        display: none;
    }

    .toolbar-select {
        min-width: 100px;
        font-size: 0.6875rem;
    }

    .toolbar-input {
        width: 60px;
        font-size: 0.6875rem;
    }

    .toolbar-chip {
        font-size: 0.6875rem;
        padding: 0.3rem 0.5rem;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .item-meta {
        font-size: 0.5625rem;
    }

    .item-price .current-price {
        font-size: 0.8125rem;
    }

    .item-restaurant-mini .item-restaurant-name {
        max-width: 60px;
    }

    .main-content {
        padding: 0.875rem;
    }

    .container {
        padding: 0 1rem;
    }

    .page-layout {
        padding: 0 1rem;
    }

    /* Auth Drawer — mobile full width */
    .auth-drawer {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }

    .auth-drawer.active {
        right: 0;
    }

    .auth-step {
        padding: 1rem;
    }

    .auth-drawer-header {
        padding: 1rem;
    }

    .auth-choice-btn {
        padding: 0.75rem;
    }

    .auth-choice-btn .choice-icon {
        width: 36px;
        height: 36px;
    }
}

/* ≤480px: 1 column, toolbar compact */
@media (max-width: 480px) {
    .logo span { display: none; }
    .logo-icon { width: 32px; height: 32px; border-radius: 8px; }
    .logo-icon i { font-size: 1.1rem; }

    .btn-auth span { display: none; }
    .btn-auth { padding: 0.4375rem; }
    .btn-auth i { font-size: 1.2rem; }

    .toolbar-controls {
        flex-wrap: wrap;
    }

    .toolbar-chip span {
        display: none;
    }

    .toolbar-end {
        width: 100%;
    }

    .toolbar-apply {
        width: 100%;
        justify-content: center;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .item-body {
        padding: 0.625rem;
    }

    .sidebar-toggle {
        bottom: 1rem;
        left: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .location-bar-text {
        display: none;
    }

    .location-bar {
        padding: 0.4375rem;
    }

    .auth-step {
        padding: 0.875rem;
    }

    .auth-choice-btn {
        padding: 0.625rem 0.75rem;
        gap: 0.625rem;
    }

    .auth-choice-btn .choice-text strong {
        font-size: 0.8125rem;
    }

    .auth-choice-btn .choice-text span {
        font-size: 0.6875rem;
    }
}

/* ===== Scroll Animations ===== */
.item-card {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.35s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.items-grid .item-card-link:nth-child(1) .item-card { animation-delay: 0.03s; }
.items-grid .item-card-link:nth-child(2) .item-card { animation-delay: 0.06s; }
.items-grid .item-card-link:nth-child(3) .item-card { animation-delay: 0.09s; }
.items-grid .item-card-link:nth-child(4) .item-card { animation-delay: 0.12s; }
.items-grid .item-card-link:nth-child(5) .item-card { animation-delay: 0.15s; }
.items-grid .item-card-link:nth-child(6) .item-card { animation-delay: 0.18s; }
.items-grid .item-card-link:nth-child(7) .item-card { animation-delay: 0.21s; }
.items-grid .item-card-link:nth-child(8) .item-card { animation-delay: 0.24s; }
.items-grid .item-card-link:nth-child(9) .item-card { animation-delay: 0.27s; }
.items-grid .item-card-link:nth-child(10) .item-card { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════════════
   LOCATION BAR — Header'daki adres seçici (dropdown)
   ═══════════════════════════════════════════════════ */
.location-wrapper {
    position: relative;
    flex-shrink: 0;
}

.location-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.625rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    max-width: 200px;
    font-family: inherit;
    font-size: 0.8125rem;
}

.location-bar:hover {
    border-color: var(--gray-300);
    background: #fff;
}

.location-bar:focus,
.location-bar.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(246, 48, 73, 0.06);
}

.location-bar-icon {
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.location-bar-text {
    min-width: 0;
    line-height: 1.3;
}

.location-bar-value {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    display: block;
}

.location-bar-arrow {
    color: var(--gray-400);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.location-bar.active .location-bar-arrow {
    transform: rotate(180deg);
}

/* ===== Location Dropdown ===== */
.loc-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.loc-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.loc-dropdown-inner {
    padding: 0.375rem;
}

.loc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: inherit;
}

.loc-dropdown-item:hover {
    background: var(--gray-50);
}

.loc-dropdown-item--danger:hover {
    background: rgba(239, 68, 68, 0.04);
}

.loc-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-dropdown-icon i {
    font-size: 1rem;
    color: #fff;
}

.loc-icon-gps {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.loc-icon-map {
    background: linear-gradient(135deg, #10b981, #059669);
}

.loc-icon-clear {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.loc-dropdown-text {
    flex: 1;
    min-width: 0;
}

.loc-dropdown-text strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-900);
}

.loc-dropdown-text span {
    display: block;
    font-size: 0.65rem;
    color: var(--gray-400);
}

/* Dropdown divider */
.loc-dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.25rem 0.625rem;
}

.loc-dropdown-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.375rem 0.625rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.loc-dropdown-label i {
    font-size: 0.75rem;
}

.loc-dropdown-saved-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

/* Saved address items inside dropdown */
.loc-saved-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: inherit;
}

.loc-saved-item:hover {
    background: var(--gray-50);
}

.loc-saved-item > i:first-child {
    font-size: 0.875rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

.loc-saved-item div {
    flex: 1;
    min-width: 0;
}

.loc-saved-item div strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-800);
}

.loc-saved-item div span {
    display: block;
    font-size: 0.6rem;
    color: var(--gray-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loc-saved-item > i:last-child {
    color: var(--gray-300);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.loc-dropdown-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.loc-dropdown-status i {
    font-size: 0.875rem;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   LOCATION MAP DRAWER (harita paneli için)
   ═══════════════════════════════════════════════════ */
.loc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1009;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loc-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loc-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    z-index: 1010;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
}

.loc-drawer.active {
    right: 0;
}

.loc-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.loc-drawer-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Harita paneli */
.loc-map-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    overflow-y: auto;
}

.loc-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.loc-map {
    width: 100%;
    height: 300px;
}

.loc-map-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--gray-50);
    border-radius: 10px;
    margin-top: 0.625rem;
    margin-bottom: 0.625rem;
    font-size: 0.8rem;
    color: var(--gray-700);
    line-height: 1.4;
    min-height: 2.5rem;
}

.loc-map-address i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Konum filtre tag rengi */
.filter-tag-location {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    color: #2563eb !important;
}

.filter-tag-location a {
    color: #2563eb !important;
}

/* ===== Location Responsive ===== */
@media (max-width: 768px) {
    .location-bar {
        max-width: 150px;
        padding: 0.375rem 0.5rem;
    }

    .location-bar-value {
        font-size: 0.6875rem;
        max-width: 90px;
    }

    .loc-dropdown {
        width: 260px;
        left: auto;
        right: 0;
    }

    .loc-drawer {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }

    .loc-map {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .location-bar {
        max-width: 110px;
    }

    .location-bar-value {
        max-width: 60px;
    }

    .location-bar-arrow {
        display: none;
    }

    .loc-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        max-height: 70vh;
        overflow-y: auto;
    }

    .loc-dropdown.active {
        transform: translateY(0);
    }
}
