html {
    scroll-behavior: auto;
}

:root {
    --lego-red: #CC0000;
    --lego-yellow: #FFD700;
    --dark: #222;
    --light: #f4f4f4;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    background-color: var(--white);
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- עיצוב ה-Header וסרגל הניווט (מאוחד ומעודכן) --- */
header {
    background-color: var(--white);
    border-bottom: 2px solid var(--lego-yellow); /* פס צהוב תחתון לכל ה-Header */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* עיצוב הלוגו */
.header-right .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--lego-red); /* צבע לוגו לגו */
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: auto;
}

.header-right .logo-text small {
    font-size: 12px;
    font-weight: 300;
    color: #777777;
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 20px;
}

/* תפריט הניווט המרכזי */
nav ul, .header-center ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a, .header-center ul li a {
    text-decoration: none;
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 8px 4px;
    transition: color 0.2s ease;
}

/* אפקט קו תחתון ירוק חלק במעבר עכבר ועמוד פעיל */
nav a::after, .header-center ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #25D366; /* קו ירוק מודרני */
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after,
.header-center ul li a:hover::after, .header-center ul li a.active::after {
    width: 100%;
}

nav a:hover, nav a.active,
.header-center ul li a:hover, .header-center ul li a.active {
    color: #000000;
    font-weight: 700;
}

/* ⚠️ הקו האדום הקשיח הוסר מכאן בהצלחה! */
nav a.active {
    color: var(--lego-red); /* שומר על צבע טקסט אדום לעמוד הפעיל במידת הצורך */
}

/* עיצוב מיוחד לקישור הוואטסאפ בתוך התפריט ככפתור בולט */
nav a[href*="wa.me"], .header-center ul li a[href*="wa.me"] {
    background-color: #25D366;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

nav a[href*="wa.me"]::after, .header-center ul li a[href*="wa.me"]::after {
    display: none;
}

nav a[href*="wa.me"]:hover, .header-center ul li a[href*="wa.me"]:hover {
    background-color: #20ba56;
    transform: translateY(-2px);
}

/* עיצוב כפתור עגלת הקניות בצד שמאל */
.icon-btn {
    background: #FFD700; /* שמרתי על הצהוב המקורי שלך */
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333333;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background-color: #e6c200;
    transform: scale(1.05);
}

/* --- שאר חלקי העמוד (תוכן, פילטרים ומוצרים) --- */

/* Page Header */
.page-header {
    background: var(--light);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--lego-red);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Sidebar */
.sidebar h3 {
    margin-bottom: 20px;
    border-right: 4px solid var(--lego-yellow);
    padding-right: 10px;
}

.filter-list {
    list-style: none;
}

.filter-btn {
    display: block;
    width: 100%;
    text-align: right;
    padding: 10px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--lego-yellow);
    font-weight: 700;
}

/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.img-wrapper {
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    display: block;
}

.product-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.description {
    font-size: 0.9rem;
    color: #666;
    height: 40px;
}

.product-item .description small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666; 
    line-height: 1.3;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lego-red);
    margin: 15px 0;
}

.btn-order {
    background-color: #25D366; 
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-order:hover {
    background-color: #128C7E;
}

/* Footer */
.simple-footer {
    text-align: center;
    padding: 30px;
    background: var(--dark);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; 
    }
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .header-center ul, nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-left {
        position: absolute;
        top: 15px;
        left: 15px;
    }
}