/* =========================================
   global.css - עיצוב בסיסי לכל האתר
   ========================================= */
:root {
    --luxury-gold: #C5A059;
    --luxury-gold-border: #d4af37;
    --bright-gold-active: #ffc107;
    --deep-black: #121212;
    --soft-white: #f8f9fa;
}

html { scroll-padding-top: 100px; overflow-x: clip; }
body { 
    font-family: 'Rubik', sans-serif; 
    scroll-behavior: smooth; 
    background-color: var(--soft-white);
    color: #333;
    cursor: auto;
    padding-bottom: 0;
}

/* --- עזרים --- */
.text-gold { color: var(--bright-gold-active) !important; }
.text-gold-luxury { color: var(--luxury-gold-border) !important; }
.text-secondary { color: #6c757d !important; }
.transition-all { transition: all 0.3s ease-in-out; }
.cursor-pointer { cursor: pointer; }

/* --- סמן עכבר --- */
.cursor-dot { width: 8px; height: 8px; background-color: var(--luxury-gold); }
@media(pointer: fine){
    .cursor-outline { width: 25px; height: 25px; border: 1.5px solid var(--luxury-gold); position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; display: block; transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s; }
}
@media (pointer: coarse), (max-width: 991px) { .cursor-outline, .cursor-dot { display: none !important; } }
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; transition: width 0.3s, height 0.3s, background-color 0.3s; }
body.standard-cursor .cursor-outline, body.standard-cursor .cursor-dot { display: none !important; }
body.standard-cursor { cursor: auto !important; }

/* --- תפריט עליון (Navbar) ולוגו --- */
.navbar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 5px 0 !important; min-height: 60px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: fixed; top: 0; width: 100%; z-index: 1000; transition: transform 0.4s ease-in-out !important; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; }
.navbar.sticky-top, .navbar.fixed-top { position: fixed !important; top: 0; width: 100%; z-index: 1030 !important; }
.navbar--hidden { transform: translateY(-100%) !important; }
.navbar-brand img { height: 70px; width: auto; transition: 0.3s; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.navbar-brand img:hover { transform: scale(1.05) translate3d(0, 0, 0); }

.nav-link { font-size: 1.15rem; font-weight: 600; margin: 0 12px; color: var(--deep-black) !important; transition: 0.3s; position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 5px; left: 50%; background-color: var(--luxury-gold); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); transform: translateX(-50%); box-shadow: 0 2px 5px rgba(197, 160, 89, 0.5); }
.nav-link:hover { color: var(--luxury-gold) !important; text-shadow: 0 0 15px rgba(197, 160, 89, 0.6); transform: translateY(-2px); }
.nav-link:hover::after { width: 80%; }
@media (max-width: 991px) { .navbar-brand img, .kosher-badge { opacity: 1 !important; visibility: visible !important; display: block !important; transform: translateZ(0) !important; will-change: transform; animation: none !important; transition: none !important; } }

/* --- כפתורים וחותמות --- */
.btn-rounded { border-radius: 50px !important; padding: 10px 30px; font-weight: 600; transition: 0.3s; border: none; }
.gift-card-btn { background: linear-gradient(45deg, #ffc107, #ff9800); color: #fff !important; border-radius: 25px; padding: 8px 20px !important; font-weight: bold; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3); text-align: center; display: flex; justify-content: center; align-items: center; }
.gift-card-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5); filter: brightness(1.1); }
.btn-warning, .btn-outline-dark { background-color: var(--luxury-gold) !important; border-color: var(--luxury-gold) !important; color: #000 !important; font-weight: 600; transition: all 0.3s ease-in-out; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.btn-warning:hover, .btn-outline-dark:hover { background-color: #b38f4d !important; border-color: #b38f4d !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4); }

.kosher-badge { position: fixed; top: 120px; right: 20px; background: rgba(255, 255, 255, 0.9); color: #2c3e50; padding: 8px 15px; border-radius: 50px; border: 1px solid var(--luxury-gold); font-size: 0.85rem; font-weight: 600; z-index: 1001; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; backdrop-filter: blur(5px); pointer-events: none; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.kosher-badge i { color: var(--luxury-gold); }
@media (max-width: 768px) { .kosher-badge { position: static; margin: 10px auto; width: fit-content; box-shadow: none; pointer-events: auto; } }

/* --- כותרות מקטעים הכלליות --- */
.section-title { font-weight: 900; color: var(--deep-black); margin-bottom: 60px; font-size: 3rem; text-align: center;}
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--luxury-gold); margin: 15px auto 0; border-radius: 10px; }

/* --- פוטר --- */
.footer-section { background-color: #121212; color: #ffffff; padding: 50px 0 30px; border-top: 1px solid var(--luxury-gold); font-size: 0.9rem; }
.footer-logo { height: 70px; border-radius: 50%; border: 1px solid var(--luxury-gold); }
.footer-links a:hover, .footer-social-small a:hover { color: var(--luxury-gold) !important; text-decoration: underline; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #bbb; text-decoration: none; transition: color 0.3s ease; }
.footer-social-small i { width: 20px; text-align: center; }
.footer-social-small a { color: white; font-size: 1.1rem; transition: color 0.3s ease; }

/* --- חלונות קופצים (Modals כלליים) --- */
.modal { z-index: 100000 !important; }
.modal-dialog { max-height: 85vh !important; margin: 1.75rem auto; }
.modal-content { display: flex; flex-direction: column; height: 90vh; overflow: hidden; border-radius: 20px; }
.modal-header { flex-shrink: 0; display: flex !important; justify-content: space-between !important; align-items: center !important; background: #000; color: #fff; }
.modal-header .modal-title, .modal-header div:first-child { margin-left: auto !important; margin-right: 0 !important; text-align: right !important; }
.modal-header .btn-close { margin-left: 0 !important; margin-right: 15px !important; padding: 0.5rem !important; opacity: 1 !important; }
.modal-body { flex-grow: 1; overflow-y: auto; padding: 20px !important; -webkit-overflow-scrolling: touch; }
.modal-footer { flex-shrink: 0; background: #fff; box-shadow: 0 -5px 15px rgba(0,0,0,0.05); padding: 15px !important; }
/* =========================================
   ביטול זום בלחיצה כפולה על כפתורים במובייל
   (הופך את הלחיצות למהירות ומיידיות כמו באפליקציה)
   ========================================= */
button, 
a, 
input, 
select, 
textarea, 
.qty-btn, 
.dubai-size-btn,
.cat-pill {
    touch-action: manipulation !important;
}

/* --- חנות סגורה --- */
#store-closed-banner { 
    display: none; 
    background: linear-gradient(to right, #111, #222); /* עיצוב שחור-זהב יוקרתי */
    color: #fff; 
    text-align: center; 
    padding: 12px 20px; 
    font-weight: 500;
    font-size: 1.05rem;
    position: fixed; /* מקבע אותו לגלילה */
    top: 75px; /* דוחף אותו למטה בדיוק אל מתחת ל-Navbar! */
    left: 0;
    width: 100%;
    z-index: 990; /* פחות מה-Navbar (1000) כדי שלא יסתיר תפריטים נפתחים */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    border-bottom: 2px solid var(--luxury-gold);
}
.store-closed .btn-warning, .store-closed .btn-gold-outline, .store-closed .btn-gold-solid { display: none !important; }
.store-closed .yogurt-size-card::after, .store-closed .size-card::after, .store-closed .product-card::after { content: "סגור כעת 🥭"; display: block; color: #dc3545; font-weight: bold; font-size: 0.9rem; margin-top: 15px; text-align: center; padding: 10px; border: 1px dashed #dc3545; border-radius: 10px; background: #fff5f5; }

/* =========================================
   מערכת כפתורים צפים חכמה (עגלה + נגישות)
   ========================================= */
.floating-buttons-container { 
    position: fixed; 
    bottom: 25px; 
    left: 25px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    z-index: 9999; 
}
.floating-btn { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative; 
    border: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.floating-btn:hover { 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* עיצוב כפתור העגלה הצף - שחור וזהב */
.cart-btn-float { 
    background-color: var(--deep-black); 
    color: var(--luxury-gold); 
    border: 2px solid var(--luxury-gold);
}

/* עיצוב כפתור הנגישות הצף - כחול מודרני */
.access-btn-float { 
    background-color: #1864b8; 
    color: #fff; 
}

/* מספר הקאונטר על העגלה - אטום לחלוטין ובולט */
.cart-count-badge { 
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background-color: #dc3545 !important; 
    color: #fff !important; 
    font-size: 0.85rem; 
    font-weight: 900; 
    min-width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    border: 2px solid #fff; 
    opacity: 1 !important; 
    z-index: 10; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

/* --- תפריט נגישות מודרני --- */
/* עיצוב הקופסה (התפריט עצמו) */
.accessibility-menu-modern { 
    position: fixed; 
    bottom: 95px; 
    left: 25px; 
    background: #fff; 
    padding: 20px; 
    border-radius: 15px; 
    width: 280px; 
    display: none; 
    z-index: 9999; 
    direction: rtl; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05); 
}

.accessibility-menu-modern h5 { 
    color: #1864b8; 
}

/* עיצוב לכפתורי הנגישות (אך ורק להם, לא לכפתור ה-X של הסגירה) */
.accessibility-menu-modern button:not(.btn-close) { 
    display: block; 
    width: 100%; 
    margin-bottom: 8px; 
    padding: 12px 15px; 
    cursor: pointer; 
    background: #f8f9fa; 
    border: 1px solid #e9ecef; 
    border-radius: 10px; 
    transition: 0.2s; 
    font-weight: 600; 
    color: #333; 
    text-align: right; 
}

.accessibility-menu-modern button:not(.btn-close) i { 
    opacity: 0.7; 
}

.accessibility-menu-modern button:not(.btn-close):hover { 
    background: #e2e6ea; 
}

/* עיצוב כשהכפתור לחוץ/פעיל */
.accessibility-menu-modern button.active-mode:not(.btn-close) { 
    background: #eef2f7; 
    color: #0d47a1; 
    border-color: #1864b8; 
    box-shadow: inset 0 0 0 1px #1864b8; 
}

/* מצבי הנגישות ב-JS */
body.high-contrast { background: black !important; color: yellow !important; }
body.high-contrast * { background-color: black !important; color: yellow !important; border-color: yellow !important; }
body.stop-animations *, body.stop-animations *::before, body.stop-animations *::after { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
body.stop-animations *:hover { transform: none !important; transition: none !important; scale: 1 !important; }
body.stop-animations video { animation: none !important; }

/* הסתרת כפתור נגישות ותיק הישן למניעת כפילויות */
#accessibility-btn:not(.access-btn-float) { display: none !important; }
.accessibility-menu { display: none !important; }



/* מוודא שההתראות של SweetAlert תמיד יקפצו מעל המודלים של האתר */
.swal2-container {
    z-index: 99999 !important;
}




/* =========================================
   תפריט המבורגר צדדי (Offcanvas Menu)
   ========================================= */

/* כפתור פתיחת התפריט */
.menu-trigger-btn {
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
    padding: 5px;
}
.menu-trigger-btn:active {
    transform: scale(0.85);
}
.menu-trigger-btn i {
    color: var(--coffee-text) !important;
}
.menu-trigger-btn:hover i {
    color: var(--luxury-gold) !important;
}

/* עיצוב התפריט עצמו */
.custom-side-menu {
    background-color: #fdfbf5;
    border-right: 3px solid var(--luxury-gold);
    max-width: 320px; /* שומר שלא יהיה רחב מדי במסכים גדולים */
}

.side-menu-logo {
    height: 45px;
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.side-menu-list li {
    margin-bottom: 10px;
}

.side-menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: transparent;
}

.side-menu-list a i {
    width: 30px;
    color: var(--luxury-gold);
    font-size: 1.25rem;
    margin-left: 15px; /* מרווח בעברית */
    transition: 0.3s;
}

/* אפקט במעבר עכבר */
.side-menu-list a:hover {
    background-color: #fff;
    color: var(--luxury-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transform: translateX(-5px); /* תזוזה קלה שמאלה בעברית */
}

/* קופסת קידום האפליקציה למטה */
.app-promo-box {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.08);
}

.app-download-btn {
    background: #111;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.app-download-btn:hover {
    background: var(--luxury-gold);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}