/* ---- light static overrides ---- */
:root{--cd-green:#004b41;--cd-band:#f5f5f5}

/* ---------- hero carousel (JS-assisted, no library) ---------- */
#cd-homepage-hero-slider{position:relative}
#cd-homepage-hero-slider .flex-viewport{overflow:visible;position:static}
#cd-homepage-hero-slider ul.slides{display:block;width:auto;transform:none;transition:none;margin:0!important;padding:0!important;list-style:none}
#cd-homepage-hero-slider ul.slides li.slide{display:none!important;float:none!important;width:auto!important;margin:0!important}
#cd-homepage-hero-slider ul.slides li.slide.is-active{display:block!important}
#cd-homepage-hero-slider ul.slides li.slide img{display:block;width:100%;height:auto;aspect-ratio:1920/1029;object-fit:cover}
#cd-homepage-hero-slider .cd-hero-arrow{position:absolute;top:30%;z-index:5;width:44px;height:44px;border:0!important;background:rgba(255,255,255,.88)!important;color:#004b41!important;font-size:24px;line-height:44px;cursor:pointer;border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.25);transition:background .2s;padding:0!important}
#cd-homepage-hero-slider .cd-hero-arrow:hover{background:#004b41!important;color:#fff!important}
#cd-homepage-hero-slider .cd-hero-prev{left:14px}
#cd-homepage-hero-slider .cd-hero-next{right:14px}
#cd-homepage-hero-slider .cd-hero-dots{display:flex;justify-content:center;gap:2px;padding:8px 0 0}
#cd-homepage-hero-slider .cd-hero-dots button{position:relative;width:26px!important;height:26px!important;min-width:0;min-height:0;padding:0!important;margin:0;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;box-sizing:border-box}
#cd-homepage-hero-slider .cd-hero-dots button::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:9px;height:9px;border:1px solid #8c8c8c;border-radius:50%;background:transparent;box-sizing:border-box}
#cd-homepage-hero-slider .cd-hero-dots button.is-active::before{background:var(--cd-green);border-color:var(--cd-green)}

/* ---------- carousels rendered as static grids ---------- */
#homepage .homepage-items .flex-viewport{overflow:visible!important;position:static!important}
#homepage .homepage-items ul.slides{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:26px!important;width:auto!important;max-width:none!important;transform:none!important;transition:none!important;margin:0!important;padding:0!important;flex-wrap:nowrap!important;list-style:none}
#homepage .homepage-items ul.slides li.homepage-item{display:block!important;float:none!important;width:auto!important;margin:0!important;max-width:none!important}
#homepage .homepage-items .homepage-item > a{display:block!important;position:relative!important;overflow:hidden}
#homepage .homepage-items .homepage-item img{display:block;width:100%;height:auto;object-fit:cover}
#homepage .homepage-items .homepage-item-overlay{position:absolute;left:0!important;right:0!important;bottom:0!important;width:auto!important;box-sizing:border-box!important}
#homepage .homepage-dealer-items ul.slides{grid-template-columns:repeat(3,1fr)!important}
#homepage .homepage-cd-works-projects .homepage-shop-items ul.slides{grid-template-columns:repeat(4,1fr)!important}
#homepage .homepage-cd-shop:not(.homepage-cd-works-projects) .homepage-shop-items ul.slides{grid-template-columns:repeat(4,1fr)!important}
#homepage .homepage-cd-shop .homepage-item-title{font-size:25px;line-height:31px;overflow-wrap:anywhere}

/* ---------- youtube poster ---------- */
.cd-homepage-youtube-video-container{margin:18px 0 0}
.yt-static{display:block;position:relative;line-height:0}
.yt-static img{width:100%;display:block}
.yt-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.06);transition:background .2s}
.yt-play:hover{background:rgba(0,0,0,.18)}
.yt-play::before{content:"";width:96px;height:66px;background:#ff0000;border-radius:14px;box-shadow:0 2px 14px rgba(0,0,0,.35)}
.yt-play::after{content:"";position:absolute;border-style:solid;border-width:16px 0 16px 26px;border-color:transparent transparent transparent #fff}

/* ---------- cd works poster ---------- */
.homepage-cd-works-video-wrapper .cdworks-poster{display:block;width:100%;height:auto}

/* ---------- remove leftovers ---------- */
#market-submenu-wrapper{display:none}
.flex-direction-nav,.flex-control-nav{display:none}

/* ---------- responsive ---------- */
@media (max-width:959px){
  #homepage .homepage-items ul.slides,
  #homepage .homepage-dealer-items ul.slides,
  #homepage .homepage-cd-works-projects .homepage-shop-items ul.slides,
  #homepage .homepage-cd-shop:not(.homepage-cd-works-projects) .homepage-shop-items ul.slides{grid-template-columns:repeat(2,1fr)!important;gap:14px!important}
  #cd-homepage-hero-slider ul.slides li.slide img{aspect-ratio:4/3;object-fit:cover}
  #cd-homepage-hero-slider ul.slides li.slide h1{-webkit-line-clamp:3;font-size:28px!important;line-height:36px!important}
  #cd-homepage-hero-slider .cd-hero-arrow{top:34%;width:36px;height:36px;font-size:18px;line-height:36px}
  #homepage .homepage-items .homepage-item-overlay{padding:14px!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;box-sizing:border-box!important}
  #homepage .homepage-items .homepage-item-title{font-size:16px!important;line-height:21px!important;margin-top:3px!important;margin-bottom:8px!important;overflow-wrap:break-word;hyphens:none}
  #homepage .homepage-items .homepage-item-category{font-size:12px!important;line-height:16px!important}
  #homepage .homepage-items .homepage-item-button{font-size:12px!important;line-height:16px!important;padding:7px 10px!important}
}
@media (prefers-reduced-motion:reduce){
  .yt-play,.cd-hero-arrow{transition:none}
}

/* header nav: keep all items visible on laptop widths */
@media (min-width:960px){
  #main-nav-bar #main-nav-menu-items{margin-left:285px!important;margin-right:20px!important;overflow:visible!important;width:auto!important;display:flex!important;justify-content:flex-end;flex-wrap:nowrap}
  #main-nav-bar #main-nav-menu-items a{margin:0!important;padding:0 11px!important;font-size:15px;white-space:nowrap}
}

/* ---------- mobile header: green bar + white scroll nav ---------- */
.cd-mobile-icons{display:none}
@media (max-width:959px){
  #mobile-submenu-wrapper{display:none!important}
  #main-nav-bar-wrapper{height:auto!important;background:#004b41}
  #main-nav-bar{position:relative;margin:0!important;padding:0!important}
  #main-nav-bar ul.main-nav-options{display:flex!important;flex-wrap:wrap;margin:0!important;padding:0!important;width:100%}
  #main-nav-bar ul.main-nav-options #nav-logo{height:56px!important;flex:0 0 auto;float:none!important;margin-left:12px}
  #nav-logo #nav-logo-link{width:196px!important;height:56px!important;background-size:196px 27px!important}
  .cd-mobile-icons{display:flex;position:absolute;right:4px;top:0;height:56px;align-items:center;z-index:3}
  .cd-mobile-icons a{display:flex;align-items:center;justify-content:center;width:36px;height:56px;color:#fff!important;text-decoration:none;font-size:17px}
  .cd-mobile-icons a .fa{line-height:1}
  #main-nav-menu-items{display:flex!important;flex:0 0 100%!important;order:3;width:100%!important;max-width:100%;height:46px!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;margin:0!important;padding:0 8px!important;box-sizing:border-box;line-height:46px!important;background:#fff;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #main-nav-menu-items::-webkit-scrollbar{display:none}
  #main-nav-menu-items a{display:inline-block;padding:0 13px!important;margin:0!important;font-size:14px;line-height:46px!important;letter-spacing:.6px;color:#2f3433!important;text-transform:uppercase}
}

/* search widget input fits on small screens */
@media (max-width:599px){
  .cd-homepage-search-widget form{display:block!important}
  .cd-homepage-search-widget form input[type=text]{width:100%!important;max-width:100%;box-sizing:border-box}
  .cd-homepage-search-widget form input[type=submit]{width:100%!important;margin:10px 0 0 0!important}
}

/* popular brands: let all logos wrap instead of clipping */
#homepage .cd-homepage-popular-brands-widget .featured-brands{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));height:auto!important;line-height:normal!important;padding-bottom:0!important;align-items:center;gap:6px 0;overflow:visible!important}
#homepage .cd-homepage-popular-brands-widget .featured-brands a{display:block!important;height:auto!important;line-height:normal!important;padding:6px 4px!important;text-align:center}
#homepage .cd-homepage-popular-brands-widget .featured-brands a img{width:54px;height:54px;object-fit:contain}

/* mobile header icons (FontAwesome codepoints were pruned with unused classes) */
.fa-user:before{content:"\f007"}
.fa-cog:before{content:"\f013"}
.fa-bars:before{content:"\f0c9"}

/* ---------- language switcher ---------- */
.cd-lang-btn{display:none}
@media (min-width:960px){
  #main-nav-bar{position:relative}
  .cd-lang-btn{display:flex;align-items:center;gap:7px;position:absolute;right:10px;top:0;height:100%;padding:0 10px;background:transparent;border:0;color:#fff;font:inherit;font-size:12px;letter-spacing:.8px;cursor:pointer;z-index:4}
  .cd-lang-btn svg{width:17px;height:17px;display:block}
  .cd-lang-btn:hover{color:#cfe3dd}
  #main-nav-bar #main-nav-menu-items{margin-right:64px!important}
}
html.cdl-open body{overflow:hidden}
.cdl{position:fixed;inset:0;z-index:99999;background:rgba(8,26,23,.55);display:flex;align-items:flex-end;justify-content:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.cdl__sheet{background:#fff;width:100%;max-width:600px;max-height:84vh;display:flex;flex-direction:column;border-radius:12px 12px 0 0;box-shadow:0 -8px 34px rgba(0,0,0,.28)}
.cdl__head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;flex:0 0 auto}
.cdl__title{font-size:18px;font-weight:700;color:#004b41}
.cdl__x{border:0;background:none;font-size:20px;line-height:1;color:#6b7370;cursor:pointer;padding:4px}
.cdl__grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:0 10px 18px;overflow:auto;-webkit-overflow-scrolling:touch}
.cdl__item{display:flex;align-items:center;gap:10px;padding:11px 12px;border:0;background:#fff;border-radius:7px;font:inherit;font-size:15px;color:#00211c;text-align:left;cursor:pointer;text-transform:none!important;letter-spacing:0}
.cdl__item:hover{background:#f2f6f4}
.cdl__item.on{background:#e4efe9;color:#004b41;font-weight:600}
.cdl__flag{font-size:19px;line-height:1}
.cdl__label{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cdl__code{flex:0 0 auto;margin-inline-start:auto;font-size:10px;letter-spacing:.5px;color:#8c8c8c;text-transform:uppercase}
@media (min-width:700px){
  .cdl{align-items:center}
  .cdl__sheet{border-radius:12px;max-height:74vh}
  .cdl__grid{grid-template-columns:1fr 1fr 1fr}
}

/* RTL touches (Arabic) */
html[dir="rtl"] .cd-mobile-icons{right:auto;left:4px}
html[dir="rtl"] #main-nav-bar ul.main-nav-options #nav-logo{margin-left:0;margin-right:12px}
html[dir="rtl"] #homepage .homepage-items .homepage-item-overlay{text-align:right}

html[dir="rtl"] .cdl__item{text-align:right}
html[dir="rtl"] .cdl__head{flex-direction:row}
.fa-globe:before{content:"\f0ac"}
