* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.top-bar { background: #000; color: #fff; padding: 10px 0; font-size: 13px; }
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
.tool-item { margin-right: 15px; display: inline-flex; align-items: center; }
.tool-item img { height: 14px; margin-right: 5px; }
.top-search { background: #333; display: flex; align-items: center; padding: 2px 10px; }
.top-search input { background: transparent; border: none; color: #fff; outline: none; padding: 5px; }
.top-search button { background: transparent; border: none; cursor: pointer; }
.top-search img { height: 14px; }

header { border-bottom: 4px solid #ffcd00; padding: 15px 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; }
.nav-links { display: flex; list-style: none; }
.nav-links li a { padding: 10px 15px; text-decoration: none; color: #333; font-weight: bold; font-size: 14px; }

.hero-slider { width: 100%; overflow: hidden; }
.slide-bg { width: 100%; height: auto; display: block; }

.products { padding: 50px 0; text-align: center; }
.title { margin-bottom: 30px; font-size: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.product-card { border: 1px solid #eee; padding: 20px; transition: 0.3s; }
.product-card:hover { border-color: #ffcd00; }
.product-card img { width: 100%; height: auto; }

.cta-section { display: flex; height: 350px; }
.cta-box { flex: 1; background-size: cover; background-position: center; position: relative; }
.cta-overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; }
.btn { margin-top: 15px; padding: 10px 20px; background: #ffcd00; color: #000; text-decoration: none; font-weight: bold; }

/* --- FOOTER STYLES --- */
footer {
    background: #111; /* Dark background like original */
    color: #ccc;
    padding: 60px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* First column is wider */
    gap: 40px;
    padding-bottom: 50px;
}

/* Make the logo white for the dark footer */
.footer-logo-white {
    height: 40px;
    margin-bottom: 20px;
}

.footer-tagline {
    line-height: 1.6;
    color: #999;
}

.footer-col h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

    .footer-col ul li {
        margin-bottom: 12px;
    }

        .footer-col ul li a {
            text-decoration: none;
            color: #999;
            transition: 0.3s;
        }

            /* Yellow hover effect from original site */
            .footer-col ul li a:hover {
                color: #ffcd00;
                padding-left: 5px; /* Subtle movement effect */
            }

.footer-socials {
    display: flex;
    gap: 15px;
}

    .footer-socials img {
        height: 24px;
        filter: brightness(0) invert(1); /* Makes black icons white */
        opacity: 0.7;
        transition: 0.3s;
    }

        .footer-socials img:hover {
            opacity: 1;
            transform: scale(1.1);
        }

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    background: #000;
    border-top: 1px solid #222;
    padding: 20px 0;
    color: #666;
    font-size: 12px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

    .legal-links a:hover {
        color: #fff;
    }

/* --- MOBILE FOOTER --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        text-align: center;
        gap: 30px;
    }

    .footer-socials {
        justify-content: center;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 10px;
    }
}
.f-logo { filter: brightness(0) invert(1); height: 40px; }
.social-links img { height: 24px; margin-left: 10px; cursor: pointer; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .cta-section { flex-direction: column; height: 600px; }
}

/* ==========================================
   WHEEL LOADER PAGE SPECIFIC STYLES
   ========================================== */

/* Hero Banner for Products */
.product-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.product-hero h1 {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Breadcrumb Navigation Bar */
.product-nav {
    background: #f4f4f4;
    padding: 15px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

    .product-nav a {
        color: #666;
        transition: 0.3s;
    }

        .product-nav a:hover {
            color: var(--sem-yellow);
        }

    .product-nav span {
        color: #000;
        font-weight: bold;
    }

/* Product Listing Grid */
.product-listing {
    padding: 60px 0;
    background: #fff;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Individual Product Card */
.product-item {
    border: 1px solid #eee;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    background: #fff;
}

    .product-item:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        border-color: var(--sem-yellow);
    }

.p-img img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.p-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
  
    color: #111;
}

.p-info ul {
    list-style: none;
    margin-bottom: 25px;
}

    .p-info ul li {
        font-size: 14px;
        margin-bottom: 6px;
        color: #555;
        position: relative;
        padding-left: 18px;
    }

        /* Custom Yellow Bullet Points */
        .p-info ul li::before {
            content: "•";
            color: var(--sem-yellow);
            position: absolute;
            left: 0;
            font-weight: bold;
            font-size: 18px;
            line-height: 18px;
        }

/* Buttons in Card */
.p-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Pushes buttons to the bottom if text height varies */
}

.btn-black {
    background: #111;
    color: #fff;
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
}

    .btn-black:hover {
        background: #333;
    }

.btn-inquiry {
    background: var(--sem-yellow);
    color: #000;
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

    .btn-inquiry:hover {
        background: #e6b800;
    }

    .btn-inquiry img {
        height: 14px;
        margin-right: 8px;
    }

/* Responsive adjustments */
@media (max-width: 480px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }

    .product-hero h1 {
        font-size: 28px;
    }
}




/* --- SIMPLE & CLEAN FILTER STYLES --- */
/* --- DARK BLUE FILTER BAR STYLES --- */
.filter-section {
    padding: 25px 0;
    background-color: rgb(0, 59, 131); /* Your requested Blue */
    border-bottom: 3px solid var(--sem-yellow); /* Yellow line at bottom for branding */
    margin-bottom: 30px;
}

    .filter-section .container {
        display: flex;
        align-items: center;
        gap: 30px;
    }

.filter-label {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff; /* White text for contrast */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Subtle white border */
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff; /* White text */
    text-transform: uppercase;
    transition: all 0.3s ease;
}

    /* Hover Effect */
    .filter-btn:hover {
        border-color: var(--sem-yellow);
        background-color: rgba(255, 255, 255, 0.1); /* Slight highlight */
        color: var(--sem-yellow);
    }

    /* Active State (SEM Yellow) */
    .filter-btn.active {
        background-color: var(--sem-yellow);
        border-color: var(--sem-yellow);
        color: #000000; /* Black text on yellow for readability */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .filter-section .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}




/* --- PRODUCT ITEM CONTAINER --- */
.product-item {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    padding: 0; /* REMOVED PADDING FROM HERE to allow full background coverage */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

    /* NO HOVER on the entire card anymore - image stays white */
    .product-item:hover {
        border-color: #ffcd00; /* Optional: adds a yellow border around the whole card */
    }

/* --- IMAGE AREA (Stays white) --- */
.p-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 30px 15px 30px; /* Padding specifically for image box */
    background-color: #fff;
}

    .p-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* --- DESCRIPTION AREA (Turns Yellow) --- */
.p-info {
    padding: 15px 30px 30px 30px; /* Padding specifically for text box */
    background-color: #fff;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures box stretches to fit layout */
    transition: background-color 0.3s ease;
}

/* HOVER: Only the description background turns yellow */
.product-item:hover .p-info {
    background-color: #ffcd00;
}

.

{
    font-size: 22px;

    margin-bottom: 15px;
    color: #000;
}

/* SPECS ALIGNMENT */
    .p-specs li::before {
        content: "\2022"; /* C'est le code universel pour la puce ronde */
        color: var(--sem-yellow);
        position: absolute;
        left: 0;
        font-weight: bold;
        font-size: 18px;
        line-height: 18px;
    }

/* --- BUTTONS --- */
.p-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Keeps buttons pushed to the bottom */
}

.btn-comparison {
    flex: 1;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    text-align: center;
    padding: 12px 5px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.btn-inquiry {
    flex: 1.2;
    background: #ffcd00;
    border: 1px solid #000;
    color: #000;
    text-align: center;
    padding: 12px 5px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .btn-inquiry img {
        height: 14px;
    }

/* --- HOVER INVERSION (When ONLY description goes yellow) --- */
.product-item:hover .btn-comparison {
    background: #fff;
    border-color: #fff;
}

.product-item:hover .btn-inquiry {
    background: #000;
    border-color: #000;
    color: #fff;
}

    .product-item:hover .btn-inquiry img {
        filter: brightness(0) invert(1); /* Makes icon white */
    }

    /* --- NAVIGATION DROPDOWN STYLES --- */

    /* Parent LI */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    /* The Dropdown Menu (Hidden by default) */
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #ffffff;
        min-width: 220px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 3px solid var(--sem-yellow); /* Branding line */
        list-style: none;
        padding: 0;
        margin: 0;
    }

        /* Links inside the dropdown */
        .dropdown-content li a {
            color: #333;
            padding: 12px 20px;
            text-decoration: none;
            display: block;
            font-size: 13px;
            font-weight: 700;
            text-align: left;
            border-bottom: 1px solid #f4f4f4;
            transition: 0.3s;
        }

        /* Remove border from last item */
        .dropdown-content li:last-child a {
            border-bottom: none;
        }

        /* Hover over a link inside the dropdown */
        .dropdown-content li a:hover {
            background-color: var(--sem-yellow);
            color: #000;
            padding-left: 25px; /* Slight push effect */
        }

    /* Show the dropdown menu on hover */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Style for the active/hover state of the main "PRODUCTS" button */
    .dropdown:hover .dropbtn {
        color: var(--sem-yellow);
    }

/* --- MOBILE ADJUSTMENT --- */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: block; /* Always show or use JS for toggle */
        box-shadow: none;
        border-top: none;
        background: #f9f9f9;
        padding-left: 20px;
    }
}

/* Apply these only when the body has the dir="rtl" attribute */
body[dir="rtl"] {
    text-align: right;
}

    body[dir="rtl"] .top-bar-flex,
    body[dir="rtl"] .header-flex,
    body[dir="rtl"] .nav-links,
    body[dir="rtl"] .footer-grid,
    body[dir="rtl"] .parts-intro-flex,
    body[dir="rtl"] .warehouse-flex {
        flex-direction: row-reverse;
    }

    /* Fix for the dropdown menu position in Arabic */
    body[dir="rtl"] .lang-menu {
        left: auto;
        right: 0;
    }

    body[dir="rtl"] .p-specs li {
        flex-direction: row-reverse;
    }

/* HIDE GOOGLE TRANSLATE BANNER */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}
/* Hide Google Translate original UI */
#google_translate_element {
    display: none; /* Keep it hidden */
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

    /* Fix for Arabic RTL */
    body[dir="rtl"] .top-bar-flex,
    body[dir="rtl"] .header-flex,
    body[dir="rtl"] .footer-grid {
        flex-direction: row-reverse;
    }

    body[dir="rtl"] .nav-links {
        padding-right: 0;
        padding-left: 20px;
    }
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
}