/* Homepage redesign (template/home-page.php).
   Served via base_url() (app server), not the CDN, so it deploys with the code.
   Everything is scoped under .hp with hp- class names; the global header and footer are untouched. */

.hp {
  --hp-navy: #0D1B36; --hp-blue: #2563EB; --hp-blue-soft: #F2F6FE; --hp-yellow: #F9C909;
  --hp-gray: #5F6973; --hp-gray-2: #98A2B3; --hp-text: #344054; --hp-line: #EAECF0;
  --hp-bg: #F7F8FA; --hp-bg-2: #F2F4F7; --hp-muted-on-navy: #B6C2D9;
  --hp-green: #15803D; --hp-green-soft: #E8F7EE;
  --hp-gold-text: #8A6A00; --hp-gold-soft: #FEF3C7;
  --hp-silver-text: #475467; --hp-silver-soft: #EEF1F4;
  background: var(--hp-bg);
  color: var(--hp-navy);
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-top: 137px;
  padding-bottom: 8px;
}
/* Neutralise the global stylesheet inside the page */
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp h1, .hp h2, .hp h3, .hp h4, .hp p, .hp ul { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.hp ul { list-style: none; }
.hp a { color: inherit; text-decoration: none; }
.hp a:hover { text-decoration: none; }
.hp button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; color: inherit; }
.hp input, .hp select { font-family: inherit; }
.hp .hp-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp[dir="rtl"] .hp-flip { transform: scaleX(-1); }
.hp .hp-container { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.hp .hp-hidden { display: none !important; }
.hp .hp-m-only { display: none !important; }

/* Buttons, badges, cards */
.hp .hp-btn { height: 44px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; line-height: 1; }
.hp .hp-btn-primary { background: var(--hp-blue); color: #fff; }
.hp .hp-btn-primary:hover { background: #1D4FD8; color: #fff; }
.hp .hp-btn-yellow { background: var(--hp-yellow); color: var(--hp-navy); }
.hp .hp-btn-yellow:hover { background: #E8BA00; color: var(--hp-navy); }
.hp .hp-btn-outline { background: #fff; color: var(--hp-blue); border: 1.5px solid var(--hp-blue); }
.hp .hp-btn-outline:hover { background: var(--hp-blue-soft); color: var(--hp-blue); }
.hp .hp-btn-ghost-w { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.hp .hp-btn-ghost-w:hover { background: rgba(255,255,255,.18); color: #fff; }
.hp .hp-btn-dark { background: var(--hp-navy); color: #fff; }
.hp .hp-btn-dark:hover { background: #1B2F57; color: #fff; }
.hp .hp-flag { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 .5px #D0D5DD; flex: none; object-fit: cover; display: block; }
.hp .hp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.hp .hp-badge .hp-icon { width: 12px; height: 12px; }
.hp .hp-badge-gold { background: var(--hp-gold-soft); color: var(--hp-gold-text); }
.hp .hp-badge-silver { background: var(--hp-silver-soft); color: var(--hp-silver-text); }
.hp .hp-badge-verified { background: var(--hp-green-soft); color: var(--hp-green); }
.hp .hp-card { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; }
.hp .hp-link { color: var(--hp-blue); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hp .hp-link:hover { color: #1D4FD8; }
.hp .hp-link .hp-icon { width: 14px; height: 14px; }

/* ---------- Hero row ---------- */
.hp .hp-hero-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 16px; padding: 24px 0 20px; align-items: stretch; }
.hp .hp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.hp .hp-cats { padding: 14px 10px; flex: 1; display: flex; flex-direction: column; position: relative; }
.hp .hp-cats h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 0 8px 8px; }
.hp .hp-cats h2 .hp-icon { color: var(--hp-blue); }
.hp .hp-cats ul { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.hp .hp-cats li { position: static; }
.hp .hp-cats li > a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; font-size: 12.5px; color: var(--hp-text); }
.hp .hp-cats li > a img { width: 16px; height: 16px; object-fit: contain; flex: none; opacity: .75; }
.hp .hp-cats li > a span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .hp-cats li > a .hp-chev { margin-inline-start: auto; width: 14px; height: 14px; color: var(--hp-gray-2); }
.hp .hp-cats li:hover > a, .hp .hp-cats li:focus-within > a { background: var(--hp-blue-soft); color: var(--hp-blue); }
.hp .hp-cats li:hover > a img { opacity: 1; }
/* Sub-category flyout */
.hp .hp-fly { display: none; position: absolute; top: 0; inset-inline-start: calc(100% + 8px); width: 560px; min-height: 100%; z-index: 30; background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; box-shadow: 0 12px 32px rgba(13,27,54,.12); padding: 18px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-content: start; }
.hp .hp-cats li:hover .hp-fly, .hp .hp-cats li:focus-within .hp-fly { display: grid; }
.hp .hp-fly h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hp .hp-fly h4 a:hover { color: var(--hp-blue); }
.hp .hp-fly ul { display: flex; flex-direction: column; gap: 4px; }
.hp .hp-fly ul a { font-size: 12.5px; color: var(--hp-gray); }
.hp .hp-fly ul a:hover { color: var(--hp-blue); }
.hp .hp-fly .hp-more { color: var(--hp-blue); font-weight: 500; }

.hp .hp-promo { position: relative; border-radius: 14px; overflow: hidden; min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; isolation: isolate; }
.hp .hp-promo.hp-grow { flex: 1; }
.hp .hp-promo .hp-art { position: absolute; inset: 0; z-index: -2; background: #1B2F57 center / cover no-repeat; }
.hp .hp-promo .hp-art svg { width: 100%; height: 100%; display: block; }
.hp .hp-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,27,54,.05) 0, rgba(13,27,54,.92) 70%); }
.hp .hp-promo .hp-tag { align-self: flex-start; background: var(--hp-yellow); color: var(--hp-navy); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; margin-bottom: 6px; }
.hp .hp-promo h3 { font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff; }
.hp .hp-promo .hp-go { font-size: 12px; font-weight: 600; color: var(--hp-yellow); display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.hp .hp-promo .hp-go .hp-icon { width: 13px; height: 13px; }

/* Banner sliders */
.hp .hp-slider { position: relative; border-radius: 16px; overflow: hidden; background: var(--hp-navy); aspect-ratio: 10 / 3; flex: none; }
.hp .hp-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hp .hp-slides::-webkit-scrollbar { display: none; }
.hp .hp-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; position: relative; cursor: pointer; }
.hp .hp-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp .hp-slide.hp-spot { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 6%; color: #fff; background: linear-gradient(120deg, #0D1B36, #22407A); }
.hp .hp-slide.hp-spot b { font-size: clamp(16px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; max-width: 60%; }
.hp .hp-slide.hp-spot span { font-size: clamp(11px, 1vw, 14px); opacity: .8; max-width: 60%; }
.hp .hp-s-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--hp-navy); box-shadow: 0 2px 8px rgba(13,27,54,.18); opacity: 0; transition: opacity .2s; z-index: 2; }
.hp .hp-s-nav .hp-icon { width: 18px; height: 18px; }
.hp .hp-s-prev { left: 12px; }
.hp .hp-s-prev .hp-icon { transform: rotate(180deg); }
.hp .hp-s-next { right: 12px; }
.hp .hp-slider:hover .hp-s-nav, .hp .hp-slider:focus-within .hp-s-nav { opacity: 1; }
.hp .hp-s-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.hp .hp-s-dots button { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.5); pointer-events: auto; transition: width .2s, background .2s; }
.hp .hp-s-dots button.on { width: 20px; background: var(--hp-yellow); }
.hp .hp-banner-wide { margin-bottom: 20px; }

/* Quick RFQ */
.hp .hp-qrfq { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; justify-content: center; }
.hp .hp-qrfq form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hp .hp-qrfq .hp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp .hp-qrfq h2 { font-size: 18px; font-weight: 600; }
.hp .hp-pill24 { display: inline-flex; align-items: center; gap: 5px; background: var(--hp-green-soft); color: var(--hp-green); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.hp .hp-pill24 .hp-icon { width: 12px; height: 12px; }
.hp .hp-qrfq p { font-size: 13px; color: var(--hp-gray); line-height: 1.5; margin-top: -6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .hp-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px 120px auto; gap: 10px; }
.hp .hp-inp { height: 46px; border: 1px solid #D0D5DD; border-radius: 10px; padding: 0 12px; font-size: 14px; color: var(--hp-navy); background: #fff; min-width: 0; width: 100%; outline: 0; transition: border-color .15s, box-shadow .15s; margin: 0; }
.hp .hp-inp:focus { border-color: var(--hp-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.hp .hp-inp.hp-err { border-color: #C74A34; box-shadow: 0 0 0 3px rgba(199,74,52,.1); }
.hp select.hp-inp { -webkit-appearance: none; appearance: none; padding-inline-end: 28px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235F6973' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.hp[dir="rtl"] select.hp-inp { background-position: left 10px center; }
.hp .hp-qrfq .hp-btn { height: 46px; }
.hp .hp-perks { display: flex; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; gap: 6px 16px; font-size: 12px; color: var(--hp-text); }
.hp .hp-perks span { display: inline-flex; align-items: center; gap: 6px; }
.hp .hp-perks .hp-icon { width: 14px; height: 14px; color: var(--hp-green); }
/* Photo / file RFQ box */
.hp .hp-ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 8px; padding-inline-start: 14px; border-radius: 16px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #2563EB, #6C98D6 45%, #F9C909) border-box; border: 1.5px solid transparent; box-shadow: 0 8px 24px rgba(37,99,235,.08); }
.hp .hp-ai-l { display: flex; flex-direction: column; gap: 5px; justify-content: center; min-width: 0; }
.hp .hp-ai-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #fff; padding: 3px 10px; border-radius: 999px; background: linear-gradient(110deg, #0D1B36, #2563EB 60%, #6C98D6); box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.hp .hp-ai-badge .hp-icon { width: 14px; height: 14px; color: var(--hp-yellow); animation: hp-twinkle 2.4s ease-in-out infinite; }
@keyframes hp-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(15deg); } }
.hp .hp-ai-l h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; line-height: 1.3; background: linear-gradient(100deg, #0D1B36, #2563EB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp .hp-ai-chips { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 6px; margin-top: 1px; }
.hp .hp-ai-chips span { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--hp-navy); background: var(--hp-bg); border: 1px solid var(--hp-line); border-radius: 999px; padding: 4px 10px; }
.hp .hp-ai-chips .hp-icon { width: 13px; height: 13px; color: var(--hp-blue); }
.hp .hp-drop { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; align-content: center; text-align: start; border: 2px dashed #9DB6EE; border-radius: 14px; background: radial-gradient(120% 100% at 50% 0, #EEF3FE 0, #F7F9FF 70%); padding: 10px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.hp .hp-drop:hover, .hp .hp-drop:focus-visible { border-color: var(--hp-blue); background: #E6EEFD; outline: 0; }
.hp .hp-drop .hp-dic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2563EB, #6C98D6); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(37,99,235,.28); }
.hp .hp-drop .hp-dic .hp-icon { width: 20px; height: 20px; }
.hp .hp-drop b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .hp-drop .hp-dor { font-size: 12px; color: var(--hp-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .hp-drop .hp-dor u { color: var(--hp-blue); font-weight: 600; text-decoration: none; }

.hp .hp-svc { border-radius: 14px; padding: 14px; color: #fff; display: flex; flex-direction: column; gap: 4px; min-height: 96px; }
.hp .hp-svc:hover { color: #fff; filter: brightness(1.06); }
.hp .hp-svc .hp-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: var(--hp-yellow); margin-bottom: 6px; }
.hp .hp-svc h3 { font-size: 14px; font-weight: 600; }
.hp .hp-svc p { font-size: 12px; color: rgba(255,255,255,.75); }
.hp .hp-svc .hp-more { font-size: 12px; font-weight: 600; color: var(--hp-yellow); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.hp .hp-svc .hp-more .hp-icon { width: 13px; height: 13px; }
.hp .hp-svc.s1 { background: var(--hp-blue); }
.hp .hp-svc.s2 { background: var(--hp-navy); }
.hp .hp-svc.s3 { background: #1B3A75; }

/* ---------- Sections ---------- */
.hp .hp-section { padding: 22px; margin-bottom: 20px; }
.hp .hp-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hp .hp-sec-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.hp .hp-sec-head h2 .hp-icon { color: var(--hp-blue); width: 18px; height: 18px; }
.hp .hp-sec-head p { font-size: 12px; color: var(--hp-gray); margin-top: 2px; }
.hp .hp-row6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hp .hp-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Self-moving tracks (RFQs, new products): crawl slowly, pause on hover/touch */
.hp .hp-track-wrap { position: relative; }
.hp .hp-track { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 2px; }
.hp .hp-track::-webkit-scrollbar { display: none; }
.hp .hp-track.hp-leads > * { flex: 0 0 calc((100% - 42px) / 4); }
.hp .hp-track.hp-prods > * { flex: 0 0 calc((100% - 70px) / 6); }
.hp .hp-c-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 999px; background: #fff; border: 1px solid var(--hp-line); box-shadow: 0 2px 8px rgba(13,27,54,.12); display: grid; place-items: center; color: var(--hp-navy); z-index: 2; }
.hp .hp-c-nav .hp-icon { width: 18px; height: 18px; }
.hp .hp-c-prev { left: -14px; }
.hp .hp-c-prev .hp-icon { transform: rotate(180deg); }
.hp .hp-c-next { right: -14px; }
.hp .hp-c-nav:disabled { opacity: 0; pointer-events: none; }

.hp .hp-lead { border: 1px solid var(--hp-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.hp .hp-ltag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.hp .hp-ltag .hp-icon { width: 12px; height: 12px; }
.hp .hp-lt-global { background: var(--hp-green-soft); color: var(--hp-green); }
.hp .hp-lt-product { background: var(--hp-blue-soft); color: var(--hp-blue); }
.hp .hp-lead h3 { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.hp .hp-lead .hp-from { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hp-gray); }
.hp .hp-lead .hp-from .hp-flag { width: 18px; height: 12px; }
.hp .hp-lead .hp-qty { font-size: 12px; color: var(--hp-gray); }
.hp .hp-lead .hp-qty b { color: var(--hp-navy); }
.hp .hp-lead .hp-btn { height: 38px; font-size: 13px; margin-top: auto; }

.hp .hp-pcard { border: 1px solid var(--hp-line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.hp .hp-pcard:hover { border-color: var(--hp-blue); box-shadow: 0 6px 18px rgba(37,99,235,.08); }
.hp .hp-pcard .hp-ph { aspect-ratio: 1 / 1; background: var(--hp-bg-2); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.hp .hp-pcard .hp-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hp .hp-pcard .hp-moq { font-size: 11px; color: var(--hp-gray); margin-top: 2px; }
.hp .hp-pcard h3 { font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.hp .hp-pcard .hp-pr { font-size: 14px; font-weight: 600; color: var(--hp-blue); }
.hp .hp-pcard .hp-pr.hp-req { color: var(--hp-navy); font-weight: 500; font-size: 13px; }
.hp .hp-pcard .hp-pr s { font-size: 12px; font-weight: 400; color: var(--hp-gray-2); margin-inline-end: 4px; }

.hp .hp-catt { display: flex; flex-direction: column; gap: 10px; text-align: center; font-size: 13px; font-weight: 500; }
.hp .hp-catt img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--hp-bg-2); transition: transform .2s; }
.hp .hp-catt:hover img { transform: translateY(-2px); }
.hp .hp-catt:hover { color: var(--hp-blue); }

.hp .hp-agri { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; }
.hp .hp-agri-hero { border-radius: 14px; padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 220px; background: #14532D center / cover no-repeat; position: relative; overflow: hidden; isolation: isolate; }
.hp .hp-agri-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,27,54,.05) 0, rgba(13,27,54,.85) 75%); }
.hp .hp-agri-hero h3 { font-size: 22px; font-weight: 700; color: #fff; }
.hp .hp-agri-hero p { font-size: 13px; color: #E4EAF3; max-width: 240px; }
.hp .hp-agri-hero .hp-btn { align-self: flex-start; height: 40px; margin-top: 6px; }
.hp .hp-agri-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-content: start; }
.hp .hp-atile { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hp-line); border-radius: 12px; padding: 14px; font-size: 13px; font-weight: 500; transition: border-color .15s; min-width: 0; }
.hp .hp-atile:hover { border-color: var(--hp-blue); color: var(--hp-blue); }
.hp .hp-atile .hp-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--hp-blue-soft); display: grid; place-items: center; flex: none; overflow: hidden; }
.hp .hp-atile .hp-ic img { width: 100%; height: 100%; object-fit: cover; }
.hp .hp-atile span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.hp .hp-featured { background: linear-gradient(120deg, var(--hp-navy) 0, #1B2F57 100%); border-radius: 18px; padding: 32px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center; margin-bottom: 20px; }
.hp .hp-featured.hp-solo { grid-template-columns: 1fr; }
.hp .hp-featured h2 { font-size: 26px; font-weight: 700; margin: 10px 0 6px; color: #fff; }
.hp .hp-featured p { color: var(--hp-muted-on-navy); font-size: 14px; max-width: 560px; display: flex; align-items: center; gap: 8px; }
.hp .hp-featured .hp-bdg { display: flex; gap: 6px; margin: 12px 0 16px; flex-wrap: wrap; }
.hp .hp-featured .hp-shot { aspect-ratio: 16 / 9; border-radius: 14px; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.hp .hp-featured .hp-shot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hp .hp-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--hp-yellow); color: var(--hp-navy); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.hp .hp-eyebrow .hp-icon { width: 12px; height: 12px; }

.hp .hp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.hp .hp-two .hp-section { margin-bottom: 0; }
.hp .hp-two > * { min-width: 0; }
.hp .hp-supc { border: 1px solid var(--hp-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; min-width: 0; }
.hp .hp-supc:hover { border-color: var(--hp-blue); }
.hp .hp-supc .hp-av { width: 40px; height: 40px; border-radius: 999px; background: var(--hp-blue-soft); color: var(--hp-blue); font-weight: 600; font-size: 13px; display: grid; place-items: center; overflow: hidden; flex: none; }
.hp .hp-supc .hp-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hp .hp-supc h3 { font-size: 13px; font-weight: 600; line-height: 1.35; min-height: 35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp .hp-supc .hp-c { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hp-gray); }
.hp .hp-supc .hp-c .hp-flag { width: 18px; height: 12px; }
.hp .hp-supc small { font-size: 11px; color: var(--hp-gray-2); }
.hp .hp-supc .hp-bd { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; margin-top: 2px; }

/* Shipping */
.hp .hp-ship { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: linear-gradient(120deg, #0D1B36 0, #16305E 100%); color: #fff; margin-bottom: 20px; }
.hp .hp-ship .hp-txt { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.hp .hp-ship h2 { font-size: 26px; font-weight: 700; line-height: 1.25; color: #fff; }
.hp .hp-ship h2 em { font-style: normal; color: var(--hp-yellow); }
.hp .hp-ship .hp-txt > p { color: var(--hp-muted-on-navy); font-size: 14px; line-height: 1.6; max-width: 520px; }
.hp .hp-ship .hp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.hp .hp-ship .hp-feat { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px; }
.hp .hp-ship .hp-feat .hp-icon { color: var(--hp-yellow); width: 20px; height: 20px; margin-top: 1px; }
.hp .hp-ship .hp-feat b { display: block; font-size: 13px; font-weight: 600; }
.hp .hp-ship .hp-feat span { font-size: 12px; color: var(--hp-muted-on-navy); }
.hp .hp-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hp .hp-ship .hp-art { position: relative; min-height: 300px; }
.hp .hp-ship .hp-art svg, .hp .hp-whb .hp-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Warehousing banner */
.hp .hp-whb { position: relative; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); background: linear-gradient(120deg, #8A6A00 0, #C99A00 45%, #F9C909 100%); margin-bottom: 20px; }
.hp .hp-whb .hp-txt { padding: 32px; display: flex; flex-direction: column; gap: 12px; color: var(--hp-navy); }
.hp .hp-whb .hp-eyebrow { background: var(--hp-navy); color: var(--hp-yellow); }
.hp .hp-whb h2 { font-size: 28px; font-weight: 700; line-height: 1.25; max-width: 560px; }
.hp .hp-whb ul { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; font-weight: 500; }
.hp .hp-whb li { display: flex; align-items: center; gap: 6px; }
.hp .hp-whb .hp-ctas { margin-top: 4px; }
.hp .hp-whb .hp-art { position: relative; min-height: 240px; }

.hp .hp-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.hp .hp-logos span { height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--hp-line); display: flex; align-items: center; justify-content: center; padding: 10px 14px; overflow: hidden; }
.hp .hp-logos img { display: block; width: auto; height: auto; max-width: 100%; max-height: 42px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .15s, opacity .15s; }
.hp .hp-logos span:hover img { filter: none; opacity: 1; }

.hp .hp-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp .hp-service { display: flex; gap: 14px; background: var(--hp-bg); border-radius: 12px; padding: 16px; }
.hp .hp-service .hp-ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 1px 2px rgba(13,27,54,.06); overflow: hidden; padding: 6px; }
.hp .hp-service .hp-ic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hp .hp-service h3 { font-size: 14px; font-weight: 600; }
.hp .hp-service p { font-size: 12.5px; color: var(--hp-gray); line-height: 1.5; margin: 3px 0 6px; }
.hp .hp-service:hover h3 { color: var(--hp-blue); }

.hp .hp-mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .hp .hp-hero-row { grid-template-columns: 220px minmax(0, 1fr) 230px; }
  .hp .hp-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .hp .hp-fields .hp-p { grid-column: 1 / -1; }
  .hp .hp-ai { grid-template-columns: 1fr; }
  .hp .hp-perks span:nth-child(3) { display: none; }
  .hp .hp-row6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp .hp-track.hp-leads > * { flex-basis: calc((100% - 28px) / 3); }
  .hp .hp-track.hp-prods > * { flex-basis: calc((100% - 42px) / 4); }
  .hp .hp-agri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp .hp-featured { grid-template-columns: 1fr 280px; }
  .hp .hp-two { grid-template-columns: 1fr; }
  .hp .hp-fly { width: 420px; grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hp .hp-container { padding: 0 16px; }
  .hp .hp-m-only { display: flex !important; }

  .hp .hp-hero-row { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 16px; }
  .hp .hp-col-left { display: none; }
  .hp .hp-col-mid { display: contents; }
  .hp .hp-hero-slider { order: 1; }
  .hp .hp-mcats { order: 2; }
  .hp .hp-qrfq { order: 3; }
  .hp .hp-col-right { order: 4; }
  .hp .hp-s-nav { display: none; }

  .hp .hp-mcats { gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .hp .hp-mcats::-webkit-scrollbar { display: none; }
  .hp .hp-mcats a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hp-line); font-size: 13px; font-weight: 500; white-space: nowrap; }
  .hp .hp-mcats a img { width: 15px; height: 15px; object-fit: contain; }
  .hp .hp-mcats a .hp-icon { width: 15px; height: 15px; color: var(--hp-yellow); }
  .hp .hp-mcats a.hp-all { background: var(--hp-navy); color: #fff; border-color: var(--hp-navy); }

  .hp .hp-col-right { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; gap: 10px; }
  .hp .hp-col-right::-webkit-scrollbar { display: none; }
  .hp .hp-col-right > *, .hp .hp-col-right > .hp-promo.hp-grow { flex: 0 0 64%; scroll-snap-align: start; min-height: 0; }
  .hp .hp-svc { min-height: 0; }

  .hp .hp-swipe { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; gap: 10px; }
  .hp .hp-swipe::-webkit-scrollbar { display: none; }
  .hp .hp-swipe > * { scroll-snap-align: start; }
  .hp .hp-row6.hp-swipe > *, .hp .hp-row3.hp-swipe > * { flex: 0 0 42%; }
  .hp .hp-track { margin: 0 -16px; padding: 2px 16px; gap: 10px; }
  .hp .hp-track.hp-leads > * { flex-basis: 72%; }
  .hp .hp-track.hp-prods > * { flex-basis: 42%; }
  .hp .hp-c-nav { display: none; }
  .hp .hp-featured { grid-template-columns: 1fr; padding: 22px 18px; }
  .hp .hp-featured .hp-shot { display: none; }
  .hp .hp-featured h2 { font-size: 21px; }
  .hp .hp-services { grid-template-columns: 1fr 1fr; }
  .hp .hp-ship, .hp .hp-whb { grid-template-columns: 1fr; }
  .hp .hp-ship .hp-art { min-height: 200px; order: -1; }
  .hp .hp-whb .hp-art { display: none; }

  /* Trusted buyers: 2 rows, swipe sideways */
  .hp .hp-logos { display: grid; grid-template-rows: repeat(2, 64px); grid-auto-flow: column; grid-auto-columns: calc(50% - 6px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .hp .hp-logos::-webkit-scrollbar { display: none; }
  .hp .hp-logos span { scroll-snap-align: start; }

  .hp .hp-mbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--hp-line); box-shadow: 0 -6px 18px rgba(13,27,54,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .2s; }
  .hp .hp-mbar.hp-show { transform: none; }
  .hp .hp-mbar .hp-t { flex: 1; line-height: 1.3; min-width: 0; }
  .hp .hp-mbar .hp-t b { display: block; font-size: 14px; }
  .hp .hp-mbar .hp-t small { font-size: 12px; color: var(--hp-gray); }
}
@media (max-width: 600px) {
  .hp .hp-slider { aspect-ratio: 2 / 1; border-radius: 14px; }
  .hp .hp-qrfq { padding: 16px; }
  .hp .hp-qrfq h2 { font-size: 17px; }
  .hp .hp-qrfq p { white-space: normal; }
  .hp .hp-ai { padding: 12px; gap: 10px; }
  .hp .hp-ai-l h3 { white-space: normal; }
  .hp .hp-perks { flex-wrap: wrap; }
  .hp .hp-fields { gap: 8px; }
  .hp .hp-section { padding: 16px; border-radius: 14px; margin-bottom: 14px; }
  .hp .hp-banner-wide { margin-bottom: 14px; }
  .hp .hp-sec-head h2 { font-size: 16px; }
  .hp .hp-sec-head p { display: none; }
  .hp .hp-row6:not(.hp-swipe) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hp .hp-catt { font-size: 11.5px; gap: 6px; }
  .hp .hp-agri { grid-template-columns: 1fr; }
  .hp .hp-agri-hero { min-height: 170px; padding: 18px; }
  .hp .hp-agri-grid { gap: 8px; }
  .hp .hp-atile { padding: 10px; gap: 8px; font-size: 12px; }
  .hp .hp-atile .hp-ic { width: 32px; height: 32px; }
  .hp .hp-two { gap: 14px; margin-bottom: 14px; }
  .hp .hp-ship .hp-txt, .hp .hp-whb .hp-txt { padding: 22px 18px; }
  .hp .hp-ship h2, .hp .hp-whb h2 { font-size: 21px; }
  .hp .hp-ship .hp-feats { grid-template-columns: 1fr; }
  .hp .hp-ctas .hp-btn { flex: 1; }
  .hp .hp-services { grid-template-columns: 1fr; gap: 8px; }
  .hp .hp-service { padding: 12px; gap: 12px; align-items: center; }
  .hp .hp-service .hp-link { display: none; }
  .hp .hp-service p { margin-bottom: 0; }
  .hp input, .hp select { font-size: 16px !important; }
}
