/* ==========================================================================
   הגדרות בסיס ומשתנים (Global Variables) - עיצוב מודרני
   ========================================================================== */
:root {
    /* --- פלטת צבעים מקצועית לחנות --- */
    
    --primary-color: #2c3e50;
    --primary-light: #3d566e;
    --primary-dark: #1a252f;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #098ae5;
    --gold-color: #d4a853;
    
    /* --- צבעי רקע --- */
    --bg-light: #F9F8F6;
    --bg-white: #ffffff;
    --bg-gray-50: #fafafa;
    --bg-gray-100: #f4f4f5;
    --bg-gray-200: #e4e4e7;
    
    /* --- צבעי וואטסאפ --- */
    --whatsapp-green: #54C644;
    --whatsapp-dark: #41A332;
    --whatsapp-light: #dcfce7;
    
    /* --- צבעי טקסט --- */
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --text-light: #ffffff;
    
    /* --- הגדרות ניהול --- */
    --admin-bg: #F9F8F6;
    --sidebar-width: 280px;
    --sidebar-bg: #ffffff;
    --sidebar-active: #2c3e50;
    --sidebar-hover: #f4f4f5;
    
    /* --- גבולות ורווחים --- */
    --container-max-width: 1280px;
    --spacing-mobile: 16px;
    --spacing-desktop: 32px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* --- צללים --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* --- טיפוגרפיה --- */
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* --- טרנזישנים --- */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    box-sizing: border-box;
}

body { 
    font-family: var(--font-family);
    overflow-x: hidden;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   ממשק ניהול (Admin Interface) - משופר
   ========================================= */
body.admin-body { 
    background-color: var(--admin-bg); 
    height: 100vh; 
    overflow: hidden; 
}

.wrapper { 
    display: flex; 
    height: 100%; 
}

/* Sidebar משופר */
.sidebar { 
    width: var(--sidebar-width); 
    background: var(--sidebar-bg); 
    border-left: 1px solid var(--bg-gray-200); 
    display: flex; 
    flex-direction: column; 
    transition: transform var(--transition-base); 
    z-index: 1050;
    box-shadow: var(--shadow-md);
}

.sidebar .p-4 {
    background: linear-gradient(135deg, var(--sidebar-active) 0%, var(--primary-light) 100%);
    color: white;
    border-bottom: none;
}

.sidebar .p-4 h4 {
    color: white;
    font-weight: var(--font-weight-bold);
}

.main-content { 
    flex: 1; 
    overflow-y: auto; 
    padding: var(--spacing-desktop); 
    width: 100%;
    background: var(--admin-bg);
}

/* Navigation Links משופרים */
.nav-link { 
    color: var(--text-secondary); 
    padding: 14px 20px; 
    margin: 6px 12px; 
    border-radius: var(--border-radius-sm); 
    font-weight: var(--font-weight-medium); 
    transition: all var(--transition-fast); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    border: none; 
    background: none; 
    width: auto;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--sidebar-active);
    border-radius: 2px 0 0 2px;
    transition: height var(--transition-fast);
}

.nav-link:hover { 
    background-color: var(--sidebar-hover); 
    color: var(--text-primary); 
    transform: translateX(-2px);
}

.nav-link.active { 
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    color: var(--sidebar-active); 
    font-weight: var(--font-weight-semibold);
}

.nav-link.active::before {
    height: 60%;
}

.nav-link i { 
    width: 24px; 
    text-align: center; 
    font-size: 1.1rem;
}

/* Admin Gallery משופר */
.gallery-item-wrapper { 
    cursor: pointer; 
    position: relative; 
    transition: transform var(--transition-fast);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.gallery-item-wrapper:hover { 
    transform: scale(1.05); 
}

/* Gallery Items in Product Form */
.gallery-item {
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: visible;
}

.gallery-item:hover {
    transform: scale(1.08) !important;
    z-index: 10;
}

.gallery-item img,
.gallery-item video {
    transition: all var(--transition-fast);
}

.gallery-item:hover img,
.gallery-item:hover video {
    box-shadow: var(--shadow-lg) !important;
}

.gallery-edit-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.6); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: opacity var(--transition-fast); 
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(4px);
}

.gallery-item-wrapper:hover .gallery-edit-overlay { 
    opacity: 1; 
}

.gallery-edit-overlay i { 
    color: white; 
    font-size: 1.5rem; 
    transition: transform var(--transition-fast);
}

.gallery-item-wrapper:hover .gallery-edit-overlay i {
    transform: scale(1.1);
}

/* Admin Components משופרים */
.product-thumb { 
    width: 56px; 
    height: 56px; 
    border-radius: var(--border-radius-sm); 
    object-fit: cover; 
    border: 2px solid var(--bg-gray-200);
    transition: all var(--transition-fast);
    background: var(--bg-gray-100);
}

.product-thumb:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* טבלאות משופרות */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-gray-50);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 16px;
    border-bottom: 2px solid var(--bg-gray-200);
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bg-gray-100);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.card { 
    border: none; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base);
    background: var(--bg-white);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.table-hover tbody tr { 
    transition: all var(--transition-fast);
}

.table-hover tbody tr:hover { 
    background-color: var(--bg-gray-50);
    transform: scale(1.01);
}

.admin-link-float { 
    position: fixed; 
    bottom: 24px; 
    left: 24px; 
    z-index: 1000; 
    opacity: 0.85; 
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    border-radius: 50px;
}

.admin-link-float:hover { 
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Admin Mobile משופר */
@media (max-width: 768px) {
    .sidebar { 
        position: fixed; 
        top: 0; 
        right: 0; 
        bottom: 0; 
        transform: translateX(100%); 
        box-shadow: var(--shadow-xl);
        z-index: 1050;
    }
    
    .sidebar.show { 
        transform: translateX(0); 
    }
    
    .sidebar-backdrop { 
        position: fixed; 
        top: 0; 
        left: 0; 
        right: 0; 
        bottom: 0; 
        background: rgba(0,0,0,0.5); 
        z-index: 1040; 
        display: none;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-backdrop.show { 
        display: block; 
    }
    
    .main-content { 
        padding: var(--spacing-mobile); 
    }
    
    .table-responsive { 
        border: 1px solid var(--bg-gray-200); 
        border-radius: var(--border-radius); 
        background: var(--bg-white);
        box-shadow: var(--shadow-sm);
    }
    
    .table td, .table th { 
        white-space: nowrap; 
        padding: 12px 8px;
    }
}

/* Utils משופרים */
.loading-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(255,255,255,0.95); 
    z-index: 9999; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(4px);
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
}

.toast-container { 
    z-index: 1060 !important; 
}

/* =========================================
   חנות וקטלוג (Shop Layout) - משופר
   ========================================= */

/* --- באנר (Hero) משופר --- */
.hero-section { 
    position: relative; 
    width: 100%; 
    max-width: var(--container-max-width); 
    margin: 2rem auto 3rem; 
    padding: 0 var(--spacing-mobile);
}

main.container { 
    max-width: var(--container-max-width) !important; 
    padding-left: var(--spacing-mobile) !important; 
    padding-right: var(--spacing-mobile) !important; 
}

#mainCarousel {
    width: 100%; 
    aspect-ratio: 2.8 / 1; 
    border-radius: var(--border-radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-xl);
    position: relative;
}

@media (max-width: 768px) { 
    #mainCarousel { 
        aspect-ratio: 1.6 / 1;
        border-radius: var(--border-radius);
    } 
}

.carousel-item { 
    height: 100%; 
    position: relative;
}

.carousel-item img, 
.carousel-item video { 
    object-fit: cover; 
    height: 100%; 
    width: 100%; 
    filter: brightness(0.75);
    transition: filter var(--transition-slow);
}

.carousel-item.active img,
.carousel-item.active video {
    filter: brightness(0.85);
}

@media (min-width: 768px) { 
    .hero-section { 
        padding: 0 var(--spacing-desktop); 
    } 
    
    main.container { 
        padding-left: var(--spacing-desktop) !important; 
        padding-right: var(--spacing-desktop) !important; 
    } 
}

/* טקסט באנר משופר */
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-start; 
    text-align: right; 
    color: white; 
    z-index: 10; 
    pointer-events: none; 
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}

.hero-overlay h1 { 
    font-size: clamp(2rem, 5vw, 4rem); 
    font-weight: var(--font-weight-bold) !important; 
    margin-bottom: 12px; 
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-overlay p { 
    font-size: clamp(1rem, 2.5vw, 1.5rem); 
    font-weight: var(--font-weight-normal); 
    opacity: 0.95; 
    max-width: 600px; 
    margin-bottom: 0 !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

#mainCarousel .carousel-indicators { 
    margin-bottom: 2rem; 
    z-index: 11; 
}

#mainCarousel .carousel-indicators button { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background-color: rgba(255,255,255,0.4); 
    border: 2px solid rgba(255,255,255,0.6);
    margin: 0 6px; 
    transition: all var(--transition-base);
    opacity: 0.7;
}

#mainCarousel .carousel-indicators button:hover {
    opacity: 1;
    transform: scale(1.2);
}

#mainCarousel .carousel-indicators button.active { 
    background-color: white; 
    transform: scale(1.3);
    opacity: 1;
    border-color: white;
}

#mainCarousel .carousel-control-prev, 
#mainCarousel .carousel-control-next { 
    width: 60px; 
    z-index: 11;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

#mainCarousel:hover .carousel-control-prev,
#mainCarousel:hover .carousel-control-next {
    opacity: 1;
}

#mainCarousel .carousel-control-prev-icon,
#mainCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

/* סינון קטגוריות משופר */
#categoryFilter {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    direction: rtl;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

#categoryFilter .btn {
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    border: 2px solid var(--bg-gray-200);
    white-space: nowrap;
}

#categoryFilter .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#categoryFilter .btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

#categoryFilter .btn-outline-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
}

#categoryFilter .btn-outline-secondary:hover {
    background: var(--bg-gray-50);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- פילטר תקציב משודרג --- */
.budget-filter-container {
    margin-bottom: 1.5rem;
    perspective: 1000px;
}

.budget-filter-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    background-size: 200% 200%;
    border-radius: var(--border-radius-lg);
    padding: 20px 28px;
    box-shadow: 
        0 10px 40px -10px rgba(44, 62, 80, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* אפקט זוהר עדין */
.budget-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* כוכבים קטנים ברקע */
.budget-filter-card::after {
    content: '✦';
    position: absolute;
    top: 10px;
    left: 15%;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.budget-filter-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.budget-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.budget-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.budget-text {
    display: flex;
    flex-direction: column;
    color: white;
    gap: 2px;
}

.budget-label {
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.budget-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: var(--font-weight-normal);
}

/* הסתרת חיצי ספינר בשדה תקציב */
.budget-input::-webkit-outer-spin-button,
.budget-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.budget-input[type=number] {
    -moz-appearance: textfield;
}

.budget-category-select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    cursor: pointer;
    min-width: 130px;
    height: 44px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.budget-category-select:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.budget-category-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.budget-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 10px 20px;
    gap: 8px;
    min-width: 130px;
    height: 44px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.budget-input-group:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.budget-input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.budget-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    background: transparent;
    text-align: center;
}

.budget-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.budget-currency {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.budget-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(52, 152, 219, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
}

.budget-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.budget-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.budget-btn:hover::before {
    left: 100%;
}

.budget-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.budget-clear-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.budget-clear-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.budget-result-text {
    text-align: center;
    padding: 16px 24px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--bg-white), var(--bg-gray-50));
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--bg-gray-200);
    animation: slideDown 0.3s ease;
    color: var(--primary-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* רספונסיביות לפילטר תקציב */
@media (max-width: 768px) {
    .budget-filter-card {
        padding: 16px 18px;
        border-radius: var(--border-radius);
    }
    
    .budget-filter-card::after {
        display: none;
    }
    
    .budget-filter-content {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    
    .budget-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 10px;
    }
    
    .budget-text {
        flex: 1;
        text-align: right;
    }
    
    .budget-label {
        font-size: 0.95rem;
    }
    
    .budget-subtitle {
        font-size: 0.7rem;
    }
    
    .budget-category-select,
    .budget-input-group {
        min-width: 100px;
        height: 38px;
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .budget-btn {
        padding: 10px 16px;
        height: 38px;
    }
    
    .budget-btn span {
        display: none;
    }
    
    .budget-clear-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .budget-filter-card {
        padding: 16px;
    }
    
    .budget-filter-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .budget-icon {
        display: none;
    }
    
    .budget-text {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    .budget-label {
        font-size: 1.1rem;
        display: block;
        margin-bottom: 2px;
    }
    
    .budget-subtitle {
        font-size: 0.85rem;
        display: block;
    }
    
    /* שורת הקפסולות */
    .budget-filter-content::after {
        content: '';
        display: none;
    }
    
    .budget-category-select,
    .budget-input-group,
    .budget-btn,
    .budget-clear-btn {
        order: 10;
    }
    
    .budget-category-select {
        flex: 1;
        min-width: 0;
        height: 40px;
    }
    
    .budget-input-group {
        flex: 1;
        min-width: 0;
        height: 40px;
    }
    
    .budget-btn {
        height: 40px;
        padding: 8px 16px;
        flex-shrink: 0;
    }
    
    .budget-clear-btn {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    /* סידור הקפסולות בשורה */
    .budget-filter-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .budget-text {
        flex-basis: 100%;
    }
}

/* --- כרטיס מוצר משופר --- */
.product-card { 
    border: none; 
    border-radius: var(--border-radius-lg); 
    background: var(--bg-white); 
    transition: all var(--transition-base); 
    height: 100%; 
    overflow: hidden; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-xl);
}

/* תמונת כרטיס משופרת */
.card-img-wrapper { 
    width: 100%; 
    aspect-ratio: 4 / 5; 
    background: transparent;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    padding: 12px; 
    position: relative;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .card-img-wrapper::after {
    opacity: 0;
}

.card-img-wrapper img, 
.card-img-wrapper video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-sm);
}

.product-card:hover .card-img-wrapper img,
.product-card:hover .card-img-wrapper video { 
    transform: none; 
}

.badge-discount { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white; 
    padding: 6px 14px; 
    border-radius: 50px; 
    font-weight: var(--font-weight-bold); 
    font-size: 0.8rem; 
    z-index: 2; 
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* גוף כרטיס משופר */
.card-body { 
    padding: 16px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.product-name { 
    font-weight: var(--font-weight-bold); 
    font-size: 1.05rem; 
    color: var(--text-primary); 
    margin-bottom: 4px; 
    line-height: 1.3; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.product-model { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-bottom: 8px;
    font-weight: var(--font-weight-normal);
}

.more-details-link {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 8px;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
}

.more-details-link:hover {
    text-decoration: underline;
}

.bulk-discount-text { 
    font-size: 0.8rem; 
    color: var(--warning-color); 
    font-weight: var(--font-weight-semibold); 
    margin-top: 4px; 
    line-height: 1.3;
}

/* כפתורי כרטיס משופרים */
.action-row { 
    display: flex; 
    gap: 8px; 
    width: 100%; 
    margin-top: 12px; 
}

.btn-card-action { 
    flex: 1; 
    height: 40px; 
    border-radius: var(--border-radius-sm); 
    font-size: 0.875rem; 
    font-weight: var(--font-weight-semibold); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    border: 2px solid transparent; 
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-whatsapp { 
    background: linear-gradient(135deg, var(--whatsapp-light) 0%, #ecfdf5 100%);
    color: var(--whatsapp-dark); 
    border-color: var(--whatsapp-light);
}

.btn-whatsapp:hover { 
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark) 100%);
    color: white; 
    border-color: var(--whatsapp-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cart { 
    background: var(--bg-white); 
    color: var(--text-primary); 
    border-color: var(--bg-gray-200);
}

.btn-cart:hover { 
    background: var(--primary-color); 
    color: white; 
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   מודל מוצר (החלון הקופץ) - משופר
   ========================================= */

@media (min-width: 768px) {
    #productDetailsModal .modal-dialog {
        max-width: 520px;
        margin: 1.75rem auto;
    }
}

#productDetailsModal .modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    background-color: white !important;
}

#productDetailsModal .modal-content,
#productDetailsModal .modal-body {
    background-color: white !important;
}

#productDetailsModal .modal-dialog {
    background-color: transparent !important;
}

#productDetailsModal .bg-light {
    background-color: white !important;
}

#productDetailsModal .modal-body .row {
    background-color: white !important;
}

#productDetailsModal .row > .col-md-6 {
    flex-direction: column !important;
}

#productDetailsModal .col-md-6 {
    width: 100% !important; 
    max-width: 100% !important; 
    padding: 0 !important;
}

#modalMediaContainer {
    min-height: auto !important; 
    height: auto !important; 
    background-color: white !important; 
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#productDetailsModal .col-md-6.bg-light {
    background-color: white !important;
}

/* --- תמונת המוצר במודל משופרת --- */
.modal-slider-content {
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 40px 50px 15px 50px;
}

.modal-product-img {
    width: 100%; 
    max-width: 300px;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover; 
    border-radius: 16px; 
    cursor: zoom-in;
    display: block;
}

.modal-product-img:hover { 
    /* ללא אנימציה */
}

/* --- Lightbox להגדלת תמונה --- */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.image-lightbox img,
.image-lightbox video {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#modalProductCarousel .carousel-item {
    background-color: white !important; 
    transition: transform var(--transition-base);
    height: auto; 
    min-height: auto;
}

#modalProductCarousel {
    background-color: white !important;
}

/* --- אזור הטקסט במודל --- */
#productDetailsModal .col-md-6:last-child {
    padding: 0 24px 24px 24px !important;
    text-align: right;
    background: var(--bg-white);
}

#productDetailsModal h3#modalName {
    margin-top: 0 !important; 
    margin-bottom: 8px !important;
    font-size: 1.75rem; 
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

#modalModel, 
#productDetailsModal .product-model {
    margin-bottom: 12px !important; 
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modal-price-area { 
    font-size: 1.75rem; 
    font-weight: var(--font-weight-bold); 
    color: var(--text-primary); 
    margin-top: 0 !important; 
    margin-bottom: 16px !important;
}

.modal-old-price { 
    font-size: 1rem; 
    color: var(--text-muted); 
    text-decoration: line-through; 
    margin-left: 12px;
    font-weight: var(--font-weight-normal);
}

.bulk-discount-text { 
    margin-top: 8px !important; 
    margin-bottom: 0 !important;
    color: var(--warning-color);
    font-weight: var(--font-weight-semibold);
}

.min-qty-text {
    font-size: 0.85rem;
    color: #098ae5;
    font-weight: var(--font-weight-semibold);
    background: rgba(9, 138, 229, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

#productDetailsModal .my-4 { 
    margin-top: 16px !important; 
    margin-bottom: 16px !important; 
}

#productDetailsModal label.text-uppercase { 
    margin-bottom: 8px !important;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
}

#modalColors { 
    margin-top: 0 !important; 
    margin-bottom: 16px !important; 
}

/* כפתורי צבע משופרים */
.color-option-btn { 
    border: 2px solid var(--bg-gray-200); 
    background: var(--bg-white); 
    color: var(--text-primary); 
    padding: 8px 16px; 
    border-radius: var(--border-radius-sm); 
    font-size: 0.9rem; 
    cursor: pointer; 
    transition: all var(--transition-fast); 
    margin-bottom: 8px; 
    margin-left: 8px; 
    display: inline-block;
    font-weight: var(--font-weight-medium);
}

.color-option-btn:hover { 
    background-color: var(--bg-gray-50); 
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.color-option-btn.selected { 
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white; 
    border-color: var(--accent-color); 
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* בורר כמות */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--bg-gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-gray-50);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    background: var(--bg-white);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#minQtyNote {
    color: var(--warning-color) !important;
    font-weight: var(--font-weight-medium);
}

#quantityTotal {
    font-size: 1.1rem;
}

/* מידע נוסף משופר */
#productDetailsModal h5.fw-bold { 
    margin-top: 16px !important; 
    margin-bottom: 12px !important; 
    font-size: 1rem;
    color: var(--text-primary);
}

#modalDims {
    margin-top: 0 !important; 
    margin-bottom: 16px !important;
    padding: 16px !important; 
    font-size: 0.9rem;
    background: var(--bg-gray-50);
    border: 1px solid var(--bg-gray-200);
    border-radius: var(--border-radius-sm);
}

#modalDims .mb-1, 
#modalDims .mb-2 { 
    margin-bottom: 8px !important; 
}

#productDetailsModal hr { 
    margin: 12px 0 !important;
    opacity: 0.3;
}

/* כפתורי הזמנה משופרים */
.btn-whatsapp-buy, 
.btn-modal-secondary { 
    width: 100%; 
    height: 48px; 
    font-size: 1rem; 
    margin-bottom: 12px;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#productDetailsModal .border-top { 
    border-top: 1px solid var(--bg-gray-200) !important; 
    margin-top: 16px !important; 
    padding-top: 16px !important; 
}

.btn-whatsapp-buy { 
    background: linear-gradient(135deg, var(--whatsapp-light) 0%, #ecfdf5 100%);
    border: 2px solid var(--whatsapp-green);
    color: var(--whatsapp-dark); 
    font-weight: var(--font-weight-bold);
}

.btn-whatsapp-buy:hover { 
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark) 100%);
    border-color: var(--whatsapp-green); 
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-modal-secondary { 
    background: var(--bg-white); 
    border: 2px solid var(--bg-gray-200); 
    color: var(--text-primary);
}

.btn-modal-secondary:hover { 
    background: var(--bg-gray-50); 
    color: var(--accent-color); 
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* חיצים במודל משופרים */
.modal-carousel-control {
    position: absolute;
    width: 36px; 
    height: 36px; 
    background-color: rgba(255, 255, 255, 0.95); 
    border-radius: 50%;
    top: 50%; 
    transform: translateY(-50%); 
    opacity: 0.9; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid var(--bg-gray-200);
    color: var(--text-primary); 
    display: flex; 
    align-items: center;
    z-index: 10; 
    justify-content: center;
    position: absolute; 
    z-index: 5; 
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.modal-carousel-control:hover { 
    background-color: var(--accent-color); 
    color: white; 
    transform: translateY(-50%) scale(1.1);
    border-color: var(--accent-color);
    opacity: 1;
}

.modal-carousel-control.prev { 
    left: 32px;
}

.modal-carousel-control.next { 
    right: 32px;
}

/* --- כפתור עגלה צף משופר --- */
.cart-fab-container { 
    position: fixed; 
    bottom: 24px; 
    left: 24px; 
    z-index: 1050;
}

.cart-fab { 
    width: 64px; 
    height: 64px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem; 
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    border: 3px solid white;
}

.cart-fab:hover { 
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.cart-fab .badge {
    font-size: 0.7rem;
    padding: 4px 6px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* עגלה מודל משופר */
#cartModal .modal-content {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: none;
}

#cartModal .modal-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    border-bottom: none;
    padding: 20px 24px;
}

#cartModal .modal-header h5 {
    color: white;
    font-weight: var(--font-weight-bold);
}

#cartModal .modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.cart-item-row { 
    border-bottom: 1px solid var(--bg-gray-200); 
    padding: 16px 20px; 
    display: flex; 
    align-items: center; 
    gap: 12px;
    transition: background-color var(--transition-fast);
}

.cart-item-row:hover {
    background-color: var(--bg-gray-50);
}

.cart-item-img { 
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: var(--border-radius-sm); 
    border: 2px solid var(--bg-gray-200);
}

#cartModal .modal-footer {
    background: var(--bg-gray-50);
    border-top: 1px solid var(--bg-gray-200);
    padding: 20px 24px;
}

#cartTotal {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* =========================================
   עיצוב חלון הגדלת תמונה (Lightbox) משופר
   ========================================= */
#lightbox-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.95); 
    z-index: 99999;
    display: none; 
    justify-content: center; 
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(8px);
}

#lightbox-img {
    max-width: 90%; 
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 0 40px rgba(255,255,255,0.1);
    animation: zoomIn var(--transition-base) ease;
}

@keyframes zoomIn { 
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    } 
    to { 
        transform: scale(1); 
        opacity: 1; 
    } 
}

/* =========================================
   שיפורים נוספים - Buttons, Forms, etc.
   ========================================= */

/* כפתורים כלליים משופרים */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    padding: 10px 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Forms משופרים */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-gray-200);
    padding: 10px 14px;
    transition: all var(--transition-fast);
    background-color: var(--bg-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
    background-color: var(--bg-white);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Toast משופר */
.toast {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    border: none;
    backdrop-filter: blur(8px);
}

.toast-body {
    font-weight: var(--font-weight-medium);
}

/* Badges משופרים */
.badge {
    font-weight: var(--font-weight-semibold);
    padding: 4px 10px;
    border-radius: 50px;
}

.badge.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: var(--success-color) !important;
}

.badge.bg-secondary-subtle {
    background-color: rgba(107, 114, 128, 0.1) !important;
    color: var(--text-secondary) !important;
}

/* Scrollbar מותאם */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-gray-200);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease;
}

/* Loading States */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Smooth Page Transitions */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageFadeIn 0.3s ease;
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* Responsive improvements */
@media (max-width: 576px) {
    .hero-overlay {
        padding: 24px 16px;
    }
    
    .hero-overlay h1 {
        font-size: 1.75rem;
    }
    
    .hero-overlay p {
        font-size: 1rem;
    }
    
    .product-card {
        border-radius: var(--border-radius);
    }
    
    .card-img-wrapper {
        padding: 8px;
    }
    
    .action-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-card-action {
        width: 100%;
    }
    
    .cart-fab-container {
        bottom: 16px;
        left: 16px;
    }
    
    .cart-fab {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
    
    .admin-link-float {
        bottom: 16px;
        left: 16px;
        font-size: 0.875rem;
        padding: 8px 16px;
    }
    
    .main-content {
        padding: var(--spacing-mobile);
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px 8px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Bottom Navigation Bar - ניווט תחתון
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.bottom-nav-container {
    position: relative;
    width: 375px;
    height: 130px;
    pointer-events: auto;
}

.bottom-nav-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

/* כפתור וואטסאפ */
.nav-whatsapp-btn {
    position: absolute;
    top: 44px;
    left: 12px;
    width: 196px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-whatsapp-btn:active {
    transform: scale(0.95);
}

.nav-whatsapp-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-whatsapp-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-whatsapp-icon i {
    font-size: 26px;
    color: #34d399;
    position: relative;
    z-index: 1;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.nav-whatsapp-pulse {
    position: absolute;
    inset: -8px;
    background: #10b981;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.2;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* כפתור קטגוריות */
.nav-menu-btn {
    position: absolute;
    top: 44px;
    right: 12px;
    width: 95px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-menu-btn i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.nav-menu-btn:hover i {
    color: white;
}

.nav-menu-btn.active i {
    color: #34d399;
}

.nav-menu-btn:active {
    transform: scale(0.95);
}

/* כפתור עגלה מרכזי */
.nav-cart-btn {
    position: absolute;
    top: 34px;
    left: 200px;
    width: 76px;
    height: 76px;
    background: #25B871;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 184, 113, 0.4);
    transition: transform 0.2s ease;
}

.nav-cart-btn:hover {
    transform: scale(1.05);
}

.nav-cart-btn:active {
    transform: scale(0.95);
}

.nav-cart-btn i {
    font-size: 36px;
    color: white;
}

.nav-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #1D1D1B;
    animation: badgePop 0.3s ease;
}

.nav-cart-badge.hidden {
    display: none;
}

@keyframes badgePop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* תפריט קטגוריות */
.nav-categories-menu {
    position: absolute;
    bottom: 100px;
    right: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #f1f5f9;
    padding: 8px;
    width: 220px;
    max-height: 50vh;
    overflow-y: auto;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-categories-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.nav-categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.nav-categories-header span {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.nav-categories-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.nav-categories-close:hover {
    background: #f1f5f9;
}

.nav-categories-close i {
    font-size: 14px;
    color: #94a3b8;
}

.nav-categories-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: right;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s ease;
    width: 100%;
}

.nav-category-item:hover {
    background: #f8fafc;
}

.nav-category-item.active {
    background: #1e293b;
    color: white;
    font-weight: 500;
}

.nav-category-item .check-icon {
    display: none;
}

.nav-category-item.active .check-icon {
    display: block;
}

/* רספונסיביות */
@media (max-width: 400px) {
    .bottom-nav-container {
        width: 100%;
        max-width: 375px;
    }
}
