/* Abu Namous v2.1.7 — image-first product/catalog presentation + image/product sharing. */

/* ---------- Catalog cards: image first ---------- */
.anm-theme .anm-market-card{
  border-radius:17px!important;
  overflow:hidden!important;
}
.anm-theme .anm-market-card>.anm-market-media{
  height:325px!important;
  min-height:325px!important;
  max-height:325px!important;
  flex-basis:325px!important;
  background:#e9f0f3!important;
}
.anm-theme .anm-market-card .anm-market-slide{
  overflow:hidden!important;
  isolation:isolate;
  background:#e9f0f3!important;
}
.anm-theme .anm-market-card .anm-market-slide::before{
  content:"";
  position:absolute;
  inset:-18px;
  z-index:0;
  background-image:var(--anm-card-photo);
  background-size:cover;
  background-position:center;
  filter:blur(18px) saturate(.9);
  opacity:.24;
  transform:scale(1.08);
  pointer-events:none;
}
.anm-theme .anm-market-card .anm-market-slide::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.42));
  pointer-events:none;
}
.anm-theme .anm-market-card .anm-market-slide>img{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:2px!important;
  background:transparent!important;
}
.anm-theme .anm-market-card .anm-status,
.anm-theme .anm-market-card .anm-gallery-nav,
.anm-theme .anm-market-card .anm-gallery-count{z-index:4!important}
.anm-theme .anm-market-card>.anm-vehicle-body{padding:13px 15px 15px!important}
.anm-theme .anm-market-card .anm-market-category{font-size:10px!important;margin-bottom:6px!important}
.anm-theme .anm-market-card .anm-vehicle-body h3{font-size:17px!important;line-height:1.4!important;margin:0 0 8px!important}
.anm-theme .anm-market-card .anm-card-facts{gap:5px!important;margin-bottom:10px!important}
.anm-theme .anm-market-card .anm-card-facts>div{padding:4px 7px!important;min-height:0!important}
.anm-theme .anm-market-card .anm-card-facts dt{font-size:10px!important}
.anm-theme .anm-market-card .anm-card-facts dd{font-size:11px!important;line-height:1.4!important}
.anm-theme .anm-market-card .anm-card-bottom{padding-top:10px!important;gap:7px!important}
.anm-theme .anm-market-card .anm-card-bottom>.anm-card-whatsapp,
.anm-theme .anm-market-card .anm-card-bottom>.anm-card-link{min-height:40px!important;font-size:12px!important;padding:8px 10px!important}

/* ---------- Product page: gallery is the visual focus ---------- */
.anm-product-page-v214 .anm-product-overview{padding-top:24px!important}
.anm-product-layout-v214{
  grid-template-columns:minmax(0,1.38fr) minmax(330px,.62fr)!important;
  gap:clamp(28px,3.2vw,50px)!important;
}
.anm-gallery-layout-v214{grid-template-columns:94px minmax(0,1fr)!important;gap:12px!important}
.anm-product-gallery-v214 .anm-gallery-thumbs{max-height:660px!important;gap:9px!important}
.anm-gallery-thumb-item{position:relative;flex:0 0 auto}
.anm-product-gallery-v214 .anm-gallery-thumb{
  width:90px!important;
  height:90px!important;
  flex-basis:90px!important;
  padding:3px!important;
  border-radius:12px!important;
  overflow:hidden;
}
.anm-product-gallery-v214 .anm-gallery-thumb img{padding:0!important;object-fit:contain!important;background:#fff!important}
.anm-thumb-share{
  position:absolute;
  inset-inline-end:4px;
  inset-block-end:4px;
  z-index:5;
  width:28px;
  height:28px;
  border:1px solid rgba(255,255,255,.85);
  border-radius:8px;
  display:grid;
  place-items:center;
  background:rgba(10,46,70,.9);
  color:#fff;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 3px 12px rgba(8,37,55,.18);
  transition:transform .16s,background .16s;
}
.anm-thumb-share:hover,.anm-thumb-share:focus-visible{background:#0b7f9d;transform:translateY(-1px)}
.anm-product-gallery-v214 .anm-gallery-main{
  height:660px!important;
  min-height:660px!important;
  background:#e8eff2!important;
  isolation:isolate;
}
.anm-product-gallery-v214 .anm-gallery-main::before{
  content:"";
  position:absolute;
  inset:-24px;
  z-index:0;
  background-image:var(--anm-product-photo);
  background-size:cover;
  background-position:center;
  filter:blur(24px) saturate(.92);
  opacity:.27;
  transform:scale(1.06);
  pointer-events:none;
}
.anm-product-gallery-v214 .anm-gallery-main::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.34));
  pointer-events:none;
}
.anm-gallery-stage-button{z-index:1!important}
.anm-product-gallery-v214 .anm-gallery-main .anm-gallery-stage-button>img,
.anm-product-gallery-v214 .anm-gallery-main>img{
  padding:4px!important;
  background:transparent!important;
  object-fit:contain!important;
  position:relative!important;
  z-index:1!important;
}
.anm-gallery-zoom-hint,.anm-product-gallery-arrow,.anm-product-gallery-counter{z-index:5!important}

/* Sharing tools directly under product photos. */
.anm-image-sharebar{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px 14px;
  flex-wrap:wrap;
  min-height:50px;
  padding:9px 11px;
  border:1px solid #e1e9ed;
  border-radius:13px;
  background:#fff;
  box-shadow:0 4px 16px rgba(18,52,75,.035);
}
.anm-image-sharebar-label{font-size:11px;font-weight:800;color:#69808e;white-space:nowrap}
.anm-image-sharebar-actions{display:flex;gap:7px;flex-wrap:wrap;flex:1}
.anm-image-sharebar-actions button{
  appearance:none;
  min-height:34px;
  border:1px solid #d7e4e9;
  border-radius:9px;
  padding:6px 10px;
  background:#f8fbfc;
  color:#17455e;
  font-family:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:background .16s,border-color .16s,color .16s,transform .16s;
}
.anm-image-sharebar-actions button:hover,.anm-image-sharebar-actions button:focus-visible{background:#edf8fb;border-color:#8ecddd;color:#096d88;transform:translateY(-1px)}
.anm-image-sharebar-actions [data-share-current-whatsapp]{background:#0f8f6a;border-color:#0f8f6a;color:#fff}
.anm-image-sharebar-actions [data-share-current-whatsapp]:hover,.anm-image-sharebar-actions [data-share-current-whatsapp]:focus-visible{background:#0b7657;border-color:#0b7657;color:#fff}
.anm-share-feedback{font-size:11px;font-weight:800;color:#0b7657;min-width:1px}

/* Slightly calmer copy so photography dominates. */
.anm-product-summary-card-v214 h1{font-size:clamp(28px,2.55vw,39px)!important;line-height:1.3!important;margin-bottom:12px!important}
.anm-product-summary-card-v214 .anm-detail-desc{font-size:14px!important;line-height:1.85!important;padding-bottom:16px!important;margin-bottom:16px!important}
.anm-product-facts-v214{gap:8px!important;margin-bottom:17px!important}
.anm-product-facts-v214>div{min-height:64px!important;padding:10px 11px!important}
.anm-product-facts-v214 span{font-size:11px!important}
.anm-product-facts-v214 strong{font-size:13px!important}
.anm-product-enquiry-box{padding:16px!important}
.anm-product-enquiry-box>strong{font-size:16px!important}
.anm-product-enquiry-box>p{font-size:12px!important}
.anm-product-enquiry-box .anm-button{min-height:42px!important;font-size:12px!important}

/* Lightbox share controls. */
.anm-lightbox-tools .anm-lightbox-share{font-size:16px!important}

@media(max-width:1180px){
  .anm-product-layout-v214{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)!important}
  .anm-product-gallery-v214 .anm-gallery-main{height:570px!important;min-height:570px!important}
  .anm-product-gallery-v214 .anm-gallery-thumbs{max-height:570px!important}
  .anm-theme .anm-market-card>.anm-market-media{height:300px!important;min-height:300px!important;max-height:300px!important;flex-basis:300px!important}
}

@media(max-width:920px){
  .anm-product-layout-v214{grid-template-columns:1fr!important}
  .anm-gallery-layout-v214{grid-template-columns:1fr!important;grid-template-rows:auto auto!important}
  .anm-product-gallery-v214 .anm-gallery-main{height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  .anm-product-gallery-v214 .anm-gallery-thumbs{max-height:none!important}
  .anm-gallery-thumb-item{flex:0 0 80px}
  .anm-product-gallery-v214 .anm-gallery-thumb{width:80px!important;height:74px!important;flex-basis:74px!important}
  .anm-image-sharebar{align-items:flex-start}
  .anm-image-sharebar-label{width:100%}
}

@media(max-width:640px){
  .anm-theme .anm-market-card>.anm-market-media{height:315px!important;min-height:315px!important;max-height:315px!important;flex-basis:315px!important}
  .anm-theme .anm-market-card .anm-vehicle-body h3{font-size:16px!important}
  .anm-product-gallery-v214 .anm-gallery-main{aspect-ratio:1/1!important}
  .anm-image-sharebar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .anm-image-sharebar-actions button{width:100%;font-size:10.5px}
  .anm-thumb-share{width:27px;height:27px}
}
