/* עיצוב מודרני לדפי eSIM - לשימוש בקובץ style.css */

/* משתנים גלובליים */
:root {
    --primary-color: #0066cc;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6600;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-color: #333333;
    --light-gray: #eaeaea;
    --medium-gray: #aaaaaa;
    --dark-gray: #555555;
    --border-radius: 12px;
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* איפוס כללי */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* =================================
   עיצוב כללי 
   ================================= */
#AdPro-esim-container,
#AdPro-esim-country-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 30px 15px;
    background-color: #f5f7fa;
    border-radius: var(--border-radius);
}


/* הוסף את הסגנונות האלה לקובץ CSS שלך */
.currency-icon {
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 0; /* אפס רווח מימין */
    margin-left: 2px; /* רווח קטן משמאל, כדי שיראה צמוד למספר אבל לא יתנגש בו */
    color: #ff6600; /* צבע כתום דומה לזה שבתמונה */
}



/* כותרת ראשית */
.country-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(to left, #0066cc, #1a85ff);
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.country-header h1 {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.country-header h1 img {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* תוכן מותאם למדינה */
.country-custom-content, 
.country-default-content {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.country-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.country-text {
    line-height: 1.7;
}

.country-text p {
    margin-bottom: 15px;
}

/* =================================
   חיפוש מדינה
   ================================= */
.search-container {
    text-align: center;
    margin-bottom: 40px;
}

.search-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#country-search {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    background-color: white;
    transition: var(--transition);
}

#country-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#country-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 100;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.suggestion {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion:hover, 
.suggestion.selected {
    background-color: #f0f7ff;
}

.suggestion img {
    border-radius: 3px;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: var(--medium-gray);
}

/* =================================
   מדינות פופולריות 
   ================================= */
.popular-countries {
    margin-top: 30px;
}

.popular-countries h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    justify-content: center;
}

.country-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    background-color: white;
    padding: 15px 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.country-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.country-item img {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.country-item span {
    font-weight: 500;
}



/* סגנון טבלאי לרשימת המדינות במודאל */
.countries-supported-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.country-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.country-cell {
    flex: 0 0 48%;
    padding: 8px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.country-flag-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country-flag-name img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.country-name {
    font-size: 14px;
    color: #333;
}




/* =================================
   פילטר חבילות 
   ================================= */
.package-filters {
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    position: sticky;
    top: 0; /* לשינוי מ-20px ל-0 כדי שיהיה צמוד לחלק העליון */
    z-index: 100;
    transition: all 0.3s ease;
    width: 100%;
}

.package-filters.sticky {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.package-filters h3 {
    margin: 0;
    margin-bottom: 10px;
    display: inline-block;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

/* סגנונות לתוכן הסינון בתצוגת מובייל */
/* כפתור סינון במובייל ותוכן מסתתר */
.filter-mobile-toggle {
    display: none; /* מוסתר בברירת מחדל בדסקטופ */
}

.filter-content {
    display: block; /* מוצג בברירת מחדל בדסקטופ */
}



.filter-group {
    flex: 1;
    min-width: 0; /* אפשר לאלמנטים להתכווץ מתחת לmin-width הטבעי שלהם */
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.85rem;
}

select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background-color: white;
    font-size: 0.9rem;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 12px;
}

select:hover, 
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.reset-button {
    padding: 8px 15px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    margin-top: 19px; /* יישור עם שאר האלמנטים */
}

.filter-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reset-button:hover {
    background-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Default desktop styles for filter toggle button - hide by default */
.filter-mobile-toggle {
    display: none;
}

/* =================================
   רשימת חבילות 
   ================================= */
.packages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.package {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.package:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* עיצוב כותרת חבילה */
.package-title {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    background: linear-gradient(to left, #f8f9fa, #eaeaea);
    border-bottom: 1px solid #eee;
    text-align: center;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* פריטי מידע בשורה אחת */
.package-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    justify-content: center; /* אם אתה רוצה שיהיה מרוכז */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.info-value {
    color: var(--text-color);
}

.package h2 {
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    background: linear-gradient(to left, #f8f9fa, #eaeaea);
    border-bottom: 1px solid #eee;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-details {
    padding: 15px; /* במקום 20px */
    flex: 1;
}

.price {
    color: var(--text-color);

}




/* מאפייני חבילה - עם אייקונים */
.data, 
.validity, 
.provider,
.data-validity {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data i, 
.validity i, 
.provider i,
.data-validity i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.data strong, 
.validity strong, 
.provider strong,
.data-validity strong {
    color: var(--dark-gray);
    min-width: 70px;
}

.data-validity strong {
    min-width: 100px;
}

.package-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.95rem;
}

.package-description p {
    margin: 0;
}

/* =================================
   רשתות סלולריות 
   ================================= */
.country-networks {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.country-networks h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.network-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.network-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.network-technology {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: #eee;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* טכנולוגיית הרשת */
.network-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #673ab7;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    vertical-align: middle;
}

.network-5g,
.network-badge.network-5g {
    background-color: #7b1fa2;
    color: white;
}

.network-4g,
.network-badge.network-4g {
    background-color: #1976d2;
    color: white;
}

/* =================================
   מדינות נתמכות 
   ================================= */
.supported-countries {
    margin-top: 20px;
}

.supported-countries h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.country-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.country-flag {
    width: 24px;
    height: 18px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-flag:hover {
    transform: scale(1.2);
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.more-countries {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

/* =================================
   כפתור רכישה 
   ================================= */
.buy-now {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-top: auto;
}

.buy-now:hover {
    background-color: #005bb5;
}

/* =================================
   מודאל 
   ================================= */
.package-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: #333;
    transform: scale(1.1);
}

#package-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.modal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.details-section {
    flex: 1;
    min-width: 250px;
}

.details-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    font-size: 1.2rem;
}

.modal-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}



.buy-now-modal {
    width: 100%;
    padding: 16px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.buy-now-modal:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
}

/* =================================
   חבילה מוסתרת / אין חבילות 
   ================================= */
.hidden-package {
    display: none;
}

.no-packages, 
.no-filtered-packages {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-packages p, 
.no-filtered-packages p {
    margin-bottom: 15px;
    color: #666;
}

/* =================================
   עמוד בודד של מדינה לא נמצאה 
   ================================= */
.country-not-found {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 50px auto;
}

.country-not-found h1 {
    margin-bottom: 20px;
    color: var(--danger-color);
}

.country-not-found p {
    margin-bottom: 30px;
    color: #666;
}

.country-not-found .button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.country-not-found .button:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =================================
   עמודי הצלחה וכשלון 
   ================================= */
#AdPro-esim-success,
#AdPro-esim-error {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    padding: 40px 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.success-icon,
.error-icon {
    margin-bottom: 20px;
}

#AdPro-esim-success h1 {
    color: var(--success-color);
    font-size: 28px;
    margin-bottom: 20px;
}

#AdPro-esim-error h1 {
    color: var(--danger-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.success-message,
.error-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.order-id {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 25px;
}

.success-actions,
.error-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.secondary-button {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.success-info,
.error-details {
    margin-top: 40px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: right;
}

.success-info h3,
.error-details h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
}

.success-info ol,
.error-details ul {
    text-align: right;
    padding-right: 20px;
    margin-bottom: 20px;
}

.success-info li,
.error-details li {
    margin-bottom: 10px;
    color: #444;
}

.support-text,
.support-info {
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
}

.support-text a,
.support-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.support-text a:hover,
.support-info a:hover {
    text-decoration: underline;
}

/* =================================
   אזור אישי - חבילות שלי 
   ================================= */
.esim-my-packages {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 0;
}

.esim-my-packages h2 {
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1.8rem;
}

.esim-packages-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.show-expired-button,
.hide-expired-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.show-expired-button:hover,
.hide-expired-button:hover {
    background-color: #ddd;
}

.esim-packages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.esim-package-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.esim-package-card.expired {
    opacity: 0.8;
}

.expired-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.esim-package-header {
    background: linear-gradient(to left, #f8f9fa, #eaeaea);
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.esim-package-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.esim-package-country {
    margin-top: 5px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.esim-package-details {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.esim-package-info {
    flex: 2;
    min-width: 200px;
}

.esim-package-qr {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 150px;
}

.esim-package-qr img {
    max-width: 150px;
    height: auto;
    border: 1px solid var(--light-gray);
    padding: 5px;
    background: white;
    border-radius: 4px;
}

.esim-package-data,
.esim-package-validity,
.esim-package-code,
.esim-package-status,
.esim-package-location {
    margin-bottom: 12px;
}

.esim-package-data strong,
.esim-package-validity strong,
.esim-package-code strong,
.esim-package-status strong,
.esim-package-location strong {
    display: inline-block;
    min-width: 80px;
    color: var(--dark-gray);
}

.activation-code {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
}

.status-badge.activated,
.status-badge.active {
    background-color: var(--success-color);
}

.status-badge.installed,
.status-badge.enabled {
    background-color: var(--primary-color);
}

.status-badge.ready {
    background-color: var(--warning-color);
    color: #333;
}

.esim-package-location {
    display: flex;
    align-items: center;
}

.esim-package-location .country-flag {
    margin-left: 5px;
}

.esim-package-usage {
    padding: 0 20px 20px;
}

.usage-title {
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 600;
}

.usage-bar-container {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.usage-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

/* =================================
   כפתורים 
   ================================= */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.view-esim-details,
.view-esim-usage {
    padding: 6px 12px;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* =================================
   התאמות למובייל - קוד מאוחד
   ================================= */
   
/* כפתור סינון צף - מוסתר בדסקטופ */
.sticky-filter-button {
    display: none;
}
   
@media (max-width: 768px) {
    /* התאמות כלליות */
    .country-header h1 {
        font-size: 1.8rem;
        gap: 10px;
    }
    
    .country-header h1 img {
        width: 36px;
        height: 27px;
    }
    
    .country-custom-content, 
    .country-default-content {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* התאמת אזור החיפוש */
    .search-container {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .search-container h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    #country-search {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    #country-suggestions {
        max-height: 200px;
    }
    
    /* התאמת רשת המדינות */
    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }
    
    .country-item {
        padding: 8px 5px;
    }
    
    .country-item img {
        width: 32px;
        height: 24px;
        margin-bottom: 6px;
    }
    
    .country-item span {
        font-size: 0.8rem;
    }
    
    /* התאמות לפילטר חבילות במובייל */
    .package-filters {
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        position: sticky;
        top: 0;
        z-index: 999;
    }
    
    .package-filters h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    /* עדכון מבנה כותרת הפילטר */
    .filter-title-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .filter-mobile-toggle {
        display: block;
        width: 100%;
        padding: 8px 12px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    .filter-mobile-toggle:hover {
        background-color: #0055b3;
    }
    
    .filter-content {
        display: none; /* מוסתר בברירת מחדל במובייל */
    }
    
    .package-filters.filters-open .filter-content {
        display: block !important;
    }
    
    .filter-row {
        display: flex;
        flex-wrap: nowrap; /* מונע שבירת שורה */
        overflow-x: auto; /* מאפשר גלילה אופקית */
        padding-bottom: 10px; /* מרווח לסרגל גלילה */
        -webkit-overflow-scrolling: touch; /* גלילה חלקה במכשירי אפל */
        scrollbar-width: thin; /* סרגל גלילה דק בדפדפנים תומכים */
        white-space: nowrap; /* מונע שבירת שורה של תוכן */
        gap: 10px;
        margin-bottom: 5px;
    }
	
	    /* מסתיר את סרגל הגלילה בכמה דפדפנים אבל משאיר את הפונקציונליות */
    .filter-row::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-row::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
    
    .filter-group {
        flex: 0 0 auto; /* אינו מתרחב או מתכווץ, נשאר בגודלו הטבעי */
        width: auto;
        min-width: 120px; /* רוחב מינימלי לכל קבוצת פילטר */
        margin-bottom: 0; /* ביטול מרווח תחתון */
    }
	
    .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    select {
        width: 100%;
        min-width: 120px;
    }
    
    .reset-button {
        flex: 0 0 auto;
        width: auto;
        margin-top: 0;
        white-space: nowrap;
        align-self: flex-end; /* יישור לתחתית כדי להיות באותו גובה עם הבחירות */
    }
	
    /* כפתור סינון צף במובייל */
    .sticky-filter-button {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 15px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        font-weight: 600;
        font-size: 0.9rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 1010;
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }
    
    .sticky-filter-button.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .sticky-filter-button:hover {
        background-color: #0055b3;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }
    
    /* התאמות לרשימת חבילות */
    .packages-list,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .package,
    .package-card {
        margin-bottom: 12px;
    }
    
    .package-info-row {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .package h2 {
        font-size: 0.95rem;
        min-height: auto;
        padding: 10px;
        line-height: 1.3;
    }
    
    .package-details {
        padding: 10px;
    }
    
    .price {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .card-price {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 10px;
        gap: 8px;
    }
    
    .card-specs {
        gap: 8px;
    }
    
    .spec-item {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* רשתות וארצות נתמכות - תצוגה קומפקטית */
    .country-networks, 
    .supported-countries {
        margin-top: 10px;
        padding: 8px;
    }
    
    .country-networks h3, 
    .supported-countries h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .networks-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 5px;
    }
    
    .networks-row {
        gap: 4px;
    }
    
    .network-item {
        padding: 4px;
    }
    
    .network-name {
        font-size: 0.75rem;
    }
    
    .country-flags {
        gap: 5px;
    }
    
    .buy-now {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* התאמות מודאל */
    .modal-content {
        padding: 15px;
        width: 95%;
        margin: 15% auto;
    }
    
    #package-modal-content h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .modal-details {
        gap: 15px;
    }
    
    .countries-supported-grid {
        max-height: 250px;
    }
    
    /* התאמות לרשימת מדינות במודאל */
    .country-flag-name {
        font-size: 12px;
    }
    
    .country-cell {
        padding: 5px;
    }
    
    .country-flag-name img {
        width: 20px;
        height: 15px;
    }
    
    /* התאמות לאזור האישי */
    .esim-packages-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .esim-package-details {
        flex-direction: column;
        padding: 15px;
    }
    
    .esim-package-qr {
        order: -1;
        margin-bottom: 10px;
    }
}

/* התאמות למסכים קטנים במיוחד */
@media (max-width: 380px) {
    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .country-item img {
        width: 28px;
        height: 21px;
    }
    
    .country-item span {
        font-size: 0.75rem;
    }
    
    .filter-group {
        flex: 100%; /* בקרן קטן מאוד כל אלמנט בשורה חדשה */
    }
    
    .package h2,
    .card-title {
        font-size: 0.85rem;
    }
    
    .price,
    .card-price {
        font-size: 1.4rem;
    }
    
    .sticky-filter-button {
        right: 10px;
        bottom: 15px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .spec-item {
        font-size: 10px;
        padding: 3px 6px;
    }
}

