/* Homepage only: preserve the existing navigation and search on other routes. */
.am-home-header, .am-discovery-hero, .am-home-solutions { font-family: 'Public Sans', Arial, sans-serif; }
.am-discovery-hero h1, .am-discovery-hero h2, .am-home-solutions h2, .am-home-solutions h3 { font-family: inherit; }
header.am-home-header { padding-bottom: 0 !important; background: #f8faff; color: #15263f; }
.am-home-header .container-fluid-lg { width: 100%; max-width: 1600px; padding: 0 42px; }
.am-home-header .header-top { background: #031b31; padding: 0; min-height: 44px; }
.am-home-header .header-top > .container-fluid-lg > .row { min-height: 44px; align-items: center; }
.am-home-header .header-top .top-left-header { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.am-home-header .header-top .top-left-header span,
.am-home-header .header-top .about-list .btn,
.am-home-tagline { font-size: 12px; font-weight: 500; color: #e3eaf5; }
.am-home-tagline { margin: 0; text-align: center; }
.am-home-header .top-nav { padding: 0; border: 0; background: #f8faff; }
.am-home-header .top-nav .navbar-top { min-height: 60px; gap: 28px; padding: 0; }
.am-home-header .top-nav .navbar-top .web-logo img { width: 172px; height: auto; max-height: 46px; object-fit: contain; }
.am-home-links { display: flex; align-items: center; gap: 35px; margin-inline: auto; white-space: nowrap; }
.am-home-links a { color: #1e314d; font-size: 12px; font-weight: 600; padding-block: 21px; position: relative; }
.am-home-links a[aria-current], .am-home-links a:hover { color: #f69a00; }
.am-home-links a[aria-current]::after { content: ''; position: absolute; bottom: 11px; height: 2px; background: #ffa000; left: 0; right: 0; }
.am-home-header .top-nav .navbar-top .rightside-box { margin-left: 0; }
.am-home-header .right-side-menu { gap: 0; }
.am-home-header .right-side-menu > .right-side { padding-inline: 14px !important; }
.am-home-header .right-side-menu > .right-side::before { background: #dce2ed; height: 25px; }
.am-home-header .right-side-menu > .right-side:first-child,
.am-home-header .right-side-menu > .right-side:nth-child(4) { display: none; }
.am-home-header .right-side-menu > .right-side:last-child { padding-right: 0 !important; }
.am-home-header .right-side-menu .delivery-icon svg,
.am-home-header .right-side-menu .header-wishlist svg { width: 20px; height: 20px; color: #1d304d; }
.am-home-header .right-side-menu .delivery-login-box { gap: 10px; }
.am-home-header .right-side-menu .delivery-detail h6 { font-size: 10px; color: #738098; }
.am-home-header .right-side-menu .delivery-detail h5 { font-size: 12px; color: #1b2c46; }
header.am-home-header .top-nav .navbar-top .rightside-box .right-side-menu .right-side .delivery-login-box .delivery-detail h6 { font-size: 10px; color: #738098; margin-bottom: 0; }
header.am-home-header .top-nav .navbar-top .rightside-box .right-side-menu .right-side .delivery-login-box .delivery-detail h5 { font-size: 12px; color: #1b2c46; font-weight: 700; }
.am-home-header .header-nav { border: 0; padding: 0; margin: 0; min-height: 0; }
.am-home-header #category-menu-container, .am-home-header .header-nav-right { display: none; }
.am-home-header .navbar-menu-button { color: #122b46; }
.am-home-header .am-home-account-chevron { width: 14px; height: 14px; margin-left: 6px; }

.am-discovery-hero { position: relative; isolation: isolate; background: #071e34; padding: 52px 4% 0; color: #fff; }
.am-discovery-backdrop, .am-discovery-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.am-discovery-backdrop { object-fit: cover; object-position: center; }
.am-discovery-shade { z-index: -1; background: linear-gradient(90deg, rgba(1, 23, 43, .5), rgba(1, 23, 43, .25) 67%, rgba(1, 23, 43, .02)); }
.am-discovery-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; max-width: 1420px; margin: auto; padding: 0 min(8vw, 130px) 38px 0; }
.am-discovery-badge { display: inline-block; padding: 5px 11px; border: 1px solid #b37819; border-radius: 20px; background: #ffffff0f; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #ffae15; margin-bottom: 12px; }
.am-discovery-intro h1 { color: #fff; font-size: clamp(30px, 2.4vw, 39px); font-weight: 800; line-height: 1.18; letter-spacing: -.7px; margin: 0 0 15px; }
.am-discovery-intro h1 span { color: #ffa000; }
.am-discovery-intro h1 .am-discovery-title-lead { color: #fff; white-space: nowrap; }
.am-home-header .top-left-header svg { width: 16px; height: 16px; color: #dce6f5; }
.am-discovery-intro p { font-size: 12px; line-height: 1.75; color: #d8e0eb; margin: 0; max-width: 300px; }
.am-discovery-search { padding-top: 21px; max-width: 100%; min-width: 0; text-align: center; }
.am-discovery-search h2 { color: #fff; font-size: clamp(23px, 2.25vw, 36px); font-weight: 750; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 6px; text-shadow: 0 1px 5px #09203980; }
.am-discovery-subtitle { color: #eaf0f8; font-size: 17px; line-height: 1.4; margin: 0 0 18px; }
.am-discovery-form { position: relative; display: flex; align-items: stretch; gap: 10px; padding: 10px; background: #fff; border: 1px solid #e5ebf3; border-radius: 15px; box-shadow: 0 5px 25px #8cbbeb40; min-height: 78px; color: #14283f; text-align: left; }
.am-discovery-categories { flex: 0 0 176px; position: relative; }
.am-discovery-categories summary { list-style: none; display: flex; height: 100%; align-items: center; justify-content: center; gap: 9px; background: #f4f6fa; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; }
.am-discovery-categories summary::-webkit-details-marker { display: none; }
.am-discovery-categories summary svg { width: 21px; height: 21px; }
.am-discovery-categories summary svg:last-child { width: 15px; height: 15px; }
.am-discovery-categories nav { position: absolute; top: calc(100% + 12px); left: -10px; width: 260px; max-height: 340px; overflow: auto; z-index: 35; background: #fff; box-shadow: 0 10px 30px #071e3440; border: 1px solid #dce4ef; padding: 8px; border-radius: 10px; }
.am-discovery-categories nav a { display: block; padding: 10px 12px; color: #21344f; font-size: 14px; border-radius: 6px; }
.am-discovery-categories nav a:hover { background: #f1f4fa; }
.am-discovery-input { display: flex; align-items: center; flex: 1 1 0; min-width: 0; gap: 12px; border: 1px solid #edf0f6; border-radius: 9px; padding-left: 18px; box-shadow: 0 2px 10px #18315406; }
.am-discovery-input > svg { flex-shrink: 0; width: 23px; height: 23px; color: #94a3b9; }
.am-discovery-input input { width: 100%; min-width: 0; border: 0; background: transparent; color: #162a44; font-size: 12px; padding: 17px 0; }
.am-discovery-input input::placeholder { color: #8291a8; opacity: 1; }
.am-discovery-input #launchBtn { flex: 0 0 46px; align-self: center; height: 30px; padding: 0 !important; border-left: 1px solid #e7edf5 !important; border-radius: 0; color: #1f314e !important; }
.am-discovery-input #launchBtn svg { width: 23px; height: 23px; }
.am-discovery-submit { flex: 0 0 140px; border: 0; border-radius: 9px; background: #ffa000; color: #071e34; display: flex; align-items: center; justify-content: center; gap: 11px; font-size: 15px; font-weight: 700; box-shadow: 0 3px 10px #ff9e0040; }
.am-discovery-submit:hover { background: #ffb21a; }
.am-discovery-submit svg { width: 22px; height: 22px; }
.am-discovery-suggestions { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; max-height: 340px; overflow: auto; background: white; border: 1px solid #e0e7f0; border-radius: 10px; box-shadow: 0 10px 30px #071e3440; z-index: 30; color: #152940; }
.am-discovery-suggestions .table { margin: 0; font-size: 14px; }
.am-discovery-form .visual-search-container { position: static; transform: none; }
.am-discovery-form .image-search-popup { top: calc(100% + 12px); right: 0; width: min(700px, 100%); max-height: 70vh; overflow: auto; margin: 0; z-index: 45; color: #18314d; border-radius: 15px; text-align: left; }
.am-discovery-form .popup-header { border-radius: 15px 15px 0 0; }
.am-discovery-image-hint { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; background: transparent; color: #e6edf7; font-size: 12px; padding: 12px 0 15px; }
.am-discovery-image-hint svg { width: 15px; height: 15px; }
.am-discovery-popular { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.am-discovery-popular > span { font-size: 10px; font-weight: 650; margin-right: 7px; color: #e3eaf6; }
.am-discovery-popular a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #94a4b369; border-radius: 30px; padding: 8px 12px; color: #edf3fc; background: #344c65a6; box-shadow: inset 0 1px 3px #ffffff12; font-size: 10px; white-space: nowrap; }
.am-discovery-popular a:hover { background: #496381; border-color: #e7aa3c; }
.am-discovery-popular svg { width: 16px; height: 16px; color: #ffad15; }
.am-discovery-popular a:first-of-type svg, .am-discovery-popular a:nth-of-type(5) svg { color: #ccd7eb; }
.am-discovery-popular a:nth-of-type(2) svg { color: #8ad647; }
.am-discovery-trust { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1080px; margin: 0 auto; min-height: 70px; border: 1px solid #879cb044; border-radius: 12px 12px 0 0; background: #203044b0; backdrop-filter: blur(12px); }
.am-discovery-trust > div { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 16px; position: relative; }
.am-discovery-trust > div + div::before { content: ''; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: #c2ced582; }
.am-discovery-trust svg { flex: 0 0 33px; width: 33px; height: 33px; color: #ffa000; stroke-width: 1.8; }
.am-discovery-trust p { margin: 0; font-size: 10px; line-height: 1.7; color: #d5deea; }
.am-discovery-trust strong { display: block; color: #fff; font-size: 12px; font-weight: 650; }
.am-discovery-trust span { display: block; }

.am-home-solutions { background: #f7f9fd; padding: 23px 28px 30px; }
.am-home-solutions-heading { text-align: center; margin-bottom: 18px; }
.am-home-solutions-heading > span { color: #f69200; text-transform: uppercase; letter-spacing: 1.7px; font-size: 12px; font-weight: 700; }
.am-home-solutions-heading h2 { color: #0c223d; font-weight: 800; font-size: 26px; line-height: 1.3; margin: 3px 0; }
.am-home-solutions-heading p { font-size: 13px; line-height: 1.5; color: #7b899e; margin: 0; }
.am-industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1500px; margin: auto; }
.am-industry-grid[hidden], .am-industry-message[hidden] { display: none; }
.am-industry-card { display: block; overflow: hidden; border: 1px solid #e5eaf3; border-radius: 7px; background: #fff; box-shadow: 0 2px 6px #1b314606; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.am-industry-card:hover { transform: translateY(-3px); box-shadow: 0 7px 20px #1b314619; }
.am-industry-photo { position: relative; height: 120px; background: linear-gradient(135deg, #143754, #6b8195); overflow: hidden; }
.am-industry-photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0214289e); pointer-events: none; }
.am-industry-photo img { width: 100%; height: 100%; object-fit: cover; }
.am-industry-meta { position: absolute; bottom: 6px; left: 7px; right: 7px; display: flex; flex-wrap: wrap; gap: 3px; z-index: 1; }
.am-industry-meta span { display: inline-flex; align-items: center; gap: 7px; background: #081f36d9; color: #fff; border-radius: 15px; padding: 3px 9px; font-size: 9px; font-weight: 700; }
.am-industry-meta b { color: #ffa000; font-size: 12px; }
.am-industry-body { padding: 10px 45px 11px 13px; position: relative; }
.am-industry-tag { color: #f49300; display: block; text-transform: uppercase; font-size: 9px; letter-spacing: .9px; font-weight: 800; margin-bottom: 2px; }
.am-industry-body h3 { color: #15253d; font-size: 13px; line-height: 1.5; font-weight: 750; margin: 0; }
.am-industry-arrow { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; background: #f0f4fa; border: 1px solid #e8eef6; border-radius: 50%; color: #314b70; width: 31px; height: 31px; }
.am-home-industries-link { text-align: center; margin-top: 19px; font-size: 13px; font-weight: 650; }
.am-home-industries-link a { color: #294360; }
.am-home-industries-link span { color: #e88a00; margin-left: 7px; }
.am-industry-skeleton { height: 180px; border-radius: 7px; border: 1px solid #e5eaf3; overflow: hidden; background: white; }
.am-industry-skeleton div { height: 120px; background: #e7edf4; }
.am-industry-skeleton span { display: block; height: 8px; width: 50%; margin: 10px 14px; background: #e7edf4; border-radius: 4px; }
.am-industry-message { text-align: center; color: #4e617a; font-size: 14px; }
.am-industry-message button { border: 0; background: transparent; color: #294d77; text-decoration: underline; }

@media (min-width: 1200px) {
    header.am-home-header .top-nav .navbar-top .rightside-box .right-side-menu .right-side .delivery-login-box .delivery-detail { display: block; }
    .am-discovery-layout { min-height: 300px; }
    .am-home-header .header-nav-middle { display: none; }
    .am-home-header .header-top .col-xxl-3 { display: block !important; width: 30%; }
    .am-home-header .header-top .col-xxl-6 { width: 40%; }
    .am-home-header .header-top .col-lg-3:last-child { width: 30%; }
}
@media (min-width: 1600px) { .am-discovery-layout { padding-bottom: 46px; } }
@media (max-width: 1300px) {
    .am-home-header .container-fluid-lg { padding-inline: 25px; }
    .am-home-links { gap: 20px; }
    .am-home-header .right-side-menu > .right-side { padding-inline: 10px !important; }
    .am-discovery-hero { padding-inline: 3%; }
    .am-discovery-layout { grid-template-columns: 265px minmax(0, 1fr); padding-right: 0; }
    .am-discovery-categories { flex-basis: 145px; }
    .am-discovery-submit { flex-basis: 110px; }
    .am-discovery-popular a { padding-inline: 9px; }
}
@media (max-width: 1199px) {
    .am-home-links { display: none; }
    .am-home-header .top-nav .navbar-top { justify-content: space-between; }
    .am-discovery-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
    .am-discovery-search h2 { font-size: 27px; }
    .am-discovery-categories { flex-basis: 54px; }
    .am-discovery-categories summary span, .am-discovery-categories summary svg:last-child { display: none; }
    .am-discovery-trust > div { gap: 12px; padding-inline: 12px; }
}
@media (max-width: 900px) {
    .am-discovery-hero { padding: 32px 22px 0; }
    .am-discovery-layout { grid-template-columns: 1fr; gap: 10px; padding-bottom: 30px; }
    .am-discovery-intro { text-align: center; }
    .am-discovery-intro h1 { font-size: 36px; }
    .am-discovery-intro p { max-width: 490px; margin-inline: auto; }
    .am-discovery-search { padding-top: 12px; }
    .am-discovery-search h2 { font-size: 26px; }
    .am-discovery-subtitle { font-size: 14px; }
    .am-discovery-categories { flex-basis: 165px; }
    .am-discovery-categories summary span, .am-discovery-categories summary svg:last-child { display: inline; }
    .am-discovery-trust { grid-template-columns: repeat(2, 1fr); }
    .am-discovery-trust > div { justify-content: flex-start; padding-left: 20px; }
    .am-discovery-trust > div:nth-child(3)::before { display: none; }
    .am-industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .am-home-header .container-fluid-lg { padding-inline: 16px; }
    .am-home-header .header-top, .am-home-header .header-top > .container-fluid-lg > .row { min-height: 31px; }
    .am-home-header .top-nav .navbar-top { gap: 10px; min-height: 62px; }
    .am-home-header .top-nav .navbar-top .web-logo img { width: 133px; }
    .am-home-header .right-side-menu > .right-side { padding-inline: 9px !important; }
    .am-home-header .right-side-menu > .right-side:nth-child(2), .am-home-header .right-side-menu > .right-side:nth-child(3) { display: none; }
    .am-discovery-hero { padding: 26px 16px 0; }
    .am-discovery-intro h1 { font-size: 32px; }
    .am-discovery-intro p { font-size: 12px; }
    .am-discovery-search h2 { font-size: 24px; }
    .am-discovery-form { gap: 7px; flex-wrap: wrap; padding: 8px; border-radius: 12px; }
    .am-discovery-categories { flex: 1 1 100%; height: 36px; }
    .am-discovery-categories summary { justify-content: flex-start; padding-inline: 12px; }
    .am-discovery-categories summary svg:last-child { margin-left: auto; }
    .am-discovery-input { padding-left: 9px; gap: 6px; }
    .am-discovery-input > svg { width: 17px; height: 17px; }
    .am-discovery-input input { font-size: 16px; padding-block: 13px; }
    .am-discovery-input #launchBtn { flex-basis: 36px; }
    .am-discovery-submit { flex-basis: 48px; }
    .am-discovery-submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .am-discovery-image-hint { font-size: 10px; gap: 7px; }
    .am-discovery-popular { gap: 6px; }
    .am-discovery-popular > span { flex-basis: 100%; margin-bottom: 3px; }
    .am-discovery-popular a { font-size: 10px; }
    .am-discovery-trust > div { padding: 13px 9px; gap: 8px; }
    .am-discovery-trust svg { flex-basis: 25px; width: 25px; height: 25px; }
    .am-discovery-trust strong { font-size: 10px; }
    .am-discovery-trust p { font-size: 9px; }
    .am-discovery-form .image-search-popup { position: absolute; top: calc(100% + 10px); left: 0; right: 0; transform: none; width: 100%; }
    .am-home-solutions { padding-inline: 16px; }
    .am-home-solutions-heading h2 { font-size: 23px; }
    .am-home-solutions-heading p { font-size: 12px; }
    .am-industry-grid { grid-template-columns: 1fr; }
    .am-industry-photo { height: 155px; }
    .am-industry-body h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .am-industry-card { transition: none; } }

/* The mobile controller keeps its existing catalogue and menu, with shared discovery. */
.am-mobile-home .page-content-wrapper { margin-top: 0; }
.am-mobile-home-navigation { position: relative; background: #f8faff; color: #15263f; font-family: 'Public Sans', Arial, sans-serif; }
.am-mobile-home-topbar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #031b31; color: #e3eaf5; font-size: 10px; }
.am-mobile-home-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; }
.am-mobile-home-logo img { width: 150px; height: 40px; object-fit: contain; }
.am-mobile-home-actions { display: flex; align-items: center; gap: 18px; }
.am-mobile-home-actions a, .am-mobile-home-actions button { position: relative; background: transparent; border: 0; padding: 0; color: #1d304d; }
.am-mobile-home-actions svg { width: 22px; height: 22px; }
.am-mobile-home-actions #cartQuantity { position: absolute; top: -7px; right: -9px; background: #ff6876; color: #fff; border-radius: 3px; min-width: 14px; font-size: 9px; text-align: center; }
.am-mobile-home-links { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; padding: 0 16px; border-top: 1px solid #eaf0f7; }
.am-mobile-home-links a { color: #21344f; font-size: 12px; padding: 10px 0; }
.am-mobile-home-links a[aria-current] { color: #e88c00; border-bottom: 2px solid #ffa000; }
.am-mobile-home .am-discovery-input input { height: auto; padding: 13px 0; margin: 0; background: transparent; }
.am-mobile-home .am-discovery-input #launchBtn { background: #fff; }
.am-mobile-home .am-discovery-input #launchBtn .ti { font-size: 23px; }
.am-mobile-home .am-discovery-trust p { margin: 0; color: #d5deea; }
