/* AutoDetail mirror fixes */
img.ad-asset-missing{background:#151515;min-height:80px;object-fit:cover}
html[dir="rtl"] #mainmenu,html[dir="rtl"] #mainmenu ul{direction:rtl}
html[dir="rtl"] #mainmenu>li{text-align:right}
html[dir="rtl"] .de-flex{direction:rtl}
html[dir="rtl"] .row{direction:rtl}
html[dir="rtl"] .swiper,html[dir="rtl"] .swiper-wrapper{direction:rtl}
html[dir="rtl"] input,html[dir="rtl"] textarea,html[dir="rtl"] select{text-align:right;direction:rtl}
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="url"],html[dir="rtl"] input[type="tel"]{direction:ltr;text-align:right}
html[dir="rtl"] .social-icons,html[dir="rtl"] .menu-simple{direction:rtl}
html[dir="rtl"] .icofont-phone,html[dir="rtl"] .fa-phone,html[dir="rtl"] .fa-arrow-right,html[dir="rtl"] .icofont-arrow-right{transform:scaleX(-1)}

/* v0.1.8 — prevent inactive AutoDetail overlays from creating a visible
 * viewport-sized region after the footer in full-page rendering/capture. */
html,
body {
  margin-block-end: 0;
  padding-block-end: 0;
}

#wrapper,
#wrapper > footer {
  margin-block-end: 0 !important;
  padding-block-end: 0;
}

body > #extra-wrap:not(.open) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body > #extra-wrap.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}


/* v0.1.15 — requested public header/footer refinements. */
.sands-footer-brand{text-align:start}.sands-footer-brand .logo-footer{display:block;margin-inline-start:0;margin-inline-end:auto}.sands-footer-brand .social-icons{display:block;text-align:start}.sands-footer-meta{display:flex;flex-direction:row;align-items:center;gap:0}.sands-footer-meta-line{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:6px}.sands-footer-credit{font-size:13px;opacity:.82}.sands-footer-credit a{color:inherit;text-decoration:none}.sands-footer-credit a:hover{color:var(--primary-color)}.sands-footer-heart{color:var(--primary-color);font-size:11px}.sands-credit-brand{display:inline-flex;align-items:baseline;gap:0;white-space:nowrap}.sands-credit-dot{display:inline-block;padding:0;margin:0;font-weight:700}

/* v0.1.16 — mobile viewport stability without page overflow. */
html,body{max-width:100%;overflow-x:hidden}
@media(max-width:767px){
    .subfooter{margin-top:34px;padding:18px 0 22px}
    .subfooter .de-flex,.subfooter .de-flex-col{display:flex!important}
    .subfooter .de-flex{flex-direction:column;align-items:flex-start;gap:12px}
    .sands-footer-meta{align-items:flex-start;text-align:start}
    .sands-footer-meta-line{justify-content:flex-start;gap:5px;line-height:1.4}
    .subfooter .menu-simple{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0}
    .subfooter .menu-simple li{display:block;margin:0}
    .subfooter .menu-simple li.sands-footer-legal-warranty{display:none}
    .subfooter .menu-simple a{display:inline-flex;align-items:center;min-height:30px;font-size:13px}
    input,select,textarea{font-size:16px!important}
}

/* v0.1.18 — managed service hero images and portfolio pagination. */
.sands-service-hero .mh-700{position:relative;min-height:700px;overflow:hidden}
.sands-service-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0}
.sands-service-hero .gradient-edge-top,.sands-service-hero .gradient-edge-bottom,.sands-service-hero .sw-overlay{z-index:1}
.sands-service-hero-titles h1{margin-bottom:0}
#gallery .item img,#service-portfolio .item img{width:100%;aspect-ratio:2000/1271;object-fit:cover}
.sands-portfolio-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:32px}
.sands-portfolio-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid rgba(255,255,255,.18);border-radius:8px;color:inherit;text-decoration:none;transition:all .2s ease}
.sands-portfolio-pagination a:hover,.sands-portfolio-pagination a.active{background:var(--primary-color,#e60012);border-color:var(--primary-color,#e60012);color:#fff}
@media(max-width:767px){.sands-service-hero .mh-700{min-height:620px}.sands-portfolio-pagination{margin-top:24px}}

/* v0.1.30 — icon-only floating WhatsApp action. */
.sands-floating-whatsapp{
    position:fixed;
    left:18px;
    bottom:18px;
    z-index:1040;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    height:auto;
    padding:0;
    margin:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#25d366 !important;
    text-decoration:none;
    font-size:50px;
    line-height:1;
    filter:drop-shadow(0 8px 18px rgba(0,0,0,.28));
    transition:transform .2s ease, opacity .2s ease;
}
.sands-floating-whatsapp:hover{
    transform:translateY(-2px) scale(1.04);
    color:#25d366 !important;
}
body.admin-bar .sands-floating-whatsapp{
    bottom:32px;
}
@media (max-width:575.98px){
    .sands-floating-whatsapp{
        left:12px;
        bottom:12px;
        font-size:44px;
    }
}

/* v0.1.37 — floating controls position swap + centered mobile hero media. */
.sands-floating-whatsapp {
    left: auto !important;
    right: 32px !important;
    bottom: 20px !important;
}

#back-to-top {
    right: auto !important;
    left: 20px !important;
}

#back-to-top.show {
    bottom: 20px !important;
}

@media (max-width: 992px) {
    #back-to-top {
        display: block !important;
        left: 14px !important;
    }

    .sands-floating-whatsapp {
        right: 20px !important;
        bottom: 16px !important;
    }

    #content > section:first-of-type .jarallax-img,
    #content > section:first-of-type .sands-service-hero-bg {
        object-fit: cover !important;
        object-position: 50% 50% !important;
    }

    #content > section:first-of-type [data-bgimage],
    #content > section:first-of-type .swiper-inner,
    #content > section:first-of-type .sands-window-tinting-hero-media {
        background-position: 50% 50% !important;
    }
}

@media (max-width: 575.98px) {
    #back-to-top {
        left: 12px !important;
    }

    .sands-floating-whatsapp {
        right: 18px !important;
        bottom: 14px !important;
    }
}

@media (max-width: 992px) {
    #content > section:first-of-type .sands-detailing-hero-bg,
    #content > section:first-of-type .sands-warranty-hero__image {
        object-fit: cover !important;
        object-position: 50% 50% !important;
    }
}


/* v0.1.51 — centered shared gallery heading and original-size Clients & Suppliers carousel. */
.sands-partner-slider-section{padding-top:42px;padding-bottom:48px}
.sands-partner-slider-heading{margin-inline:auto}
.sands-partner-slider-heading .subtitle,.sands-partner-slider-heading h2,.sands-shared-gallery-heading,.sands-shared-gallery-heading .subtitle,.sands-shared-gallery-heading h2,.sands-shared-gallery-heading p{text-align:center}
.sands-partner-slider{margin-top:10px}
.sands-partner-slide{display:flex;align-items:center;justify-content:center;min-height:120px}
.sands-partner-slide .sands-partner-slide-image{width:100%!important;max-width:100%;max-height:none;object-fit:contain;opacity:.95;transition:opacity .25s ease,transform .25s ease}
.sands-partner-slide:hover .sands-partner-slide-image{opacity:1;transform:scale(1.035)}
html[dir="rtl"] .sands-partner-slider-heading,html[dir="rtl"] .sands-partner-slider-heading .subtitle,html[dir="rtl"] .sands-partner-slider-heading h2,html[dir="rtl"] .sands-shared-gallery-heading,html[dir="rtl"] .sands-shared-gallery-heading .subtitle,html[dir="rtl"] .sands-shared-gallery-heading h2,html[dir="rtl"] .sands-shared-gallery-heading p{text-align:center!important}
@media(max-width:767.98px){.sands-partner-slider-section{padding-top:30px;padding-bottom:38px}.sands-partner-slide{min-height:96px}}


/* v0.1.53 — separate Client/Supplier trust sections with larger logo presence. */
.sands-logo-showcase-section{padding-top:56px;padding-bottom:48px;overflow:hidden}
.sands-logo-showcase-heading{margin-inline:auto}
.sands-logo-showcase-heading,.sands-logo-showcase-heading .subtitle,.sands-logo-showcase-heading h2{text-align:center}
.sands-logo-showcase-slider{margin-top:10px}
.sands-logo-showcase-slide{display:flex;align-items:center;justify-content:center;min-height:132px}
.sands-logo-showcase-slide .sands-logo-showcase-image{width:100%!important;max-width:100%;max-height:none;object-fit:contain;opacity:.95;transition:opacity .25s ease,transform .25s ease}
.sands-logo-showcase-slide:hover .sands-logo-showcase-image{opacity:1;transform:scale(1.035)}
.sands-client-logo-section{border-top:1px solid rgba(255,255,255,.035);border-bottom:1px solid rgba(255,255,255,.035)}
.sands-supplier-logo-section{border-top:1px solid rgba(255,255,255,.045);border-bottom:1px solid rgba(255,255,255,.045)}
html[dir="rtl"] .sands-logo-showcase-heading,html[dir="rtl"] .sands-logo-showcase-heading .subtitle,html[dir="rtl"] .sands-logo-showcase-heading h2{text-align:center!important}
@media(max-width:767.98px){.sands-logo-showcase-section{padding-top:44px;padding-bottom:38px}.sands-logo-showcase-slide{min-height:106px}}

/* v0.1.80 — remove the inactive non-commerce extra panel from document rendering.
 * The legacy off-canvas panel is fixed-positioned, but some browser/full-page render
 * paths can still reserve a viewport-sized area after the footer while it is merely
 * hidden with visibility/opacity. Remove it from layout completely until opened. */
body > #extra-wrap:not(.sands-cart-drawer):not(.open) {
  display: none !important;
}

body > #extra-wrap:not(.sands-cart-drawer).open {
  display: block !important;
}


/* v0.1.86 — footer/off-canvas and local commerce icon fixes. */
#extra-wrap:not(.sands-cart-drawer):not(.open) {
  display: none !important;
}

#extra-wrap:not(.sands-cart-drawer).open {
  display: block !important;
}

.de-icon-counter .sands-commerce-header-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* v0.1.91 — managed English/Arabic Business Profile downloads in the footer. */
.sands-footer-business-profile{
    margin-block-start:22px;
    max-width:360px;
}
.sands-footer-business-profile h5{
    margin:0 0 10px;
    font-size:15px;
    line-height:1.35;
}
.sands-footer-profile-links{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    min-width:0;
}
.sands-footer-profile-link{
    min-width:0;
    min-height:58px;
    padding:10px 11px;
    display:grid;
    grid-template-columns:32px minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:10px;
    background:rgba(255,255,255,.045);
    color:#fff!important;
    text-decoration:none!important;
    transition:border-color .18s ease,background-color .18s ease,transform .18s ease;
}
.sands-footer-profile-link:hover{
    border-color:rgba(255,255,255,.28);
    background:rgba(255,255,255,.075);
    transform:translateY(-1px);
}
.sands-footer-profile-icon{
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:rgba(255,255,255,.08);
    color:var(--primary-color,#e60012);
    font-size:15px;
}
.sands-footer-profile-copy{
    min-width:0;
    display:block;
}
.sands-footer-profile-copy strong,
.sands-footer-profile-copy small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.sands-footer-profile-copy strong{
    color:#fff;
    font-size:11px;
    line-height:1.35;
    font-weight:700;
}
.sands-footer-profile-copy small{
    margin-block-start:2px;
    color:rgba(255,255,255,.62);
    font-size:9.5px;
    line-height:1.25;
}
.sands-footer-profile-download-icon{
    color:rgba(255,255,255,.68);
    font-size:11px;
}
.footer-light .sands-footer-profile-link{
    border-color:rgba(15,23,42,.12);
    background:rgba(15,23,42,.035);
    color:#172033!important;
}
.footer-light .sands-footer-profile-copy strong{color:#172033}
.footer-light .sands-footer-profile-copy small,
.footer-light .sands-footer-profile-download-icon{color:rgba(23,32,51,.62)}
.footer-light .sands-footer-profile-icon{background:rgba(15,23,42,.055)}
html[dir="rtl"] .sands-footer-profile-link{text-align:right}
@media(max-width:1199.98px){
    .sands-footer-profile-links{grid-template-columns:1fr}
}
@media(max-width:767.98px){
    .sands-footer-business-profile{max-width:100%;margin-block-end:24px}
    .sands-footer-profile-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
    .sands-footer-profile-links{grid-template-columns:1fr}
}

/* v0.1.100 — Warranty Terms stays in desktop legal navigation but is hidden
 * anywhere the Theme uses its mobile/tablet navigation breakpoint. */
@media (max-width:992px){
    .subfooter .menu-simple li.sands-footer-legal-warranty{display:none}
}
