.hmyss-supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.hmyss-card {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.hmyss-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #101827;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    overflow: hidden;
}

.hmyss-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hmyss-card-body {
    padding: 18px;
}

.hmyss-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hmyss-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef6ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 800;
}

.hmyss-badge-status {
    background: #fff4dc;
    color: #8a4b00;
}

.hmyss-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.hmyss-card h3 a {
    color: #121a2b;
    text-decoration: none;
}

.hmyss-summary,
.hmyss-detail {
    margin: 8px 0;
    color: #526173;
    font-size: 14px;
    line-height: 1.45;
}

.hmyss-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 16px 0;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    overflow: hidden;
    background: #e7edf5;
}

.hmyss-stats div {
    min-height: 68px;
    padding: 10px 8px;
    background: #f8fafc;
    text-align: center;
}

.hmyss-stats strong {
    display: block;
    color: #121a2b;
    font-size: 13px;
    line-height: 1.2;
}

.hmyss-stats span {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.hmyss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hmyss-button,
.hmyss-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: #16a36a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.hmyss-button.secondary {
    background: #101827;
}

.hmyss-form {
    max-width: 860px;
    margin: 28px 0;
    padding: 24px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
}

.hmyss-dashboard {
    max-width: 960px;
    margin: 28px auto;
}

.hmyss-dashboard .hmyss-form {
    max-width: none;
}

.hmyss-status-line,
.hmyss-approved {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 7px;
    background: #eefbf5;
    color: #087443;
}

.hmyss-category-field,
.hmyss-media-fields {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
}

.hmyss-category-field legend,
.hmyss-media-fields h3 {
    color: #121a2b;
    font-weight: 800;
}

.hmyss-category-option {
    display: block !important;
    margin-top: 7px;
    font-weight: 600 !important;
}

.hmyss-category-option input {
    width: auto;
    margin-right: 7px;
}

.hmyss-category-tree {
    margin-top: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    overflow: hidden;
}

.hmyss-category-branch {
    border-bottom: 1px solid #e7edf5;
    background: #ffffff;
}

.hmyss-category-branch:last-child {
    border-bottom: 0;
}

.hmyss-category-branch summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 11px 44px 11px 14px;
    color: #121a2b;
    background: #f8fafc;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.hmyss-category-branch summary::-webkit-details-marker {
    display: none;
}

.hmyss-category-arrow::after {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.hmyss-category-branch[open] > summary .hmyss-category-arrow::after {
    transform: translateY(-35%) rotate(225deg);
}

.hmyss-category-children {
    padding: 6px 12px 10px 18px;
}

.hmyss-category-children .hmyss-category-branch {
    margin: 6px 0;
    border: 1px solid #e7edf5;
    border-radius: 6px;
}

.hmyss-category-leaf {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px;
    width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 9px 8px;
    border-bottom: 1px solid #f0f3f7;
    text-align: left !important;
    overflow: visible !important;
}

.hmyss-category-leaf:last-child {
    border-bottom: 0;
}

.hmyss-category-leaf input {
    flex: 0 0 auto;
    float: none !important;
    position: static !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hmyss-form .hmyss-category-leaf > label {
    position: static !important;
    display: block !important;
    flex: 1 1 auto !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: #121a2b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    cursor: pointer;
}

.hmyss-help,
.hmyss-form small {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.hmyss-current-media img,
.hmyss-gallery-manager img {
    display: block;
    width: 120px;
    height: 90px;
    margin: 8px 0;
    border-radius: 6px;
    object-fit: cover;
}

.hmyss-gallery-manager {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0;
}

.hmyss-gallery-manager > strong {
    width: 100%;
}

.hmyss-gallery-manager label {
    font-weight: 600;
}

.hmyss-gallery-manager input {
    width: auto;
}

.hmyss-profile-details {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dbe3ee;
}

.hmyss-profile-logo img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
}

.hmyss-profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px 24px;
}

.hmyss-company-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.hmyss-company-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    object-fit: cover;
}

.hmyss-form p {
    margin: 0 0 16px;
}

.hmyss-form label {
    display: block;
    margin-bottom: 6px;
    color: #121a2b;
    font-size: 14px;
    font-weight: 800;
}

.hmyss-form input,
.hmyss-form textarea,
.hmyss-form select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 11px 12px;
    color: #121a2b;
    background: #ffffff;
}

.hmyss-notice {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #bfd7ff;
    border-radius: 8px;
    background: #eff6ff;
    color: #174ea6;
}

.hmyss-notice.success {
    border-color: #bbefcf;
    background: #ecfdf3;
    color: #087443;
}

.hmyss-notice.error {
    border-color: #ffccc7;
    background: #fff1f0;
    color: #b42318;
}

.hmyss-empty {
    color: #526173;
}

/* Unified supplier profile template */
.hmyss-single {
    --hmyss-navy: #0b1428;
    --hmyss-navy-soft: #14213a;
    --hmyss-gold: #d9a36a;
    --hmyss-green: #16a36a;
    --hmyss-border: #dfe7f1;
    --hmyss-muted: #66758a;
    min-height: 70vh;
    padding-bottom: 72px;
    background: #f3f6fa;
    color: #172033;
}

.hmyss-profile-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hmyss-profile-hero {
    position: relative;
    min-height: 440px;
    padding: 78px 0 58px;
    overflow: hidden;
    background: radial-gradient(circle at 75% 30%, #263758 0, var(--hmyss-navy) 55%, #060b17 100%);
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.hmyss-profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 10, 23, .96) 0%, rgba(10, 18, 38, .84) 52%, rgba(10, 18, 38, .45) 100%);
}

.hmyss-profile-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    min-height: 300px;
}

.hmyss-profile-brand {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.hmyss-profile-logo-card {
    display: grid;
    flex: 0 0 156px;
    width: 156px;
    height: 156px;
    place-items: center;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

.hmyss-profile-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hmyss-profile-logo-card > span {
    color: var(--hmyss-navy);
    font-size: 58px;
    font-weight: 900;
}

.hmyss-profile-heading {
    min-width: 0;
    max-width: 670px;
}

.hmyss-profile-heading h1 {
    margin: 14px 0 12px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.hmyss-profile-heading > p {
    max-width: 700px;
    margin: 0;
    color: #dce4f2;
    font-size: 18px;
    line-height: 1.6;
}

.hmyss-profile-badges,
.hmyss-certs > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hmyss-trust-badge,
.hmyss-member-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hmyss-trust-badge {
    background: var(--hmyss-gold);
    color: #152039;
}

.hmyss-member-badge {
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .11);
    color: #ffffff;
}

.hmyss-profile-location {
    margin-top: 14px;
    color: #cbd6e8;
    font-size: 14px;
    font-weight: 750;
}

.hmyss-profile-location::before {
    margin-right: 7px;
    content: "●";
    color: var(--hmyss-gold);
}

.hmyss-hero-actions {
    display: flex;
    flex: 0 0 190px;
    flex-direction: column;
    gap: 10px;
}

.hmyss-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease;
}

.hmyss-profile-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(0, 0, 0, .14);
}

.hmyss-profile-button.whatsapp {
    background: var(--hmyss-green);
    color: #ffffff;
}

.hmyss-profile-button.inquiry {
    background: var(--hmyss-gold);
    color: #14213a;
}

.hmyss-profile-button.outline {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.hmyss-profile-button.full {
    width: 100%;
    margin-top: 10px;
}

.hmyss-profile-content {
    position: relative;
    z-index: 2;
    margin-top: -32px;
}

.hmyss-category-strip {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid var(--hmyss-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
}

.hmyss-category-strip > span {
    color: var(--hmyss-muted);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hmyss-category-strip > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hmyss-category-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 6px;
    background: #edf4ff;
    color: #184d98;
    font-size: 13px;
    font-weight: 750;
}

.hmyss-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
    margin-top: 26px;
}

.hmyss-profile-main,
.hmyss-profile-sidebar {
    display: grid;
    gap: 22px;
}

.hmyss-profile-panel,
.hmyss-contact-card,
.hmyss-trust-card {
    padding: 28px;
    border: 1px solid var(--hmyss-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.hmyss-profile-panel h2,
.hmyss-contact-card h2,
.hmyss-trust-card h2 {
    margin: 0 0 18px;
    color: var(--hmyss-navy);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.hmyss-company-copy {
    color: #46556b;
    font-size: 16px;
    line-height: 1.75;
}

.hmyss-company-copy > :first-child {
    margin-top: 0;
}

.hmyss-company-copy > :last-child {
    margin-bottom: 0;
}

.hmyss-main-products {
    margin-top: 24px;
    padding: 18px;
    border-left: 4px solid var(--hmyss-gold);
    border-radius: 0 8px 8px 0;
    background: #fbf7f1;
}

.hmyss-main-products strong {
    color: var(--hmyss-navy);
}

.hmyss-main-products p {
    margin: 5px 0 0;
    color: #566477;
}

.hmyss-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hmyss-section-heading > span {
    color: var(--hmyss-muted);
    font-size: 13px;
}

.hmyss-profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hmyss-profile-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #e8edf4;
}

.hmyss-profile-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}

.hmyss-profile-gallery a:hover img {
    transform: scale(1.025);
}

.hmyss-contact-card dl {
    margin: 0 0 18px;
}

.hmyss-contact-card dl > div {
    padding: 12px 0;
    border-bottom: 1px solid #e9eef5;
}

.hmyss-contact-card dt {
    margin-bottom: 3px;
    color: var(--hmyss-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hmyss-contact-card dd {
    margin: 0;
    color: #273449;
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.hmyss-contact-card dd a {
    color: #1757a6;
}

.hmyss-verification-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e9eef5;
    font-size: 14px;
}

.hmyss-verification-row span,
.hmyss-certs > span {
    color: var(--hmyss-muted);
}

.hmyss-verification-row strong {
    color: #167651;
    text-align: right;
}

.hmyss-certs {
    padding: 14px 0;
}

.hmyss-certs > span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 750;
}

.hmyss-certs > div > span {
    padding: 5px 8px;
    border-radius: 5px;
    background: #eef3f8;
    color: #35445a;
    font-size: 12px;
    font-weight: 800;
}

.hmyss-trust-card > p {
    margin: 12px 0 0;
    color: var(--hmyss-muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .hmyss-profile-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hmyss-hero-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hmyss-profile-layout {
        grid-template-columns: 1fr;
    }

    .hmyss-profile-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hmyss-profile-shell {
        width: min(100% - 24px, 1180px);
    }

    .hmyss-profile-hero {
        min-height: 0;
        padding: 48px 0 54px;
    }

    .hmyss-profile-hero-inner {
        min-height: 0;
    }

    .hmyss-profile-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .hmyss-profile-logo-card {
        flex-basis: 108px;
        width: 108px;
        height: 108px;
        border-radius: 13px;
    }

    .hmyss-profile-heading h1 {
        font-size: 34px;
    }

    .hmyss-profile-heading > p {
        font-size: 15px;
    }

    .hmyss-hero-actions {
        display: flex;
        flex-basis: auto;
    }

    .hmyss-category-strip {
        grid-template-columns: 1fr;
        padding: 17px;
    }

    .hmyss-profile-content {
        margin-top: -24px;
    }

    .hmyss-profile-panel,
    .hmyss-contact-card,
    .hmyss-trust-card {
        padding: 20px;
    }

    .hmyss-profile-gallery,
    .hmyss-profile-sidebar {
        grid-template-columns: 1fr;
    }
}
