/* ==========================================================================
   הגדרות בסיסיות ואיפוס לעמוד משופר ומעניין
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    -webkit-font-smoothing: antialiased;
}

#wrapper {
    width: 100%;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-6, .col-md-12, .col-lg-12 {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .offset-lg-2 { margin-left: 16.666667%; }
}

/* ==========================================================================
   Header - לוגו ורשתות חברתיות ממורכזים לחלוטין
   ========================================================================== */
.topbar-section {
    background-color: #1e3a60;
    padding: 12px 0;
}

.topsocial {
    text-align: center;
}

.topsocial a {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
}

.header-section {
    padding: 30px 0;
    background-color: #ffffff;
}

.logo img {
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   רקע אפור בהיר לכותרת המוצר
   ========================================================================== */
.hero-title-section {
    background-color: #f4f6f8; 
    padding: 50px 0;
    border-bottom: 1px solid #eef1f4;
    margin-bottom: 20px;
}

.main-product-title {
    font-size: 3rem;
    font-weight: 900;
    color: #000000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-product-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #555555;
    margin: 0;
    text-transform: uppercase;
}

/* ==========================================================================
   מערכת פריסה אישית (למניעת תמונות ענקיות)
   ========================================================================== */
.section-padding {
    padding-top: 45px;
    padding-bottom: 45px;
}

/* פריסת פתיח - חצי חצי עם שליטה מלאה */
.custom-split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.promo-text-box {
    flex: 1;
    min-width: 300px;
}

.promo-image-box {
    flex: 0 0 350px; /* מגביל את האזור של תמונת המכשיר הראשית שלא תתרחב */
    text-align: center;
}

/* מניעת ענקת תמונות - הגבלת פרופורציה קשוחה */
.compact-product-img {
    max-width: 100%;
    max-height: 260px; /* גובה אלגנטי ומעודן לחלק העליון */
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* גריד תמונות אופקי מודרני (אחת ליד השנייה בדסקטופ) */
.compact-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.grid-2-columns {
    grid-template-columns: repeat(2, 1fr);
}

.grid-image-wrapper {
    width: 100%;
    height: 280px; /* כל התמונות בגלריה יהיו בדיוק באותו הגובה */
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: #ffffff;
}

.grid-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* חותך ומיישר את התמונות בצורה אחידה */
    display: block;
}

/* התאמה מיוחדת למגשי האביזרים שלא יחתכו */
.object-contain-bg img {
    object-fit: contain;
    background: #fdfdfd;
    padding: 15px;
    box-sizing: border-box;
}

/* כרטיסי מידע */
.light-gray-section {
    background-color: #f9fafb;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    height: 100%;
    box-sizing: border-box;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #444444;
    margin-bottom: 20px;
}

.product-features-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.product-features-list li {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 8px;
    color: #444444;
}

.disclaimer-statement {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #1e3a60;
    font-style: italic;
    border-radius: 2px;
}

/* התאמות רספונסיביות מלאות למובייל */
@media (max-width: 767px) {
    .custom-split-layout {
        flex-direction: column;
    }
    .promo-image-box {
        flex: 1 1 auto;
        width: 100%;
    }
    .grid-2-columns {
        grid-template-columns: 1fr; /* הופך לטור אחד יפה במובייל */
    }
    .grid-image-wrapper {
        height: 220px; /* קצת יותר נמוך במסכי טלפון */
    }
    .main-product-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Footer - התאמה מדויקת ל-image_0cdd1c.jpg
   ========================================================================== */
.footer {
    background-color: #f3f4f7; 
    color: #333333;
    padding: 60px 0 40px 0;
    margin-top: 40px;
    border-top: 1px dashed #dddddd;
}

.footer-text h2 {
    color: #000000;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-text h3 {
    color: #333333;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.6;
    max-width: 740px;
    margin: 0 auto 25px auto;
}

.footer-text h4 {
    color: #333333;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.footer-text h4 a {
    color: #333333;
    text-decoration: none;
}

.footer-text h4 a:hover {
    text-decoration: underline;
}

.footer .social {
    margin-top: 20px;
}

.footer .social a {
    color: #333333;
    font-size: 18px;
}

.text-center {
    text-align: center;
}

.invis {
    border: none;
    visibility: hidden;
    margin: 15px 0;
}
/* --- רכיב מוצרים קשורים בתחתית העמוד --- */
.related-products-section {
    width: 100% !important;
    clear: both !important;
    margin-top: 50px !important;
    border-top: 1px solid #eee !important;
    padding-top: 40px !important;
    padding-bottom: 20px !important;
}
.related-products-title {
    font-size: 24px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    color: #333 !important;
}
.related-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}
.product-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}
.related-product-card {
    background: #fff !important;
    border: 1px solid #eef0f2 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    text-align: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.related-product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}
.related-product-card img {
    width: 100% !important;
    height: 200px !important; /* גובה קבוע לתמונות כדי שהכרטיסיות יהיו אחידות */
    object-fit: contain !important; /* שומר על פרופורציות התמונה ללא עיוות */
    margin-bottom: 15px !important;
    background: #fafafa !important;
    border-radius: 4px !important;
}
.related-product-name {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: #222 !important;
}
.related-product-btn {
    display: inline-block !important;
    padding: 8px 16px !important;
    background-color: #1e3a60 !important;
    color: #fff !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    margin-top: 5px !important;
    transition: background 0.2s !important;
}
.related-product-card:hover .related-product-btn {
    background-color: #000 !important; /* הפיכת הכפתור לכהה יותר בריחוף */
}

/* התאמה לניידים */
@media (max-width: 767px) {
    .related-products-grid {
        grid-template-columns: 100% !important; /* מעבר לטור אחד בנייד */
        gap: 20px !important;
    }
}