/*
Theme Name: Future Motors
Theme URI: https://futurehost.ae/themes/futuremotor
Author: Future Host
Author URI: https://futurehost.ae
Description: A Theme for motors by future host
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: futuremotor
*/

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --font-family: 'Rubik', sans-serif;
}

body {
    font-family: var(--e-global-typography-primary-font-family);
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

.woocommerce-slider-widget{
    overflow: hidden;
}

.product-features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px; /* Adjust as needed */
}

.feature-header {
    background: #f5f5f5;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.feature-content {
    padding: 15px;
}

.feature-term {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon {
    margin-right: 10px;
}

.feature-term-name {
    font-size: 14px;
    font-weight: 600;
}
.woocommerce-gallery-widget {
  overflow: hidden;
}

.woocommerce-product-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-product-gallery__image img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.3s;
}

.woocommerce-product-gallery__image img:hover {
    transform: scale(1.05);
}

#topmenu .sub-menu{
    width: 200px !important;
}
.swiper_ {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* General container styles */
.loop-gallery-container {
    position: relative;
    width: 100%;
    height: 260px !important; /* Adjust based on your design */
}

.loop-image-sections {
    display: flex;
    width: 100%;
    height: 100%;
}

.loop-image-section {
    flex: 1;
    cursor: pointer;
    position: relative;  /* Ensure positioning context */
    z-index: 1;  /* Set a base stacking order */
}

/* Gallery images are stacked on top of each other */
.loop-gallery-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;  /* Ensure images are behind the hover sections */
}

/* All gallery images are hidden by default */
.loop-gallery-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;  /* Hide images behind the sections */
}

.loop-gallery-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* Show the first image by default */
.loop-gallery-images .loop-gallery-image:first-child {
    display: block;
}

/* Hover logic for each section */
.loop-image-section:nth-child(1):hover ~ .loop-gallery-images .loop-gallery-image:nth-child(1),
.loop-image-section:nth-child(2):hover ~ .loop-gallery-images .loop-gallery-image:nth-child(2),
.loop-image-section:nth-child(3):hover ~ .loop-gallery-images .loop-gallery-image:nth-child(3),
.loop-image-section:nth-child(4):hover ~ .loop-gallery-images .loop-gallery-image:nth-child(4),
.loop-image-section:nth-child(5):hover ~ .loop-gallery-images .loop-gallery-image:nth-child(5) {
    display: block;
    z-index: 1;  /* Bring the hovered image to the front */
}

/* Show the "remaining count" on hover of the last section */
.loop-image-section:nth-child(5):hover ~ .loop-gallery-images .remaining-count {
    display: block;
}

.remaining-count {
    display: none;
    text-align: center;
    font-size: 2em;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    line-height: 300px; /* Match container height */
    z-index: 2;  /* Bring the count display above the images */
}
#vehicle-search-form {
  display: flex;
  width: 100%;
}
#vehicle-search-form .sfield {
  margin: 0 1px;
    width: 100%;
  text-align: center;  
}
#vehicle-search-form .sfield .select2-container{
    width: 100%;
}
.select2-results, .select2-container{
    font-family: var(--e-global-typography-primary-font-family);
}
#vehicle-search-form .vsf-btn{
    width: 100%;
}
.custom-filter-mobile, .mobclose{
    display: none;
}
.mobclose{
  text-align: center;
  padding: 0;
  background: red;
  color: #fff;
  font-size: 16px;
  border-radius: 90%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-family: var(--e-global-typography-primary-font-family);
  position: absolute;
  right: 20px;
  top: 7px;  
  z-index: 1;
  cursor: pointer;
}
.custom-filter-mobile {
  background: var(--e-global-color-accent);
  font-family: var(--e-global-typography-primary-font-family);
  padding: 10px;
  text-align: center;
  color: #fff;
  font-weight: normal;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.elementor-widget-theme-post-content h1{
    
}
.elementor-widget-theme-post-content h2{
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
}
.elementor-widget-theme-post-content h3{
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}
.elementor-widget-theme-post-content h4{
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}
.elementor-widget-theme-post-content p{
    margin: 10px 0;
    line-height: 1.4;
    font-size: 18px;
}
.elementor-widget-theme-post-content ul, .elementor-widget-theme-post-content ol{
    list-style: disc inside;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price{
    color: var(--e-global-color-primary);
}
.elementor-location-footer .menu-item .elementor-item:hover{
    color: var( --e-global-color-accent ) !important;
}
.elementor-loop-container .product_title{
    position: relative;
}
.elementor-loop-container .product_title a{
    overflow: hidden;
    height: 22px;
    display: block;
    width: calc(100% - 20px);
}
.elementor-loop-container .product_title a:after{
    display: block;
    content: "...";
    width: 20px;
    
}
@media only screen and (max-width: 1365px){
    .custom-filter-container{
        display: none;
    }
    .custom-filter-mobile{
        display: block;
    }
    .mobclose{
          display: inline-block;
    }
    .custom-filter-container.show {
        display: block;
        position: fixed;
        z-index: 1000000;
        background: #fff;
        padding: 15px;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 400px;
    }
    .custom-filter-form{
        max-height: 80vh;
        overflow-y: scroll;        
    }

}
@media only screen and (max-width: 1024px){
    .loop-gallery-container {
    }
}
@media only screen and (max-width: 767px){
    #vehicle-search-form .select2-container {
        margin: 5px 0;
        width: 49%;
    }
    #vehicle-search-form .vsf-btn{
        width: 49%;
    }
    .loop-gallery-container{
        height: 220px !important;
    }    
    #vehicle-search-form{
        display: block;
    }
}
@media only screen and (max-width: 600px){
    .loop-gallery-container{
        height: 210px !important;
    }
}


.elementor-child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Grid Items */
.child-page-item {
    padding: 15px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

/* Hover Effect */
.child-page-item:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}