/* ==========================================================================
   MOBİL YAN MENÜ (#mobileDrawer) - MODERN E-TİCARET DRAWER TASARIMI
   ========================================================================== */
:root {
    --mm-bg: #0F1419;
    --mm-card: #151B23;
    --mm-card-hover: #1C2430;
    --mm-border: #2A3441;
    --mm-text: #E6EAF0;
    --mm-muted: #9BA6B8;
    --mm-primary: #FF6B00;
    --mm-primary-hover: #FF7E1F;
}

#mobileDrawer.off-canvas {
    width: 90%;
    max-width: 376px;
    height: 100dvh;
    background: var(--mm-bg);
    color: var(--mm-text);
    border-right: 1px solid var(--mm-border);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.65);
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
}

/* 1. ÜST BÖLÜM: LOGO + KAPAT + ARAMA KUTUSU */
.mm-top-wrap {
    padding: 14px 16px 12px;
    background: var(--mm-card);
    border-bottom: 1px solid var(--mm-border);
    flex-shrink: 0;
}

.mm-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mm-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mm-brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.mm-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mm-bg);
    border: 1px solid var(--mm-border);
    color: var(--mm-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mm-close-btn:hover {
    border-color: var(--mm-primary);
    color: var(--mm-primary);
}

.mm-close-btn svg {
    width: 20px;
    height: 20px;
}

.mm-search-form {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--mm-bg);
    border: 1.5px solid var(--mm-border);
    border-radius: 12px;
    padding: 0 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mm-search-form:focus-within {
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.16);
}

.mm-search-ic {
    width: 18px;
    height: 18px;
    color: var(--mm-muted);
    margin-right: 10px;
    flex-shrink: 0;
}

.mm-search-input {
    flex: 1;
    height: 100%;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mm-text);
    min-width: 0;
}

.mm-search-input::placeholder {
    color: var(--mm-muted);
}

.mm-search-clear {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--mm-muted);
    display: none;
    align-items: center;
    justify-content: center;
}

.mm-search-clear.show {
    display: inline-flex;
}

.mm-search-clear svg {
    width: 16px;
    height: 16px;
}

/* GÖVDE KAYDIRMA ALANI */
#mobileDrawer .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--mm-border) transparent;
}

/* 2. GİRİŞ / ÜYE OL KARTI (TEKNOCLUB) */
.mm-user-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.22) 0%, rgba(21, 27, 35, 0.96) 65%, rgba(37, 99, 235, 0.18) 100%);
    border: 1px solid rgba(255, 107, 0, 0.38);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: left;
    margin-bottom: 16px;
    transition: transform 160ms ease, border-color 160ms ease;
}

.mm-user-card:hover {
    border-color: var(--mm-primary);
}

.mm-user-card:active {
    transform: scale(0.98);
}

.mm-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6B00, #FF8C38);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.mm-user-avatar svg {
    width: 22px;
    height: 22px;
}

.mm-user-info {
    flex: 1;
    min-width: 0;
}

.mm-user-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
}

.mm-user-sub {
    font-size: 12px;
    font-weight: 500;
    color: #FFD2B3;
    margin-top: 2px;
}

.mm-user-arrow {
    width: 18px;
    height: 18px;
    color: var(--mm-primary);
    flex-shrink: 0;
}

/* BÖLÜM BAŞLIKLARI & AYIRICILAR */
.mm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--mm-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 18px 2px 10px;
}

.mm-divider {
    height: 1px;
    background: var(--mm-border);
    margin: 18px 0;
    opacity: 0.75;
}

/* 3. HIZLI ERİŞİM SATIRI (4 KÜÇÜK KISAYOL KARTI) */
.mm-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 6px;
}

.mm-quick-card {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mm-text);
    position: relative;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mm-quick-card:hover {
    background: var(--mm-card-hover);
    border-color: rgba(255, 107, 0, 0.55);
}

.mm-quick-card:active {
    transform: scale(0.97);
}

.mm-quick-ic {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mm-quick-ic svg {
    width: 17px;
    height: 17px;
}

.mm-quick-ic.ic-camp { background: rgba(255, 107, 0, 0.16); color: #FF7A1A; }
.mm-quick-ic.ic-deal { background: rgba(239, 68, 68, 0.16); color: #F87171; }
.mm-quick-ic.ic-cart { background: rgba(16, 185, 129, 0.16); color: #34D399; }
.mm-quick-ic.ic-fav  { background: rgba(236, 72, 153, 0.16); color: #F472B6; }

.mm-quick-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.mm-quick-badge {
    background: var(--mm-primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mm-quick-badge.hidden {
    display: none;
}

/* 4. KATEGORİLER VE YUMUŞAK AKORDEON */
.mm-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mm-acc-item {
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mm-acc-item.is-open {
    border-color: rgba(255, 107, 0, 0.65);
    background: #18202B;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mm-acc-trigger {
    width: 100%;
    min-height: 54px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--mm-text);
    text-align: left;
}

.mm-acc-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* Renkli Kare İkon Kutusu */
.mm-cat-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.mm-cat-icon-box svg {
    width: 21px;
    height: 21px;
}

.mm-cat-icon-box.tone-all        { background: rgba(255, 107, 0, 0.16); color: #FF8533; }
.mm-cat-icon-box.tone-telefon    { background: rgba(59, 130, 246, 0.16); color: #60A5FA; }
.mm-cat-icon-box.tone-bilgisayar { background: rgba(139, 92, 246, 0.16); color: #A78BFA; }
.mm-cat-icon-box.tone-ev         { background: rgba(245, 158, 11, 0.16); color: #FBBF24; }
.mm-cat-icon-box.tone-tv         { background: rgba(236, 72, 153, 0.16); color: #F472B6; }
.mm-cat-icon-box.tone-beyaz      { background: rgba(6, 182, 212, 0.16);  color: #22D3EE; }
.mm-cat-icon-box.tone-oyun       { background: rgba(16, 185, 129, 0.16); color: #34D399; }
.mm-cat-icon-box.tone-aksesuar   { background: rgba(249, 115, 22, 0.16); color: #FB923C; }

.mm-acc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--mm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-acc-chevron {
    width: 18px;
    height: 18px;
    color: var(--mm-muted);
    flex-shrink: 0;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms ease;
}

.mm-acc-item.is-open .mm-acc-chevron {
    transform: rotate(180deg);
    color: var(--mm-primary);
}

/* Yumuşak Yükseklik Animasyonlu Akordeon Paneli */
.mm-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mm-acc-item.is-open .mm-acc-panel {
    grid-template-rows: 1fr;
}

.mm-acc-panel-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.mm-acc-item.is-open .mm-acc-panel-inner {
    padding: 4px 12px 12px;
    border-top: 1px solid rgba(42, 52, 65, 0.7);
}

/* "Tüm X Ürünlerini Gör" Belirgin Turuncu Buton */
.mm-view-all-link {
    min-height: 44px;
    padding: 10px 14px;
    margin: 6px 0 4px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mm-primary) 0%, #FF8533 100%);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
    transition: filter 160ms ease, transform 160ms ease;
}

.mm-view-all-link:hover {
    filter: brightness(1.06);
}

.mm-view-all-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Alt Kategori Bağlantıları (Min 44px Dokunma Alanı, Okunaklı Kontrast) */
.mm-sub-link {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mm-text);
    transition: background 150ms ease, color 150ms ease;
}

.mm-sub-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--mm-primary);
}

.mm-sub-link svg {
    width: 15px;
    height: 15px;
    color: var(--mm-muted);
}

/* 5. MARKALAR BÖLÜMÜ (YATAY KAYDIRMALI / SARan ÇİPLER) */
.mm-brands-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mm-brand-chip {
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mm-text);
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.mm-brand-chip:hover {
    border-color: var(--mm-primary);
    background: var(--mm-card-hover);
    color: #FFFFFF;
}

.mm-brand-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--mm-primary);
}

/* 6. ALT DESTEK SATIRLARI & FOOTER */
.mm-support-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mm-support-row {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mm-text);
    transition: border-color 150ms ease, background 150ms ease;
}

.mm-support-row:hover {
    border-color: var(--mm-primary);
    background: var(--mm-card-hover);
}

.mm-support-badge {
    font-size: 12px;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.14);
    padding: 4px 10px;
    border-radius: 999px;
}

.mm-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--mm-muted);
}

.mm-footer-currency {
    font-weight: 700;
    color: var(--mm-text);
}

.mm-empty-filter {
    padding: 18px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--mm-muted);
    background: var(--mm-card);
    border: 1px dashed var(--mm-border);
    border-radius: 12px;
}