
/* ===== AutoPrime Ford Premium V4 - Listing/Product Cards ===== */
:root{
  --ford-blue:#003478;
  --ford-blue-2:#001f4e;
  --ford-sky:#2d8cff;
  --ford-light:#eaf3ff;
  --ford-ice:#f5f9ff;
  --ink:#0b1220;
  --muted:#64748b;
  --line:#dbe7f5;
  --success:#12805c;
  --warning:#f59e0b;
  --danger:#dc2626;
  --card:#ffffff;
  --shadow:0 18px 45px rgba(0,52,120,.12);
}
body{background:linear-gradient(180deg,#f7fbff 0%,#eef6ff 45%,#f8fbff 100%); color:var(--ink);}
a{color:inherit}
.btn-primary,.ap-btn-primary{
  background:linear-gradient(135deg,var(--ford-blue),#0057b8)!important;
  border-color:var(--ford-blue)!important;
  color:#fff!important;
  box-shadow:0 12px 24px rgba(0,52,120,.22);
}
.btn-primary:hover,.ap-btn-primary:hover{transform:translateY(-1px); box-shadow:0 16px 30px rgba(0,52,120,.3);}
.btn-outline-primary,.ap-btn-outline{
  color:var(--ford-blue)!important;
  border-color:rgba(0,52,120,.25)!important;
  background:#fff!important;
}
.btn-outline-primary:hover,.ap-btn-outline:hover{background:var(--ford-blue)!important;color:#fff!important}
.ap-listing-shell{padding:34px 0 52px;}
.ap-listing-hero{
  border-radius:28px;
  padding:28px;
  background:
    radial-gradient(circle at 92% 20%,rgba(45,140,255,.26),transparent 32%),
    linear-gradient(135deg,var(--ford-blue-2),var(--ford-blue));
  color:#fff;
  box-shadow:var(--shadow);
  margin-bottom:24px;
  overflow:hidden;
  position:relative;
}
.ap-listing-hero:after{
  content:"";
  position:absolute; right:-80px; top:-90px; width:280px; height:280px;
  border-radius:50%; border:38px solid rgba(255,255,255,.08);
}
.ap-listing-hero .chip{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.13); color:#fff; border:1px solid rgba(255,255,255,.22);
  padding:8px 13px; border-radius:999px; font-weight:700; font-size:13px;
}
.ap-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:#fff; border:1px solid var(--line); border-radius:22px;
  padding:14px; box-shadow:0 10px 26px rgba(0,52,120,.07); margin-bottom:20px;
}
.ap-view-buttons{display:flex; gap:8px; background:var(--ford-ice); padding:5px; border-radius:14px;}
.ap-view-btn{
  border:0; background:transparent; color:var(--muted); padding:8px 12px;
  border-radius:11px; font-weight:800; display:inline-flex; align-items:center; gap:7px;
}
.ap-view-btn.active{background:#fff;color:var(--ford-blue);box-shadow:0 8px 16px rgba(0,52,120,.12)}
.ap-active-filters{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px;}
.ap-filter-pill{
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:8px 12px; color:var(--ford-blue); font-weight:800; font-size:13px;
}
.ap-sidebar{
  background:#fff; border:1px solid var(--line); border-radius:24px;
  box-shadow:0 12px 30px rgba(0,52,120,.08); padding:20px;
  position:sticky; top:118px;
}
.ap-sidebar h6{color:var(--ford-blue); font-weight:900; margin-top:18px;}
.ap-sidebar h6:first-child{margin-top:0}
.ap-sidebar .form-check-label{color:#334155; font-weight:600;}
.ap-product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.ap-product-card{
  background:var(--card);
  border:1px solid rgba(0,52,120,.10);
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,52,120,.09);
  transition:.25s ease;
  position:relative;
}
.ap-product-card:hover{transform:translateY(-8px); box-shadow:0 24px 55px rgba(0,52,120,.18);}
.ap-product-media{
  height:210px; position:relative; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#f3f8ff,#fff);
  overflow:hidden;
}
.ap-product-img{
  width:78%; height:78%; object-fit:contain; transition:.25s ease;
  filter:drop-shadow(0 18px 22px rgba(0,52,120,.14));
}
.ap-product-card:hover .ap-product-img{transform:scale(1.06) rotate(-1deg);}
.ap-badge-row{
  position:absolute; left:14px; top:14px; display:flex; gap:7px; flex-wrap:wrap;
}
.ap-badge{
  border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900;
  color:#fff; box-shadow:0 8px 16px rgba(0,0,0,.12);
}
.ap-badge.discount{background:#0057b8}
.ap-badge.oem{background:#001f4e}
.ap-badge.best{background:#f59e0b;color:#111827}
.ap-card-actions{
  position:absolute; right:14px; top:14px; display:flex; flex-direction:column; gap:8px;
}
.ap-icon-btn{
  width:38px; height:38px; border-radius:14px; border:1px solid rgba(0,52,120,.12);
  background:#fff; color:var(--ford-blue); display:grid; place-items:center;
  box-shadow:0 8px 18px rgba(0,52,120,.12); transition:.2s ease;
}
.ap-icon-btn:hover,.ap-icon-btn.active{background:var(--ford-blue); color:#fff;}
.ap-product-body{padding:18px;}
.ap-brand{font-size:12px; font-weight:950; color:var(--ford-blue); letter-spacing:.12em;}
.ap-product-title{font-size:17px; line-height:1.25; font-weight:900; margin:6px 0 8px; color:#0b1220;}
.ap-product-desc{font-size:13px; color:var(--muted); min-height:36px;}
.ap-compat{
  display:flex; align-items:center; gap:8px; border-radius:14px;
  background:#e9fff6; border:1px solid rgba(18,128,92,.18);
  color:var(--success); padding:9px 10px; font-size:13px; font-weight:850; margin:12px 0;
}
.ap-oem{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  background:var(--ford-ice); border:1px dashed rgba(0,52,120,.28);
  color:#1f3b62; border-radius:14px; padding:9px 10px; font-size:12px; font-weight:800;
}
.ap-copy-oem{border:0;background:#fff;color:var(--ford-blue);border-radius:10px;padding:5px 8px;font-weight:900}
.ap-product-meta{
  display:flex; justify-content:space-between; align-items:center; gap:12px; margin:12px 0;
  color:var(--muted); font-size:13px; font-weight:700;
}
.ap-stock.in{color:var(--success)}
.ap-stock.low{color:var(--warning)}
.ap-price-row{display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin:12px 0 14px;}
.ap-price{font-size:24px; font-weight:950; color:var(--ford-blue);}
.ap-old-price{text-decoration:line-through; color:#94a3b8; font-size:13px;}
.ap-card-footer{display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center;}
.ap-detail-link{font-weight:900; color:var(--ford-blue); text-decoration:none; white-space:nowrap;}
.ap-quick-btn{margin-top:10px; width:100%; border-radius:14px;}
.ap-product-grid.list-view{grid-template-columns:1fr;}
.ap-product-grid.list-view .ap-product-card{display:grid; grid-template-columns:260px 1fr;}
.ap-product-grid.list-view .ap-product-media{height:100%; min-height:240px;}
.ap-product-grid.list-view .ap-product-desc{min-height:auto;}
.ap-compare-bar{
  position:fixed; left:50%; bottom:22px; transform:translateX(-50%);
  background:#fff; border:1px solid var(--line); border-radius:22px;
  box-shadow:0 22px 55px rgba(0,52,120,.22); padding:12px 14px; z-index:1040;
  display:none; align-items:center; gap:12px; min-width:min(740px,92vw);
}
.ap-compare-bar.show{display:flex;}
.ap-compare-items{display:flex; gap:8px; flex-wrap:wrap; flex:1;}
.ap-compare-chip{background:var(--ford-light); color:var(--ford-blue); padding:8px 10px; border-radius:999px; font-weight:850; font-size:13px;}
.ap-bottom-nav{
  position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--line);
  box-shadow:0 -12px 32px rgba(0,52,120,.12); z-index:1030; display:none;
}
.ap-bottom-nav a{flex:1; text-align:center; padding:9px 4px; color:var(--muted); text-decoration:none; font-size:12px; font-weight:800;}
.ap-bottom-nav i{display:block; font-size:18px; color:var(--ford-blue);}
@media (max-width:1199px){.ap-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:767px){
  .ap-listing-hero{padding:22px;border-radius:22px}
  .ap-toolbar{align-items:flex-start; flex-direction:column;}
  .ap-sidebar{position:static; margin-bottom:18px;}
  .ap-product-grid{grid-template-columns:1fr;}
  .ap-product-grid.list-view .ap-product-card{display:block;}
  .ap-bottom-nav{display:flex;}
  body{padding-bottom:62px;}
}


/* ===== AutoPrime Ford Premium V5 - Favorites & Compare ===== */
.ap-page-head{
  padding:34px 0 22px;
}
.ap-page-title{
  font-weight:950;
  color:var(--ford-blue);
  letter-spacing:-.03em;
}
.ap-empty-state{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:44px 28px;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,52,120,.10);
}
.ap-empty-state i{
  font-size:46px;
  color:var(--ford-blue);
}
.ap-mini-product{
  display:grid;
  grid-template-columns:100px 1fr auto;
  gap:16px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  box-shadow:0 12px 30px rgba(0,52,120,.08);
  margin-bottom:14px;
}
.ap-mini-product img{
  width:100px;
  height:78px;
  object-fit:contain;
  background:var(--ford-ice);
  border-radius:16px;
}
.ap-compare-table{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(0,52,120,.10);
}
.ap-compare-table table{margin:0}
.ap-compare-table th{
  background:var(--ford-blue);
  color:#fff;
  vertical-align:middle;
}
.ap-compare-table td{
  vertical-align:middle;
  font-weight:700;
  color:#334155;
}
.ap-compare-good{color:var(--success);font-weight:950}
.ap-floating-toast{
  position:fixed;
  right:22px;
  bottom:92px;
  background:var(--ford-blue);
  color:#fff;
  padding:12px 16px;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,52,120,.28);
  z-index:2000;
  display:none;
  font-weight:850;
}
.ap-floating-toast.show{display:block}
@media(max-width:767px){
  .ap-mini-product{grid-template-columns:76px 1fr; align-items:start}
  .ap-mini-product img{width:76px;height:64px}
  .ap-mini-product .mini-actions{grid-column:1 / -1; display:flex; gap:8px}
}


/* ===== V6 FIX: Product image and badge spacing ===== */
.ap-product-media{
  padding:56px 18px 18px !important;
  align-items:center !important;
}
.ap-badge-row,
.ap-card-actions{
  z-index:5;
}
.ap-product-img{
  max-height:128px !important;
  width:auto !important;
  max-width:82% !important;
}
.ap-product-card:hover .ap-product-img{
  transform:scale(1.04) !important;
}
.ap-product-grid.list-view .ap-product-media{
  padding-top:58px !important;
}
.ap-product-grid.list-view .ap-product-img{
  max-height:150px !important;
}
@media(max-width:767px){
  .ap-product-media{height:230px !important; padding-top:62px !important;}
  .ap-product-img{max-height:135px !important;}
}

/* ===== AutoPrime Ford Premium V6 - Garage ===== */
.ap-garage-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px;
  box-shadow:0 18px 45px rgba(0,52,120,.10);
}
.ap-garage-preview{
  background:linear-gradient(135deg,var(--ford-blue-2),var(--ford-blue));
  color:#fff;
  border-radius:26px;
  padding:26px;
  min-height:100%;
  box-shadow:0 18px 45px rgba(0,52,120,.18);
}
.ap-garage-preview .plate{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  color:var(--ford-blue);
  border-radius:14px;
  padding:9px 13px;
  font-weight:950;
}
.ap-garage-status{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.ap-garage-status span{
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:850;
  font-size:13px;
}
.ap-garage-mini{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--ford-light);
  color:var(--ford-blue);
  border:1px solid rgba(0,52,120,.12);
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  font-size:13px;
}


/* ===== AutoPrime Ford Premium V7 - Product Detail ===== */
.ap-detail-wrap{padding:38px 0 56px;}
.ap-breadcrumb{font-size:13px;font-weight:800;color:var(--muted);margin-bottom:18px}
.ap-detail-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:0 20px 55px rgba(0,52,120,.11);
  overflow:hidden;
}
.ap-gallery-main{
  background:linear-gradient(180deg,#f3f8ff,#fff);
  min-height:430px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px;
  border-radius:26px;
  position:relative;
}
.ap-gallery-main img{
  max-width:88%;
  max-height:330px;
  object-fit:contain;
  filter:drop-shadow(0 20px 28px rgba(0,52,120,.16));
}
.ap-gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
.ap-thumb{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ap-thumb.active{border-color:var(--ford-blue);box-shadow:0 10px 22px rgba(0,52,120,.14)}
.ap-thumb img{max-width:100%;max-height:58px;object-fit:contain}
.ap-detail-info{padding:30px}
.ap-detail-brand{color:var(--ford-blue);font-weight:950;letter-spacing:.14em;font-size:13px}
.ap-detail-title{font-weight:950;letter-spacing:-.04em;color:#0b1220}
.ap-rating{color:#f59e0b;font-weight:900}
.ap-price-big{font-size:38px;font-weight:950;color:var(--ford-blue);line-height:1}
.ap-detail-buybox{
  border:1px solid var(--line);
  background:var(--ford-ice);
  border-radius:24px;
  padding:18px;
}
.ap-qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;overflow:hidden}
.ap-qty button{border:0;background:#fff;color:var(--ford-blue);font-weight:950;width:40px;height:40px}
.ap-qty input{width:44px;text-align:center;border:0;font-weight:900}
.ap-trust-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:16px}
.ap-trust-item{background:#fff;border:1px solid var(--line);border-radius:16px;padding:11px;font-weight:850;color:#334155}
.ap-trust-item i{color:var(--ford-blue);margin-right:6px}
.ap-tabs-card{
  background:#fff;border:1px solid var(--line);border-radius:28px;
  box-shadow:0 18px 45px rgba(0,52,120,.09);padding:10px;margin-top:28px
}
.ap-tabs-card .nav-pills .nav-link{border-radius:16px;font-weight:900;color:var(--ford-blue)}
.ap-tabs-card .nav-pills .nav-link.active{background:var(--ford-blue);color:#fff}
.ap-spec-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ap-spec{border:1px solid var(--line);border-radius:16px;padding:12px;background:var(--ford-ice)}
.ap-spec span{display:block;color:var(--muted);font-size:12px;font-weight:800}
.ap-spec strong{color:#0b1220}
.ap-fit-table th{background:var(--ford-blue)!important;color:#fff!important}
.ap-oem-pill{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--ford-light);border:1px dashed rgba(0,52,120,.28);
  color:var(--ford-blue);border-radius:999px;padding:8px 12px;
  font-weight:900;margin:4px
}
.ap-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:991px){
  .ap-gallery-main{min-height:330px}
  .ap-trust-list,.ap-spec-grid{grid-template-columns:1fr}
  .ap-related-grid{grid-template-columns:1fr}
}


/* V8 global header, OEM and premium cart */
.ap-topbar{background:#001f4e;color:#dbeafe;font-size:13px;font-weight:800}.ap-topbar .container{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.ap-global-header{background:#fff;border-bottom:1px solid var(--line,#dbe7f5);position:sticky;top:0;z-index:1050;box-shadow:0 10px 32px rgba(0,52,120,.08)}.ap-header-main{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;padding:16px 0}.ap-logo{display:inline-flex;align-items:center;gap:10px;color:var(--ford-blue,#003478);text-decoration:none;font-weight:950;font-size:24px;letter-spacing:-.04em}.ap-logo-mark{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#003478,#2d8cff);box-shadow:0 12px 26px rgba(0,52,120,.22)}.ap-header-search{display:flex;border:2px solid rgba(0,52,120,.12);border-radius:999px;background:#fff;overflow:hidden}.ap-header-search input{border:0;flex:1;padding:13px 18px;outline:none;min-width:120px}.ap-header-search button{border:0;background:#003478;color:#fff;padding:0 22px;font-weight:900}.ap-header-actions{display:flex;gap:8px;align-items:center}.ap-header-action{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#003478;border:1px solid var(--line,#dbe7f5);background:#fff;border-radius:16px;padding:10px 12px;font-weight:900;white-space:nowrap}.ap-header-action:hover{background:#eaf3ff;color:#003478}.ap-header-action.primary{background:#003478;color:#fff;border-color:#003478}.ap-brand-nav{border-top:1px solid var(--line,#dbe7f5);position:relative}.ap-brand-nav>.container{display:flex;align-items:center;gap:4px;overflow-x:auto}.ap-brand-wrap{display:inline-flex}.ap-brand-item{color:#0b1220;text-decoration:none;font-weight:950;padding:14px 16px;white-space:nowrap;border-bottom:3px solid transparent}.ap-brand-wrap:hover .ap-brand-item{color:#003478;border-bottom-color:#003478}.ap-header-mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid var(--line,#dbe7f5);box-shadow:0 24px 60px rgba(0,52,120,.16);display:none;z-index:1100}.ap-brand-wrap:hover .ap-header-mega,.ap-header-mega:hover{display:block}.ap-mega-inner{display:grid;grid-template-columns:1.1fr 1.5fr 1fr;gap:24px;padding:24px 0}.ap-mega-box{background:#f5f9ff;border:1px solid var(--line,#dbe7f5);border-radius:24px;padding:20px}.ap-mega-box h6{color:#003478;font-weight:950;margin-bottom:14px}.ap-mega-links{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.ap-mega-links a{text-decoration:none;color:#334155;background:#fff;border:1px solid var(--line,#dbe7f5);border-radius:14px;padding:10px 12px;font-weight:850}.ap-mega-links a:hover{color:#fff;background:#003478}.ap-mega-banner{color:#fff;border-radius:24px;padding:22px;background:linear-gradient(135deg,#001f4e,#003478);min-height:100%}.ap-oem-search-page-card,.ap-cart-summary{background:#fff;border:1px solid var(--line,#dbe7f5);border-radius:30px;box-shadow:0 18px 45px rgba(0,52,120,.10);padding:24px}.ap-oem-result,.ap-cart-item{display:grid;grid-template-columns:100px 1fr auto;gap:16px;align-items:center;border:1px solid var(--line,#dbe7f5);background:#fff;border-radius:22px;padding:14px;margin-bottom:14px;box-shadow:0 12px 30px rgba(0,52,120,.07)}.ap-oem-result img,.ap-cart-item img{width:100px;height:78px;object-fit:contain;background:#f5f9ff;border-radius:16px}.ap-cart-layout{display:grid;grid-template-columns:1fr 380px;gap:24px}.ap-cart-summary{position:sticky;top:140px}.ap-shipping-bar{height:12px;background:#eaf3ff;border-radius:999px;overflow:hidden}.ap-shipping-bar span{display:block;height:100%;width:78%;background:linear-gradient(135deg,#003478,#2d8cff)}@media(max-width:991px){.ap-topbar{display:none}.ap-header-main{grid-template-columns:1fr auto;gap:12px}.ap-header-search{grid-column:1/-1;order:3}.ap-header-action span:not([data-garage-label]){display:none}.ap-mega-inner{grid-template-columns:1fr}.ap-cart-layout{grid-template-columns:1fr}.ap-cart-summary{position:static}}@media(max-width:767px){.ap-logo{font-size:18px}.ap-logo-mark{width:36px;height:36px}.ap-header-actions{gap:5px}.ap-header-action{padding:9px 10px}.ap-brand-item{padding:12px 13px;font-size:13px}.ap-oem-result,.ap-cart-item{grid-template-columns:76px 1fr}.ap-oem-result img,.ap-cart-item img{width:76px;height:64px}.ap-oem-result>.text-end,.ap-cart-item>.text-end{grid-column:1/-1;text-align:left!important}}


/* ===== AutoPrime Ford Premium V9 - Checkout ===== */
.ap-checkout-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:24px;
}
.ap-step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  font-weight:900;
  color:#64748b;
  box-shadow:0 10px 26px rgba(0,52,120,.06);
}
.ap-step.active{
  background:linear-gradient(135deg,var(--ford-blue),#2d8cff);
  color:#fff;
}
.ap-checkout-layout{
  display:grid;
  grid-template-columns:1fr 390px;
  gap:24px;
}
.ap-checkout-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px;
  box-shadow:0 18px 45px rgba(0,52,120,.10);
  margin-bottom:18px;
}
.ap-checkout-card h3{
  color:var(--ford-blue);
  font-weight:950;
  margin-bottom:16px;
}
.ap-payment-option{
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  background:#fff;
  transition:.2s ease;
}
.ap-payment-option:hover,
.ap-payment-option.active{
  border-color:var(--ford-blue);
  background:var(--ford-light);
}
.ap-payment-option i{
  color:var(--ford-blue);
  font-size:24px;
}
.ap-secure-box{
  background:linear-gradient(135deg,var(--ford-blue-2),var(--ford-blue));
  color:#fff;
  border-radius:22px;
  padding:18px;
}
.ap-order-mini{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:12px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:12px 0;
}
.ap-order-mini img{
  width:72px;
  height:58px;
  object-fit:contain;
  background:var(--ford-ice);
  border-radius:14px;
}
.ap-summary-line{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin:10px 0;
  color:#334155;
  font-weight:800;
}
.ap-summary-total{
  display:flex;
  justify-content:space-between;
  font-size:24px;
  font-weight:950;
  color:var(--ford-blue);
  border-top:1px solid var(--line);
  padding-top:14px;
  margin-top:14px;
}
.ap-card-preview{
  background:linear-gradient(135deg,#001f4e,#003478 60%,#2d8cff);
  color:#fff;
  border-radius:24px;
  padding:22px;
  min-height:170px;
  box-shadow:0 20px 45px rgba(0,52,120,.25);
}
.ap-card-preview .chip{
  width:48px;
  height:34px;
  border-radius:8px;
  background:linear-gradient(135deg,#ffd36a,#c78b16);
  margin-bottom:30px;
}
.ap-checkout-note{
  background:#f0fdf4;
  border:1px solid rgba(18,128,92,.18);
  color:#12805c;
  border-radius:16px;
  padding:12px;
  font-weight:850;
}
@media(max-width:991px){
  .ap-checkout-layout{grid-template-columns:1fr}
  .ap-checkout-steps{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:575px){
  .ap-checkout-steps{grid-template-columns:1fr}
  .ap-order-mini{grid-template-columns:60px 1fr}
  .ap-order-mini > strong{grid-column:1 / -1}
}


/* ===== V10 Classic Header restore + order pages ===== */
.ap-topbar,
.ap-global-header,
.ap-brand-nav,
.ap-header-mega{
  all:unset;
}
.ap-classic-top{
  display:block;
  background:#003478;
  color:#eaf3ff;
  font-size:13px;
  font-weight:800;
}
.ap-classic-top .container{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding-top:8px;
  padding-bottom:8px;
}
.ap-classic-header{
  display:block;
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:1050;
  box-shadow:0 10px 30px rgba(0,52,120,.08);
}
.ap-classic-main{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:20px;
  align-items:center;
  padding:15px 0;
}
.ap-classic-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#003478;
  font-size:23px;
  font-weight:950;
  letter-spacing:-.04em;
}
.ap-classic-logo-icon{
  width:42px;
  height:42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#fff;
  background:#003478;
  box-shadow:0 12px 26px rgba(0,52,120,.22);
}
.ap-classic-search{
  display:flex;
  border:1px solid var(--line);
  border-radius:999px;
  background:#f8fbff;
  overflow:hidden;
}
.ap-classic-search input{
  flex:1;
  border:0;
  background:transparent;
  outline:0;
  padding:13px 18px;
}
.ap-classic-search button{
  border:0;
  background:#003478;
  color:#fff;
  padding:0 22px;
  font-weight:900;
}
.ap-classic-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.ap-classic-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
  text-decoration:none;
  color:#003478;
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:10px 12px;
  font-weight:900;
  white-space:nowrap;
}
.ap-classic-action:hover{
  background:#eaf3ff;
  color:#003478;
}
.ap-classic-action.cart{
  background:#003478;
  color:#fff;
  border-color:#003478;
}
.ap-classic-nav{
  border-top:1px solid var(--line);
  position:relative;
}
.ap-classic-navline{
  display:flex;
  align-items:center;
  gap:2px;
  overflow-x:auto;
}
.ap-classic-nav-item{
  display:block;
  padding:14px 15px;
  color:#0b1220;
  text-decoration:none;
  font-weight:950;
  white-space:nowrap;
  border-bottom:3px solid transparent;
}
.ap-classic-nav-item:hover{
  color:#003478;
  border-bottom-color:#003478;
}
.ap-classic-mega{
  position:absolute;
  left:0;
  right:0;
  top:100%;
  background:#fff;
  border-top:1px solid var(--line);
  box-shadow:0 24px 60px rgba(0,52,120,.16);
  display:none;
  z-index:1200;
}
.ap-classic-brand:hover .ap-classic-mega{
  display:block;
}
.ap-classic-mega-inner{
  display:grid;
  grid-template-columns:1fr 1.4fr 1fr;
  gap:22px;
  padding:22px 0;
}
.ap-classic-mega-card{
  background:#f5f9ff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:18px;
}
.ap-classic-mega-card h6{
  color:#003478;
  font-weight:950;
  margin-bottom:13px;
}
.ap-classic-links{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}
.ap-classic-links a{
  display:block;
  text-decoration:none;
  color:#334155;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font-weight:850;
}
.ap-classic-links a:hover{
  background:#003478;
  color:#fff;
}
.ap-classic-banner{
  background:linear-gradient(135deg,#001f4e,#003478);
  color:#fff;
  border-radius:24px;
  padding:22px;
}
.ap-order-track-card,
.ap-success-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:0 18px 45px rgba(0,52,120,.10);
  padding:28px;
}
.ap-track-timeline{
  position:relative;
  padding-left:28px;
}
.ap-track-timeline:before{
  content:"";
  position:absolute;
  left:10px;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:999px;
  background:#dbe7f5;
}
.ap-track-step{
  position:relative;
  margin-bottom:22px;
}
.ap-track-step:before{
  content:"";
  position:absolute;
  left:-24px;
  top:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#003478;
  border:4px solid #eaf3ff;
}
.ap-track-step.pending:before{
  background:#94a3b8;
}
.ap-success-icon{
  width:82px;
  height:82px;
  border-radius:28px;
  display:grid;
  place-items:center;
  margin:auto;
  color:#fff;
  font-size:42px;
  background:linear-gradient(135deg,#12805c,#22c55e);
  box-shadow:0 20px 45px rgba(18,128,92,.25);
}
@media(max-width:991px){
  .ap-classic-main{
    grid-template-columns:1fr auto;
    gap:12px;
  }
  .ap-classic-search{
    grid-column:1 / -1;
    order:3;
  }
  .ap-classic-action span:not([data-garage-label]){
    display:none;
  }
  .ap-classic-mega-inner{
    grid-template-columns:1fr;
  }
}
@media(max-width:767px){
  .ap-classic-top{display:none}
  .ap-classic-logo{font-size:18px}
  .ap-classic-logo-icon{width:36px;height:36px}
  .ap-classic-action{padding:9px 10px}
  .ap-classic-nav-item{font-size:13px;padding:12px 13px}
}


/* ===== V11 Resimli Premium Mega Header + SEO Pages ===== */
.ap-classic-top,.ap-classic-header,.ap-classic-nav,.ap-classic-mega{all:unset}
.ap-img-topbar{display:block;background:#001f4e;color:#eaf3ff;font-size:13px;font-weight:850}
.ap-img-topbar .container{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.ap-img-header{display:block;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1080;box-shadow:0 14px 34px rgba(0,52,120,.09)}
.ap-img-main{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:15px 0}
.ap-img-logo{display:inline-flex;align-items:center;gap:10px;color:#003478;text-decoration:none;font-size:23px;font-weight:950;letter-spacing:-.04em}
.ap-img-logo span:first-child{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#003478,#2d8cff);color:#fff;box-shadow:0 12px 26px rgba(0,52,120,.22)}
.ap-img-search{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#f8fbff}
.ap-img-search input{flex:1;border:0;background:transparent;outline:0;padding:13px 18px}
.ap-img-search button{border:0;background:#003478;color:#fff;padding:0 22px;font-weight:900}
.ap-img-actions{display:flex;gap:8px;align-items:center}
.ap-img-action{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#003478;border:1px solid var(--line);background:#fff;border-radius:15px;padding:10px 12px;font-weight:900;white-space:nowrap}
.ap-img-action:hover{background:#eaf3ff;color:#003478}.ap-img-action.cart{background:#003478;color:#fff;border-color:#003478}
.ap-img-nav{display:block;border-top:1px solid var(--line);position:relative}.ap-img-navline{display:flex;align-items:center;gap:4px;overflow-x:auto}.ap-img-brand{display:block}
.ap-img-nav-item{display:block;padding:14px 15px;color:#0b1220;text-decoration:none;font-weight:950;white-space:nowrap;border-bottom:3px solid transparent}
.ap-img-brand:hover .ap-img-nav-item{color:#003478;border-bottom-color:#003478}
.ap-img-mega{position:absolute;left:0;right:0;top:100%;display:none;background:#fff;border-top:1px solid var(--line);box-shadow:0 28px 70px rgba(0,52,120,.18);z-index:1250}
.ap-img-brand:hover .ap-img-mega,.ap-img-mega:hover{display:block}
.ap-img-mega-inner{display:grid;grid-template-columns:280px 1fr 1fr 300px;gap:20px;padding:24px 0}
.ap-img-car-card{background:linear-gradient(180deg,#f4f9ff,#fff);border:1px solid var(--line);border-radius:26px;padding:18px;text-align:center}
.ap-img-car-card img{width:100%;height:145px;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(0,52,120,.13))}
.ap-img-car-card h4{color:#003478;font-weight:950;margin:10px 0 4px}
.ap-img-mega-box{background:#f8fbff;border:1px solid var(--line);border-radius:24px;padding:18px}.ap-img-mega-box h6{color:#003478;font-weight:950;margin-bottom:13px}
.ap-img-links{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.ap-img-links a{display:block;text-decoration:none;color:#334155;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-weight:850}.ap-img-links a:hover{background:#003478;color:#fff}
.ap-img-banner{background:radial-gradient(circle at 80% 20%,rgba(45,140,255,.35),transparent 36%),linear-gradient(135deg,#001f4e,#003478);color:#fff;border-radius:26px;padding:22px}
.ap-seo-card{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 18px 45px rgba(0,52,120,.10);overflow:hidden;height:100%}
.ap-seo-card img{width:100%;height:170px;object-fit:contain;background:#f5f9ff;padding:24px}.ap-seo-card .body{padding:20px}
.ap-category-hero{background:radial-gradient(circle at 85% 18%,rgba(45,140,255,.28),transparent 34%),linear-gradient(135deg,#001f4e,#003478);color:#fff;border-radius:32px;padding:34px;box-shadow:0 22px 55px rgba(0,52,120,.18)}
@media(max-width:1199px){.ap-img-mega-inner{grid-template-columns:1fr 1fr}}
@media(max-width:991px){.ap-img-topbar{display:none}.ap-img-main{grid-template-columns:1fr auto;gap:12px}.ap-img-search{grid-column:1 / -1;order:3}.ap-img-action span:not([data-garage-label]){display:none}.ap-img-mega-inner{grid-template-columns:1fr}}
@media(max-width:767px){.ap-img-logo{font-size:18px}.ap-img-logo span:first-child{width:36px;height:36px}.ap-img-action{padding:9px 10px}.ap-img-nav-item{font-size:13px;padding:12px 13px}}


/* ===== V12 Reference Style Header Mega Menu ===== */
.ap-img-topbar,.ap-img-header,.ap-img-nav,.ap-img-mega,
.ap-classic-top,.ap-classic-header,.ap-classic-nav,.ap-classic-mega{all:unset}

.ref-header{
  display:block;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  position:sticky;
  top:0;
  z-index:2000;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}
.ref-topline{
  background:#003478;
  color:#fff;
  font-size:13px;
  font-weight:800;
}
.ref-topline .container{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding-top:7px;
  padding-bottom:7px;
}
.ref-main{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:center;
  padding:12px 0;
}
.ref-logo{
  text-decoration:none;
  color:#003478;
  font-size:22px;
  font-weight:950;
  letter-spacing:-.04em;
  white-space:nowrap;
}
.ref-search{
  display:flex;
  border:1px solid #dbe3ef;
  background:#f8fafc;
  border-radius:999px;
  overflow:hidden;
}
.ref-search input{
  flex:1;
  border:0;
  background:transparent;
  outline:0;
  padding:11px 16px;
}
.ref-search button{
  border:0;
  background:#003478;
  color:#fff;
  padding:0 20px;
}
.ref-actions{
  display:flex;
  gap:8px;
  align-items:center;
}
.ref-action{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#003478;
  border:1px solid #dbe3ef;
  border-radius:12px;
  padding:9px 11px;
  font-weight:850;
  background:#fff;
  white-space:nowrap;
}
.ref-action.cart{
  background:#003478;
  color:#fff;
  border-color:#003478;
}
.ref-brandbar{
  display:block;
  border-top:1px solid #eef2f7;
  background:#fff;
  position:relative;
}
.ref-brandline{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:0;
  overflow-x:auto;
}
.ref-brand{
  display:block;
}
.ref-brand-btn{
  display:block;
  padding:18px 14px;
  color:#000;
  text-decoration:none;
  font-size:14px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  border-radius:7px 7px 0 0;
  border:1px solid transparent;
}
.ref-brand:hover .ref-brand-btn{
  background:#071022;
  color:#fff;
  border-color:#071022;
}
.ref-mega{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:100%;
  width:min(1374px, calc(100vw - 8px));
  max-height:calc(100vh - 88px);
  overflow:auto;
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:0 0 6px 6px;
  box-shadow:0 28px 70px rgba(0,0,0,.38);
  display:none;
  z-index:3000;
}
.ref-brand:hover .ref-mega,
.ref-mega:hover{
  display:block;
}
.ref-mega-inner{
  padding:16px 18px 18px;
}
.ref-model-grid{
  display:grid;
  grid-template-columns:repeat(12, minmax(88px,1fr));
  gap:12px 9px;
}
.ref-model-card{
  display:block;
  min-width:0;
  text-decoration:none;
  color:#111827;
}
.ref-model-img{
  height:92px;
  border:1px solid #ddd;
  border-radius:6px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.ref-model-img img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.ref-model-name{
  margin-top:8px;
  font-size:13px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ref-model-card:hover .ref-model-img{
  border-color:#003478;
  box-shadow:0 8px 18px rgba(0,52,120,.16);
}
.ref-more{
  padding:18px 14px;
  font-weight:900;
  color:#000;
}
@media(max-width:1400px){
  .ref-model-grid{grid-template-columns:repeat(10, minmax(88px,1fr));}
}
@media(max-width:1199px){
  .ref-model-grid{grid-template-columns:repeat(8, minmax(88px,1fr));}
  .ref-brandline{justify-content:flex-start;}
}
@media(max-width:991px){
  .ref-topline{display:none}
  .ref-main{grid-template-columns:1fr auto}
  .ref-search{grid-column:1 / -1;order:3}
  .ref-action span:not([data-garage-label]){display:none}
  .ref-model-grid{grid-template-columns:repeat(4, minmax(90px,1fr));}
}
@media(max-width:575px){
  .ref-logo{font-size:18px}
  .ref-action{padding:8px 9px}
  .ref-brand-btn{padding:14px 12px;font-size:13px}
  .ref-model-grid{grid-template-columns:repeat(2, minmax(110px,1fr));}
  .ref-model-img{height:88px}
}


/* ===== V13 Ford Blue Weekly Deals Section ===== */
.weekly-ford-section{
  background:#003478;
  border-radius:8px;
  padding:32px;
  margin:34px auto;
  color:#fff;
  overflow:hidden;
}
.weekly-ford-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.weekly-ford-title{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.weekly-ford-title h2{
  font-size:24px;
  font-weight:950;
  margin:0;
  color:#fff;
}
.weekly-countdown{
  background:#fff;
  color:#0b1220;
  border-radius:8px;
  display:flex;
  gap:18px;
  padding:10px 22px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}
.weekly-countdown div{
  text-align:center;
  font-weight:900;
  line-height:1.1;
}
.weekly-countdown strong{
  display:block;
  font-size:15px;
}
.weekly-countdown span{
  font-size:12px;
  font-weight:700;
}
.weekly-view-all{
  color:#fff;
  text-decoration:none;
  font-weight:850;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.weekly-view-all:hover{
  color:#dbeafe;
}
.weekly-products-row{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(300px, 1fr);
  gap:16px;
  overflow-x:auto;
  padding-bottom:2px;
  scroll-snap-type:x mandatory;
}
.weekly-products-row::-webkit-scrollbar{
  height:8px;
}
.weekly-products-row::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.35);
  border-radius:99px;
}
.weekly-deal-card{
  background:#fff;
  color:#0b1220;
  border-radius:8px;
  overflow:hidden;
  min-height:324px;
  display:flex;
  flex-direction:column;
  scroll-snap-align:start;
  box-shadow:0 18px 38px rgba(0,0,0,.16);
}
.weekly-deal-img{
  height:205px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  padding:18px;
}
.weekly-deal-img img{
  max-width:100%;
  max-height:178px;
  object-fit:contain;
}
.weekly-deal-body{
  padding:0 14px 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}
.weekly-deal-title{
  font-size:15px;
  line-height:1.35;
  font-weight:950;
  min-height:42px;
  margin:0;
}
.weekly-deal-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
}
.weekly-deal-price{
  font-size:17px;
  font-weight:950;
  color:#0b1220;
  white-space:nowrap;
}
.weekly-cart-btn{
  border:0;
  border-radius:11px;
  background:#0057b8;
  color:#fff;
  padding:10px 16px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  text-decoration:none;
}
.weekly-cart-btn:hover{
  background:#002f6c;
  color:#fff;
}
@media(max-width:991px){
  .weekly-ford-section{padding:24px 18px}
  .weekly-ford-head{align-items:flex-start;flex-direction:column}
  .weekly-products-row{grid-auto-columns:minmax(260px, 78vw)}
}
@media(max-width:575px){
  .weekly-countdown{gap:12px;padding:9px 14px}
  .weekly-ford-title h2{font-size:21px}
  .weekly-deal-img{height:180px}
}


/* ===== V14 Weekly Deals: auto marquee + live countdown ===== */
.weekly-ford-section{
  order:-5;
}
.weekly-products-mask{
  overflow:hidden;
  position:relative;
}
.weekly-products-row{
  display:flex !important;
  gap:16px;
  overflow:visible !important;
  width:max-content;
  animation:weeklyMarquee 34s linear infinite;
}
.weekly-products-mask:hover .weekly-products-row{
  animation-play-state:paused;
}
.weekly-deal-card{
  width:300px;
  flex:0 0 300px;
}
.weekly-countdown [data-countdown-value]{
  font-variant-numeric:tabular-nums;
}
@keyframes weeklyMarquee{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@media(max-width:575px){
  .weekly-deal-card{
    width:260px;
    flex-basis:260px;
  }
  .weekly-products-row{
    animation-duration:28s;
  }
}


/* ===== V15 Full Responsive Polish + Home Blocks ===== */
.oem-fast-section{
  margin:34px auto;
  border-radius:32px;
  background:
    radial-gradient(circle at 84% 20%,rgba(45,140,255,.26),transparent 34%),
    linear-gradient(135deg,#001f4e,#003478);
  color:#fff;
  padding:34px;
  box-shadow:0 22px 55px rgba(0,52,120,.18);
}
.oem-fast-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:28px;
  align-items:center;
}
.oem-fast-form{
  background:#fff;
  border-radius:24px;
  padding:18px;
  box-shadow:0 18px 38px rgba(0,0,0,.14);
}
.oem-fast-form .input-group{
  border:1px solid #dbe3ef;
  border-radius:999px;
  overflow:hidden;
}
.oem-fast-form input{
  border:0;
  padding:15px 18px;
}
.oem-fast-form button{
  border:0;
  background:#003478;
  color:#fff;
  padding:0 24px;
  font-weight:950;
}
.oem-fast-chips{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:14px;
}
.oem-fast-chips span{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:850;
  font-size:13px;
}
.best-brands-section{
  margin:34px auto;
}
.best-brands-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:18px;
}
.best-brands-head h2{
  color:#003478;
  font-weight:950;
  margin:0;
}
.best-brands-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:14px;
}
.best-brand-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  min-height:118px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 32px rgba(0,52,120,.08);
  transition:.2s ease;
}
.best-brand-card:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 42px rgba(0,52,120,.15);
}
.best-brand-card img{
  max-width:100%;
  max-height:82px;
  object-fit:contain;
}

/* global responsive hardening */
img,svg,video{max-width:100%;height:auto}
.container{max-width:1320px}
table{min-width:640px}
.table-responsive{overflow-x:auto}
body{overflow-x:hidden}
.ap-product-card,
.weekly-deal-card,
.ap-checkout-card,
.ap-cart-summary,
.ap-order-track-card,
.ap-success-card,
.ap-detail-card{
  max-width:100%;
}
.form-control,
.form-select,
.btn{
  max-width:100%;
}
@media(max-width:1200px){
  .best-brands-grid{grid-template-columns:repeat(4,1fr)}
  .ref-model-grid{grid-template-columns:repeat(8,minmax(86px,1fr))}
}
@media(max-width:991px){
  .oem-fast-grid{grid-template-columns:1fr}
  .best-brands-grid{grid-template-columns:repeat(3,1fr)}
  .ref-mega{width:calc(100vw - 8px);left:4px;right:4px;transform:none}
  .ref-brandline{justify-content:flex-start}
  .ap-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ap-checkout-layout,
  .ap-cart-layout{grid-template-columns:1fr!important}
  .ap-detail-info{padding:22px}
}
@media(max-width:767px){
  .oem-fast-section{padding:24px 18px;border-radius:24px}
  .oem-fast-form{padding:12px}
  .oem-fast-form .input-group{border-radius:18px;display:block}
  .oem-fast-form input{width:100%;display:block}
  .oem-fast-form button{width:100%;padding:12px;border-radius:14px;margin-top:8px}
  .best-brands-grid{grid-template-columns:repeat(2,1fr)}
  .best-brands-head{align-items:flex-start;flex-direction:column}
  .ap-product-grid{grid-template-columns:1fr!important}
  .ap-product-grid.list-view .ap-product-card{display:block!important}
  .ap-toolbar{flex-direction:column;align-items:flex-start!important}
  .ap-view-buttons{width:100%;justify-content:space-between}
  .ap-view-btn{flex:1;justify-content:center}
  .ref-main{grid-template-columns:1fr auto!important}
  .ref-search{grid-column:1 / -1;order:3}
  .ref-actions{gap:5px}
  .ref-action{padding:8px 9px}
  .weekly-ford-section{margin-left:8px;margin-right:8px}
  .weekly-ford-head{flex-direction:column;align-items:flex-start}
  .ap-gallery-thumbs{grid-template-columns:repeat(2,1fr)}
  .ap-price-big{font-size:30px}
  .ap-checkout-steps{grid-template-columns:1fr!important}
}
@media(max-width:480px){
  .best-brands-grid{grid-template-columns:1fr}
  .weekly-countdown{width:100%;justify-content:space-between}
  .ref-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ref-model-img{height:82px}
  .ap-card-footer{grid-template-columns:1fr}
  .ap-detail-link{text-align:center}
  .ap-header-actions,
  .ref-actions{max-width:100%;overflow-x:auto}
}


/* ===== V16 Working Listing Filters ===== */
.ap-filter-actions{
  display:flex;
  gap:8px;
  margin-top:18px;
}
.ap-result-empty{
  display:none;
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  padding:34px;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,52,120,.09);
}
.ap-result-empty.show{display:block}
.ap-filter-count{
  color:#003478;
  font-weight:950;
}
.ap-active-filter-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#eaf3ff;
  color:#003478;
  border:1px solid rgba(0,52,120,.16);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  font-weight:900;
}
.ap-product-card[hidden]{display:none!important}
@media(max-width:767px){
  .ap-filter-actions{flex-direction:column}
}


/* ===== V17 Focus C-Max Model Cards ===== */
.focus-bank-hero{background:radial-gradient(circle at 86% 20%,rgba(45,140,255,.24),transparent 34%),linear-gradient(135deg,#001f4e,#003478);color:#fff;border-radius:34px;padding:38px;box-shadow:0 22px 58px rgba(0,52,120,.2);margin:34px 0}
.focus-bank-hero h1{font-weight:950;letter-spacing:-.04em;max-width:980px}
.focus-bank-hero p{color:rgba(255,255,255,.78);font-size:18px;max-width:1040px}
.focus-bank-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.focus-model-section{background:#fff;border:1px solid #e5e7eb;padding:34px;margin-bottom:44px;box-shadow:0 18px 45px rgba(15,23,42,.08)}
.focus-model-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:24px}
.focus-model-head h2{color:#003478;font-weight:950;margin:0}
.focus-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px}
.focus-model-card{display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:335px;background:#fff;border:1px solid #dbe3ef;border-radius:18px;padding:28px 24px;text-align:center;text-decoration:none;color:#0b1220;box-shadow:0 14px 34px rgba(0,52,120,.08);transition:.22s ease}
.focus-model-card:hover{transform:translateY(-8px);border-color:#ff5a00;box-shadow:0 24px 55px rgba(0,52,120,.16);color:#0b1220}
.focus-model-card.active{border-color:#ff5a00}
.focus-model-image{height:165px;width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.focus-model-image img{max-width:100%;max-height:165px;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(15,23,42,.12))}
.focus-model-title{font-size:17px;color:#003478;font-weight:950;margin:0 0 16px}
.focus-model-btn{display:inline-flex;align-items:center;justify-content:center;min-width:170px;background:#ff5a00;color:#fff;border-radius:9px;padding:12px 18px;font-weight:950;font-size:14px;text-decoration:none}
.focus-model-card:hover .focus-model-btn{background:#003478;color:#fff}
.focus-tech-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px;margin-bottom:44px}
.focus-tech-item{background:#f5f9ff;border:1px solid #dbe3ef;border-radius:20px;padding:18px}
.focus-tech-item strong{color:#003478;display:block;margin-bottom:6px}
@media(max-width:991px){.focus-bank-hero{padding:28px}.focus-model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.focus-tech-strip{grid-template-columns:1fr}}
@media(max-width:640px){.focus-model-section{padding:22px 14px}.focus-model-head{align-items:flex-start;flex-direction:column}.focus-model-grid{grid-template-columns:1fr}.focus-model-card{min-height:310px}.focus-model-image{height:150px}}
