.pam-site-header,
.pam-home,
.pam-footer {
    color: var(--pam-ink, #101820);
    font-family: "Public Sans", Arial, sans-serif;
}

.pam-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.pam-topbar {
    background: #07110f;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
}

.pam-topbar__inner,
.pam-header-main,
.pam-category-rail,
.pam-product-card__actions,
.pam-section-head,
.pam-seller-row {
    display: flex;
    align-items: center;
}

.pam-topbar__inner {
    justify-content: space-between;
    min-height: 34px;
}

.pam-topbar a {
    color: rgba(255, 255, 255, .78);
    margin-left: 18px;
    font-weight: 700;
}

.pam-site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(16, 24, 32, .08);
    backdrop-filter: blur(14px);
}

.pam-header-main {
    min-height: 78px;
    gap: 22px;
}

.pam-brand img {
    display: block;
    max-width: 210px;
    max-height: 50px;
}

.pam-header-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    height: 48px;
    border: 1px solid rgba(16, 24, 32, .14);
    background: #fff;
}

.pam-header-search > i {
    width: 46px;
    text-align: center;
    color: var(--pam-primary, #0f766e);
    font-size: 20px;
}

.pam-header-search input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    height: 100%;
    font-size: 14px;
}

.pam-header-search button,
.pam-finder button,
.pam-rfq-form button,
.pam-product-card__actions button:first-child,
.pam-product-card__actions a:first-child,
.pam-sell-link {
    border: 0;
    background: var(--pam-primary, #0f766e);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0;
    text-align: center;
}

.pam-header-search button {
    height: 100%;
    padding: 0 22px;
}

.pam-header-search .typed-search-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid rgba(16, 24, 32, .12);
    box-shadow: 0 24px 60px rgba(7, 17, 15, .16);
}

.pam-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.pam-header-actions > a {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #101820;
    border: 1px solid rgba(16, 24, 32, .12);
    background: #fff;
}

.pam-header-actions i {
    font-size: 20px;
}

.pam-cart-link {
    position: relative;
}

.pam-cart-link .cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pam-accent, #f59e0b);
    color: #111827;
    font-size: 11px;
    font-weight: 900;
}

.pam-header-actions .pam-account-link,
.pam-header-actions .pam-sell-link {
    width: auto;
    padding: 0 16px;
    text-decoration: none;
}

.pam-sell-link {
    border-color: var(--pam-primary, #0f766e) !important;
    color: #fff !important;
}

.pam-category-rail {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.pam-category-rail a {
    flex: 0 0 auto;
    padding: 9px 13px;
    color: #263238;
    background: #f3f6f5;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pam-home {
    background: var(--pam-surface, #f5f7f8);
}

.pam-hero {
    min-height: 650px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.pam-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 36px;
    padding: 56px 0 64px;
}

.pam-hero__copy {
    max-width: 790px;
}

.pam-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 68px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: 0;
}

.pam-hero__lead {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 19px;
    line-height: 1.6;
}

.pam-hero__support {
    max-width: 620px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.7;
}

.pam-finder {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) minmax(140px, .8fr) minmax(140px, .8fr) auto;
    gap: 8px;
    margin-top: 28px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.pam-finder__main {
    display: flex;
    align-items: center;
    background: #f5f7f8;
}

.pam-finder__main i {
    width: 42px;
    color: var(--pam-primary, #0f766e);
    font-size: 20px;
    text-align: center;
}

.pam-finder input,
.pam-finder select,
.pam-rfq-form input {
    width: 100%;
    height: 50px;
    border: 1px solid #e1e7e5;
    background: #fff;
    color: #101820;
    font-size: 14px;
    outline: 0;
}

.pam-finder__main input {
    border: 0;
    background: transparent;
}

.pam-finder button,
.pam-rfq-form button {
    min-width: 150px;
    height: 50px;
    padding: 0 20px;
}

.pam-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pam-quick-links a {
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pam-hero__panel {
    align-self: end;
    display: grid;
    gap: 10px;
}

.pam-hero__panel > div {
    padding: 18px;
    background: rgba(255, 255, 255, .92);
    border-left: 4px solid var(--pam-primary, #0f766e);
}

.pam-hero__panel span,
.pam-hero__panel small {
    display: block;
    color: #5d6b67;
    font-size: 12px;
    font-weight: 800;
}

.pam-hero__panel strong {
    display: block;
    color: #101820;
    font-size: 30px;
    line-height: 1;
    margin: 6px 0;
}

.pam-section {
    padding: 54px 0;
}

.pam-section--compact {
    padding-top: 34px;
}

.pam-section--white {
    background: #fff;
}

.pam-section-head {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.pam-section-head h2 {
    margin: 0;
    color: #101820;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.pam-section-head p {
    max-width: 640px;
    margin: 7px 0 0;
    color: #66736f;
    font-size: 14px;
    line-height: 1.65;
}

.pam-section-head > a {
    color: var(--pam-primary, #0f766e);
    font-weight: 900;
    white-space: nowrap;
}

.pam-equipment-grid,
.pam-brand-grid,
.pam-trust-grid,
.pam-product-grid,
.pam-category-grid {
    display: grid;
    gap: 16px;
}

.pam-equipment-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pam-equipment-card,
.pam-category-card,
.pam-brand-card,
.pam-trust-card,
.pam-product-card,
.pam-seller-panel,
.pam-rfq-panel,
.pam-empty {
    background: #fff;
    border: 1px solid rgba(16, 24, 32, .09);
    box-shadow: 0 12px 32px rgba(16, 24, 32, .06);
}

.pam-equipment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 16px;
    color: #101820;
    text-decoration: none;
}

.pam-equipment-card span,
.pam-trust-card span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 118, 110, .1);
    color: var(--pam-primary, #0f766e);
    font-size: 24px;
}

.pam-equipment-card strong,
.pam-brand-card strong {
    font-size: 14px;
    line-height: 1.3;
}

.pam-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pam-category-card {
    display: grid;
    grid-template-rows: 168px auto;
    color: #101820;
    overflow: hidden;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.pam-category-card:hover,
.pam-product-card:hover,
.pam-brand-card:hover,
.pam-equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(16, 24, 32, .12);
}

.pam-category-card__media {
    background: #f3f6f5;
    overflow: hidden;
}

.pam-category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.pam-category-card:hover img {
    transform: scale(1.04);
}

.pam-category-card__body {
    padding: 16px;
}

.pam-category-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
}

.pam-category-card span {
    color: var(--pam-primary, #0f766e);
    font-size: 12px;
    font-weight: 900;
}

.pam-brand-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pam-brand-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    color: #101820;
    text-align: center;
    text-decoration: none;
}

.pam-brand-card img {
    max-width: 94px;
    max-height: 42px;
    object-fit: contain;
}

.pam-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pam-product-card {
    overflow: hidden;
}

.pam-product-card__media {
    position: relative;
    display: block;
    height: 220px;
    padding: 18px;
    background: #f5f7f8;
}

.pam-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pam-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    background: var(--pam-accent, #f59e0b);
    color: #101820;
    font-size: 11px;
    font-weight: 900;
}

.pam-product-card__body {
    padding: 16px;
}

.pam-product-card__title {
    display: -webkit-box;
    min-height: 43px;
    overflow: hidden;
    color: #101820;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 900;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pam-product-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: #66736f;
    font-size: 12px;
    font-weight: 800;
}

.pam-product-card__meta i {
    color: var(--pam-accent, #f59e0b);
}

.pam-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.pam-product-card__price strong {
    color: var(--pam-primary, #0f766e);
    font-size: 18px;
    font-weight: 900;
}

.pam-product-card__price del {
    color: #8a9692;
    font-size: 12px;
}

.pam-product-card__actions {
    gap: 8px;
    margin-top: 14px;
}

.pam-product-card__actions button:first-child,
.pam-product-card__actions a:first-child {
    flex: 1;
    min-height: 40px;
    padding: 10px 12px;
    text-decoration: none;
}

.pam-icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(16, 24, 32, .1);
    background: #fff;
    color: #101820;
    font-size: 18px;
}

.pam-market-strip {
    color: #fff;
    background: #07110f;
}

.pam-market-strip__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 28px;
}

.pam-rfq-panel,
.pam-seller-panel {
    padding: 28px;
}

.pam-rfq-panel {
    background: linear-gradient(135deg, rgba(15, 118, 110, .92), rgba(7, 17, 15, .98));
    border-color: rgba(255, 255, 255, .12);
}

.pam-rfq-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 900;
}

.pam-rfq-panel p {
    max-width: 650px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
}

.pam-rfq-form {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.pam-rfq-form input {
    border: 0;
    padding: 0 14px;
}

.pam-rfq-form button {
    background: var(--pam-accent, #f59e0b);
    color: #101820;
}

.pam-seller-panel {
    background: #fff;
    color: #101820;
}

.pam-seller-panel .pam-section-head {
    margin-bottom: 14px;
}

.pam-seller-panel .pam-section-head h2 {
    font-size: 22px;
}

.pam-seller-list {
    display: grid;
    gap: 10px;
}

.pam-seller-row {
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #f5f7f8;
    color: #101820;
    text-decoration: none;
}

.pam-seller-row img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: #fff;
}

.pam-seller-row span {
    flex: 1;
    min-width: 0;
}

.pam-seller-row strong,
.pam-seller-row small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pam-seller-row small {
    color: #66736f;
    font-size: 12px;
    margin-top: 3px;
}

.pam-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pam-trust-card {
    padding: 24px;
}

.pam-trust-card h3 {
    margin: 16px 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.pam-trust-card p {
    margin: 0;
    color: #66736f;
    font-size: 14px;
    line-height: 1.65;
}

.pam-empty {
    grid-column: 1 / -1;
    padding: 36px;
    text-align: center;
}

.pam-empty i {
    display: block;
    color: var(--pam-primary, #0f766e);
    font-size: 42px;
    margin-bottom: 10px;
}

.pam-footer {
    background: #07110f;
    color: rgba(255, 255, 255, .74);
    padding: 48px 0 0;
}

.pam-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 1fr));
    gap: 34px;
}

.pam-footer img {
    max-width: 220px;
    max-height: 54px;
    background: #fff;
    padding: 8px 10px;
}

.pam-footer p {
    max-width: 440px;
    margin: 18px 0 0;
    line-height: 1.7;
}

.pam-footer h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 14px;
}

.pam-footer a {
    display: block;
    color: rgba(255, 255, 255, .74);
    margin: 9px 0;
}

.pam-footer__bottom {
    margin-top: 34px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .pam-header-main {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .pam-header-search {
        order: 3;
        flex-basis: 100%;
    }

    .pam-hero__grid,
    .pam-market-strip__grid {
        grid-template-columns: 1fr;
    }

    .pam-hero__panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pam-equipment-grid,
    .pam-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pam-category-grid,
    .pam-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .pam-container {
        width: min(100% - 22px, 1180px);
    }

    .pam-topbar nav,
    .pam-header-actions > a:not(.pam-cart-link):not(.pam-account-link) {
        display: none;
    }

    .pam-brand img {
        max-width: 170px;
    }

    .pam-header-main {
        gap: 12px;
    }

    .pam-header-actions {
        margin-left: auto;
    }

    .pam-header-actions .pam-account-link {
        min-width: 0;
        padding: 0 12px;
    }

    .pam-header-search button {
        padding: 0 14px;
    }

    .pam-category-rail {
        padding-bottom: 10px;
    }

    .pam-hero {
        min-height: 690px;
        background-position: 58% center;
    }

    .pam-hero__grid {
        padding: 42px 0 46px;
    }

    .pam-finder {
        grid-template-columns: 1fr;
    }

    .pam-hero__panel,
    .pam-equipment-grid,
    .pam-category-grid,
    .pam-brand-grid,
    .pam-product-grid,
    .pam-trust-grid,
    .pam-footer__grid {
        grid-template-columns: 1fr;
    }

    .pam-hero__panel {
        display: none;
    }

    .pam-section {
        padding: 40px 0;
    }

    .pam-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .pam-section-head h2 {
        font-size: 23px;
    }

    .pam-rfq-form {
        flex-direction: column;
    }
}
