/* ===== Clean theme layout hide default WP theme header/footer ===== */
body.adex-clean-layout .wp-site-blocks > header,
body.adex-clean-layout .wp-site-blocks > footer,
body.adex-clean-layout .wp-block-template-part,
body.adex-clean-layout .entry-header,
body.adex-clean-layout h1.wp-block-post-title,
body.adex-clean-layout .wp-block-post-title{
  display:none!important;
}
body.adex-clean-layout .wp-site-blocks,
body.adex-clean-layout .wp-site-blocks > main,
body.adex-clean-layout .entry-content,
body.adex-clean-layout .wp-block-post-content{
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body.adex-builder-enabled{
  background:#fbf9f5!important;
}

/* ===== Header more GhorerBazar-like ===== */
body.adex-builder-enabled .adex-gb-header{
  background:#fff!important;
  box-shadow:0 2px 14px rgba(15,23,42,.08)!important;
}
body.adex-builder-enabled .adex-gb-topbar{
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
}
body.adex-builder-enabled .adex-gb-header-main{
  min-height:70px;
}
body.adex-builder-enabled .adex-gb-logo strong{
  font-size:20px!important;
  font-weight:800!important;
}
body.adex-builder-enabled .adex-gb-search{
  max-width:540px;
  border-radius:8px!important;
  background:#f5f5f5!important;
}
body.adex-builder-enabled .adex-gb-menu{
  background:#032e2a!important;
  border-top:1px solid rgba(255,255,255,.05);
}
body.adex-builder-enabled .adex-gb-menu .adex-container{
  gap:0!important;
  overflow-x:auto;
}
body.adex-builder-enabled .adex-gb-menu a{
  padding:13px 18px!important;
  font-size:14px;
  white-space:nowrap;
}
body.adex-builder-enabled .adex-gb-menu a:hover{
  background:rgba(255,255,255,.08);
  color:#fff!important;
}

/* ===== Builder homepage ===== */
.adex-builder-home{
  padding-top:18px;
  padding-bottom:32px;
}
.adex-builder-hero{
  display:grid;
  grid-template-columns:70% 30%;
  gap:16px;
  margin:0 0 22px;
}
.adex-builder-hero-left,
.adex-builder-hero-right{
  min-height:285px;
  border-radius:8px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding:34px;
  color:#fff!important;
  text-decoration:none!important;
  background:linear-gradient(135deg,var(--primary-color),#ffb566);
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}
.adex-builder-hero-right{
  justify-content:center;
  text-align:center;
  background:linear-gradient(135deg,#fff3e8,#ffd4a6);
  color:#111827!important;
}
.adex-builder-hero-left img,
.adex-builder-hero-right img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}
.adex-builder-hero-left:before,
.adex-builder-hero-right:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
}
.adex-builder-hero-left:before{
  background:linear-gradient(90deg,rgba(0,0,0,.42),rgba(0,0,0,.03));
}
.adex-builder-hero-right:before{
  background:linear-gradient(0deg,rgba(255,255,255,.18),rgba(255,255,255,.18));
}
.adex-builder-hero-left div,
.adex-builder-hero-right strong{
  position:relative;
  z-index:2;
}
.adex-builder-hero-left h1{
  margin:0 0 10px;
  font-size:36px;
  font-weight:900;
  line-height:1.15;
}
.adex-builder-hero-left p{
  margin:0;
  font-size:16px;
  font-weight:600;
}
.adex-builder-hero-right strong{
  font-size:24px;
  font-weight:900;
}
.adex-builder-section-head{
  margin:22px 0 12px;
  display:flex;
  align-items:center;
  gap:12px;
}
.adex-builder-section-head h2{
  margin:0;
  font-size:20px;
  font-weight:900;
  color:#111827;
  white-space:nowrap;
}
.adex-builder-section-head span{
  height:2px;
  flex:1;
  background:linear-gradient(90deg,var(--primary-color),transparent);
}
.adex-builder-section{
  display:grid;
  grid-template-columns:repeat(var(--adex-cols), minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}
.adex-section-slider{
  display:flex!important;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:10px;
}
.adex-section-slider > *{
  flex:0 0 calc((100% - (var(--adex-cols) - 1) * 16px) / var(--adex-cols));
  scroll-snap-align:start;
}
.adex-section-slider::-webkit-scrollbar{
  height:6px;
}
.adex-section-slider::-webkit-scrollbar-thumb{
  background:#f48721;
  border-radius:99px;
}

/* ===== Category / Brand ===== */
.adex-cat-icon-card{
  min-height:105px;
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none!important;
  color:#111827!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
  transition:.22s;
}
.adex-cat-icon-card:hover{
  transform:translateY(-2px);
  color:var(--primary-color)!important;
}
.adex-cat-icon-card img{
  width:54px;
  height:54px;
  object-fit:contain;
}
.adex-cat-icon-card span{
  font-size:13px;
  font-weight:700;
  text-align:center;
}
.adex-brand-card{
  height:82px;
  background:#fff;
  border:1px solid #eee;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none!important;
  color:#111827!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
.adex-brand-card img{
  max-width:120px;
  max-height:52px;
  object-fit:contain;
}

/* ===== Product cards ===== */
.adex-pro-card{
  position:relative;
  background:#fff;
  border:1px solid #eee;
  border-radius:8px;
  overflow:hidden;
  padding:10px;
  box-shadow:0 6px 20px rgba(15,23,42,.045);
  transition:.22s;
}
.adex-pro-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(15,23,42,.09);
}
.adex-pro-badge{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  background:var(--primary-color);
  color:#fff;
  border-radius:4px;
  padding:4px 7px;
  font-size:11px;
  font-weight:800;
}
.adex-pro-img{
  display:block;
  background:#fff;
  border-radius:8px;
  text-align:center;
}
.adex-pro-img img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  transition:.25s;
}
.adex-pro-card:hover .adex-pro-img img{
  transform:scale(1.035);
}
.adex-pro-info h3{
  margin:9px 0 6px;
  font-size:15px;
  line-height:1.35;
  min-height:40px;
  font-weight:700;
}
.adex-pro-info h3 a{
  color:#111827!important;
  text-decoration:none!important;
}
.adex-pro-price{
  color:var(--primary-color);
  font-size:16px;
  font-weight:900;
  margin-bottom:8px;
}
.adex-pro-actions{
  display:flex;
  gap:8px;
}
.adex-pro-actions .button{
  margin:0!important;
  flex:1;
  border-radius:5px!important;
  padding:9px 10px!important;
  font-size:13px!important;
  line-height:1.2!important;
}
.adex-outline-btn{
  background:#fff!important;
  color:var(--primary-color)!important;
  border:1px solid var(--primary-color)!important;
}
.adex-solid-btn{
  background:var(--primary-color)!important;
  color:#fff!important;
}
.adex-stock-out{
  background:#fff!important;
  color:#ef4444!important;
  border:1px solid #ef4444!important;
}

/* Wide product card like GhorerBazar top selling */
.adex-pro-card-wide{
  min-height:245px;
  display:grid;
  grid-template-columns:45% 55%;
  gap:18px;
  align-items:center;
  padding:22px;
}
.adex-pro-card-wide .adex-pro-img img{
  max-height:220px;
}
.adex-pro-card-wide .adex-pro-info h3{
  font-size:22px;
  min-height:auto;
}
.adex-pro-card-wide .adex-pro-price{
  font-size:22px;
}
.adex-pro-card-wide .adex-pro-actions{
  max-width:330px;
}

/* Compact cards */
.adex-pro-card-compact{
  padding:8px;
}
.adex-pro-card-compact .adex-pro-info h3{
  font-size:13px;
}
.adex-pro-card-compact .adex-pro-actions{
  flex-direction:column;
}

/* Banner */
.adex-builder-banner{
  margin:28px 0;
}
.adex-builder-banner a{
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111827;
  color:#fff!important;
  text-decoration:none!important;
  border-radius:10px;
  overflow:hidden;
}
.adex-builder-banner img{
  width:100%;
  height:auto;
  display:block;
}

/* Floating cart more like reference */
.adex-gb-floating-cart{
  min-width:82px!important;
  right:14px!important;
  border-radius:8px!important;
  box-shadow:0 10px 28px rgba(15,23,42,.22)!important;
}

/* Product page polish */
body.adex-builder-enabled.single-product div.product{
  max-width:1180px;
  margin:24px auto!important;
  background:#fff!important;
  border:1px solid #eee;
  border-radius:14px;
  padding:24px!important;
  box-shadow:0 8px 28px rgba(15,23,42,.06);
}
body.adex-builder-enabled.single-product .product_title{
  font-size:30px!important;
  font-weight:900!important;
}
body.adex-builder-enabled.single-product .summary .price{
  color:var(--primary-color)!important;
  font-size:24px!important;
  font-weight:900!important;
}
body.adex-builder-enabled.single-product .woocommerce-product-gallery{
  border:1px solid #eee;
  border-radius:12px;
  padding:14px;
}
body.adex-builder-enabled.single-product .woocommerce-tabs{
  max-width:1180px;
  margin:20px auto!important;
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:18px;
  box-shadow:0 8px 28px rgba(15,23,42,.05);
}

/* Archive grid improvement */
body.adex-builder-enabled.woocommerce-shop ul.products,
body.adex-builder-enabled.tax-product_cat ul.products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
}
body.adex-builder-enabled.woocommerce-shop ul.products li.product,
body.adex-builder-enabled.tax-product_cat ul.products li.product{
  width:auto!important;
  margin:0!important;
}

/* Responsive */
@media(max-width:1024px){
  .adex-builder-section{
    grid-template-columns:repeat(var(--adex-tab-cols), minmax(0,1fr));
  }
  .adex-section-slider > *{
    flex-basis:calc((100% - (var(--adex-tab-cols) - 1) * 16px) / var(--adex-tab-cols));
  }
  body.adex-builder-enabled.woocommerce-shop ul.products,
  body.adex-builder-enabled.tax-product_cat ul.products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:768px){
  .adex-builder-hero{
    grid-template-columns:1fr;
  }
  .adex-builder-hero-left,
  .adex-builder-hero-right{
    min-height:190px;
    padding:22px;
  }
  .adex-builder-hero-left h1{
    font-size:26px;
  }
  .adex-builder-section{
    grid-template-columns:repeat(var(--adex-mob-cols), minmax(0,1fr));
    gap:10px;
  }
  .adex-section-slider > *{
    flex-basis:calc((100% - (var(--adex-mob-cols) - 1) * 10px) / var(--adex-mob-cols));
  }
  .adex-pro-card-wide{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .adex-pro-card-wide .adex-pro-info h3{
    font-size:17px;
  }
  .adex-pro-actions{
    flex-direction:column;
  }
  body.adex-builder-enabled.woocommerce-shop ul.products,
  body.adex-builder-enabled.tax-product_cat ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
