/* Abu Namous v2.1.4 — Woodmart-inspired catalog/product polish without shop/cart UI. */

/* ---------- Product page ---------- */
.anm-product-page-v214{background:#f7f9fa}
.anm-product-page-v214 .anm-product-overview{padding:30px 0 58px;background:#fff;border-bottom:1px solid #e7edf1}
.anm-product-page-v214 .anm-breadcrumb{margin:0 0 24px;color:#8295a2}
.anm-product-layout-v214{direction:ltr;grid-template-columns:minmax(0,1.12fr) minmax(360px,.78fr);gap:clamp(34px,4vw,64px);align-items:start}
html[dir="rtl"] .anm-product-layout-v214>.anm-product-gallery-v214,
html[dir="rtl"] .anm-product-layout-v214>.anm-product-summary-card-v214{direction:rtl}
html[dir="ltr"] .anm-product-layout-v214>.anm-product-gallery-v214,
html[dir="ltr"] .anm-product-layout-v214>.anm-product-summary-card-v214{direction:ltr}

.anm-product-gallery-v214{min-width:0}
.anm-gallery-layout-v214{direction:ltr;display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;align-items:stretch}
.anm-product-gallery-v214 .anm-gallery-thumbs{margin:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;max-height:590px;padding:1px 4px 1px 1px;scrollbar-width:thin}
.anm-product-gallery-v214 .anm-gallery-thumb{width:78px;height:78px;flex:0 0 78px;border:1px solid #dce5ea;border-radius:12px;padding:5px;background:#fff;box-shadow:none;transition:border-color .18s,box-shadow .18s,transform .18s}
.anm-product-gallery-v214 .anm-gallery-thumb:hover{transform:translateY(-1px);border-color:#9ccddb}
.anm-product-gallery-v214 .anm-gallery-thumb.is-active{border-color:var(--accent);box-shadow:0 0 0 2px rgba(36,167,199,.12)}
.anm-product-gallery-v214 .anm-gallery-thumb img{width:100%;height:100%;object-fit:contain;background:#f8fafb;border-radius:8px}

.anm-product-gallery-v214 .anm-gallery-main{position:relative;height:590px!important;min-height:590px!important;max-height:none!important;aspect-ratio:auto!important;border:1px solid #e0e8ed;border-radius:18px;background:#f6f8f9;overflow:hidden;box-shadow:0 8px 30px rgba(20,54,75,.05)}
.anm-gallery-stage-button{appearance:none;border:0;background:transparent;width:100%;height:100%;padding:0;display:flex;align-items:center;justify-content:center;cursor:zoom-in;position:relative}
.anm-product-gallery-v214 .anm-gallery-main .anm-gallery-stage-button>img,
.anm-product-gallery-v214 .anm-gallery-main>img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:18px!important;background:#fff!important;transition:transform .2s ease}
.anm-gallery-stage-button:hover>img{transform:scale(1.012)}
.anm-gallery-zoom-hint{position:absolute;inset-inline-end:16px;inset-block-end:16px;display:inline-flex;gap:7px;align-items:center;background:rgba(9,35,52,.84);color:#fff;padding:9px 12px;border-radius:10px;font-size:12px;font-weight:700;backdrop-filter:blur(7px);pointer-events:none}
.anm-gallery-zoom-hint span{font-size:17px;line-height:1}
.anm-product-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:42px;height:42px;border-radius:50%;border:1px solid #d9e4e9;background:rgba(255,255,255,.94);color:#173f58;font-size:27px;line-height:1;display:grid;place-items:center;box-shadow:0 7px 20px rgba(17,48,68,.12);cursor:pointer;opacity:.92}
.anm-product-gallery-arrow:hover{background:#fff;color:#0589a7}
.anm-product-gallery-arrow.is-prev{left:14px}.anm-product-gallery-arrow.is-next{right:14px}
.anm-product-gallery-counter{position:absolute;inset-inline-start:16px;inset-block-end:16px;background:rgba(255,255,255,.94);border:1px solid #dce7ec;color:#173f58;padding:7px 10px;border-radius:9px;font-size:12px;font-weight:800;box-shadow:0 4px 14px rgba(17,48,68,.08)}

.anm-product-summary-card-v214{position:sticky;top:calc(var(--anm-header-height) + 22px);background:#fff;border:0!important;border-radius:0!important;box-shadow:none!important;padding:8px 0 0!important}
.admin-bar .anm-product-summary-card-v214{top:calc(var(--anm-header-height) + 54px)}
.anm-product-meta-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:16px}
.anm-product-category-chip{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;background:#eef7f9;color:#17657d;font-size:12px;font-weight:800}
.anm-product-summary-card-v214 .anm-detail-status{margin:0;padding:6px 11px;border-radius:999px}
.anm-product-summary-card-v214 h1{font-size:clamp(31px,3.1vw,46px);line-height:1.25;margin:0 0 15px;color:#123453;letter-spacing:-.025em}
.anm-product-summary-card-v214 .anm-detail-desc{font-size:15px;line-height:2;color:#617887;border-bottom:1px solid #e8eef1;padding-bottom:20px;margin-bottom:20px}
.anm-product-summary-card-v214 .anm-detail-desc p:last-child{margin-bottom:0}
.anm-product-facts-v214{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;margin:0 0 22px!important}
.anm-product-facts-v214>div{display:flex!important;flex-direction:column;gap:4px;min-height:72px;padding:12px 14px;border:1px solid #e5ecef;border-radius:12px;background:#fafcfd}
.anm-product-facts-v214 span{font-size:12px;color:#7b8f9b}
.anm-product-facts-v214 strong{font-size:15px;color:#183d54;line-height:1.55}
.anm-product-enquiry-box{padding:19px;border-radius:15px;background:linear-gradient(135deg,#0e3653,#144d6c);color:#fff}
.anm-product-enquiry-box>strong{display:block;font-size:18px;margin-bottom:5px}
.anm-product-enquiry-box>p{margin:0;color:#d9eaf1;font-size:13px;line-height:1.8}
.anm-product-enquiry-box .anm-detail-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin:15px 0 0}
.anm-product-enquiry-box .anm-button{min-height:46px;justify-content:center;text-align:center;padding:11px 15px}
.anm-product-enquiry-box .anm-button-light{background:#fff;border-color:#fff;color:#153d55}
.anm-product-summary-card-v214 .anm-product-trustline{margin:15px 0 0!important;padding:0!important;border:0!important;color:#7a8f9c;font-size:12px;line-height:1.8}
/* Remove legacy price/shop UI from this custom catalog detail. */
.anm-product-page-v214 .anm-product-price-wrap,.anm-product-page-v214 .price,.anm-product-page-v214 form.cart,.anm-product-page-v214 .single_add_to_cart_button{display:none!important}

.anm-product-specifications-v214{padding-block:64px;background:#f7f9fa}
.anm-product-section-heading{margin-bottom:28px}
.anm-product-section-heading h2{font-size:clamp(28px,3vw,40px);margin:6px 0 0;color:#123453}
.anm-product-specifications-v214 .anm-spec-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:24px;align-items:start}
.anm-spec-card-v214,.anm-product-info-panel-v214,.anm-product-content-card{background:#fff;border:1px solid #e2e9ed;border-radius:17px;box-shadow:0 7px 24px rgba(20,54,75,.04)}
.anm-spec-card-v214{padding:8px 22px}
.anm-product-specifications-v214 .anm-specs{margin:0;border:0;border-radius:0;background:transparent}
.anm-product-specifications-v214 .anm-spec-row{padding:15px 5px;min-height:54px;border-bottom:1px solid #edf1f3!important;background:transparent!important;font-size:14px}
.anm-product-specifications-v214 .anm-spec-row:last-child{border-bottom:0!important}
.anm-product-specifications-v214 .anm-spec-row span{color:#718691}
.anm-product-specifications-v214 .anm-spec-row strong{color:#153d55;font-size:14px}
.anm-product-info-panel-v214{padding:26px!important;position:sticky;top:calc(var(--anm-header-height) + 22px)}
.anm-product-info-panel-v214 h3{font-size:22px;line-height:1.5;margin:7px 0 12px;color:#123453}
.anm-product-info-panel-v214 p{font-size:14px;line-height:1.95;color:#657b89}
.anm-spec-empty{padding:22px;color:#718691}
.anm-product-more-v214{padding-top:0!important;background:#f7f9fa}
.anm-product-content-card{padding:30px}
.anm-product-content-card h2{font-size:29px;margin:6px 0 18px}
.anm-product-contact-band{border-top:0!important}

/* ---------- Full-screen product image viewer ---------- */
body.anm-lightbox-open{overflow:hidden!important}
.anm-product-lightbox[hidden]{display:none!important}
.anm-product-lightbox{position:fixed;inset:0;z-index:999999;display:grid;place-items:center}
.anm-lightbox-backdrop{position:absolute;inset:0;background:rgba(5,13,20,.94);backdrop-filter:blur(8px)}
.anm-lightbox-dialog{position:relative;width:100%;height:100%;display:flex;flex-direction:column;z-index:2;color:#fff}
.anm-lightbox-toolbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;gap:15px;position:relative;z-index:5;background:rgba(0,0,0,.18)}
.anm-lightbox-count{font-size:13px;font-weight:700;color:#d6e1e7}
.anm-lightbox-tools{display:flex;align-items:center;gap:7px}
.anm-lightbox-tools button{height:40px;min-width:40px;padding:0 11px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:18px;cursor:pointer}
.anm-lightbox-tools [data-lightbox-zoom-reset]{font-size:12px;min-width:60px}
.anm-lightbox-tools .anm-lightbox-close{font-size:27px;margin-inline-start:7px}
.anm-lightbox-viewport{flex:1;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:zoom-in;touch-action:none;position:relative}
.anm-lightbox-viewport.is-zoomed{cursor:grab}.anm-lightbox-viewport.is-dragging{cursor:grabbing}
.anm-lightbox-viewport img{display:block;max-width:92vw;max-height:84vh;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none;will-change:transform;transition:transform .08s linear;transform-origin:center center}
.anm-lightbox-nav{position:absolute;top:50%;z-index:6;transform:translateY(-50%);width:50px;height:50px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.09);color:#fff;font-size:32px;cursor:pointer;backdrop-filter:blur(6px)}
.anm-lightbox-nav:hover{background:rgba(255,255,255,.16)}
.anm-lightbox-nav.is-prev{left:20px}.anm-lightbox-nav.is-next{right:20px}

/* ---------- Catalog / cards ---------- */
.anm-catalog-hero{padding-block:42px!important;background:linear-gradient(128deg,#0b2940,#114b67)!important}
.anm-catalog-hero h1{font-size:clamp(34px,4vw,52px)!important;margin-bottom:10px!important}
.anm-catalog-hero p{font-size:15px!important;max-width:680px!important}
.anm-catalog-section{padding-block:42px 70px!important;background:#f7f9fa!important}
.anm-catalog-section .anm-market-sidebar{position:sticky;top:calc(var(--anm-header-height) + 20px);align-self:start;background:#fff;border:1px solid #e1e9ed;border-radius:16px;padding:0;box-shadow:0 6px 24px rgba(19,55,77,.04);overflow:hidden}
.anm-catalog-section .anm-market-filter-details>summary{padding:16px 18px;border-bottom:1px solid #edf1f3;font-size:15px;font-weight:800;background:#fbfcfd}
.anm-catalog-section .anm-market-filter-inner{padding:14px}
.anm-catalog-section .anm-filters{padding:0!important;border:0!important;background:transparent!important;display:grid!important;grid-template-columns:1fr!important;gap:11px!important}
.anm-catalog-section .anm-filters label,.anm-catalog-section .anm-filters button{grid-column:auto!important}
.anm-catalog-section .anm-filters input,.anm-catalog-section .anm-filters select{height:44px!important;border-radius:9px!important;background:#fff}
.anm-catalog-section .anm-result-line{margin:0 0 18px!important;padding:12px 15px;border:1px solid #e2eaee;border-radius:12px;background:#fff;color:#6b808d;display:flex;gap:6px;align-items:center;min-height:47px}
.anm-catalog-section .anm-result-line strong{font-size:17px;color:#173f58}
.anm-catalog-section .anm-result-line a{margin-inline-start:auto;color:#0987a5;font-size:13px;font-weight:700}
.anm-catalog-section .anm-vehicle-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.anm-theme .anm-market-card{border:1px solid #e0e8ec!important;border-radius:15px!important;box-shadow:0 4px 20px rgba(19,54,75,.035)!important;background:#fff!important}
.anm-theme .anm-market-card:hover{transform:translateY(-3px)!important;box-shadow:0 12px 28px rgba(19,54,75,.09)!important;border-color:#c8dce5!important}
.anm-theme .anm-market-card>.anm-market-media{height:245px!important;min-height:245px!important;max-height:245px!important;flex-basis:245px!important;background:#f5f7f8!important;border-bottom:1px solid #edf1f3!important}
.anm-theme .anm-market-card .anm-market-slide>img{object-fit:contain!important;padding:9px!important;background:#fff!important}
.anm-theme .anm-market-card>.anm-vehicle-body{padding:15px 16px 16px!important}
.anm-theme .anm-market-card .anm-market-category{font-size:11px;padding:4px 8px;border-radius:999px;background:#eff7f9;color:#1d6980;width:max-content;margin-bottom:8px}
.anm-theme .anm-market-card .anm-vehicle-body h3{font-size:19px!important;line-height:1.45!important;margin-bottom:10px!important}
.anm-theme .anm-market-card .anm-card-facts{gap:6px!important;margin-bottom:14px!important}
.anm-theme .anm-market-card .anm-card-facts>div{background:#f6f9fa!important;border:1px solid #edf1f3!important;padding:5px 8px!important}
.anm-theme .anm-market-card .anm-card-bottom{gap:8px!important;padding-top:13px!important}
.anm-theme .anm-market-card .anm-card-whatsapp{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 11px;border-radius:9px;background:#e8f7f3;color:#087254;font-size:12px;font-weight:800;text-align:center;text-decoration:none;line-height:1.4}
.anm-theme .anm-market-card .anm-card-link{min-height:39px!important;background:#f3f8fa!important;border-color:#dce8ed!important;border-radius:9px!important}

@media(max-width:1180px){
  .anm-product-layout-v214{grid-template-columns:minmax(0,1fr) minmax(330px,.78fr);gap:30px}
  .anm-product-gallery-v214 .anm-gallery-main{height:510px!important;min-height:510px!important}
  .anm-product-gallery-v214 .anm-gallery-thumbs{max-height:510px}
  .anm-catalog-section .anm-vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:920px){
  .anm-product-page-v214 .anm-product-overview{padding-top:22px}
  .anm-product-layout-v214{direction:initial;grid-template-columns:1fr!important;gap:28px}
  .anm-product-summary-card-v214,.anm-product-info-panel-v214{position:static!important;top:auto!important}
  .anm-product-summary-card-v214{padding-top:0!important}
  .anm-gallery-layout-v214{grid-template-columns:1fr;grid-template-rows:auto auto}
  .anm-product-gallery-v214 .anm-gallery-main{grid-row:1;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  .anm-product-gallery-v214 .anm-gallery-thumbs{grid-row:2;flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;padding:4px 0 7px}
  .anm-product-gallery-v214 .anm-gallery-thumb{width:75px;height:70px;flex-basis:75px}
  .anm-product-specifications-v214 .anm-spec-layout{grid-template-columns:1fr}
  .anm-catalog-section .anm-market-layout{display:block!important}
  .anm-catalog-section .anm-market-sidebar{position:static;margin-bottom:18px}
}

@media(max-width:640px){
  .anm-product-page-v214 .anm-product-overview{padding:16px 0 38px}
  .anm-product-page-v214 .anm-breadcrumb{margin-bottom:16px;font-size:11px}
  .anm-product-gallery-v214 .anm-gallery-main{aspect-ratio:1/1!important;border-radius:14px}
  .anm-product-gallery-v214 .anm-gallery-main .anm-gallery-stage-button>img{padding:10px!important}
  .anm-gallery-zoom-hint{inset-inline-end:10px;inset-block-end:10px;padding:7px 9px;font-size:11px}
  .anm-product-gallery-arrow{width:37px;height:37px;font-size:24px}
  .anm-product-gallery-arrow.is-prev{left:8px}.anm-product-gallery-arrow.is-next{right:8px}
  .anm-product-summary-card-v214 h1{font-size:29px}
  .anm-product-facts-v214{grid-template-columns:1fr 1fr!important}
  .anm-product-facts-v214>div{min-height:66px;padding:10px 11px}
  .anm-product-enquiry-box{padding:16px}
  .anm-product-enquiry-box .anm-detail-actions{grid-template-columns:1fr}
  .anm-product-specifications-v214{padding-block:45px}
  .anm-spec-card-v214{padding:4px 14px}
  .anm-product-info-panel-v214,.anm-product-content-card{padding:21px!important}
  .anm-lightbox-toolbar{height:58px;padding:8px 10px}
  .anm-lightbox-tools button{height:38px;min-width:38px;padding:0 9px}
  .anm-lightbox-nav{width:42px;height:42px;font-size:27px}
  .anm-lightbox-nav.is-prev{left:8px}.anm-lightbox-nav.is-next{right:8px}
  .anm-lightbox-viewport img{max-width:96vw;max-height:78vh}
  .anm-catalog-section{padding-top:28px!important}
  .anm-catalog-section .anm-vehicle-grid{grid-template-columns:1fr!important;gap:15px!important}
  .anm-theme .anm-market-card>.anm-market-media{height:270px!important;min-height:270px!important;max-height:270px!important;flex-basis:270px!important}
}

/* v2.1.5 — restore strong contrast for catalog card CTAs. */
.anm-theme .anm-market-card .anm-card-bottom > .anm-card-whatsapp,
.anm-theme .anm-market-card .anm-card-whatsapp{
  background:#0f8f6a !important;
  color:#ffffff !important;
  border:1px solid #0f8f6a !important;
  box-shadow:0 6px 16px rgba(15,143,106,.16) !important;
  opacity:1 !important;
  filter:none !important;
  min-height:44px !important;
  padding:10px 14px !important;
  border-radius:10px !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.45 !important;
  text-decoration:none !important;
}
.anm-theme .anm-market-card .anm-card-bottom > .anm-card-whatsapp:hover,
.anm-theme .anm-market-card .anm-card-whatsapp:hover,
.anm-theme .anm-market-card .anm-card-bottom > .anm-card-whatsapp:focus-visible,
.anm-theme .anm-market-card .anm-card-whatsapp:focus-visible{
  background:#0b7657 !important;
  border-color:#0b7657 !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(11,118,87,.22) !important;
  transform:translateY(-1px) !important;
}
.anm-theme .anm-market-card .anm-card-bottom > .anm-card-link{
  min-height:44px !important;
  padding:10px 13px !important;
  border:1px solid #d5e5ec !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#0b607b !important;
  justify-content:center !important;
  text-decoration:none !important;
}
.anm-theme .anm-market-card .anm-card-bottom > .anm-card-link:hover,
.anm-theme .anm-market-card .anm-card-bottom > .anm-card-link:focus-visible{
  border-color:#78c7da !important;
  background:#f2fbfd !important;
  color:#07536a !important;
}
