
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}



.floating-header{
    display:flex;
    align-items:center;
    gap:12px;

    width:fit-content;

    background:#fff;
    border:1px solid #e9eef5;
    border-radius:10px;
    padding:12px 24px;

    margin:20px 0;      /* left aligned */
    /* or margin:20px 0 20px 20px; for 20px left space */

    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.floating-header span{
    background:orange;
    color:#fff;
    padding:6px 14px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
}

.floating-header h2{
    margin:0;
    font-size:22px;
    font-weight:700;
    color:#222;
}











/* =========================
   IMAGE LOGO
========================= */

.automart-logo{

    display:flex;
    align-items:center;

    text-decoration:none;

}


.logo-img{

    width:100px;

    height:auto;

    object-fit:contain;

    display:block;

}


/* hover animation */

.logo-img:hover{

    transform:scale(1.05);

    transition:.25s ease;

}








.page-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 6px;
}











/* ==============================
   MAIN ADS GRID FEATURED FIX
============================== */

.ads-container > .featured-card,
.ads-container > .top-card {

    display:flex !important;

    width:100% !important;
    min-width:0 !important;
    max-width:none !important;

    flex:unset !important;
}




/* =========================
   GRID CONTAINER
========================= */
.ads-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}


/* =========================
   AD CARD
========================= */
/* LISTINGS HEADING */
.listings-heading {
    font-size: small;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    text-align: left; /* 🔥 left side */
    padding-left: 5px;
}


.ad-row {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.2s ease;
    min-height: 140px;
    align-items: stretch; /* 🔥 IMPORTANT FIX */
}

.ad-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* =========================
   IMAGE BOX (FIXED)
========================= */
.ad-row-img {
    width: 190px;
    min-width: 190px;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: #eee;
    flex-shrink: 0;
}

.ad-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* 🔥 removes bottom gap */
}

/* =========================
   CONTENT
========================= */
.ad-row-content{
    flex: 1;
    padding: 12px;
    padding-top: 20px;

    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;
}

.list-verified-badge{
    pointer-events:none;
}
.title{
    font-size:15px;
    font-weight:600;
    margin-bottom:5px;
    margin-top:-12px;
}


.price {
    font-size: 18px;
    font-weight: 700;
    color: green;
    margin-bottom: 6px;
}




.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;

    -webkit-font-smoothing: antialiased;
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}






/* Mileage, Location & Date */
.year-info,
.mileage-info,
.location,
.time{
    font-weight: 400;   /* normal */
    color: #666;
}







/* FOOTER */
.ad-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.time {
    font-size: 11px;
    color: #888;
}

/* =========================
   BADGES (FIXED)
========================= */
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    
    z-index: 10;
    text-transform: uppercase;
}












.ads-container a,
.ads-container .ad-row {
    text-decoration: none !important;
    color: inherit !important;
}








/* =========================
   BANNER
========================= */
/* GRID BANNER = SAME WIDTH AS AD CARD */
.grid-banner {
    grid-column: auto;   /* IMPORTANT: remove full span */
    width: 100%;
    height: 140px;
    border-radius:0;
    overflow: hidden;
}

/* ensure it behaves like a card inside grid */
.grid-banner {
    display: flex;
    background: #fff;
}

/* link fills card */
.grid-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.grid-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





/* =========================
   BACKGROUND HIGHLIGHT ONLY
========================= */
.ad-row {
    background: #ffffff !important;
}

/* TOP AD (soft warm premium) */
.top-card {
    background: #fff7e6 !important;  /* very light amber */
}

/* FEATURED AD (soft blue clean look) */
.featured-card {
    background: #fff7e6 !important;  /* very light amber */
}
















.category-section .category-header{
    background:transparent;
    padding:15px 20px;
    width:100%;
    display:block;
    border:2px solid red;
    border-radius:8px;
    margin-bottom:15px;
}

.category-section .category-header h2{
    margin:0;
    color:#222;
    font-size:12px;
    font-family:Arial, sans-serif;
    font-weight:700;
}




/* Update .page-layout */
.page-layout {
    display: flex;
    gap: 20px;
    
    position: relative;
}

/* Update .category-section */
.category-section {
    position: sticky;
    top: 160px; /* Adjust this value to match your sub-navbar height + desired offset */
    width: 280px;
    flex-shrink: 0; /* Prevents sidebar from squishing on smaller layouts */
    height: fit-content;
    align-self: flex-start; /* REQUIRED for sticky inside flexbox */
    margin-top: 22px;
    z-index: 10;
}

.category-section h2{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================
   MAIN CATEGORY ITEM
========================= */

.category-section > a{
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 12px;
    margin: 6px 0;

    border-radius: 10px;
    text-decoration: none;

    background: #f7f7f7;
    color: #333;

    font-size: 14px;
    font-weight: 500;

    transition: 0.25s ease;
}

.category-section > a span{
    display: flex;
    align-items: center;
    gap: 8px;
}

/* hover */
.category-section > a:hover{
    background:#009688;
    color: #fff;
    transform: translateX(4px);
}

/* count badge */
.category-section > a b{
    background: #e91e63;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
}
/* =========================
   SUB CATEGORY DROPDOWN (CLOSED BY DEFAULT)
========================= */

.sub-category{
    margin: 0 0 0 15px;
    padding-left: 10px;

    border-left: 2px solid #eee;

    /* dropdown effect */
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transform: translateY(-5px);

    transition: all 0.35s ease;
}

/* =========================
   OPEN STATE (WHEN CATEGORY IS ACTIVE)
========================= */

.category-item.open .sub-category{
    max-height: 600px; /* enough space */
    opacity: 1;
    transform: translateY(0);
}
/* =========================
   DROPDOWN WRAPPER
========================= */
.cat-item{
    margin-bottom: 8px;
}

/* MAIN CATEGORY */
.main-cat{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:10px 12px;
    border-radius:10px;
    background:#f7f7f7;
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition:0.25s ease;
}

.main-cat:hover{
    background:#009688;
    color:#fff;
    transform:translateX(4px);
}

/* =========================
   DROPDOWN (HIDDEN BY DEFAULT)
========================= */
.sub-category{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);

    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px solid #eee;

    transition: all 0.35s ease;
}

/* =========================
   SHOW ON HOVER
========================= */
.cat-item:hover .sub-category{
    max-height: 500px; /* enough for items */
    opacity: 1;
    transform: translateY(0);
}

/* SUB LINKS */
.sub-category a{
    display:flex;
    justify-content:space-between;

    padding:6px 10px;
    margin:4px 0;

    font-size:13px;
    text-decoration:none;
    color:#555;
    border-radius:8px;
    transition:0.2s ease;
}

.sub-category a:hover{
    background:#f0f0f0;
    color:#009688;
    transform:translateX(4px);
}






/* Hide mobile buttons on desktop */
.category-toggle,
.close-category{
    display:none;
}









/* =========================================
   FILTER QUOTE
========================================= */
.filter-quote {
    text-align: left;

    font-size: 15px;
    color: #666;
    font-weight: 500;

    margin: 20px 0 4px 0 !important;
    padding: 0 !important;

    line-height: 1.3;

    opacity: 1 !important;
    transform: none !important;
}







/* =========================================
   MOBILE FILTER QUOTE
========================================= */
@media (max-width: 768px) {

    .filter-quote {
        display: block !important;

        margin: 20px 0 4px 0 !important;
        padding: 0 !important;

        font-size: 15px;
        line-height: 1.2;

        color: #666;
        font-weight: 500;

        opacity: 1 !important;
        transform: none !important;

        visibility: visible !important;
    }

}




/* =========================
   FILTER BAR MODERN
========================= */
.right-content{
    flex:1;
    min-width:0;      /* IMPORTANT */
    width:auto;
   
    min-height:100vh;   /* 🔥 ensures sticky works */
    
}


.filter-bar{
    flex-wrap:nowrap;
    position:static;
    top:auto;
    z-index:auto;

    width:fit-content;
    max-width:100%;

    display:flex;
    align-items:center;
    gap:7px;

    background:transparent;
    padding:2px 8px;

    border:none;
    box-shadow:none;

    overflow-x:auto;
    white-space:nowrap;

    margin-top:20px !important;
    margin-bottom:4px !important;
}




/* HIDE SCROLLBAR */
.filter-bar::-webkit-scrollbar{
    display: none;
}

.filter-bar{
    scrollbar-width: none;
}
/* INPUTS + SELECT — SMALLER BOXES */
.filter-bar select,
.filter-bar input{
    height: 34px;          /* reduced height */
    width: 110px;           /* reduced width */
    min-width: 120px;       /* prevents stretching */
border-radius: 6px;

    border: 1px solid #d6d9df;
    background: #f8fafc;

    padding: 0 8px;        /* tighter padding */

    font-size: 14px;       /* smaller text */
    color: #222;

    outline: none;
    transition: 0.2s ease;

    flex-shrink: 0;
}

/* FOCUS EFFECT */
.filter-bar select:focus,
.filter-bar input:focus{
    border-color:lightgray;

    background: #fff;

    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

/* BUTTON */
.filter-bar button{
    height: 34px;

    padding: 0 10px;

    border: none;

    background:#009688;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;

    flex-shrink: 0;

    border-radius: 6px;

}

/* BUTTON HOVER */
.filter-bar button:hover{
    background:lightgreen;
}

/* PLACEHOLDER */
.filter-bar input::placeholder{
    color: #888;
}

















/* =========================
   ADS GRID
========================= */

.ads-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:0px;
}











.grid-banner img,
.grid-banner video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.header-banner img,
.header-banner video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}




.grid-banner{
    position:relative;
    overflow:hidden;
    border-radius:0;
}

.grid-banner a{
    position:relative;
    display:block;
}

.sponsored-badge{
    position:absolute;
    top:12px;
    left:12px;
    z-index:100;
     top:-5px;     /* push up */
    left:-5px;    /* push left */

    background:transparent;
    color:#fff;

    padding:6px 12px;
    border-radius:0;

    font-size:10px;
    font-weight:400;
    font-family:Poppins,sans-serif;

    pointer-events:none;
}













.pagination{
    text-align:center;
    margin:40px 0;
}

.pagination a{
    padding:8px 14px;
    margin:4px;
    border:1px solid #ddd;
    text-decoration:none;
    color:#333;
    border-radius:5px;
}

.pagination a:hover{
    background:#ff6600;
    color:white;
}

/* CURRENT PAGE */
.pagination a.active{
    background:#1e90ff;
    color:#ffffff;
    border-color:#1e90ff;
}




.result-count{
    background:transparent;
    padding:12px 15px;
    margin-bottom:6px;
    border-radius:none;
    font-family:Poppins,sans-serif;
    font-size:12px;
    color:#333;
    box-shadow:none;
}

.result-count strong{
    color:#1e90ff;
    font-size:15px;
}
























/* =====================================================
   TABLET FILTER BAR (769px - 1024px)
===================================================== */

@media (min-width:769px) and (max-width:1024px){

    .filter-bar{

        display:grid;

        grid-template-columns:repeat(4, 1fr);

        gap:10px;

        width:100%;

        padding:8px;

        overflow:visible;

        white-space:normal;

    }



    .filter-bar select,
    .filter-bar input{

        width:100%;

        min-width:0;

        height:34px;

        font-size:13px;

        box-sizing:border-box;

    }



    /* Search button */
    .filter-bar button{

        width:100%;

        height:34px;

        font-size:12px;

    }



    /*
       Second row:
       item 5 + item 6 + item 7 + button
       automatically fills 4 columns
    */


}






/* =========================================================
   LOGIN MODAL
   FULL VIEWPORT
   CURRENT SCROLL POSITION
   PAGE SCROLL LOCK
   RESPONSIVE
========================================================= */


/* =========================================================
   HTML / BODY RESET FOR MODAL
========================================================= */

html.login-modal-html-lock {
    overflow: hidden !important;
    height: 100% !important;
}

body.login-modal-open {
    overflow: hidden !important;
    height: 100% !important;
    overscroll-behavior: none !important;
}


/* =========================================================
   FULL SCREEN OVERLAY
========================================================= */

.login-modal-overlay {

    /* MUST BE FIXED */
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    /* Do NOT use height:100% here */
    width: 100vw !important;
    height: 100dvh !important;

    margin: 0 !important;

    padding: 20px !important;

    box-sizing: border-box !important;

    display: none;

    align-items: center !important;
    justify-content: center !important;

    background: rgba(0, 0, 0, 0.65);

    z-index: 2147483647 !important;

    /*
       Overlay itself can scroll if modal is taller
       than viewport.
    */
    overflow-x: hidden !important;
    overflow-y: auto !important;

    /*
       Prevent scroll chaining to page.
    */
    overscroll-behavior: contain !important;

    -webkit-overflow-scrolling: touch;

    isolation: isolate;
}


/* =========================================================
   SHOW OVERLAY
========================================================= */

.login-modal-overlay.active {

    display: flex !important;

}


/* =========================================================
   MODAL BOX
========================================================= */

.login-modal {

    position: relative !important;

    width: min(900px, 100%) !important;

    max-width: 900px !important;

    min-height: 520px;

    /*
       Important:
       Do not use fixed positioning here.
    */
    margin: auto !important;

    display: grid;

    grid-template-columns: 42% 58%;

    background: #ffffff;

    border-radius: 18px;

    /*
       Desktop does not need internal scrolling.
    */
    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30);

    animation:
        loginModalShow
        0.25s
        ease;

    /*
       Prevent flex from shrinking modal.
    */
    flex: 0 0 auto;

    z-index: 2147483647 !important;

    box-sizing: border-box;
}


/* =========================================================
   MODAL ANIMATION
========================================================= */

@keyframes loginModalShow {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(0.97);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.login-modal-close {

    position: absolute !important;

    top: 12px !important;
    right: 14px !important;

    width: 38px !important;
    height: 38px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border: none !important;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: #333;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    z-index: 50 !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.login-modal-close:hover {

    background: #f1f1f1;

    transform: rotate(90deg);
}


/* =========================================================
   LEFT SIDE
========================================================= */

.login-modal-left {

    padding: 50px 40px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #009688,
            #00796b
        );

    color: #ffffff;

    box-sizing: border-box;
}


/* =========================================================
   LOGO
========================================================= */

.login-modal-logo {

    margin-bottom: 25px;
}


.login-modal-logo img {

    width: 170px;

    max-width: 100%;

    height: auto;

    display: block;

    object-fit: contain;
}


/* =========================================================
   LEFT TITLE
========================================================= */

.login-modal-left h2 {

    margin: 0 0 12px;

    font-family: "Poppins", sans-serif;

    font-size: 30px;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   LEFT DESCRIPTION
========================================================= */

.login-modal-left p {

    margin: 0;

    max-width: 350px;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    line-height: 1.7;

    opacity: 0.95;
}


/* =========================================================
   FEATURES
========================================================= */

.login-modal-features {

    margin-top: 30px;

    display: flex;

    flex-direction: column;

    gap: 14px;

    font-family: "Poppins", sans-serif;

    font-size: 14px;
}


.login-modal-features div {

    display: flex;

    align-items: center;

    gap: 8px;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.login-modal-right {

    padding: 50px 45px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: #ffffff;

    box-sizing: border-box;

    min-width: 0;
}


/* =========================================================
   RIGHT TITLE
========================================================= */

.login-modal-right h2 {

    margin: 0 0 7px;

    font-family: "Poppins", sans-serif;

    font-size: 30px;

    font-weight: 700;

    line-height: 1.3;

    color: #222;
}


/* =========================================================
   SUBTITLE
========================================================= */

.login-modal-subtitle {

    margin: 0 0 25px;

    color: #777;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   ERROR
========================================================= */

.login-modal-error {

    display: none;

    width: 100%;

    margin-bottom: 15px;

    padding: 11px 14px;

    border-radius: 8px;

    background: #fff0f0;

    border: 1px solid #ffcaca;

    color: #d32f2f;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    line-height: 1.4;

    box-sizing: border-box;
}


.login-modal-error.show {

    display: block;
}


/* =========================================================
   INPUT GROUP
========================================================= */

.modal-input-group {

    width: 100%;

    margin-bottom: 18px;
}


/* =========================================================
   LABEL
========================================================= */

.modal-input-group label {

    display: block;

    margin-bottom: 7px;

    color: #333;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   INPUT
========================================================= */

.modal-input-group > input,
.modal-password-box input {

    width: 100% !important;

    height: 48px !important;

    padding: 0 14px !important;

    box-sizing: border-box !important;

    border: 1px solid #d9dfe7 !important;

    border-radius: 9px !important;

    outline: none !important;

    background: #ffffff !important;

    color: #222 !important;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.modal-input-group > input:focus,
.modal-password-box input:focus {

    border-color: #009688 !important;

    box-shadow:
        0 0 0 3px
        rgba(0, 150, 136, 0.10) !important;
}


/* =========================================================
   PASSWORD WRAPPER
========================================================= */

.modal-password-box {

    position: relative;

    width: 100%;
}


.modal-password-box input {

    padding-right: 50px !important;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

#modalPasswordToggle {

    position: absolute;

    right: 5px;

    top: 50%;

    transform: translateY(-50%);

    width: 40px;

    height: 40px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    color: #777;

    cursor: pointer;

    border-radius: 6px;
}


#modalPasswordToggle:hover {

    background: #f3f5f7;

    color: #009688;
}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.modal-login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin: 5px 0 20px;

    font-family: "Poppins", sans-serif;

    font-size: 12px;
}


.modal-login-options label {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #666;

    cursor: pointer;
}


.modal-login-options input {

    accent-color: #009688;
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

#modalForgotPassword {

    border: none;

    background: none;

    padding: 0;

    color: #009688;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    cursor: pointer;
}


#modalForgotPassword:hover {

    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.modal-login-submit {

    width: 100%;

    height: 50px;

    padding: 0;

    border: none;

    border-radius: 9px;

    background: #009688;

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.modal-login-submit:hover {

    background: #00796b;

    transform: translateY(-1px);
}


.modal-login-submit:disabled {

    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   DIVIDER
========================================================= */

.modal-divider {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin: 22px 0;

    color: #aaa;

    font-family: "Poppins", sans-serif;

    font-size: 12px;
}


.modal-divider::before,
.modal-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e5e5e5;
}


.modal-divider span {

    position: relative;

    z-index: 1;

    padding: 0 12px;

    background: #ffffff;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.modal-register-btn {

    width: 100%;

    height: 48px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #009688;

    border-radius: 9px;

    color: #009688;

    background: #ffffff;

    text-decoration: none;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.modal-register-btn:hover {

    background: #009688;

    color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .login-modal-overlay {

        padding: 15px !important;

        align-items: center !important;

        justify-content: center !important;

        height: 100dvh !important;
    }


    .login-modal {

        width: 100% !important;

        max-width: 700px !important;

        grid-template-columns: 1fr;

        min-height: 0;

        /*
           Allow whole modal to scroll if necessary.
        */
        max-height: calc(100dvh - 30px);

        overflow-y: auto;

        overflow-x: hidden;

        border-radius: 16px;
    }


    .login-modal-left {

        padding: 30px;

        min-height: 220px;

        text-align: center;

        align-items: center;
    }


    .login-modal-left p {

        max-width: 500px;
    }


    .login-modal-features {

        display: none;
    }


    .login-modal-right {

        padding: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .login-modal-overlay {

        padding: 10px !important;

        align-items: center !important;

        justify-content: center !important;

        height: 100dvh !important;

        overflow-y: auto !important;
    }


    .login-modal {

        width: 100% !important;

        max-width: 100% !important;

        max-height: calc(100dvh - 20px);

        min-height: 0;

        border-radius: 14px;

        overflow-y: auto;

        overflow-x: hidden;
    }


    /* LEFT */

    .login-modal-left {

        padding: 25px 20px;

        min-height: 170px;
    }


    /* LOGO */

    .login-modal-logo {

        margin-bottom: 18px;
    }


    .login-modal-logo img {

        width: 130px;
    }


    /* LEFT TITLE */

    .login-modal-left h2 {

        font-size: 23px;

        margin-bottom: 8px;
    }


    /* LEFT TEXT */

    .login-modal-left p {

        font-size: 12px;

        line-height: 1.6;
    }


    /* RIGHT */

    .login-modal-right {

        padding: 28px 20px;
    }


    /* RIGHT TITLE */

    .login-modal-right h2 {

        font-size: 24px;
    }


    /* SUBTITLE */

    .login-modal-subtitle {

        font-size: 12px;

        margin-bottom: 20px;
    }


    /* OPTIONS */

    .modal-login-options {

        font-size: 11px;

        margin-bottom: 18px;
    }


    /* FORGOT */

    #modalForgotPassword {

        font-size: 11px;
    }


    /* INPUT */

    .modal-input-group > input,
    .modal-password-box input {

        height: 46px !important;

        font-size: 13px;
    }


    /* LOGIN BUTTON */

    .modal-login-submit {

        height: 48px;

        font-size: 14px;
    }


    /* REGISTER */

    .modal-register-btn {

        height: 46px;

        font-size: 13px;
    }


    /* CLOSE */

    .login-modal-close {

        top: 8px !important;

        right: 8px !important;

        width: 34px !important;

        height: 34px !important;

        font-size: 24px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .login-modal-overlay {

        padding: 6px !important;
    }


    .login-modal {

        max-height: calc(100dvh - 12px);
    }


    .login-modal-left {

        padding: 20px 15px;

        min-height: 150px;
    }


    .login-modal-right {

        padding: 22px 15px;
    }


    .login-modal-right h2 {

        font-size: 21px;
    }


    .login-modal-left h2 {

        font-size: 20px;
    }

}




























/* =========================================================
   REGISTER MODAL
========================================================= */

.register-modal-overlay {

    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    padding: 20px !important;

    box-sizing: border-box !important;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.65);

    z-index: 2147483647 !important;

    overflow-x: hidden;
    overflow-y: auto;

    isolation: isolate;
}


.register-modal-overlay.active {

    display: flex !important;

}


/* =========================================================
   REGISTER BOX
========================================================= */

.register-modal {

    position: relative;

    width: min(900px, 100%);

    max-width: 900px;

    min-height: 520px;

    display: grid;

    grid-template-columns: 42% 58%;

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.30);

    animation: registerModalShow .25s ease;

    flex-shrink: 0;
}


@keyframes registerModalShow {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   CLOSE
========================================================= */

.register-modal-close {

    position: absolute;

    top: 12px;
    right: 14px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.95);

    color: #333;

    font-size: 28px;

    cursor: pointer;

    z-index: 20;

    transition: .2s ease;
}


.register-modal-close:hover {

    background: #f1f1f1;

    transform: rotate(90deg);

}


/* =========================================================
   LEFT
========================================================= */

.register-modal-left {

    padding: 50px 40px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #009688,
            #00796b
        );

    color: white;

    box-sizing: border-box;
}


.register-modal-logo {

    margin-bottom: 25px;
}


.register-modal-logo img {

    width: 170px;

    max-width: 100%;

    height: auto;

    display: block;
}


.register-modal-left h2 {

    margin: 0 0 12px;

    font-family: "Poppins", sans-serif;

    font-size: 30px;

    font-weight: 700;
}


.register-modal-left p {

    margin: 0;

    max-width: 350px;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    line-height: 1.7;

    opacity: .95;
}


/* =========================================================
   FEATURES
========================================================= */

.register-modal-features {

    margin-top: 30px;

    display: flex;

    flex-direction: column;

    gap: 14px;

    font-family: "Poppins", sans-serif;

    font-size: 14px;
}


.register-modal-features div {

    display: flex;

    align-items: center;

    gap: 10px;
}


.register-modal-features span {

    font-weight: 700;

    font-size: 17px;
}


/* =========================================================
   RIGHT
========================================================= */

.register-modal-right {

    padding: 45px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: #fff;

    box-sizing: border-box;
}


.register-modal-right h2 {

    margin: 0 0 7px;

    font-family: "Poppins", sans-serif;

    font-size: 30px;

    color: #222;
}


.register-modal-subtitle {

    margin: 0 0 22px;

    color: #777;

    font-family: "Poppins", sans-serif;

    font-size: 13px;
}


/* =========================================================
   ERROR
========================================================= */

.register-modal-error {

    display: none;

    margin-bottom: 15px;

    padding: 11px 14px;

    border-radius: 8px;

    background: #fff0f0;

    border: 1px solid #ffcaca;

    color: #d32f2f;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    line-height: 1.4;
}


.register-modal-error.show {

    display: block;

}


/* =========================================================
   INPUT
========================================================= */

.register-input-group {

    margin-bottom: 16px;

}


.register-input-group label {

    display: block;

    margin-bottom: 7px;

    color: #333;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    font-weight: 600;
}


.register-input-group label span {

    color: #999;

    font-weight: 400;
}


.register-input-group > input,
.register-password-box input {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d9dfe7;

    border-radius: 9px;

    outline: none;

    background: #fff;

    color: #222;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    transition: .2s ease;
}


.register-input-group > input:focus,
.register-password-box input:focus {

    border-color: #009688;

    box-shadow:
        0 0 0 3px
        rgba(0,150,136,.10);
}


/* =========================================================
   PASSWORD
========================================================= */

.register-password-box {

    position: relative;

    width: 100%;
}


.register-password-box input {

    padding-right: 50px;
}


#modalRegisterPasswordToggle {

    position: absolute;

    right: 5px;

    top: 50%;

    transform: translateY(-50%);

    width: 40px;

    height: 40px;

    border: none;

    background: transparent;

    color: #777;

    cursor: pointer;

    border-radius: 6px;
}


#modalRegisterPasswordToggle:hover {

    background: #f3f5f7;

    color: #009688;
}


/* =========================================================
   SUBMIT
========================================================= */

.modal-register-submit {

    width: 100%;

    height: 50px;

    border: none;

    border-radius: 9px;

    background: #009688;

    color: #fff;

    font-family: "Poppins", sans-serif;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}


.modal-register-submit:hover {

    background: #00796b;

    transform: translateY(-1px);
}


.modal-register-submit:disabled {

    opacity: .65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   LOGIN LINK
========================================================= */

.register-login-link {

    margin-top: 20px;

    text-align: center;

    color: #777;

    font-family: "Poppins", sans-serif;

    font-size: 12px;
}


.register-login-link button {

    border: none;

    background: none;

    padding: 0;

    color: #009688;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.register-login-link button:hover {

    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .register-modal-overlay {

        padding: 15px !important;

    }


    .register-modal {

        width: min(700px, 94%);

        grid-template-columns: 1fr;

        min-height: auto;

        max-height: calc(100vh - 30px);

        overflow-y: auto;

        border-radius: 16px;
    }


    .register-modal-left {

        padding: 30px;

        min-height: 200px;

        text-align: center;

        align-items: center;
    }


    .register-modal-left p {

        max-width: 500px;

    }


    .register-modal-features {

        display: none;

    }


    .register-modal-right {

        padding: 30px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .register-modal-overlay {

        padding: 10px !important;

    }


    .register-modal {

        width: 100%;

        max-width: 100%;

        max-height: calc(100vh - 20px);

        border-radius: 14px;
    }


    .register-modal-left {

        padding: 25px 20px;

        min-height: 160px;
    }


    .register-modal-logo img {

        width: 130px;

    }


    .register-modal-left h2 {

        font-size: 23px;

    }


    .register-modal-left p {

        font-size: 12px;

    }


    .register-modal-right {

        padding: 25px 20px;

    }


    .register-modal-right h2 {

        font-size: 24px;

    }


    .register-input-group > input,
    .register-password-box input {

        height: 46px;

        font-size: 13px;

    }


    .modal-register-submit {

        height: 48px;

        font-size: 14px;

    }


    .register-modal-close {

        top: 8px;

        right: 8px;

        width: 34px;

        height: 34px;

        font-size: 24px;

    }

}






























/* =========================================================
   MAIN PAGE AD POPUP
========================================================= */

.main-ad-overlay {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    background: rgba(0, 0, 0, 0.75);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    z-index: 999999;

    animation: mainAdFadeIn .25s ease;
}


/* =========================================================
   POPUP
========================================================= */

.main-ad-popup {

    position: relative;

    width: min(750px, 95vw);

    max-height: 90vh;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0,0,0,.45);

    animation: mainAdPopupIn .3s ease;
}


/* =========================================================
   IMAGE
========================================================= */

.main-ad-popup img {

    display: block;

    width: 100%;

    height: auto;

    max-height: 90vh;

    object-fit: contain;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.main-ad-close {

    position: absolute;

    top: 10px;
    right: 10px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,.75);

    color: #fff;

    font-size: 28px;

    line-height: 40px;

    padding: 0;

    cursor: pointer;

    z-index: 10;

    transition: .2s ease;
}


.main-ad-close:hover {

    background: #000;

    transform: scale(1.08);
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes mainAdFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes mainAdPopupIn {

    from {
        opacity: 0;

        transform:
            scale(.88)
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .main-ad-overlay {

        padding: 12px;
    }


    .main-ad-popup {

        width: 96vw;

        max-height: 85vh;

        border-radius: 10px;
    }


    .main-ad-popup img {

        max-height: 85vh;

        object-fit: contain;
    }


    .main-ad-close {

        width: 36px;
        height: 36px;

        line-height: 36px;

        font-size: 25px;

        top: 7px;
        right: 7px;
    }

}











/* =====================================================
   MOTOMART MUSIC BUTTON
===================================================== */

.music-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;

    width: 48px;
    height: 48px;

    border: 1px solid #d8d8d8;
    border-radius: 50%;

    background: #fff;
    color: #222;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;

    cursor: pointer;

    z-index: 999999;

    box-shadow: 0 5px 18px rgba(0,0,0,.15);

    transition: .2s ease;
}

.music-toggle:hover {
    transform: scale(1.08);
}

.music-toggle.music-playing {
    background: #eaf7ef;
    border-color: #b9ddc5;
}

@media (max-width: 600px) {

    .music-toggle {
        width: 44px;
        height: 44px;

        right: 12px;
        bottom: 12px;

        font-size: 19px;
    }

}


















/* =========================================================
   CATEGORY TOGGLE
   TOP = SQUARE
   BOTTOM = ROUND
========================================================= */

.category-toggle {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    background: #ffffff;
    color: #171717;

    border: 1.5px solid #22c55e;

    /* top-left, top-right, bottom-right, bottom-left */
    border-radius: 0 0 14px 14px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


/* TEXT */
.category-toggle span:first-child {
    display: flex;
    align-items: center;
}


/* ARROW */
.category-toggle .material-symbols-outlined {
    font-size: 24px;
    color: #16a34a;

    transition: transform .25s ease;
}


/* HOVER */
.category-toggle:hover {
    background: #f0fdf4;
    border-color: #16a34a;

    box-shadow:
        0 5px 15px rgba(34, 197, 94, .12);
}


/* =========================================================
   WHEN CATEGORY IS OPEN
========================================================= */

.category-wrapper.active .category-toggle {
    border-radius: 0 0 10px 10px;
}

.category-wrapper.active
.category-toggle .material-symbols-outlined {
    transform: rotate(180deg);
}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.category-section {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-top: 0;

    border-radius: 0 0 14px 14px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .06);
}


/* =========================================================
   CATEGORY HEADER
========================================================= */

.category-header {
    padding: 14px 15px;

    border-bottom: 1px solid #eeeeee;
}

.category-header h2 {
    margin: 0;

    font-size: 14px;
    font-weight: 700;

    color: #171717;
}
.category-header {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* =========================================================
   MAIN CATEGORY LINKS
========================================================= */

.category-section > a,
.category-section .main-cat {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 14px;

    color: #222;

    text-decoration: none;

    border-bottom: 1px solid #f0f0f0;

    transition:
        background .2s ease,
        color .2s ease;
}


.category-section > a:hover,
.category-section .main-cat:hover {
    background: #f0fdf4;
    color: #15803d;
}


/* CATEGORY IMAGE + NAME */

.main-cat > span {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 12px;
    font-weight: 700;
}


.main-cat img {
    width: 27px;
    height: 27px;

    object-fit: contain;

    display: block;
}


/* COUNT */

.category-section b,
.main-cat b {
    min-width: 28px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 7px;

    background: #f0fdf4;
    color: #15803d;

    border: 1px solid #bbf7d0;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   SUB CATEGORIES
========================================================= */

.sub-category {
    background: #fafafa;

    border-bottom: 1px solid #eeeeee;
}


.sub-category a {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 14px 7px 45px;

    color: #555;

    text-decoration: none;

    font-size: 11px;

    border-bottom: 1px solid #eeeeee;

    transition:
        background .2s ease,
        color .2s ease,
        padding-left .2s ease;
}


.sub-category a:last-child {
    border-bottom: 0;
}


.sub-category a:hover {
    padding-left: 49px;

    background: #f0fdf4;

    color: #15803d;
}


.sub-category a span {
    min-width: 23px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    color: #777;

    border: 1px solid #e5e7eb;

    border-radius: 6px;

    font-size: 10px;
}


/* =========================================================
   FILTER BAR - DESKTOP
========================================================= */

.filter-bar {
    width: 100%;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        1fr
        1fr
        1fr
        1fr;

    gap: 8px;

    padding: 12px;

    margin-top: 15px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    box-sizing: border-box;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .04);
}


/* INPUTS + SELECTS */

.filter-bar select,
.filter-bar input {
    width: 100%;
    height: 42px;

    padding: 0 11px;

    background: #fff;

    color: #222;

    border: 1px solid #dcdcdc;

    border-radius: 8px;

    outline: none;

    font-family: inherit;
    font-size: 12px;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.filter-bar select:focus,
.filter-bar input:focus {
    border-color: #22c55e;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, .10);
}


/* SEARCH BUTTON */

.filter-bar button {
    height: 42px;

    padding: 0 18px;

    border: 0;

    border-radius: 8px;

    background: #16a34a;

    color: #fff;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.filter-bar button:hover {
    background: #15803d;

    box-shadow:
        0 5px 14px rgba(22, 163, 74, .20);

    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* CATEGORY WRAPPER */

    .category-wrapper {
        width: 100%;
        margin-bottom: 10px;
    }


    /* TOGGLE */

    .category-toggle {
        min-height: 48px;

        padding: 0 14px;

        font-size: 12px;

        border-width: 1.5px;

        border-radius: 0 0 12px 12px;
    }


    .category-toggle .material-symbols-outlined {
        font-size: 22px;
    }


    /* CATEGORY LIST */

    .category-section {
        max-height: 65vh;

        overflow-y: auto;

        border-radius: 0 0 12px 12px;

        -webkit-overflow-scrolling: touch;
    }


    /* CATEGORY HEADER */

    .category-header {
        padding: 12px;
    }


    .category-header h2 {
        font-size: 13px;
    }


    /* MAIN CATEGORY */

    .category-section > a,
    .category-section .main-cat {
        min-height: 45px;

        padding: 7px 12px;
    }


    .main-cat > span {
        font-size: 11px;
        gap: 8px;
    }


    .main-cat img {
        width: 25px;
        height: 25px;
    }


    /* SUB CATEGORY */

    .sub-category a {
        min-height: 36px;

        padding: 7px 12px 7px 38px;

        font-size: 10.5px;
    }


    .sub-category a:hover {
        padding-left: 42px;
    }


    /* =====================================================
       MOBILE FILTER
    ===================================================== */

    .filter-bar {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;

        padding: 10px;

        margin-top: 10px;

        border-radius: 12px;

        box-shadow:
            0 4px 15px rgba(0, 0, 0, .05);
    }


    .filter-bar select,
    .filter-bar input {
        height: 43px;

        min-width: 0;

        font-size: 11px;

        padding: 0 9px;

        border-radius: 8px;
    }


    /* BRAND */

    .filter-bar input[name="brand"] {
        grid-column: span 1;
    }


    /* MODEL */

    .filter-bar input[name="model"] {
        grid-column: span 1;
    }


    /* YEAR */

    .filter-bar input[name="year"] {
        grid-column: span 1;
    }


    /* MIN PRICE */

    .filter-bar input[name="min_price"] {
        grid-column: span 1;
    }


    /* MAX PRICE */

    .filter-bar input[name="max_price"] {
        grid-column: span 1;
    }


    /* SEARCH */

    .filter-bar button {
        grid-column: 1 / -1;

        width: 100%;

        height: 44px;

        border-radius: 8px;

        font-size: 12px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .category-toggle {
        min-height: 46px;

        padding: 0 12px;

        font-size: 11px;
    }


    .filter-bar {
        gap: 7px;

        padding: 8px;
    }


    .filter-bar select,
    .filter-bar input {
        height: 41px;

        font-size: 10.5px;
    }


    .filter-bar button {
        height: 43px;
    }
}








/* =========================================================
   DESKTOP FILTER — ALL IN ONE LINE
========================================================= */

@media (min-width: 769px) {

    .filter-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .filter-bar select,
    .filter-bar input {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 170px !important;
        height: 40px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
        border-radius: 7px !important;
        box-sizing: border-box !important;
    }

    .filter-bar button {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 40px !important;
        padding: 0 18px !important;
        margin: 0 !important;
        font-size: 12px !important;
        border-radius: 7px !important;
        white-space: nowrap !important;
    }

    /* Remove grid positioning */
    .filter-bar input[name="brand"],
    .filter-bar input[name="model"],
    .filter-bar input[name="year"],
    .filter-bar input[name="min_price"],
    .filter-bar input[name="max_price"],
    .filter-bar button {
        grid-column: auto !important;
    }
}








/* =========================
   MOBILE CATEGORY TOGGLE
   ========================= */
@media (max-width: 768px) {

    .category-wrapper .category-toggle {
        width: 95% !important;
        max-width: 95% !important;
        min-width: 0 !important;

        margin: 0 auto !important;

        height: 48px !important;
        min-height: 48px !important;

        padding: 0 14px !important;
        box-sizing: border-box !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        background: #fff !important;
        color: #222 !important;

        border: 2px solid #22c55e !important;
        border-radius: 0 0 15px 15px !important;

        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .category-wrapper .category-toggle .material-symbols-outlined {
        font-size: 23px !important;
        color: #16a34a !important;
    }
}
@media (max-width: 768px) {

    .category-wrapper .category-toggle {
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        position: relative !important;
    }

    .category-wrapper .category-toggle span:first-child {
        text-align: center !important;
        width: 100% !important;
    }

    .category-wrapper .category-toggle .material-symbols-outlined {
        position: absolute !important;
        right: 14px !important;
        font-size: 23px !important;
        color: #16a34a !important;
    }
}




@media (max-width: 768px) {

    .category-wrapper .category-toggle {
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        position: relative !important;
    }

    .category-wrapper .category-toggle span:first-child {
        text-align: center !important;
        width: 100% !important;
    }

    .category-wrapper .category-toggle .material-symbols-outlined {
        position: absolute !important;
        right: 14px !important;
        font-size: 23px !important;
        color: #16a34a !important;
    }
}
@media (min-width: 769px) {
    .category-wrapper .category-toggle {
        display: none !important;
    }
}









/* =========================================================
   MOBILE SUB NAVBAR
   HIDDEN ON DESKTOP
========================================================= */

.mobile-sub-navbar {
    display: none;
}


/* =========================================================
   MOBILE ONLY
   SUB NAV LINKS SCROLL + RIGHT BUTTONS STAY FIXED
========================================================= */

@media (max-width: 768px) {

    .mobile-sub-navbar {
        position: sticky;
        top: 70px;
        z-index: 2000;

        width: 100%;
        height: 44px;
        min-height: 44px;

        padding: 0 !important;
        margin: 0 !important;

        display: flex;
        align-items: center;

        gap: 0;

        overflow: hidden;

        background: #fff;

        border-top: 1px solid #ececec;
        border-bottom: 1px solid #ececec;

        box-sizing: border-box;
    }


    /* =====================================================
       SCROLLABLE AREA
    ===================================================== */

    .mobile-sub-scroll {
        flex: 1 1 auto;
        min-width: 0;

        height: 44px;

        display: flex;
        align-items: center;

        overflow-x: auto;
        overflow-y: hidden;

        white-space: nowrap;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

        box-sizing: border-box;
    }

    .mobile-sub-scroll::-webkit-scrollbar {
        display: none;
    }


    /* =====================================================
       SERVICES
    ===================================================== */

    .mobile-dropdown {
        flex: 0 0 auto;

        height: 44px;

        display: flex;
        align-items: center;

        position: relative;
    }

    .mobile-drop-btn {
        height: 44px;

        padding: 0 10px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 5px;

        border: none;
        background: transparent;

        color: #333;

        font-size: 11px;
        font-weight: 500;

        white-space: nowrap;

        cursor: pointer;

        box-sizing: border-box;
    }

    .mobile-drop-btn i {
        font-size: 11px;
    }


    /* =====================================================
       MOBILE SERVICE DRAWER
    ===================================================== */

    .mobile-dropdown-content {
        display: none;

        position: fixed;

        top: 70px;
        left: 0;

        width: min(320px, 88vw);

        background: #fff;

        border: 1px solid #ddd;

        box-shadow: 0 8px 25px rgba(0, 0, 0, .15);

        z-index: 5000;

        overflow: hidden;
    }

    .mobile-dropdown-content.active,
    .mobile-dropdown-content.show {
        display: block;
    }

    .mobile-dropdown-content .drawer-header {
        height: 48px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0 15px;

        background: #fff;

        border-bottom: 1px solid #eee;

        font-size: 14px;
        font-weight: 600;
    }

    .mobile-dropdown-content .drawer-header button {
        width: 32px;
        height: 32px;

        display: flex;
        align-items: center;
        justify-content: center;

        border: none;
        background: transparent;

        color: #333;

        font-size: 24px;

        cursor: pointer;
    }

    .mobile-dropdown-content a {
        display: flex;

        min-height: 44px;

        align-items: center;

        padding: 0 15px;

        color: #374151;

        text-decoration: none;

        font-size: 12px;
        font-weight: 500;

        border-bottom: 1px solid #f0f0f0;

        white-space: nowrap;
    }

    .mobile-dropdown-content a:hover {
        color: #25D366;
        background: #fafafa;
    }


    /* =====================================================
       SCROLLABLE LINKS
    ===================================================== */

    .mobile-sub-scroll > a {
        flex: 0 0 auto;

        height: 44px;

        padding: 0 11px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        color: #374151;

        text-decoration: none;

        font-size: 11px;
        font-weight: 500;

        white-space: nowrap;

        transition: .2s ease;

        box-sizing: border-box;
    }

    .mobile-sub-scroll > a:hover {
        color: #25D366;
    }


    /* =====================================================
       RIGHT BUTTONS
       FIXED — DO NOT SCROLL
    ===================================================== */

    .mobile-sub-actions {
        flex: 0 0 auto;

        height: 44px;

        display: flex;
        align-items: center;

        gap: 4px;

        padding: 0 6px;

        background: #fff;

        border-left: 1px solid #ddd;

        box-shadow: -5px 0 8px rgba(0, 0, 0, .08);

        z-index: 10;

        box-sizing: border-box;
    }


    /* =====================================================
       RIGHT BUTTONS
    ===================================================== */

    .mobile-sub-btn {
        width: 29px;
        height: 29px;

        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        flex: 0 0 auto;

        background: #fff;

        border: 1px solid #ddd;
        border-radius: 5px;

        color: #222;

        text-decoration: none;

        cursor: pointer;

        box-sizing: border-box;
    }

    .mobile-sub-btn img {
        width: 16px;
        height: 16px;

        object-fit: contain;

        display: block;
    }

    .mobile-sub-btn:hover {
        border-color: #25D366;
    }


    /* =====================================================
       WHATSAPP
    ===================================================== */

    .mobile-sub-btn.whatsapp-mobile img {
        width: 19px;
        height: 19px;
    }


    /* =====================================================
       PREVENT DESKTOP NAVBAR FROM SHOWING AS MOBILE NAV
    ===================================================== */

    .sub-navbar {
        display: none !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .mobile-sub-navbar {
        top: 62px;

        height: 40px;
        min-height: 40px;
    }


    /* =====================================================
       SCROLL AREA
    ===================================================== */

    .mobile-sub-scroll {
        height: 40px;
    }


    /* =====================================================
       SERVICES
    ===================================================== */

    .mobile-dropdown {
        height: 40px;
    }

    .mobile-drop-btn {
        height: 40px;

        padding: 0 8px;

        font-size: 10px;
    }

    .mobile-drop-btn i {
        font-size: 10px;
    }


    /* =====================================================
       LINKS
    ===================================================== */

    .mobile-sub-scroll > a {
        height: 40px;

        padding: 0 9px;

        font-size: 10px;
    }


    /* =====================================================
       RIGHT BUTTONS
    ===================================================== */

    .mobile-sub-actions {
        height: 40px;

        padding: 0 5px;

        gap: 3px;
    }

    .mobile-sub-btn {
        width: 26px;
        height: 26px;
    }

    .mobile-sub-btn img {
        width: 14px;
        height: 14px;
    }

    .mobile-sub-btn.whatsapp-mobile img {
        width: 17px;
        height: 17px;
    }


    /* =====================================================
       MOBILE SERVICES DRAWER
    ===================================================== */

    .mobile-dropdown-content {
        top: 62px;
    }

    .mobile-dropdown-content .drawer-header {
        height: 44px;
    }

    .mobile-dropdown-content a {
        min-height: 42px;

        padding: 0 14px;

        font-size: 11px;
    }

}

.mobile-dropdown-content {
    display: none;

    position: fixed;

    top: 70px;
    left: 0;

    width: min(320px, 88vw);

    max-height: calc(100vh - 70px);

    background: #fff;

    border: 1px solid #ddd;

    box-shadow: 0 10px 30px rgba(0,0,0,.20);

    z-index: 99999;

    overflow-y: auto;

    box-sizing: border-box;
}

.mobile-dropdown-content.active {
    display: block !important;
}


@media (max-width: 480px) {

    .mobile-dropdown-content {
        top: 62px;

        width: min(310px, 90vw);

        max-height: calc(100vh - 62px);
    }

}









.mobile-dropdown-content {
    display: none !important;
}

.mobile-dropdown-content.active {
    display: block !important;
}

@media (max-width: 768px) {

    .mobile-dropdown-content {
        position: fixed !important;

        /* About 1cm from the top */
        top: 38px !important;
        left: 0 !important;

        width: min(320px, 88vw) !important;
        height: calc(100vh - 38px) !important;

        background: #fff !important;

        z-index: 999999 !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        box-shadow: 8px 0 25px rgba(0, 0, 0, 0.25);

        border-right: 1px solid #ddd;

        box-sizing: border-box;

        /* LEFT → RIGHT DRAW ANIMATION */
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;

        /* Make sure it stays above other content */
        visibility: hidden;
    }

    /* OPEN = DRAW FROM LEFT TO RIGHT */
    .mobile-dropdown-content.active {
        display: block !important;

        transform: translateX(0);

        visibility: visible;
    }

    .mobile-dropdown-content .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;

        height: 58px;

        padding: 0 16px;

        background: #111;
        color: #fff;
    }

    .mobile-dropdown-content .drawer-header button {
        border: 0;
        background: transparent;
        color: #fff;

        font-size: 30px;

        cursor: pointer;
    }

    .mobile-dropdown-content a {
        display: block;

        padding: 16px;

        color: #222;
        background: #fff;

        border-bottom: 1px solid #eee;

        text-decoration: none;

        font-size: 14px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {

    .mobile-dropdown-content {
        top: 38px !important;
        height: calc(100vh - 38px) !important;

        width: min(310px, 90vw) !important;
    }
}







/* =========================================================
   MOBILE SUB NAV
   SIX LINKS — HORIZONTAL RIGHT → LEFT
   KEEP ORIGINAL VERTICAL POSITION
========================================================= */

@media (max-width: 768px) {

    /* Keep the existing navbar height and alignment */
    .mobile-sub-scroll {
        overflow: hidden !important;
        position: relative !important;
    }

    /* Services / burger stays where it already is */
    .mobile-dropdown {
        position: relative !important;
        z-index: 9999 !important;
    }

    .mobile-drop-btn {
        position: relative !important;
        z-index: 10000 !important;
    }

    /* The six links */
    .mobile-sub-scroll > a {
        position: relative !important;

        display: inline-flex !important;
        align-items: center !important;

        vertical-align: middle !important;

        flex-shrink: 0 !important;

        white-space: nowrap !important;

        font-size: 14px !important;

        /* ONLY horizontal movement */
        animation: motoHorizontalSlide 14s linear infinite !important;

        will-change: transform !important;
    }

    /*
       IMPORTANT:
       translateX only.
       No translateY.
    */

    @keyframes motoHorizontalSlide {

        0% {
            transform: translate3d(100vw, 0, 0);
        }

        100% {
            transform: translate3d(-700px, 0, 0);
        }

    }

    /* Keep right-side buttons in their existing position */
    .mobile-sub-actions {
        position: relative !important;
        z-index: 9999 !important;
    }

}
















/* =========================================================
   MOTOMART MOBILE SUB NAVBAR
   FIXED HAMBURGER + MOVING LINKS + FIXED RIGHT BUTTONS
========================================================= */

@media (max-width: 768px) {

    /* MAIN BAR */
    .mobile-sub-navbar {
    
        top: 70px !important;
        z-index: 2000 !important;

        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;

        overflow: hidden !important;

        background: #fff !important;

        border-top: 1px solid #ececec !important;
        border-bottom: 1px solid #ececec !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       MOVING AREA
    ===================================================== */

    .mobile-sub-scroll {
        position: relative !important;

        flex: 1 1 auto !important;
        min-width: 0 !important;

        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;

        display: block !important;

        overflow: hidden !important;

        white-space: nowrap !important;

        scrollbar-width: none !important;

        box-sizing: border-box !important;
    }

    .mobile-sub-scroll::-webkit-scrollbar {
        display: none !important;
    }


    /* =====================================================
       FIXED HAMBURGER
    ===================================================== */

    .mobile-dropdown {
        position: absolute !important;

        left: 0 !important;
        top: 0 !important;

        width: 45px !important;
        height: 44px !important;
        min-height: 44px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #fff !important;

        z-index: 10000 !important;

        box-sizing: border-box !important;
    }


    .mobile-drop-btn {
        position: relative !important;

        width: 45px !important;
        height: 44px !important;
        min-width: 45px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border: none !important;

        background: #fff !important;
        color: #333 !important;

        cursor: pointer !important;

        z-index: 10001 !important;

        box-sizing: border-box !important;
    }


    .mobile-drop-btn i {
        font-size: 19px !important;
        line-height: 1 !important;
    }


    /* =====================================================
       MOVING LINKS TRACK
       ONLY THIS ELEMENT MOVES
    ===================================================== */

    .mobile-links-track {
        position: absolute !important;

        left: 0 !important;
        top: 0 !important;

        height: 44px !important;
        min-height: 44px !important;

        width: max-content !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        flex-wrap: nowrap !important;

        gap: 0 !important;

        white-space: nowrap !important;

        z-index: 1 !important;

        animation: motomartLinksSlide 18s linear infinite !important;

        will-change: transform !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       INDIVIDUAL LINKS
    ===================================================== */

    .mobile-links-track > a {
        position: relative !important;

        flex: 0 0 115px !important;
        width: 115px !important;

        height: 44px !important;
        min-height: 44px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #374151 !important;

        background: transparent !important;

        text-decoration: none !important;

        font-size: 14px !important;
        font-weight: 600 !important;

        line-height: 1 !important;

        white-space: nowrap !important;

        box-sizing: border-box !important;

        transform: none !important;
    }


    .mobile-links-track > a:hover {
        color: #15803d !important;
    }


    /* =====================================================
       RIGHT → LEFT ANIMATION
       6 LINKS × 115px = 690px
    ===================================================== */

    @keyframes motomartLinksSlide {

        0% {
            transform: translate3d(0, 0, 0) !important;
        }

        100% {
            transform: translate3d(-690px, 0, 0) !important;
        }

    }


    /* =====================================================
       FIXED RIGHT BUTTONS
    ===================================================== */

    .mobile-sub-actions {
        position: relative !important;

        flex: 0 0 auto !important;

        height: 44px !important;
        min-height: 44px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 4px !important;

        padding: 0 6px !important;
        margin: 0 !important;

        background: #fff !important;

        border-left: 1px solid #ddd !important;

        box-shadow: -5px 0 8px rgba(0,0,0,.08) !important;

        z-index: 20000 !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       HOME / PROFILE / DARK / WHATSAPP
    ===================================================== */

    .mobile-sub-btn {
        width: 29px !important;
        height: 29px !important;

        min-width: 29px !important;
        min-height: 29px !important;

        flex: 0 0 29px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #fff !important;

        border: 1px solid #ddd !important;
        border-radius: 5px !important;

        color: #222 !important;

        text-decoration: none !important;

        cursor: pointer !important;

        box-sizing: border-box !important;
    }


    .mobile-sub-btn img {
        width: 16px !important;
        height: 16px !important;

        max-width: 16px !important;
        max-height: 16px !important;

        object-fit: contain !important;

        display: block !important;
    }


    .mobile-sub-btn:hover {
        border-color: #25D366 !important;
    }


    /* WHATSAPP */
    .mobile-sub-btn.whatsapp-mobile img {
        width: 19px !important;
        height: 19px !important;

        max-width: 19px !important;
        max-height: 19px !important;
    }


    /* =====================================================
       HIDE DESKTOP SUB NAVBAR
    ===================================================== */

    .sub-navbar {
        display: none !important;
    }


    /* =====================================================
       MOBILE SERVICES DRAWER
    ===================================================== */

    .mobile-dropdown-content {
        position: fixed !important;

        top: 38px !important;
        left: 0 !important;

        width: min(320px, 88vw) !important;

        height: calc(100vh - 38px) !important;

        max-height: none !important;

        display: none !important;

        background: #fff !important;

        border: none !important;
        border-right: 1px solid #ddd !important;

        box-shadow: 8px 0 25px rgba(0,0,0,.25) !important;

        z-index: 9999999 !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        box-sizing: border-box !important;

        transform: translateX(-100%) !important;

        visibility: hidden !important;
        pointer-events: none !important;

        transition:
            transform .35s ease-in-out,
            visibility 0s linear .35s !important;
    }


    .mobile-dropdown-content.active,
    .mobile-dropdown-content.show {
        display: block !important;

        transform: translateX(0) !important;

        visibility: visible !important;
        pointer-events: auto !important;

        transition:
            transform .35s ease-in-out,
            visibility 0s linear 0s !important;
    }


    /* DRAWER HEADER */

    .mobile-dropdown-content .drawer-header {
        width: 100% !important;

        height: 58px !important;
        min-height: 58px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        padding: 0 16px !important;
        margin: 0 !important;

        background: #111 !important;
        color: #fff !important;

        box-sizing: border-box !important;
    }


    .mobile-dropdown-content .drawer-header span {
        color: #fff !important;

        font-size: 16px !important;
        font-weight: 700 !important;
    }


    .mobile-dropdown-content .drawer-header button {
        width: 38px !important;
        height: 38px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border: none !important;

        background: transparent !important;
        color: #fff !important;

        font-size: 28px !important;

        cursor: pointer !important;
    }


    /* DRAWER LINKS */

    .mobile-dropdown-content > a {
        width: 100% !important;

        min-height: 50px !important;

        padding: 0 16px !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;

        background: #fff !important;
        color: #222 !important;

        border: none !important;
        border-bottom: 1px solid #eee !important;

        text-decoration: none !important;

        font-size: 13px !important;
        font-weight: 600 !important;

        white-space: nowrap !important;

        box-sizing: border-box !important;
    }


    .mobile-dropdown-content > a:hover {
        background: #f0fdf4 !important;
        color: #15803d !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .mobile-sub-navbar {
        top: 62px !important;

        height: 40px !important;
        min-height: 40px !important;
    }


    .mobile-sub-scroll {
        height: 40px !important;
        min-height: 40px !important;
    }


    /* HAMBURGER */

    .mobile-dropdown {
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }


    .mobile-drop-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }


    .mobile-drop-btn i {
        font-size: 18px !important;
    }


    /* MOVING TRACK */

    .mobile-links-track {
        height: 40px !important;
        min-height: 40px !important;

        animation-name: motomartLinksSlideSmall !important;

        animation-duration: 18s !important;
        animation-timing-function: linear !important;
        animation-iteration-count: infinite !important;
    }


    .mobile-links-track > a {
        flex: 0 0 105px !important;
        width: 105px !important;

        height: 40px !important;
        min-height: 40px !important;

        font-size: 13px !important;
        font-weight: 600 !important;
    }


    /* 6 × 105px = 630px */

    @keyframes motomartLinksSlideSmall {

        0% {
            transform: translate3d(0, 0, 0) !important;
        }

        100% {
            transform: translate3d(-630px, 0, 0) !important;
        }

    }


    /* RIGHT BUTTONS */

    .mobile-sub-actions {
        height: 40px !important;
        min-height: 40px !important;

        padding: 0 5px !important;

        gap: 3px !important;
    }


    .mobile-sub-btn {
        width: 26px !important;
        height: 26px !important;

        min-width: 26px !important;
        min-height: 26px !important;

        flex: 0 0 26px !important;
    }


    .mobile-sub-btn img {
        width: 14px !important;
        height: 14px !important;
    }


    .mobile-sub-btn.whatsapp-mobile img {
        width: 17px !important;
        height: 17px !important;
    }


    /* SERVICES DRAWER */

    .mobile-dropdown-content {
        top: 38px !important;

        width: min(310px, 90vw) !important;

        height: calc(100vh - 38px) !important;
    }


    .mobile-dropdown-content .drawer-header {
        height: 52px !important;
        min-height: 52px !important;
    }


    .mobile-dropdown-content > a {
        min-height: 46px !important;

        padding: 0 14px !important;

        font-size: 12px !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .mobile-sub-actions {
        padding: 0 3px !important;
        gap: 2px !important;
    }


    .mobile-sub-btn {
        width: 24px !important;
        height: 24px !important;

        min-width: 24px !important;
        min-height: 24px !important;

        flex-basis: 24px !important;
    }


    .mobile-sub-btn img {
        width: 13px !important;
        height: 13px !important;
    }


    .mobile-sub-btn.whatsapp-mobile img {
        width: 16px !important;
        height: 16px !important;
    }

}









/* =========================================================
   MOTOMART MOBILE SERVICES DRAWER
   SLIDE LEFT → RIGHT
========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       DRAWER
    ----------------------------------------------------- */

    .mobile-dropdown-content {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;

        width: min(320px, 88vw) !important;
        height: 100vh !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        background: #fff !important;

        border: none !important;
        border-right: 1px solid #ddd !important;

        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.25) !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        box-sizing: border-box !important;

        /* CLOSED POSITION */
        transform: translate3d(-100%, 0, 0) !important;

        visibility: hidden !important;
        opacity: 0 !important;

        pointer-events: none !important;

        z-index: 9999999 !important;

        /* LEFT → RIGHT */
        transition:
            transform 0.35s ease,
            opacity 0.25s ease,
            visibility 0s linear 0.35s !important;
    }


    /* -----------------------------------------------------
       OPEN DRAWER
    ----------------------------------------------------- */

    .mobile-dropdown-content.active,
    .mobile-dropdown-content.show {
        display: block !important;

        transform: translate3d(0, 0, 0) !important;

        visibility: visible !important;
        opacity: 1 !important;

        pointer-events: auto !important;

        transition:
            transform 0.35s ease,
            opacity 0.25s ease,
            visibility 0s linear 0s !important;
    }


    /* -----------------------------------------------------
       DRAWER HEADER
    ----------------------------------------------------- */

    .mobile-dropdown-content .drawer-header {
        width: 100% !important;

        height: 58px !important;
        min-height: 58px !important;

        padding: 0 16px !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        background: #111 !important;
        color: #fff !important;

        box-sizing: border-box !important;
    }


    /* SERVICES TITLE */

    .mobile-dropdown-content .drawer-header span {
        color: #fff !important;

        font-size: 17px !important;
        font-weight: 700 !important;

        line-height: 1 !important;
    }


    /* CLOSE BUTTON */

    .mobile-dropdown-content .drawer-header button {
        width: 38px !important;
        height: 38px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border: none !important;

        background: transparent !important;
        color: #fff !important;

        font-size: 30px !important;
        font-weight: 300 !important;

        line-height: 1 !important;

        cursor: pointer !important;
    }


    .mobile-dropdown-content .drawer-header button:hover {
        color: #25D366 !important;
    }


    /* -----------------------------------------------------
       SERVICE LINKS
    ----------------------------------------------------- */

    .mobile-dropdown-content > a {
        width: 100% !important;

        min-height: 52px !important;

        padding: 0 18px !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;

        background: #fff !important;
        color: #222 !important;

        border: none !important;
        border-bottom: 1px solid #eeeeee !important;

        text-decoration: none !important;

        font-size: 13px !important;
        font-weight: 600 !important;

        line-height: 1.2 !important;

        white-space: nowrap !important;

        box-sizing: border-box !important;

        transition:
            background 0.2s ease,
            color 0.2s ease,
            padding-left 0.2s ease !important;
    }


    /* HOVER */

    .mobile-dropdown-content > a:hover {
        background: #f0fdf4 !important;
        color: #15803d !important;

        padding-left: 23px !important;
    }


    /* ACTIVE / TOUCH */

    .mobile-dropdown-content > a:active {
        background: #dcfce7 !important;
        color: #166534 !important;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .mobile-dropdown-content {
        width: min(310px, 90vw) !important;
        height: 100vh !important;
    }


    .mobile-dropdown-content .drawer-header {
        height: 54px !important;
        min-height: 54px !important;

        padding: 0 14px !important;
    }


    .mobile-dropdown-content .drawer-header span {
        font-size: 16px !important;
    }


    .mobile-dropdown-content .drawer-header button {
        width: 36px !important;
        height: 36px !important;

        font-size: 28px !important;
    }


    .mobile-dropdown-content > a {
        min-height: 48px !important;

        padding: 0 15px !important;

        font-size: 12px !important;
    }


    .mobile-dropdown-content > a:hover {
        padding-left: 20px !important;
    }

}



@media (max-width: 768px) {
    .mobile-sub-navbar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        z-index: 200 !important;

        display: flex !important;
        align-items: center !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;
        border-top: 1px solid #ececec !important;
        border-bottom: 1px solid #ececec !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .mobile-sub-navbar {
        position: relative !important;
        top: auto !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}



/* =====================================================
   FORCE MOBILE SERVICES DRAWER ABOVE ALL NAVBARS
===================================================== */

@media (max-width: 768px) {

    /* Make the mobile navbar itself NOT create
       a higher stacking context than the drawer */
    .mobile-sub-navbar {
        z-index: 1000 !important;
    }

    .mobile-sub-scroll {
        z-index: 1 !important;
    }

    .mobile-dropdown {
        z-index: 2 !important;
    }

    .mobile-sub-actions {
        z-index: 3 !important;
    }


    /* =================================================
       SERVICES DRAWER
       FULL SCREEN - LEFT → RIGHT
    ================================================= */

    .mobile-dropdown-content {
        position: fixed !important;

        left: 0 !important;
        top: 0 !important;

        width: min(320px, 88vw) !important;
        height: 100vh !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        background: #ffffff !important;

        transform: translate3d(-100%, 0, 0) !important;

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        z-index: 2147483647 !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        box-shadow:
            8px 0 30px rgba(0,0,0,.30) !important;

        transition:
            transform .35s ease,
            opacity .25s ease,
            visibility 0s linear .35s !important;

        box-sizing: border-box !important;
    }


    /* =================================================
       OPEN
    ================================================= */

    .mobile-dropdown-content.active,
    .mobile-dropdown-content.show {

        transform: translate3d(0, 0, 0) !important;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        z-index: 2147483647 !important;

        transition:
            transform .35s ease,
            opacity .25s ease,
            visibility 0s linear 0s !important;
    }

}




@media (max-width: 768px) {

    /* Normal sub-navbar */
    .mobile-sub-navbar {
        position: relative !important;
        z-index: 2000 !important;
    }

    /* Right-side buttons stay normal */
    .mobile-sub-actions {
        position: relative !important;
        z-index: 2001 !important;
    }

    /* =================================================
       SERVICES DRAWER
       MUST COVER MOBILE-SUB-ACTIONS
    ================================================= */

    .mobile-dropdown-content {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;

        width: min(320px, 88vw) !important;
        height: 100vh !important;

        background: #fff !important;

        z-index: 2147483647 !important;

        transform: translateX(-100%) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        box-shadow: 8px 0 30px rgba(0,0,0,.30) !important;

        transition:
            transform .35s ease,
            opacity .25s ease,
            visibility 0s linear .35s !important;

        box-sizing: border-box !important;
    }


    /* OPEN DRAWER */

    .mobile-dropdown-content.active,
    .mobile-dropdown-content.show {

        transform: translateX(0) !important;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        z-index: 2147483647 !important;
    }

}












/* =====================================================
   MOBILE SERVICES DRAWER
   OUTSIDE NAVBAR
   ALWAYS ABOVE SUB ACTIONS + MAIN NAVBAR
===================================================== */

@media (max-width: 768px) {

    .mobile-dropdown-content {
        position: fixed !important;

        left: 0 !important;
        top: 0 !important;

        width: min(320px, 88vw) !important;
        height: 100vh !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        background: #fff !important;

        z-index: 2147483647 !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        transform: translate3d(-100%, 0, 0) !important;

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        box-shadow:
            8px 0 30px rgba(0,0,0,.30) !important;

        transition:
            transform .35s ease,
            opacity .25s ease,
            visibility 0s linear .35s !important;

        box-sizing: border-box !important;
    }


    /* OPEN */

    .mobile-dropdown-content.active,
    .mobile-dropdown-content.show {

        transform: translate3d(0, 0, 0) !important;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        z-index: 2147483647 !important;
    }


    /* HEADER */

    .mobile-dropdown-content .drawer-header {

        width: 100% !important;

        height: 58px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: space-between !important;

        padding: 0 18px !important;

        background: #fff !important;

        border-bottom: 1px solid #e5e5e5 !important;

        box-sizing: border-box !important;
    }


    .mobile-dropdown-content .drawer-header span {

        font-size: 18px !important;

        font-weight: 700 !important;

        color: #222 !important;
    }


    .mobile-dropdown-content .drawer-header button {

        width: 38px !important;
        height: 38px !important;

        border: none !important;

        background: transparent !important;

        color: #222 !important;

        font-size: 30px !important;

        cursor: pointer !important;
    }


    /* LINKS */

    .mobile-dropdown-content > a {

        width: 100% !important;

        min-height: 52px !important;

        display: flex !important;

        align-items: center !important;

        padding: 0 18px !important;

        background: #fff !important;

        color: #333 !important;

        border-bottom: 1px solid #eee !important;

        text-decoration: none !important;

        font-size: 14px !important;

        font-weight: 600 !important;

        box-sizing: border-box !important;
    }


    .mobile-dropdown-content > a:hover {

        background: #f5f5f5 !important;

        color: #15803d !important;
    }

}


@media (max-width: 768px) {

    .mobile-sub-navbar {
        position: relative !important;
        top: auto !important;
        left: auto !important;

        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;

        overflow: hidden !important;

        background: #fff !important;
        border-top: 1px solid #ececec !important;
        border-bottom: 1px solid #ececec !important;

        z-index: 10 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {

    .mobile-sub-navbar {
        position: relative !important;
        top: auto !important;
        left: auto !important;

        height: 40px !important;
        min-height: 40px !important;
    }
}









/* =========================================================
   MOBILE SUB-NAVBAR
   SLOWER / SMOOTH HORIZONTAL SCROLL + THUMB
========================================================= */

@media (max-width: 700px) {

    .page-wrap > .sub-navbar {
        position: sticky;
        top: 54px;

        height: 38px;
        min-height: 38px;

        overflow-x: auto;
        overflow-y: hidden;

        white-space: nowrap;

        /* Smooth touch scrolling */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;

        /* Prevent accidental vertical scrolling */
        touch-action: pan-x;

        /* Firefox */
        scrollbar-width: auto;
        scrollbar-color: #25a244 #e8e8e8;
    }

    /* Chrome / Edge / Android */
    .page-wrap > .sub-navbar::-webkit-scrollbar {
        height: 7px;
    }

    .page-wrap > .sub-navbar::-webkit-scrollbar-track {
        background: #e8e8e8;
        border-radius: 0;
    }

    .page-wrap > .sub-navbar::-webkit-scrollbar-thumb {
        background: #25a244;
        border-radius: 10px;

        /* Makes the thumb easier to grab */
        min-width: 55px;
    }

    .page-wrap > .sub-navbar::-webkit-scrollbar-thumb:hover {
        background: #1d8739;
    }
}













@media (max-width: 768px) {

    .mobile-sub-navbar {
        width: 100%;
        display: flex;
        overflow: hidden;
    }

    .mobile-sub-scroll {
        flex: 1;
        min-width: 0;

        display: flex;
        align-items: center;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

        touch-action: pan-x;

        cursor: grab;
    }

    .mobile-sub-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .mobile-sub-scroll > a,
    .mobile-sub-scroll > .mobile-dropdown {
        flex: 0 0 auto;
    }

    .mobile-sub-scroll:active {
        cursor: grabbing;
    }

}




@media (max-width: 768px) {

    /* MAIN BAR */
    .mobile-sub-navbar {
        width: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
    }


    /* ==============================
       FIXED BURGER
    ============================== */

    .mobile-dropdown {
        flex: 0 0 auto;
        position: relative;
        z-index: 100;
    }

    .mobile-drop-btn {
        flex: 0 0 auto;
        width: 50px;
        height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;

        border: none;
        background: #fff;

        cursor: pointer;
    }


    /* ==============================
       SLIDING LINKS
    ============================== */

    .mobile-sub-scroll {
        flex: 1;
        min-width: 0;

        display: flex;
        align-items: center;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;

        touch-action: pan-x;

        cursor: grab;
    }

    .mobile-sub-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }


    /* LINKS */
    .mobile-sub-scroll > a {
        flex: 0 0 auto;
        white-space: nowrap;
    }


    /* ==============================
       FIXED RIGHT BUTTONS
    ============================== */

    .mobile-sub-actions {
        flex: 0 0 auto;

        display: flex;
        align-items: center;

        position: relative;
        z-index: 100;

        background: #fff;
    }


    /* DRAGGING */
    .mobile-sub-scroll:active {
        cursor: grabbing;
    }

}



@media (max-width: 768px) {

    /* MAIN BAR */
    .mobile-sub-navbar {
        position: relative !important;
        display: flex !important;
        width: 100% !important;
        height: 50px !important;
        overflow: hidden !important;
    }

    /* SCROLL AREA */
    .mobile-sub-scroll {
        position: relative !important;

        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        height: 50px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap !important;

        scrollbar-width: none !important;

        -webkit-overflow-scrolling: touch !important;

        touch-action: pan-x !important;

        padding: 0 !important;
        margin: 0 !important;

        gap: 0 !important;
    }

    .mobile-sub-scroll::-webkit-scrollbar {
        display: none !important;
    }


    /* =================================================
       BURGER
    ================================================= */

    .mobile-sub-scroll .mobile-dropdown {
        position: sticky !important;
        left: 0 !important;

        min-width: 55px !important;
        width: 55px !important;
        height: 50px !important;

        flex: 0 0 55px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #fff !important;

        z-index: 999999 !important;
    }

    .mobile-drop-btn {
        width: 55px !important;
        height: 50px !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;

        background: #fff !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-drop-btn .fa-bars {
        font-size: 22px !important;
        display: block !important;
    }


    /* =================================================
       LINKS
    ================================================= */

    .mobile-sub-scroll > a {
        flex: 0 0 auto !important;

        white-space: nowrap !important;

        display: flex !important;
        align-items: center !important;

        height: 50px !important;

        padding: 0 15px !important;
    }


    /* =================================================
       RIGHT BUTTONS
    ================================================= */

    .mobile-sub-actions {
        position: relative !important;

        flex: 0 0 auto !important;

        height: 50px !important;

        display: flex !important;
        align-items: center !important;

        background: #fff !important;

        z-index: 999999 !important;
    }

}











