h1,h2,h3,h4,h5{
        /* color: var(--black); */
        font-family: "Montserrat", sans-serif;
    }
    p, a, div, ul, li, span, body, input, table, td, th, textarea, button, select {
        font-family: "Montserrat", sans-serif !important;
    }


    
/* CSS Variables */
:root {
    --black: #111112;
    --orange: #F57423;
    --text-dark: #333;
     --blue: #23229B;
    --text-gray: #777;
    --bg-light-gray: #f7f7f7;
    --border-color: #d3c3c3;
    --container-width: 1200px;
     --footer-bg: #404040; /* Dark gray color from the image */
    --text-light: #f0f0f0;
    --heading-color: #ffffff;
    --link-color: #f0f0f0;
    --border-color: #d3c3c3; /* Slightly lighter gray for the divider */
}

/* Base Styles and Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-dark);
    line-height: 1.5;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0px 15px;
}

body{
    margin: 0px;
    padding: 0px;
    position: relative;
}
*{
    box-sizing: border-box;
}
section{
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
html {
  scroll-behavior: smooth;
}
h1,h2,h3,h4,h5{
    /* color: var(--black); */
}
/*-------------------------------------------------------------- 
# Root css 
--------------------------------------------------------------*/
 :root{
     --black: #111112;
     --white: #FFFFFF;
     --text: #49515b;
     --grey: #EAEEF0;
}
 body::-webkit-scrollbar {
     width: 6px;
}
 body::-webkit-scrollbar-track {
     background:var(--black);
     border-radius: 8px;
}
 body::-webkit-scrollbar-thumb {
     background:var(--orange);
     border-radius: 8px;
}
a{
     transition: all 0.5s;
}
.custom_container{
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    width: 100%;
}
img{
    max-width: 100%;
    display: block;
}
a,button{
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s;
}
input,button,select,textarea{
    border: unset;
    outline: unset;
}
header *{
    font-family:"Inter", sans-serif;
}
/*-------------------------------------------------------------- 
# Header css 
--------------------------------------------------------------*/
.header_top ul.header_list {
    margin: 0px;
    padding: 0px;
    list-style: none;
    display: flex;
    justify-content: end;
    grid-gap: 20px;
    align-items: center;
}
.header_top ul.header_list li a{
    display: flex;
    grid-gap: 8px;
    align-items: center;
    color: var(--white);
    font-size: 14px;
}
.header_top ul.header_list li a:hover{
    color: var(--orange);
}
.header_top ul.header_list li a i{
    font-size:18px;
    color: var(--white);
}
.header_top {
    padding: 8px 0px;
    background-color: var(--green);
}
.header_sec{
    background-color: var(--white);
    position: sticky;
    top: 0px;
    z-index: 9;
}
.header_top .custom_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 10px;
}
.header_top .custom_container span.hours {
    color: var(--white);
    font-size: 14px;
}
.header_middle .custom_container {
    display: flex;
    justify-content: space-between;
    grid-gap: 20px;
    padding: 15px 20px;
    align-items: center;
}
.header_middle a.logo{
    max-width: 200px;
}
form.search_form_sec {
    display: flex;
    grid-gap: 10px;
    padding: 6px;
    background-color: #F5F5F5;
    border-radius: 6px;
    width: 100%;
    grid-template-columns: 35% auto auto max-content;
    max-width: fit-content;
}
form.search_form_sec input, form.search_form_sec select,form.search_form_sec button {
    width: 100%;
    min-height: 40px;
    padding: 8px 15px;
    font-size: 15px;
    border-radius: 4px;
    color: var(--text-gray);
}
form.search_form_sec button{
    background-color:var(--green);
    color: var(--white);
    cursor: pointer;
    transition: all 0.4s;
    padding: 10px 24px;
}
form.search_form_sec button:hover{
    background-color:var(--black);
}

.sub-nav .container ul {
    /* (Your existing list styles here) */
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
    max-width: 100%;
    overflow: auto;
}
span.menu_toggle {
    font-size: 26px;
    color: var(--green);
    cursor: pointer;
    display: none;
}
span.cross {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    color: var(--green);
    display: none;
    cursor: pointer;
}
/* --- SCROLLBAR STYLING --- */

/* 1. Set the overall size and appearance of the scrollbar */
.sub-nav .container ul::-webkit-scrollbar {
    height: 6px; /* Define the height for the horizontal scrollbar */
}

/* 2. Style the TRACK (the light gray background area) */
.sub-nav .container ul::-webkit-scrollbar-track {
    background-color: #e0e0e0; /* Very light grey color */
    border-radius: 3px;
}

/* 3. Style the THUMB (the movable darker gray part) */
.sub-nav .container ul::-webkit-scrollbar-thumb {
    background-color: #a0a0a0; /* Darker grey color, matching the image's "progress" fill */
    border-radius: 3px;
}

/* Optional: Style the thumb on hover */
.sub-nav .container ul::-webkit-scrollbar-thumb:hover {
    background-color: #888888;
}


  /* --- Base Styles & Layout --- */
    .filter-group h4 {
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 16px; /* Match the bold 'Category' title */
    }

    .checkbox-item {
        /* Base Flexbox settings you already had */
        display: flex;
        align-items: center;
        justify-content: space-between; /* Pushes the count to the far right */
        
        /* Other styles */
        font-size: 14px; 
        padding: 5px 0;
        cursor: pointer;
        color: #333; /* Dark text color */
    }

    /* --- Hiding the Native Input --- */

    .checkbox-item input[type="checkbox"] {
        /* HIDE THE NATIVE CHECKBOX */
        position: absolute;
        opacity: 0;
        pointer-events: none; /* Ensure it doesn't block clicks */
    }

    /* --- Styling the Custom Checkbox Square --- */

    .checkbox-item .custom-box {
        /* Visual square */
        width: 18px;
        height: 18px;
        border: 1px solid #ccc;
        background-color: #fff;
        border-radius: 3px;
        
        /* Position the box to the far left of the label content */
         
        
        /* Ensure the custom box and text stay on the left side, separate from the count */
        flex-shrink: 0;
        display: inline-block;
        margin: 0px 5px 0px 0px;
    }

    /* --- Styling the Text and Count --- */

    .checkbox-item .label-text {
        /* Allows the text to take up space and align next to the custom box */
        margin-right: auto; /* Pushes the count to the opposite side */
         /* Spacing between text and count */
        flex-grow: 1;
        font-size: 12px;
        padding-right: 12px;
    }

    .checkbox-item .count-number {
        /* Count number styles */
        color: #555; /* Slightly lighter count text */
        font-size: 14px;
        flex-shrink: 0; /* Prevents count from being compressed */
    }

    /* --- Checked State (Visual Feedback) --- */

    .checkbox-item input[type="checkbox"]:checked + .custom-box {
        /* When checked, add a subtle border or background change */
        border-color: #333;
        background-color: #fff;
        /* Optional: Add a checkmark using a pseudo-element */
        position: relative;
    }

    .checkbox-item input[type="checkbox"]:checked + .custom-box::after {
        content: '✓';
        position: absolute;
        top: -2px;
        left: 2px;
        font-size: 16px;
        color: #333;
        font-weight: bold;
    }
    
    /* header video */
    /* --- 1. Container Styles (The Section) --- */
    .video-background {
      /* CRITICAL: Allows child video to be positioned relative to this container */
      position: relative; 
      /* Define the height of the section */
      height: 500px; /* Adjust this height as needed */
      width: 100%; 
      /* Optional: Ensures content that overflows is not visible */
      overflow: hidden; 
    }
    
    /* --- 2. Video Styles (The Background) --- */
    #myVideo {
      /* CRITICAL: Changed from 'fixed' to 'absolute' */
      position: absolute; 
      /* Pin the video to the top-left corner of the container */
      top: 0;
      left: 0;
      width: 100% !important;
      /* Make the video cover the entire parent container */
      min-width: 100%; 
      min-height: 100%;
      width: auto;
      height: auto;
      
      /* Ensure the video scales cleanly without distorting aspect ratio */
      object-fit: cover; 
      
      /* Push the video to the back */
      z-index: 0; 
    }
    
    /* --- 3. Content Styles (The Foreground) --- */
    .section-content {
      /* Bring the content layer forward */
      position: relative;
      z-index: 10; 
      /* Add padding/flexbox to center content as needed */
      color: white; /* Example for text color over video */
      padding: 50px;
    }
    .video-overlay {
      /* Position and size must match the video and parent container */
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      
      /* CRITICAL: Set semi-transparent color */
      /* This creates a dark, 40% opaque overlay */
      background: rgba(0, 0, 0, 0.4); 
      
      /* Place it above the video but below the content */
      z-index: 5; 
    }
    
    
    
    /* Mega Menu  css*/
    .header_menu {
    	 display: block !important;
	}
    .header_menu {
        position: relative;
        width: 100%;
        max-width: fit-content;
        width: 100%;
        max-width: 100%;
        margin: 0px auto;
        padding:0px 15px;
    }
    .menu_list {
        list-style: none;
        display: flex;
        gap: 8px;
        margin: 0px;
        padding: 0px;
        max-width: 100%;
        justify-content: center;
        flex-flow: wrap;
        padding: 10px 0px;
        max-width: 1500px;
        margin:0px auto;
    }
    .menu_list li {
        position: relative;
        max-width: 100%;
        border: solid 1px var(--green);
        border-radius: 4px;
        padding: 5px;
    }
    .menu_list a {
      text-decoration: none;
      color: var(--black);
      font-weight: 600;
      font-size: 16px;
    }
    .menu_list a:hover {
      color: var(--orange);
    }
    .mega_menu_head:hover .mega_menu {
      display: flex;
    }
    
    .submenu {
    }
    .submenu ul {
      list-style: none;
      margin: 0;
      padding: 0;
      width: 100%;
    }
    .submenu li {
        border: none;
        border-radius: unset;
        padding: 0;
      /* margin-bottom: 10px; */
    }
    .submenu ul li a {
        text-decoration: none;
        color: var(--white);
        font-size: 14px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 8px 0px;
        display: block;
        width:100%;
    }
    .submenu ul li a:hover{
        color: var(--white);
    }
    .menu_list li:hover > div {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }
    .mega_menu {
        position: absolute;
        top: 110%;
        background: var(--orange);
        padding: 12px 13px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        width: 215px;
        z-index: 10;
        justify-content: space-between;
        left: 0px;
        display: flex;
        grid-gap: 15px;
        border-radius: 6px;
        transition: all 0.4s;
        opacity: 0;
        visibility:hidden;
    }
    .submenu ul li a:hover {
      color: var(--orange);
    }
    .menu_list li a {
        display: flex;
        align-items: center;
        grid-gap: 10px;
        padding: 0px 0px 0px;
        font-size: 16px;
        color:var(--green);
    }
    .submenu li:last-child a {
        border-bottom-width:0px;
    }
    
    
.header_middle .custom_container a.please_btn {
    background-color: var(--orange);
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: fit-content;
    border-radius: 5px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

        /* --- 1. Top Bar --- */
        .top-bar {
            background-color: var(--header-green);
            color: var(--text-light);
            font-size: 13px;
            padding: 8px 0;
        }

        .top-bar .container {
            display: flex;
            justify-content: space-between;
        }

        .contact-info > span:first-child::before { content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="white"><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z"/></svg>'); vertical-align: middle; margin-right: 5px; }
        .contact-info > span:nth-child(2)::before { content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>'); vertical-align: middle; margin-right: 5px; margin-left: 15px; }

        /* --- 2. Main Navigation --- */
        .main-nav {
            background-color: #fff;
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .main-nav .container {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--main-green);
            white-space: nowrap;
        }
        
        .tractor-icon {
            font-size: 28px; /* Using actual emoji/icon placeholder */
            margin-right: 5px;
        }

        .search-form {
            display: flex;
            flex-grow: 1;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            overflow: hidden;
            max-width: 700px;
        }

        .search-form input,
        .search-form select {
            padding: 10px 15px;
            border: none;
            outline: none;
            font-size: 14px;
            color: var(--text-gray);
            border-right: 1px solid var(--border-color);
            appearance: none;
            background-color: white;
        }

        .search-form input {
            flex-grow: 1;
            min-width: 150px;
        }

        .search-form select {
            width: 150px;
            cursor: pointer;
        }
        
        .search-form select:last-of-type {
            width: 120px;
        }

        .search-btn {
            background-color: var(--main-green);
            color: white;
            padding: 10px 20px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.2s;
        }

        .place-ad-btn {
            background-color: var(--orange);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }

        /* --- 3. Sub Navigation --- */
        .sub-nav {
            background-color: #fff;
            border-bottom: 1px solid var(--border-color);
            padding: 20px 0;
        }

        .sub-nav ul {
            list-style: none;
            display: flex;
            justify-content: space-between;
            gap: 40px;
            font-size: 14px;
            color: var(--text-gray);
            white-space: nowrap;
            max-width: 100%;
            overflow: auto;
        }

        .sub-nav li a {
            padding: 5px 0;
            display: flex;
            align-items: center;
            font-weight: 500;
            text-transform: uppercase;
        }
        
        /* Simulating icons next to text */
        .sub-nav li:nth-child(1) a::before { content: '⚙️'; margin-right: 5px; font-size: 16px; }
        .sub-nav li:nth-child(2) a::before { content: '🌾'; margin-right: 5px; font-size: 16px; }
        .sub-nav li:nth-child(3) a::before { content: '🚧'; margin-right: 5px; font-size: 16px; }
        .sub-nav li:nth-child(4) a::before { content: '🚚'; margin-right: 5px; font-size: 16px; }
        .sub-nav li:nth-child(5) a::before { content: '🔗'; margin-right: 5px; font-size: 16px; }
        .sub-nav li:nth-child(6) a::before { content: '🛠️'; margin-right: 5px; font-size: 16px; }

        /* --- 4. Hero Section --- */
        .hero-section {
            background-color: var(--main-green);
            color: white;
            padding: 60px 15px;
            text-align: center;
            background-image: linear-gradient(to bottom, #00A650,#188951);
            min-height: 70vh;
            display: flex;
            align-items: center;
        }

        .hero-section h1 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--white);
        }

        .hero-section p {
            font-size: 18px;
            margin-bottom: 30px;
            color: var(--white);
            font-weight: 700;
        }

        .stats {
            display: flex;
            justify-content: center;
            gap: 50px;
            margin-top: 40px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-item .number {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .stat-item .label {
            font-size: 14px;
            opacity: 0.8;
        }

        /* --- 5. Featured Machinery Section --- */
        .featured-machinery {
            padding: 40px 0 60px;
            background-color: var(--bg-light-gray); /* Light gray background subtle */
        }
        
        .featured-machinery .container {
            /*background-color: white;*/
            padding: 0px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 20px;
            padding: 0 0px;
        }

        .section-header h2 {
            font-size: 22px;
            font-weight: 600;
        }

        .view-all {
            color: var(--main-green);
            font-size: 14px;
            font-weight: 500;
        }

        /* Card Grid Layout */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .card {
            background: #fff;
/*            border: 1px solid var(--border-color);*/
            border-radius: 4px;
            overflow: hidden;
            transition: box-shadow 0.2s;
            display: flex;
            flex-direction: column;
            min-height: 300px;
        }
        
        .placeholder-card {
            background-color: #fcfcfc;
/*            border: 1px solid var(--border-color);*/
        }

        .image-placeholder {
            object-fit: contain;
            height: 220px;
            position: relative;
            position: relative;
            width: 100%;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center center;
            background-origin: padding-box;
        }

        .badge {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 3px 8px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 2px;
            color: white;
        }

        .badge.featured {
            background-color: var(--featured-orange);
        }

        .badge.reduced {
            background-color: var(--orange);
        }

        .heart-icon {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.8);
/*            border: 1px solid var(--border-color);*/
            cursor: pointer;
        }

        /* Styling the heart icon */
        .heart-icon::before {
            content: '♡'; 
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 16px;
            color: var(--text-gray);
        }
        
        .heart-icon.active::before {
            content: '❤'; 
            color: var(--orange);
        }

        .details {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .details h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .specs {
            font-size: 13px;
            color: var(--text-gray);
            display: flex;
            gap: 5px;
            align-items: center;
            margin-bottom: 10px;
        }

        .specs .location {
            margin-left: auto;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-dark);
        }

        .price {
            font-size: 20px;
            font-weight: 700;
            color: var(--main-green);
            margin-bottom: 8px;
        }

        .meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            padding-top: 10px;
            border-top: 1px dashed #eee;
            color: var(--text-gray);
        }

        .meta .seller-type {
            font-weight: 600;
            color: var(--text-dark);
        }
        /* Browse by Category Section */
.category-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.category-grid {
    /* Use grid to handle the wrapping layout efficiently */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 30px;
    max-width: 100%; /* Constrain the width similar to the screenshot */
}

.category-item {
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.2s;
    width: 100%;
    justify-content: left;
    grid-gap: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 10px 10px;
}
.category-item i.fa-solid.fa-chevron-right{
    margin-left:auto;
}
.category-item i:nth-child(1) {
    font-size: 30px;
     color: var(--green);
     --fa-primary-color: #00a44d;
     --fa-secondary-color: #fbc198;
     --fa-secondary-opacity:1;
}
/* Specific styling for the 'Attachments' card to push it onto the next line */
.attachment-item {
    grid-column: 1 / 2; /* Starts in column 1, spans 1 column */
    margin-top: 20px;
}

.category-icon {
    font-size: 2.8rem;
    margin-bottom: 0px;
    width: 40px !important;
    height: 40px !important;
}

/* Icon Colors matching the visual representation */
.tractor-color, .excavator-color, .loader-color { color: #fcc419; }
.truck-color { color: var(--primary-green); }
.dumper-color { color: #ff6b6b; } 
.telehandler-color, .parts-color, .attachment-color { color: #888; } /* Grey tools */

.category-name {
    font-weight: 500;
    margin-top: 5px;
    font-size: 1rem;
}

.listing-count {
    font-size: 0.85rem;
    color: #999;
}

/* Recent Listings Header */
/*.recent-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 60px;
    padding-bottom: 40px; /* Space for content below, though not implemented here */

.recent-listings-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.view-all {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

/* -------------------- MAIN NAV (Logo/Search) -------------------- */
.main-nav {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.main-nav .container {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.35em;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.logo i {
    font-size: 1.1em;
    margin-right: 8px;
}

.search-form-container {
    display: flex;
    flex-grow: 1;
    max-width: 700px;
    margin: 0 30px;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    overflow: hidden;
}

.search-form-container input,
.search-form-container select {
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
}

.search-form-container input {
    flex-grow: 1;
}

.search-select {
    background-color: #f5f5f5;
    border-left: 1px solid var(--color-border-light);
    cursor: pointer;
    color: var(--color-text-dark);
}

.search-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: var(--color-secondary);
}

.place-ad-btn {
    background-color: var(--color-red);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.place-ad-btn i {
    margin-right: 5px;
}

/* -------------------- CATEGORY NAV -------------------- */
.category-nav {
    background-color: white;
    border-bottom: 1px solid var(--color-border-light);
}

.category-nav .container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 8px 15px;
}

.category-nav a {
    color: var(--color-text-light);
    padding: 8px 0;
    font-size: 0.9em;
    font-weight: 400;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.category-nav a i {
    margin-right: 6px;
    font-size: 1.1em;
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

/* -------------------- HERO SECTION -------------------- */
.hero-banner {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 50px 0;
    /* Adding a subtle gradient might enhance the look */
    /* background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%); */
}

.hero-banner h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 40px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stats-grid div {
    padding: 0 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.stats-grid div:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* -------------------- FEATURED MACHINERY -------------------- */
.featured-machinery {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border-light); /* Adds the faint horizontal line */
}

.section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--color-text-dark);
}

.view-all-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95em;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixed 4-column layout as seen in the image */
    gap: 20px;
}

/* CARD STYLES */
.listing-card,
.listing-card-empty {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    /* Refined box-shadow for a clean, professional look */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.listing-card:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Card Image Placeholder (Light gray top part) */
.card-image-placeholder {
    height: 150px;
    background-color: #f1f1f1;
    border-bottom: 1px solid var(--color-border-light);
}

.card-content {
    padding: 15px;
}

/* Tags (FEATURED/REDUCED) */
.card-tag {
    position: absolute;
    top: 150px; /* Positioned right under the placeholder image */
    left: 0;
    transform: translateY(-50%);
    color: white;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%); /* Slight angled cut on the right */
}

.card-tag-featured {
    background-color: var(--color-orange);
}

.card-tag-reduced {
    background-color: var(--color-red);
}

/* Heart Icon */
.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    color: var(--color-text-light);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 6px;
    border-radius: 50%;
    /* Use the solid heart icon on hover or when active */
    transition: color 0.2s;
}

.heart-icon:hover {
    color: var(--color-red);
}

.card-title {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.card-details {
    color: var(--color-text-light);
    font-size: 0.85em;
    margin-bottom: 1px;
    line-height: 1.4;
}

.card-details i {
    margin-right: 5px;
    color: var(--color-primary); /* Coloring the location icon green */
}

.card-price {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    border-top: 1px solid var(--color-border-light);
    padding-top: 10px;
    color: var(--color-text-light);
}

.seller-type {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Placeholder for the empty fourth card */
.listing-card-empty {
    height: 350px; /* Approximate height of the filled cards */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.empty-heart {
    font-size: 2.5em;
    color: var(--color-border-light);
}
/* --- Main Layout --- */

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0 0px 0;
}

.listings-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.view-all {
    color: var(--main-green);
    font-weight: 500;
}

.content-layout {
    display: flex;
    gap: 30px;
    padding-bottom: 60px;
}

/* --- Sidebar Filters --- */

.sidebar-filters {
    width: 300px;
    flex-shrink: 0;
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-group {
    padding: 8px 0;
/*    border-bottom: 1px solid var(--border-color);*/
}
.filter-group select{
    font-size:14px;
    max-width: 100%;
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 6px;
}
.filter-group.last-group {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Price Range Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.price-inputs span {
    color: var(--text-gray);
}

/* Checkbox Styling */
.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    /* Hiding native checkbox and placing it absolutely, or styling it minimally */
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--text-gray);
    border-radius: 2px;
    cursor: pointer;
    background-color: white;
    position: relative;
    flex-shrink: 0;
    margin-left: 10px;
    visibility: hidden;
    display: none;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: var(--main-green);
    border-color: var(--main-green);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '\2713'; /* Checkmark */
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 12px;
    color: white;
}

.checkbox-item span {
    color: var(--text-gray);
    font-size: 13px;
    margin-left: 5px;
}

/* --- Listing Grid --- */

.listing-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    height: fit-content;
}

.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-origin: padding-box;

    /*background-color: var(--bg-light-gray);
    height: 200px;
    position: relative;
    border-bottom: 1px solid var(--border-color);*/
}

.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
/*    border: 1px solid var(--border-color);*/
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.heart-icon::before {
    content: '♡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: var(--text-gray);
}

.card-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.specs {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.location {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.location i {
    color: var(--orange);
    margin-right: 0px;
    margin-left:-3px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-green);
    margin-top: auto; /* Push price up */
    padding-top: 5px;
/*    border-top: 1px dashed #eee;*/
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding-top: 5px;
    color: var(--text-gray);
}

/* Badges */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
    color: white;
}

.badge.new {
    background-color: var(--badge-new);
}


/* Adjustment for the partial card visible in the screenshot */
.bottom-row-card {
    min-height: 250px;
}
/* Base Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 40px 0 15px; /* Top padding is visually large, bottom padding smaller */
    font-size: 14px;
}

.footer-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Layout for Columns */
.footer-grid {
    display: grid;
    /* Divide the space roughly based on the visual layout: 
       About (wider), 2x Links (narrower), Social (narrower) */
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    padding: 60px 0px;
}

/* Column Headings */
.footer-column h4 {
    color: var(--heading-color);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
    white-space: nowrap;
}

/* Standard Paragraph Text */
.footer-column p {
    line-height: 1.6;
    margin-bottom: 0px;
    font-size: 14px;
    color: var(--link-color);
}

/* List Styling (Quick Links & Help) */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ffffff; /* Slightly brighter white on hover */
}

/* Connect With Us Column specific styling */
.connect-column p:last-of-type {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--link-color);
    text-decoration: none;
    margin-right: 15px;
    font-size: 15px;
}

/* Footer Bottom Section (Copyright) */
.footer-bottom {
    padding: 20px 0px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    line-height: 1.6;
    margin: 0px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 5px;
}
.opening-hours {
  list-style: none;
  padding: 0;
  max-width: 300px;
  margin-bottom: 0px;
}
.opening-hours li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
margin:0px !important;
  color: rgb(255 255 255 / 50%);
}
.opening-hours li.active .day {
  font-weight: bold;
  color: var(--white);
}
.opening-hours li.active .hours {
  font-weight: bold;
  color: var(--white);
}
.opening-hours .day {
  flex-basis: 50%;
}
.opening-hours .hours {
  flex-basis: 50%;
  text-align: right;
}
.footer_sec {
    background-color: #222831;
}
.footer_sec .footer_top {
    padding: 60px 0px;
    display: flex;
    flex-flow: wrap;
    grid-gap: 30px;
    justify-content: space-between;
}
.footer_sec .footer_box a.footer_logo {
    display: block;
    max-width: 220px;
    margin-bottom: 20px;
}
.footer_sec .footer_box ul.social_list {
    list-style: none;
    display: flex;
    grid-gap: 10px;
    padding: 0px;
    margin: 40px 0px 24px;
}
.footer_sec .footer_box ul.social_list li a {
    color: var(--white);
    font-size: 16px;
    font-weight: 400 !important;
}
.footer_sec .footer_box a.orange_btn {
    padding: 11px 36px;
    color: var(--white);
    font-size: 16px;
    background-color: var(--orange);
    border-radius: 30px;
}
.footer_box h3 {
    font-size: 18px;
    color: var(--white);
    margin: 0px;
}
.footer_box  ul.footer_menu {
    padding: 0px;
    margin: 0px;
    list-style: none;
    display: grid;
    grid-gap: 10px;
    margin-top: 20px;
}
.footer_box ul.footer_menu li a {
    color: rgb(255 255 255 / 50%);
    font-size: 15px;
}
.footer_box ul.footer_menu li a:hover{
    color:var(--white);
}
ul.footer_menu {
    margin: 0px;
    padding: 0px;
    display: flex;
    list-style: none;
    grid-gap: 12px;
}
ul.footer_menu li a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
ul.footer_menu li a:hover{
    color:var(--white);
}
p.copyright-text {
    margin: 0px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.footer_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer_sec .footer_box ul.social_list {
    list-style: none;
    display: flex;
    grid-gap: 10px;
    padding: 0px;
    margin: 26px 0px 24px;
}
.footer_box .form_box {
    display: flex;
}

.footer_box .form_box input[type="search"] {
    background-color: var(--white) !important;
    padding: 10px 15px;
    border-top-left-radius: 4px;
    min-height: 40px;
    font-size: 14px;
    border-bottom-left-radius: 4px;
}

.footer_box .form_box .input-css {
    background-color: var(--white) !important;
    padding: 10px 15px;
    border-top-left-radius: 4px;
    min-height: 40px;
    font-size: 14px;
    border-bottom-left-radius: 4px;
}

.footer_box .form_box button {
    background-color: var(--orange) !important;
    padding: 10px 20px !important;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: var(--white);
}
.submenu ul li a:hover{
        color: var(--white);
    }
.footer-column.about-column h4 {
    margin-bottom: 8px;
}

/*media css*/
/*@media(max-width: 1199px) {*/
    span.menu_toggle {
        display: block;
    }
    .header_menu {
        position: fixed;
        top: 0px;
        left: 0px;
        display: block;
        padding: 20px 20px 40px;
        background-color: var(--white);
        border-radius: unset;
        min-width: 332px;
        min-height: 100vh;
        z-index: 9 !important;
        transition: transform 0.3s;
        transform: translateX(-100%);
        max-width: 420px;
        max-height: 80vh;
        overflow: auto;
    }
     .header_menu.active{
        transform: translateX(0%);
     }
    .menu_list {
        justify-content: left;
        flex-flow: wrap;
        grid-gap: 0px;
        padding-top: 40px;
    }
    .menu_list > li {
        width: 100%;
        border: unset !important;
        padding: 0px;
    }
    .menu_list > li a {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 6px 0px;
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }
    .menu_list li > div {
        position: unset;
        width: 100%;
        display: block;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        box-shadow: unset;
        padding: 0px 0px 0px 12px;
    }
   .menu_list li > div {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }
    .menu_list li > div.active {
        max-height: 500px; /* Apne content ke hisaab se adjust karein */
        opacity: 1;
    }
    .menu_list li > div li a {
        color: var(--green) !important;
        padding: 10px 0px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    span.cross {
        display: block;
    }
/*}*/
@media(max-width: 991px) {
    .card-grid,.footer-grid  {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 20px;
    }
    #myVideo {
        max-width: 100%;
    }
    .featured-machinery {
        padding: 40px 15px 0px;
    }
    section.category-section {
        padding: 0px 0px 40px !important;
    }
}
@media(max-width: 767px) {
    .card-grid,.category-grid,.footer-grid  {
        grid-template-columns: repeat(1, 1fr);
    }
    .content-layout {
        flex-flow: wrap;
    }
    .sidebar-filters {
        width: 100%;
    }
    .header_middle .custom_container {
        flex-flow: wrap;
        grid-gap: 10px;
    }
    .header_top ul.header_list li a {
        font-size: 0px !important;
    }
    /* form.search_form_sec {
        display: none;
    } */
    .listing-grid {
    grid-template-columns: repeat(1, 1fr);
}
section.category-section {
    padding: 40px 0px 0px !important;
}
}



/*-------------------------------------------------------------- 
# Single Product css 
--------------------------------------------------------------*/

.thumbnail-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.thumbnail-grid img:nth-child(1) {
    grid-row: span 3;
}
.single_product_sec {
    background-color: #F8F8F8;
    padding: 100px 0px;
}
.single_product_sec .single_grid {
    display: grid;
    grid-template-columns: auto 32%;
    grid-gap: 30px;
}
.single_box,.single_details {
    background-color: var(--white);
    border-radius: 4px;
}
.single_details{
    padding: 20px;
}
.single_details h3{
    font-size: 18px;
    line-height: 24px;
    color: rgb(34, 40, 49);
    font-weight: 700;
    margin: 0px 0px 18px;
}
.dealer-info {
    display: flex;
    align-items: center;
    grid-gap: 12px;
    padding: 10px 15px;
}
.dealer-info span.icon img {
    display: block;
    max-width: 48px;
}
.dealer-info .text .name {
    font-size: 16px;
    font-weight: 600;
}
.dealer-info .text .type {
    font-size: 13px;
}
.vahicle_overview,.vahicle_box {
    display: flex;
    justify-content: space-around;
    width: 100%;
    grid-gap: 30px;
}
.vahicle_box span {
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
}
.vahicle_box span:last-child {
    max-width: fit-content;
}
.thumbnail-grid {
    display: grid;
    grid-template-columns: auto 30%;
    grid-gap: 5px;
    position: relative;
}
.thumbnail-grid > img:nth-child(4) ~ img {
    display: none;
}
.thumbnail-grid span.counter {
    position: absolute;
    bottom: 12%;
    right: 9%;
    font-size: 22px;
    color: var(--white);
    font-weight: 600;
    transform: translate(-50%,-50%);
}
.thumbnail-grid img:nth-child(4) {
    filter: brightness(0.5);
}
.product-details {
    padding: 20px 20px;
}
.product-details h2.title {
    font-size: 18px;
    line-height: 24px;
    color: rgb(34, 40, 49);
    font-weight: 700;
    margin: 0px;
}
.product-details .metadata {
    font-size: 14px;
    line-height: 24px;
    color: rgb(88, 97, 118);
    margin-top: 5px;
    display: flex;
    flex-flow: wrap;
    grid-gap: 8px;
}
.footer-actions {
    display: flex;
    justify-content: space-between;
    grid-gap: 12px;
    margin-top: 15px;
}
.footer-actions .price {
    color: var(--black);
    font-weight: 600;
    font-size: 30px;
}
.footer-actions .actions {
    display: flex;
    grid-gap: 15px;
}
.footer-actions .actions button {
    background-color: transparent;
    font-size: 14px;
    color: var(--black);
    display: flex;
    align-items: center;
    grid-gap: 5px;
    font-weight: 600;
}
.footer-actions .actions button svg {
    width: 20px;
}
.image-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 60px auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: #000;
  cursor: pointer;
  z-index: 10;
}

.main-slider img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

.thumb-slider {
  margin-top: 15px;
}
.thumb-slider img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
}
.thumb-slider .slick-slide {
  margin: 0 1px;
}
.thumb-slider .slick-list {
  margin: 0 -1px; /* remove outer spacing */
}
.thumb-slider .slick-track {
  display: flex !important;
  gap: 5px;
}
.thumb-slider .slick-slide {
  float: none !important;
}
.main-slider .slick-next,.main-slider .slick-prev {
    display: none !important;
}
.slick-next:before ,.slick-prev:before {
    color: var(--black);
     z-index: 1;
}
.slick-next {
    right: -18px;
}
.slick-prev {
    left: -18px;
}
.single_left {
    display: grid;
    grid-gap: 15px;
}
.single_details p {
    font-size: 14px;
    line-height: 26px;
    display: block;
    margin-bottom: 2px;
    margin-top: 0px;
}
ul.hour_details li.active {
    color: var(--green);
    font-weight: 500;
}
span.read_more {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    position: relative;
    cursor: pointer;
}
span.read_more::before {
    content: "";
    width: 100%;
    cursor: pointer;
    background: linear-gradient(rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 0.01%, rgb(255, 255, 255) 90%);
    padding-top: 72px;
    position: absolute;
    bottom: 16px;
    display: block;
}
.description_box {
    max-height: 104px;
    overflow: hidden;
    transition: all 0.4s;
}
.description_box.active{
    max-height: 100%;
}
.description_box.active ~ span.read_more::before{
    display: none;
}
ul.hour_details {
    list-style: none;
    margin-top: 8px;
    display: grid;
    grid-gap: 5px;
}
ul.hour_details li {
    display: flex;
    justify-content: space-between;
    color: var(--black);
    font-size: 13px;
    grid-gap: 12px;
}
.dealer_bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.dealer_bottom * {
    font-size: 13px;
}
p.currnt_time {
    font-weight: 600;
}
.dealer_left p:first-child {
    font-weight: 500;
}
.single_details .dealer-info {
    padding: 0px 0px 15px;
    border-bottom: 1px solid rgb(219, 223, 230);
}
.dealer_right * {
    text-align: left;
}
.dealer_right {
    max-width: 320px;
    width: 100%;
}
.dealer_right a {
    display: block;
    word-break: break-all;
    font-weight: 500;
    text-decoration: underline;
}
.realted_box {
    display: grid;
    grid-template-columns: 38% auto;
    border-top: 1px solid rgb(219, 223, 230);
    grid-row-gap: 15px;
}
.realted_box .product-details {
    width: 100%;
    display: block;
    padding: 15px;
}
.realted_img {
    width: 100%;
}
.realted_box .footer-actions {
    display: block;
}
.realted_box .footer-actions .price {
    font-size: 17px;
}
.realted_box .footer-actions p {
    font-size: 13px;
}
.realted_box .product-details h2.title {
    font-size: 13px;
    line-height: 20px;
}
.realted_box .product-details .metadata {
    font-size: 12px;
}
.single_right .single_box {
    margin-top: 12px;
    border-radius: 4px;
}
.thumbnail-img img,.thumbnail-img {
    height: 100%;
    object-fit: cover;
}
.single_right .dealer-info .name {
    font-size: 15px;
}
.single_right .dealer-info span.icon img {
    max-height: 40px;
}
.single_right {
    height: fit-content;
    position: sticky;
    top: 20px;
}
@media(max-width: 767px){
    .single_product_sec .single_grid {
        grid-template-columns: repeat(1,1fr);
        grid-gap: 24px;
    }
    .footer-actions .price {
        font-size: 26px;
    }
    .dealer_right {
        max-width: 224px;
    }
    .single_product_sec {
        padding: 60px 0px;
    }
    .thumbnail-grid {
        grid-template-columns: auto 35%;
    }
    .thumbnail-grid span.counter {
        bottom: 7%;
    }
    .main-slider img {
        height: 335px;
    }
}