/* Hawadeth Misr independent parts match card. Scoped, no influence on car forms. */
.hmcp-section{--hmcp-navy:#102b4b;--hmcp-text:#1a3450;--hmcp-muted:#62768b;--hmcp-border:#dfe8f0;box-sizing:border-box;width:100%;max-width:1200px;margin:20px auto;padding:21px;border:1px solid var(--hmcp-border);border-radius:17px;background:#fff;direction:rtl;box-shadow:0 5px 23px rgba(15,39,70,.05);font-family:inherit;color:var(--hmcp-text)}
.hmcp-section *{box-sizing:border-box}.hmcp-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.hmcp-kicker{display:inline-flex;align-items:center;gap:6px;color:#3e627f;font-size:12px;font-weight:800}.hmcp-top h2{margin:5px 0 6px!important;font-size:23px!important;color:#102b4b!important;line-height:1.5;font-weight:900}.hmcp-top p{font-size:13px;line-height:1.8;color:#687b90;margin:0}.hmcp-brand{border:1px solid #dce7f0;background:#f0f5fa;border-radius:10px;color:#17395a;white-space:nowrap;font-size:11px;font-weight:800;padding:7px 10px}
.hmcp-vehicle{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0}.hmcp-vehicle span{padding:7px 11px;font-size:12px;font-weight:750;border-radius:9px;background:#edf3f8;color:#183c5b}.hmcp-disclaimer{font-size:11px;line-height:1.8;color:#6d7f92;margin:9px 0 15px}.hmcp-alert{font-size:12px;line-height:1.8;margin:8px 0;padding:10px 12px;background:#f2f6fb;border:1px solid #d9e6f1;border-radius:10px;color:#264862}
.hmcp-filters{padding:14px;border:1px solid #e1e9f2;border-radius:12px;background:#f9fbfe;margin:0 0 14px}.hmcp-filter-title{font-size:12px;font-weight:850;color:#193d5e;margin:7px 0 9px}.hmcp-sides,.hmcp-keys{display:flex;flex-wrap:wrap;gap:7px}.hmcp-sides label,.hmcp-keys label{position:relative;cursor:pointer;min-width:0}.hmcp-sides label[hidden],.hmcp-keys label[hidden]{display:none!important}.hmcp-sides input,.hmcp-keys input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.hmcp-sides span,.hmcp-keys span{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border:1px solid #d4e1ed;border-radius:9px;background:#fff;color:#274664;font-size:12px;font-weight:750;transition:background .1s,border-color .1s;line-height:1.45}.hmcp-sides input:checked+span,.hmcp-keys input:checked+span{background:#143858;color:#fff;border-color:#143858}.hmcp-sides input:focus-visible+span,.hmcp-keys input:focus-visible+span{outline:2px solid #467bab;outline-offset:2px}.hmcp-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:16px}.hmcp-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;flex:1;color:#244360}.hmcp-toolbar select{width:100%;min-height:43px;border-radius:9px;padding:9px 11px;border:1px solid #d2dfe9;background:#fff;color:#163956;font:inherit;font-size:13px}.hmcp-filter-button,.hmcp-more{min-height:44px;padding:10px 18px;cursor:pointer;border:1px solid #133656;border-radius:10px;background:#133656!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font:800 13px inherit;white-space:normal}.hmcp-filter-button:hover,.hmcp-more:hover{background:#205173!important}.hmcp-filter-button:disabled,.hmcp-more:disabled{opacity:.6;cursor:wait}.hmcp-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hmcp-product{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e1e8ee;border-radius:13px;background:#fff}.hmcp-product>img,.hmcp-image-placeholder{height:145px;width:100%;display:block;object-fit:cover;background:#eef3f7}.hmcp-image-placeholder{display:grid;place-items:center;font-size:40px;color:#708aa1}.hmcp-product-body{display:flex;flex-direction:column;gap:5px;padding:12px;flex:1}.hmcp-product-body small{font-size:11px;color:#718298;line-height:1.5}.hmcp-product-body>strong{font-size:13px;line-height:1.5;color:#122c4a;overflow-wrap:anywhere}.hmcp-seller{font-size:11px;color:#536b82;line-height:1.6}.hmcp-price{font-size:18px;color:#103653;font-weight:900;margin:4px 0}.hmcp-part-code{display:block;color:#526d83;font-size:10.5px;line-height:1.5}.hmcp-provisional{display:block;color:#86622c;background:#fff7e9;padding:7px;border-radius:7px;font-size:10.5px;line-height:1.5}.hmcp-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto;padding-top:9px}.hmcp-actions a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:39px;padding:6px 7px;border-radius:8px;background:#143858;color:#fff!important;text-decoration:none;font-size:11px;font-weight:800}.hmcp-actions a:last-child{background:#edf3f9;color:#1a4062!important;border:1px solid #cfdfec}.hmcp-more{display:block;width:100%;margin:12px auto 0;border-radius:11px}.hmcp-bottom{text-align:center;color:#526b81;font-size:12px;padding:15px 8px 0}.hmcp-bottom a{color:#153e62;font-weight:850;text-decoration:underline}.hmcp-empty{text-align:center;padding:22px 12px;background:#f6f9fc;border:1px dashed #cddce9;border-radius:11px}.hmcp-empty strong{color:#23435e;font-size:13px;line-height:1.6}.hmcp-empty p{font-size:12px;color:#65798c;line-height:1.8}.hmcp-empty a{font-size:12px;font-weight:800;color:#163e62}
/* Merchant inventory editor only on the spare-parts marketplace. */
.hmcp-merchant-stock{max-width:1160px;margin:20px auto;padding:18px;border:1px solid #dae6f0;border-radius:14px;background:#fff;color:#1c3b57}.hmcp-merchant-stock h2{margin:0 0 8px;font-size:20px;color:#143556}.hmcp-merchant-stock p{font-size:13px;color:#64798d;line-height:1.7}.hmcp-merchant-links{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0}.hmcp-merchant-links a{background:#edf4fa;border:1px solid #d1dfed;color:#193f61;text-decoration:none;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:800}.hmcp-inventory-editor{margin-top:16px;padding:17px;background:#f7fafc;border:1px solid #dce7ef;border-radius:13px}.hmcp-inventory-editor h3{margin:0 0 8px;color:#133757}.hmcp-inventory-editor form{display:flex;flex-direction:column;gap:12px}.hmcp-inventory-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hmcp-inventory-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:750}.hmcp-inventory-fields input,.hmcp-inventory-fields select{min-height:44px;width:100%;padding:9px;border:1px solid #ccdae7;border-radius:9px;background:#fff;font:inherit;box-sizing:border-box}.hmcp-stock-check{display:flex;flex-direction:row;align-items:start;gap:7px;font-size:12px;font-weight:700}.hmcp-stock-check input{flex:none}.hmcp-inventory-editor small{font-size:11px;color:#5f7890;line-height:1.6}.hmcp-inventory-editor button{min-height:45px;border:0;background:#143858!important;color:white!important;font-size:13px;font-weight:800;border-radius:9px;cursor:pointer;padding:10px 20px}.hmcp-inventory-success{background:#ecf7f0;padding:10px;border-radius:9px;color:#17603e}.hmcp-inventory-error{background:#fff0f0;padding:10px;border-radius:9px;color:#992b32}
@media(max-width:900px){.hmcp-products{grid-template-columns:repeat(2,minmax(0,1fr))}.hmcp-inventory-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.hmcp-section{margin:12px auto;padding:12px;border-radius:14px}.hmcp-top{gap:8px}.hmcp-top h2{font-size:18px!important}.hmcp-top p{font-size:11.5px}.hmcp-kicker{font-size:10px}.hmcp-brand{display:none}.hmcp-vehicle{margin:11px 0;gap:6px}.hmcp-vehicle span{font-size:10px}.hmcp-disclaimer{font-size:10px}.hmcp-filters{padding:11px}.hmcp-sides,.hmcp-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hmcp-sides label,.hmcp-keys label{min-width:0}.hmcp-sides span,.hmcp-keys span{width:100%;min-height:40px;padding:8px 5px;font-size:11px}.hmcp-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.hmcp-toolbar select,.hmcp-filter-button{width:100%;min-height:45px}.hmcp-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hmcp-product>img,.hmcp-image-placeholder{height:105px}.hmcp-product-body{padding:9px;gap:4px}.hmcp-product-body>strong{font-size:11px}.hmcp-product-body small,.hmcp-seller{font-size:9.5px}.hmcp-price{font-size:14px}.hmcp-part-code{display:block;color:#526d83;font-size:10.5px;line-height:1.5}.hmcp-provisional{font-size:9px}.hmcp-actions{grid-template-columns:1fr;gap:5px}.hmcp-actions a{min-height:33px;font-size:10px}.hmcp-merchant-stock{padding:11px}.hmcp-inventory-fields{grid-template-columns:1fr}}


/* v1.0: sold-cars-inspired, compact auto-matched horizontal rail. Nothing changes the seller form. */
.hmcp-section.hmcp-carousel-section{max-width:1200px;padding:22px 20px!important;margin:24px auto!important;border-radius:18px;background:#fff;box-shadow:0 5px 20px rgba(15,39,70,.05)}
.hmcp-carousel-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:12px}
.hmcp-carousel-head-text{min-width:0}
.hmcp-carousel-overline{font-size:11px;font-weight:800;color:#67809a;line-height:1.5}
.hmcp-carousel-header h2{font-weight:900!important;font-size:24px!important;color:#112f50!important;margin:4px 0!important;line-height:1.5!important}
.hmcp-carousel-header p{font-size:13px!important;color:#63788d!important;margin:0!important;line-height:1.7!important}
.hmcp-carousel-context{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.hmcp-carousel-context span{font-size:11px;font-weight:700;color:#496780;padding:5px 9px;border-radius:8px;background:#f0f5f9}
.hmcp-carousel-arrows{display:flex;align-items:center;gap:8px;flex:none}
.hmcp-carousel-arrows[hidden]{display:none!important}
.hmcp-carousel-arrows button{width:36px;height:36px;border:1px solid #d9e4ee!important;background:#f2f6fa!important;color:#123657!important;border-radius:50%;font-size:25px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:none!important;padding:0}
.hmcp-carousel-arrows button:hover{background:#123657!important;color:#fff!important}
.hmcp-carousel-rail{display:flex;direction:rtl;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;padding:2px 2px 10px;margin:0 -2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hmcp-carousel-rail::-webkit-scrollbar{display:none}
.hmcp-carousel-card{scroll-snap-align:start;flex:0 0 clamp(220px,24%,274px);min-width:0;display:flex;flex-direction:column;border:1px solid #e0e8ef;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 3px 12px rgba(21,49,76,.04);transition:box-shadow .18s}
.hmcp-carousel-card:hover{box-shadow:0 5px 24px rgba(15,46,74,.1)}
.hmcp-carousel-image{display:block;position:relative;aspect-ratio:1.32;overflow:hidden;background:#f2f5f8;text-decoration:none}
.hmcp-carousel-image img{height:100%;width:100%;display:block;object-fit:cover;transition:transform .2s}
.hmcp-carousel-card:hover .hmcp-carousel-image img{transform:scale(1.025)}
.hmcp-carousel-imgempty{display:grid;place-items:center;width:100%;height:100%;font-size:48px;color:#68809a}
.hmcp-stock-tag{position:absolute;top:10px;right:10px;z-index:1;background:#fffdf8;color:#8a6437;box-shadow:0 2px 8px rgba(0,0,0,.08);border:1px solid #f1e6d5;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:850}
.hmcp-stock-tag.hmcp-stock-confirmed{color:#127448;background:#f0faf4;border-color:#cbedd9}
.hmcp-carousel-info{display:flex;flex:1;flex-direction:column;gap:5px;padding:13px 14px 14px;min-width:0}
.hmcp-carousel-kind{font-size:11px;color:#71849a}
.hmcp-carousel-info h3{font-size:14px!important;font-weight:850!important;color:#132f4d!important;line-height:1.6!important;min-height:45px;margin:0!important}
.hmcp-carousel-info h3 a{color:inherit;text-decoration:none}
.hmcp-carousel-merchant,.hmcp-carousel-place{color:#688096;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.hmcp-carousel-price{font-size:19px;color:#143656;font-weight:900;margin:6px 0 0}
.hmcp-carousel-price small{font-size:11px;font-weight:700}
.hmcp-carousel-qualification{font-size:10px;line-height:1.6;color:#96713b}
.hmcp-carousel-detail{color:#164b75!important;font-size:12px;font-weight:850;display:flex;align-items:center;justify-content:space-between;padding-top:11px;margin-top:auto;border-top:1px solid #e7edf2;text-decoration:none!important}
.hmcp-carousel-bottom{margin-top:10px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.hmcp-carousel-bottom p{max-width:760px;margin:0!important;color:#7a8da0;font-size:10px!important;line-height:1.75!important}
.hmcp-carousel-bottom>a{color:#174368!important;font-size:12px;font-weight:850;text-decoration:underline;white-space:nowrap}
.hmcp-carousel-empty{border:1px dashed #d1dde7;background:#f6f9fc;border-radius:12px;padding:15px;display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.hmcp-carousel-empty strong{color:#314d67;font-size:12px}
.hmcp-carousel-empty a{color:#164c75;font-size:12px;font-weight:800}
@media(max-width:760px){
 .hmcp-section.hmcp-carousel-section{padding:15px 12px!important;margin:15px auto!important;border-radius:14px}
 .hmcp-carousel-header h2{font-size:18px!important}
 .hmcp-carousel-header p{font-size:11px!important}
 .hmcp-carousel-overline{font-size:10px}
 .hmcp-carousel-arrows{gap:5px}
 .hmcp-carousel-arrows button{width:29px;height:29px;font-size:21px}
 .hmcp-carousel-context{margin-bottom:11px}
 .hmcp-carousel-card{flex-basis:min(79vw,258px);border-radius:13px}
 .hmcp-carousel-rail{gap:9px}
 .hmcp-carousel-image{aspect-ratio:1.25}
 .hmcp-carousel-bottom{align-items:flex-start;flex-direction:column;gap:8px}
 .hmcp-carousel-bottom>a{align-self:flex-start}
}
@media(prefers-reduced-motion:reduce){.hmcp-carousel-rail{scroll-behavior:auto}.hmcp-carousel-image img{transition:none}}
