/* ===== Location Gate Popup ===== */
#ms-location-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

#ms-location-modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    max-width: 580px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

#ms-location-modal h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #2c5f2e;
}

#ms-location-modal p {
    color: #666;
    margin-bottom: 24px;
}

.ms-region-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.ms-region-tab {
    padding: 8px 20px;
    border: 2px solid #2c5f2e;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    background: #fff;
    color: #2c5f2e;
    transition: all 0.2s;
}

.ms-region-tab.active,
.ms-region-tab:hover {
    background: #2c5f2e;
    color: #fff;
}

.ms-locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
    padding: 4px;
}

.ms-location-btn {
    padding: 12px 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
    color: #333 !important;
    font-family: inherit;
}

.ms-location-btn:hover,
.ms-location-btn.selected {
    border-color: #2c5f2e;
    background: #f0f7f0;
    color: #2c5f2e !important;
    font-weight: 600;
}

#ms-confirm-location {
    background: #2c5f2e;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

#ms-confirm-location:hover {
    background: #1e4220;
}

#ms-confirm-location:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ===== פס מיקום — קבוע בראש הדף ===== */
#ms-location-bar {
    background: #2c5f2e;
    color: #fff;
    text-align: center;
    padding: 18px 20px;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    direction: rtl;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 99998;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#ms-location-bar strong {
    font-size: 1.65rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#ms-location-bar-icon {
    font-size: 1.3rem;
}

#ms-change-location {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

#ms-change-location:hover {
    background: rgba(255,255,255,0.35);
}

/* דחיפת תוכן הדף למטה */
body {
    padding-top: 100px !important;
}

/* כשיש admin bar */
.admin-bar #ms-location-bar {
    top: 32px;
}

.admin-bar body {
    padding-top: 132px !important;
}

/* ===== עגלת קניות צפה ===== */
#ms-cart-bubble {
    position: fixed;
    top: 110px;
    left: 20px;
    z-index: 99997;
    background: #ff6b00;
    color: #fff;
    border-radius: 50px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    direction: rtl;
}

.admin-bar #ms-cart-bubble {
    top: 142px;
}

#ms-cart-bubble:hover {
    background: #e05a00;
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}

#ms-cart-bubble .ms-cart-icon {
    font-size: 1.5rem;
}

#ms-cart-bubble .ms-cart-count {
    background: #fff;
    color: #ff6b00;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
}
