/**
 * MP Fixed Menu — CSS Design System
 * 1. Fatmanın Bahçesi (Floating Capsule with Elevated Cart)
 * 2. Şerife Hatun (Flat Bottom Dock)
 */

/* ==========================================================================
   GENEL TEMEL STİLLER (BASE)
   ========================================================================== */

#mp-fixed-menu {
    position: fixed !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    left: 0;
    right: 0;
    margin: 0 auto;
}

#mp-fixed-menu * {
    box-sizing: border-box;
}

.mp-fm-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.mp-fm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.15s ease;
    padding: 4px 2px;
}

.mp-fm-item:active {
    transform: scale(0.92);
}

.mp-fm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s ease;
    line-height: 1;
}

.mp-fm-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.2s ease, fill 0.2s ease;
}

.mp-fm-label {
    font-size: 10.5px;
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: -0.01em;
}

/* Badge (Favori & Sepet rozetleri) */
.mp-fm-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--mp-fm-badge-bg, #ef4444);
    color: var(--mp-fm-badge-text, #ffffff);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   TASARIM 1: YÜZEN KAVİSLİ KAPSÜL (FLOATING CAPSULE)
   ========================================================================== */

.mp-style-floating-capsule,
.mp-style-floating_capsule {
    position: fixed !important;
    bottom: var(--mp-fm-bottom, 14px) !important;
    left: 12px !important;
    right: 12px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    background: var(--mp-fm-bg, #0f172a) !important;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 36px !important;
    padding: 6px 8px 6px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42), 0 4px 14px rgba(0, 0, 0, 0.2) !important;
    z-index: 99999 !important;
    border: 1px solid var(--mp-fm-border, rgba(255, 255, 255, 0.08)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mp-style-floating-capsule .mp-fm-item,
.mp-style-floating_capsule .mp-fm-item {
    color: var(--mp-fm-text, #94a3b8) !important;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.mp-style-floating-capsule .mp-fm-item:hover,
.mp-style-floating_capsule .mp-fm-item:hover {
    opacity: 1 !important;
    color: var(--mp-fm-hover, #ffa41c) !important;
}

.mp-style-floating-capsule .mp-fm-item:hover .mp-fm-icon svg,
.mp-style-floating_capsule .mp-fm-item:hover .mp-fm-icon svg {
    stroke: var(--mp-fm-hover, #ffa41c) !important;
}

.mp-style-floating-capsule .mp-fm-item:hover .mp-fm-label,
.mp-style-floating_capsule .mp-fm-item:hover .mp-fm-label {
    color: var(--mp-fm-hover, #ffa41c) !important;
}

.mp-style-floating-capsule .mp-fm-item.active,
.mp-style-floating_capsule .mp-fm-item.active {
    opacity: 1 !important;
    color: var(--mp-fm-active, #f59e0b) !important;
}

.mp-style-floating-capsule .mp-fm-item.active .mp-fm-icon svg,
.mp-style-floating_capsule .mp-fm-item.active .mp-fm-icon svg {
    stroke: var(--mp-fm-active, #f59e0b) !important;
}

.mp-style-floating-capsule .mp-fm-item.active .mp-fm-label,
.mp-style-floating_capsule .mp-fm-item.active .mp-fm-label {
    color: var(--mp-fm-active, #f59e0b) !important;
}

/* Orta Çıkıntılı Sepet Butonu */
.mp-style-floating-capsule .mp-fm-item-cart,
.mp-style-floating_capsule .mp-fm-item-cart {
    opacity: 1 !important;
    position: relative;
    padding: 0 !important;
}

.mp-style-floating-capsule .mp-fm-cart-circle,
.mp-style-floating_capsule .mp-fm-cart-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--mp-fm-cart-bg, #f59e0b) !important;
    background-image: linear-gradient(135deg, #ffa41c 0%, #f59e0b 60%, #d97706 100%) !important;
    color: var(--mp-fm-cart-icon, #0f172a) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -26px;
    border: 3.5px solid var(--mp-fm-bg, #0f172a) !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    position: relative;
}

.mp-style-floating-capsule .mp-fm-cart-circle:hover,
.mp-style-floating_capsule .mp-fm-cart-circle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.65) !important;
}

.mp-style-floating-capsule .mp-fm-cart-circle:active,
.mp-style-floating_capsule .mp-fm-cart-circle:active {
    transform: scale(0.95);
}

.mp-style-floating-capsule .mp-fm-cart-svg svg,
.mp-style-floating_capsule .mp-fm-cart-svg svg {
    stroke: var(--mp-fm-cart-icon, #0f172a) !important;
    width: 24px;
    height: 24px;
}

.mp-style-floating-capsule .mp-fm-cart-badge,
.mp-style-floating_capsule .mp-fm-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--mp-fm-badge-bg, #0f172a);
    color: var(--mp-fm-badge-text, #ffffff);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffa41c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mp-style-floating-capsule .mp-fm-item-cart .mp-fm-label,
.mp-style-floating_capsule .mp-fm-item-cart .mp-fm-label {
    margin-top: 1px;
    color: var(--mp-fm-text, #94a3b8) !important;
    transition: color 0.2s ease;
}

.mp-style-floating-capsule .mp-fm-item-cart:hover .mp-fm-label,
.mp-style-floating_capsule .mp-fm-item-cart:hover .mp-fm-label {
    color: var(--mp-fm-hover, #fbbf24) !important;
}

/* ==========================================================================
   TASARIM 2: DÜZ MİNİMAL ALT DOCK (FLAT DOCK)
   ========================================================================== */

.mp-style-flat-dock,
.mp-style-flat_dock {
    position: fixed !important;
    bottom: var(--mp-fm-bottom, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: var(--mp-fm-bg, #ffffff) !important;
    border-top: 1px solid var(--mp-fm-border, rgba(0, 0, 0, 0.08)) !important;
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.06) !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)) !important;
}

.mp-style-flat-dock .mp-fm-item,
.mp-style-flat_dock .mp-fm-item {
    color: var(--mp-fm-text, #475569) !important;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s ease;
}

.mp-style-flat-dock .mp-fm-item:hover,
.mp-style-flat_dock .mp-fm-item:hover {
    color: var(--mp-fm-hover, #fbbf24) !important;
}

.mp-style-flat-dock .mp-fm-item:hover .mp-fm-icon svg,
.mp-style-flat_dock .mp-fm-item:hover .mp-fm-icon svg {
    stroke: var(--mp-fm-hover, #fbbf24) !important;
}

.mp-style-flat-dock .mp-fm-item:hover .mp-fm-label,
.mp-style-flat_dock .mp-fm-item:hover .mp-fm-label {
    color: var(--mp-fm-hover, #fbbf24) !important;
}

.mp-style-flat-dock .mp-fm-item.active,
.mp-style-flat_dock .mp-fm-item.active {
    color: var(--mp-fm-active, #d97706) !important;
}

.mp-style-flat-dock .mp-fm-item.active .mp-fm-icon svg,
.mp-style-flat_dock .mp-fm-item.active .mp-fm-icon svg {
    stroke: var(--mp-fm-active, #d97706) !important;
}

.mp-style-flat-dock .mp-fm-item.active .mp-fm-label,
.mp-style-flat_dock .mp-fm-item.active .mp-fm-label {
    color: var(--mp-fm-active, #d97706) !important;
}

/* Aktif gösterge çizgisi */
.mp-style-flat-dock .mp-fm-item.active::after,
.mp-style-flat_dock .mp-fm-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--mp-fm-active, #d97706);
}

.mp-style-flat-dock .mp-fm-cart-circle,
.mp-style-flat_dock .mp-fm-cart-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mp-style-flat-dock .mp-fm-cart-svg svg,
.mp-style-flat_dock .mp-fm-cart-svg svg {
    stroke: currentColor !important;
    width: 22px;
    height: 22px;
}

.mp-style-flat-dock .mp-fm-cart-badge,
.mp-style-flat_dock .mp-fm-cart-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--mp-fm-cart-bg, #d97706);
    color: var(--mp-fm-cart-icon, #ffffff);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   TASARIM 3: TAM GENİŞLİK TABAN DOCK & ÇIKINTILI SEPET (FULLWIDTH ELEVATED)
   ========================================================================== */

.mp-style-fullwidth-elevated,
.mp-style-fullwidth_elevated {
    position: fixed !important;
    bottom: var(--mp-fm-bottom, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: var(--mp-fm-bg, #0f172a) !important;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--mp-fm-border, rgba(255, 255, 255, 0.08)) !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.35) !important;
    z-index: 99999 !important;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mp-style-fullwidth-elevated .mp-fm-item,
.mp-style-fullwidth_elevated .mp-fm-item {
    color: var(--mp-fm-text, #94a3b8) !important;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.mp-style-fullwidth-elevated .mp-fm-item:hover,
.mp-style-fullwidth_elevated .mp-fm-item:hover {
    opacity: 1 !important;
    color: var(--mp-fm-hover, #ffa41c) !important;
}

.mp-style-fullwidth-elevated .mp-fm-item:hover .mp-fm-icon svg,
.mp-style-fullwidth_elevated .mp-fm-item:hover .mp-fm-icon svg {
    stroke: var(--mp-fm-hover, #ffa41c) !important;
}

.mp-style-fullwidth-elevated .mp-fm-item:hover .mp-fm-label,
.mp-style-fullwidth_elevated .mp-fm-item:hover .mp-fm-label {
    color: var(--mp-fm-hover, #ffa41c) !important;
}

.mp-style-fullwidth-elevated .mp-fm-item.active,
.mp-style-fullwidth_elevated .mp-fm-item.active {
    opacity: 1 !important;
    color: var(--mp-fm-active, #f59e0b) !important;
}

.mp-style-fullwidth-elevated .mp-fm-item.active .mp-fm-icon svg,
.mp-style-fullwidth_elevated .mp-fm-item.active .mp-fm-icon svg {
    stroke: var(--mp-fm-active, #f59e0b) !important;
}

.mp-style-fullwidth-elevated .mp-fm-item.active .mp-fm-label,
.mp-style-fullwidth_elevated .mp-fm-item.active .mp-fm-label {
    color: var(--mp-fm-active, #f59e0b) !important;
}

/* Orta Çıkıntılı Sepet Butonu */
.mp-style-fullwidth-elevated .mp-fm-item-cart,
.mp-style-fullwidth_elevated .mp-fm-item-cart {
    opacity: 1 !important;
    position: relative;
    padding: 0 !important;
}

.mp-style-fullwidth-elevated .mp-fm-cart-circle,
.mp-style-fullwidth_elevated .mp-fm-cart-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--mp-fm-cart-bg, #f59e0b) !important;
    background-image: linear-gradient(135deg, #ffa41c 0%, #f59e0b 60%, #d97706 100%) !important;
    color: var(--mp-fm-cart-icon, #0f172a) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -26px;
    border: 3.5px solid var(--mp-fm-bg, #0f172a) !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    position: relative;
}

.mp-style-fullwidth-elevated .mp-fm-cart-circle:hover,
.mp-style-fullwidth_elevated .mp-fm-cart-circle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.65) !important;
}

.mp-style-fullwidth-elevated .mp-fm-cart-circle:active,
.mp-style-fullwidth_elevated .mp-fm-cart-circle:active {
    transform: scale(0.95);
}

.mp-style-fullwidth-elevated .mp-fm-cart-svg svg,
.mp-style-fullwidth_elevated .mp-fm-cart-svg svg {
    stroke: var(--mp-fm-cart-icon, #0f172a) !important;
    width: 24px;
    height: 24px;
}

.mp-style-fullwidth-elevated .mp-fm-cart-badge,
.mp-style-fullwidth_elevated .mp-fm-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--mp-fm-badge-bg, #0f172a);
    color: var(--mp-fm-badge-text, #ffffff);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffa41c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mp-style-fullwidth-elevated .mp-fm-item-cart .mp-fm-label,
.mp-style-fullwidth_elevated .mp-fm-item-cart .mp-fm-label {
    margin-top: 1px;
    color: var(--mp-fm-text, #94a3b8) !important;
    transition: color 0.2s ease;
}

.mp-style-fullwidth-elevated .mp-fm-item-cart:hover .mp-fm-label,
.mp-style-fullwidth_elevated .mp-fm-item-cart:hover .mp-fm-label {
    color: var(--mp-fm-hover, #fbbf24) !important;
}

/* ==========================================================================
   SMART SCROLL HIDE
   ========================================================================== */

#mp-fixed-menu.mp-fm-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
