body.wholesale-portal-body {
    margin: 0;
    font-family: "Rubik", sans-serif;
    background: #f3f3f5;
    color: #030305;
    --wholesale-catalog-sticky-offset: 7.4rem;
}

[x-cloak] {
    display: none !important;
}

.wholesale-shell-header,
.wholesale-shell-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.wholesale-catalog-page {
    padding-top: 6rem;
}

.wholesale-shell-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.3rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.08);
}

.wholesale-shell-brand__home {
    font-weight: 650;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #030305;
    text-decoration: none;
}

.wholesale-shell-brand__badge,
.wholesale-product-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #ffc43a;
    font-size: 0.76rem;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
}

.wholesale-shell-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wholesale-shell-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.08);
}

.wholesale-shell-tabs__link,
.wholesale-brand-switcher__link,
.wholesale-catalog-nav__link {
    text-decoration: none;
    color: #030305;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    background: #ffffff;
    border: 1px solid rgba(3, 3, 5, 0.08);
    font-size: 0.9rem;
    font-weight: 500;
}

.wholesale-shell-tabs__link.is-active,
.wholesale-brand-switcher__link.is-active {
    background: #030305;
    color: #ffffff;
}

.wholesale-shell-main {
    padding: 1.5rem;
}

.wholesale-shell-main--catalog {
    padding: 0 0 1.5rem;
}

.wholesale-auth-shell {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.8rem) 0 2.5rem;
}

.wholesale-auth-panel,
.wholesale-auth-card,
.wholesale-panel {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(3, 3, 5, 0.06);
    box-shadow: 0 10px 26px rgba(3, 3, 5, 0.045);
    padding: 1.5rem;
}

.wholesale-rep-page {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.wholesale-rep-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 196, 58, 0.24), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8f8fb 100%);
}

.wholesale-rep-hero__eyebrow,
.wholesale-rep-stat__label {
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e636d;
}

.wholesale-rep-hero__rate {
    display: grid;
    gap: 0.25rem;
    align-content: start;
    justify-items: end;
}

.wholesale-rep-hero__rate-label {
    font-size: 0.82rem;
    color: #6b707a;
}

.wholesale-rep-hero__rate strong,
.wholesale-rep-stat__value {
    font-size: clamp(1.45rem, 2.4vw, 2.3rem);
    font-weight: 470;
    line-height: 1;
}

.wholesale-rep-stat {
    display: grid;
    gap: 0.45rem;
    min-height: 100%;
}

.wholesale-rep-stat__note,
.wholesale-rep-page__count {
    color: #6b707a;
    font-size: 0.92rem;
}

.wholesale-rep-customer-card {
    display: grid;
    gap: 0.4rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(3, 3, 5, 0.07);
    border-radius: 18px;
    background: #fbfbfc;
}

.wholesale-rep-customer-card__title {
    font-size: 1rem;
    font-weight: 470;
    line-height: 1.2;
}

.wholesale-rep-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(3, 3, 5, 0.07);
}

.wholesale-rep-summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wholesale-auth-panel {
    padding: clamp(1.4rem, 2vw, 2.1rem);
}

.wholesale-auth-panel__intro {
    max-width: 720px;
}

.wholesale-auth-panel__intro h1 {
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 430;
    letter-spacing: 0.01em;
    line-height: 1.04;
}

.wholesale-auth-eyebrow {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(3, 3, 5, 0.06);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wholesale-auth-panel .lead {
    font-size: clamp(0.98rem, 1.45vw, 1.18rem);
    font-weight: 340;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: #6b707a;
}

.wholesale-auth-choice-card {
    border: 1px solid rgba(3, 3, 5, 0.06) !important;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(3, 3, 5, 0.035);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.wholesale-auth-choice-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(3, 3, 5, 0.05);
    border-color: rgba(3, 3, 5, 0.1) !important;
}

.wholesale-auth-choice-card h2 {
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.3rem, 1.85vw, 1.7rem);
    font-weight: 430;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #030305;
}

.wholesale-auth-choice-card p {
    font-size: 0.96rem;
    line-height: 1.5;
    color: #6b707a !important;
}

.wholesale-auth-section {
    display: grid;
    gap: 0.95rem;
}

.wholesale-auth-section + .wholesale-auth-section {
    padding-top: 1.35rem;
    border-top: 1px solid rgba(3, 3, 5, 0.07);
}

.wholesale-auth-section__label {
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e636d;
}

.wholesale-auth-label {
    margin-bottom: 0.38rem;
    font-size: 1rem;
    font-weight: 430;
    letter-spacing: 0.02em;
    color: #373a43;
}

.wholesale-auth-control {
    min-height: 3rem;
    border-radius: 14px;
    border-color: rgba(3, 3, 5, 0.1);
    padding-inline: 0.95rem;
    box-shadow: none;
}

.wholesale-auth-control:focus,
.wholesale-auth-panel .form-check-input:focus {
    border-color: rgba(3, 3, 5, 0.25);
    box-shadow: 0 0 0 0.24rem rgba(3, 3, 5, 0.08);
}

.wholesale-auth-panel .form-select.wholesale-auth-control {
    padding-right: 2.5rem;
}

.wholesale-auth-panel .form-text {
    margin-top: 0.38rem;
    font-size: 0.76rem;
    font-weight: 360;
    color: #6b707a;
}

.wholesale-auth-inline-toggle .form-check-input {
    margin-top: 0;
}

.wholesale-auth-btn {
    min-height: 3rem;
    min-width: 210px;
    border-radius: 14px;
    font-family: "Rubik", sans-serif;
    font-size: 0.98rem;
    font-weight: 470;
    letter-spacing: 0.01em;
}

.wholesale-auth-btn--primary {
    box-shadow: 0 10px 20px rgba(3, 3, 5, 0.12);
}

.wholesale-auth-actions {
    padding-top: 0.35rem;
}

.wholesale-auth-actions .small,
.wholesale-auth-panel .small {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.wholesale-preview-banner {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    margin: 0;
    max-width: min(420px, calc(100vw - 2.5rem));
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    background: rgba(255, 255, 255, 0.82);
    color: #030305;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(3, 3, 5, 0.1);
}

.wholesale-welcome-shell {
    display: grid;
    gap: 1.4rem;
}

.wholesale-welcome-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.35rem;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(255, 196, 58, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 249, 0.95));
}

.wholesale-welcome-hero__icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f8d46;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 16px 32px rgba(47, 141, 70, 0.18);
}

.wholesale-welcome-hero__eyebrow {
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e636d;
    margin-bottom: 0.55rem;
}

.wholesale-welcome-hero h1 {
    margin: 0;
    font-family: "Rubik", sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 430;
    line-height: 1.02;
    letter-spacing: 0.01em;
    color: #030305;
}

.wholesale-welcome-hero p {
    margin: 0.7rem 0 0;
    max-width: 56rem;
    font-size: 1rem;
    font-weight: 350;
    line-height: 1.55;
    color: #666b75;
}

.wholesale-welcome-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wholesale-welcome-card {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-height: 100%;
}

.wholesale-welcome-card__content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.wholesale-welcome-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.wholesale-welcome-card--certificate .wholesale-welcome-card__icon {
    background: rgba(255, 196, 58, 0.2);
    color: #a86d00;
}

.wholesale-welcome-card--catalog .wholesale-welcome-card__icon {
    background: rgba(47, 141, 70, 0.14);
    color: #2f8d46;
}

.wholesale-welcome-card--profile .wholesale-welcome-card__icon {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.wholesale-welcome-card__content h2 {
    margin: 0 0 0.55rem;
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 430;
    line-height: 1.08;
    color: #030305;
}

.wholesale-welcome-card__content p {
    margin: 0 0 1rem;
    font-size: 0.96rem;
    line-height: 1.52;
    color: #666b75;
}

.wholesale-welcome-card__action {
    margin-top: auto;
    padding-inline: 1rem;
    border-radius: 10px;
    font-family: "Rubik", sans-serif;
    font-weight: 470;
}

.wholesale-catalog-toolbar {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 1.25rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
    padding: 0.9rem 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(3, 3, 5, 0);
    background: rgba(243, 243, 245, 0);
    backdrop-filter: blur(0);
    box-shadow: none;
    transition:
        background 500ms ease,
        border-color 500ms ease,
        box-shadow 500ms ease,
        backdrop-filter 500ms ease;
}

.wholesale-catalog-toolbar.is-scrolled {
    border-bottom-color: rgba(3, 3, 5, 0.08);
    background: rgba(243, 243, 245, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(3, 3, 5, 0.08);
}

.wholesale-catalog-toolbar__start,
.wholesale-catalog-toolbar__end {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wholesale-catalog-toolbar__start {
    justify-self: start;
}

.wholesale-tier-copy {
    justify-self: center;
}

.wholesale-catalog-toolbar__end {
    justify-self: end;
}

.wholesale-catalog-toolbar__start {
    background: rgba(255, 255, 255, 0);
    border-radius: 22px;
    padding: 0.2rem;
    transition: background 500ms ease;
}

.wholesale-catalog-toolbar__start.is-scrolled {
    background: rgba(255, 255, 255, 0.8);
}

.wholesale-catalog-nav .wholesale-catalog-nav__link,
.wholesale-account-menu__toggle,
.wholesale-catalog-total__bubble,
.wholesale-catalog-checkout-bubble {
    border-radius: 10px;
}

.wholesale-catalog-nav {
    display: flex;
    flex-wrap: nowrap;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    font-family: "Rubik", sans-serif;
    font-size: clamp(9px, 1.1vw, 19px);
    font-weight: 430;
    color: #fff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    padding: 0.45rem 1.05rem;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link:hover,
.wholesale-catalog-nav .wholesale-catalog-nav__link:focus {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
}

.wholesale-account-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    min-width: 34px;
    min-height: 34px;
    padding: 0.2rem 0.45rem;
    font-size: 1.35rem;
    line-height: 1;
    color: #eef4ff;
    background: #14325f;
    border-color: #14325f;
    box-shadow: 0 10px 20px rgba(20, 50, 95, 0.2);
}

.wholesale-account-menu__toggle::after {
    display: none;
}

.wholesale-account-menu__toggle:hover,
.wholesale-account-menu__toggle:focus,
.wholesale-account-menu__toggle:active {
    color: #ffffff;
    background: #1a427d;
    border-color: #1a427d;
}

.wholesale-tier-copy {
    display: grid;
    gap: 0.18rem;
    justify-items: center;
    text-align: center;
}

.wholesale-tier-copy__tier {
    transition: color 180ms ease;
}

.wholesale-tier-copy__tier--reached {
    color: #2f8d46;
}

.wholesale-tier-copy__tier--next {
    color: #030305;
}

.wholesale-tier-copy__tier--future {
    color: #9e9e9e;
}

.wholesale-tier-copy strong {
    font-weight: 460;
}

.wholesale-tier-copy__mobile {
    display: none;
}

.wholesale-catalog-minimum-order__label--mobile {
    display: none;
}

@media (max-width: 1130px) {
    .wholesale-tier-copy__desktop {
        display: none;
    }

    .wholesale-tier-copy__mobile {
        display: inline;
    }

    .wholesale-catalog-minimum-order__label--desktop {
        display: none;
    }

    .wholesale-catalog-minimum-order__label--mobile {
        display: inline;
    }

    .wholesale-catalog-total__label {
        display: none;
    }
}

.wholesale-catalog-total {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.wholesale-catalog-checkout-cta {
    display: flex;
    align-items: center;
}

.wholesale-catalog-checkout-cta.is-minimum-reached .wholesale-catalog-minimum-order {
    display: none;
}

.wholesale-catalog-checkout-cta.is-minimum-unreached .wholesale-catalog-checkout-bubble {
    display: none;
}

.wholesale-catalog-total__label {
    font-size: 1.05rem;
    font-weight: 300;
    color: #757575;
}

.wholesale-catalog-total__bubble,
.wholesale-catalog-checkout-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    font-weight: 470;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(3, 3, 5, 0.12);
}

.wholesale-money {
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
    white-space: nowrap;
}

.wholesale-money__sign,
.wholesale-money__symbol,
.wholesale-money__whole {
    display: inline-block;
}

.wholesale-money__cents {
    font-size: 0.48em;
    line-height: 1;
    vertical-align: super;
    margin-left: 0.06em;
    top: -0.08em;
    position: relative;
}

.wholesale-money-range-separator {
    color: currentColor;
    opacity: 0.72;
}

.wholesale-catalog-total__bubble .wholesale-money__cents {
    font-size: 0.42em;
}

.wholesale-catalog-total__bubble {
    background: #2f8d46;
    color: #fff;
    font-size: clamp(1.15rem, 1.55vw, 1.65rem);
    letter-spacing: -0.03em;
}

.wholesale-catalog-checkout-bubble {
    background: #ffc43a;
    color: #2f2410;
    font-size: 1.15rem;
}

.wholesale-catalog-minimum-order {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    background: rgba(255, 196, 58, 0.18);
    color: #2f2410;
}

.wholesale-catalog-minimum-order__label {
    font-size: 0.82rem;
    font-weight: 360;
    line-height: 1.1;
}

.wholesale-catalog-minimum-order__amount {
    font-size: 1.2rem;
    font-weight: 480;
    line-height: 1;
}

.wholesale-catalog-minimum-order__amount .wholesale-money__cents {
    font-size: 0.42em;
}

.wholesale-catalog-checkout-bubble:hover,
.wholesale-catalog-checkout-bubble:focus {
    color: #2f2410;
    background: #ffcf5c;
    text-decoration: none;
}

.wholesale-catalog-list {
    display: grid;
    gap: 2rem;
    padding: 0 1.5rem;
}

.wholesale-product-row {
    display: grid;
    grid-template-columns: minmax(280px, 30%) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #f1f1f1;
    padding: 1rem;
    border-radius: 24px;
}

.wholesale-product-row:nth-child(odd) {
    background: #f3f3f5;
}

.wholesale-product-card {
    position: sticky;
    top: var(--wholesale-catalog-sticky-offset);
    align-self: start;
    z-index: 2;
    background: transparent;
    border-radius: 24px;
    padding: 1rem;
}

.wholesale-product-card__sticky {
    position: static;
    top: auto;
    z-index: auto;
}

.wholesale-product-card__primary {
    display: grid;
    gap: 0.85rem;
}

.wholesale-product-card__content {
    display: grid;
    gap: 0.45rem;
}

.wholesale-product-card h2 {
    margin: 0.95rem 0 0.35rem;
    font-family: "Rubik", sans-serif;
    font-size: clamp(12px, 2.6vw, 26px);
    font-weight: 360;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.wholesale-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.45rem;
}

.wholesale-product-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.wholesale-product-msrp {
    color: #7a7f88;
    font-size: 0.92rem;
    font-weight: 500;
}

.wholesale-product-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
    margin-top: 0.85rem;
}

.wholesale-product-gallery__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.wholesale-product-gallery__thumb:hover,
.wholesale-product-gallery__thumb:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 10px 26px rgba(3, 3, 5, 0.16);
}

.wholesale-product-gallery__thumb-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wholesale-product-card__image-wrap {
    overflow: hidden;
}

.wholesale-image-modal-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.wholesale-product-card__image-trigger,
.wholesale-family-card__image-trigger {
    width: fit-content;
    max-width: 100%;
}

.wholesale-family-card__image-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wholesale-product-card__image-debug {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.44);
    color: #6d737d;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.wholesale-family-card__image-debug {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(150px, 100%);
    min-height: 150px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.44);
    color: #6d737d;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.wholesale-image-debug-output {
    width: 100%;
    min-width: 0;
    min-height: 200px;
    height: 200px;
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(3, 3, 5, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: #030305;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.35;
    resize: vertical;
}

.wholesale-product-card__gradient {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.1), transparent);
}

.wholesale-product-card__image,
.wholesale-variant-card__image {
    width: 100%;
    height: auto;
    display: block;
}

.wholesale-product-variants {
    display: grid;
    gap: 1.65rem;
    justify-items: start;
}

.wholesale-family-card {
    display: grid;
    grid-template-columns: minmax(220px, 260px) max-content;
    justify-content: start;
    gap: 1.5rem;
    align-items: start;
    padding: 0.35rem 0;
}

.wholesale-family-card__media {
    display: grid;
    width: min(250px, 100%);
    justify-items: center;
    justify-self: center;
    text-align: center;
    gap: 0.5rem;
}

.wholesale-family-card__content {
    display: grid;
    align-items: start;
    justify-items: end;
    justify-self: end;
}

.wholesale-family-card__image {
    width: 150px;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 150px;
}

.wholesale-gallery-modal__dialog {
    max-width: min(1100px, calc(100vw - 1.5rem));
}

.wholesale-gallery-modal__content {
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 80px rgba(3, 3, 5, 0.22);
}

.wholesale-gallery-modal__header {
    border-bottom: 0;
    padding: 0.85rem 1rem 0;
}

.wholesale-gallery-modal__title {
    font-family: "Rubik", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wholesale-gallery-modal__body {
    padding: 0.5rem 1rem 1rem;
}

.wholesale-gallery-modal__carousel {
    border-radius: 14px;
    overflow: hidden;
    background: #eef0f4;
}

.wholesale-gallery-modal__inner {
    min-height: min(78vh, 860px);
}

.wholesale-gallery-modal__carousel .carousel-item {
    min-height: min(78vh, 860px);
    padding: 1rem;
}

.wholesale-gallery-modal__image {
    max-height: min(74vh, 820px);
    object-fit: contain;
    object-position: center;
}

.wholesale-gallery-modal__control {
    width: 12%;
}

.wholesale-gallery-modal__control .carousel-control-prev-icon,
.wholesale-gallery-modal__control .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background-color: rgba(3, 3, 5, 0.44);
    background-size: 58%;
}

.wholesale-gallery-modal__indicators {
    margin-bottom: 1.2rem;
    gap: 0.42rem;
}

.wholesale-gallery-modal__indicators [data-bs-target] {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background-color: rgba(3, 3, 5, 0.28);
    border-top: 0;
    border-bottom: 0;
}

.wholesale-gallery-modal__indicators .active {
    background-color: rgba(3, 3, 5, 0.72);
}

@media (max-width: 767.98px) {
    .wholesale-product-gallery {
        gap: 0.4rem;
    }
}

.wholesale-family-card__details {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.wholesale-family-card__title {
    font-size: clamp(18px, 1.5vw, 90px);
    font-weight: 440;
    line-height: 1.2;
}

.wholesale-family-card__price {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 380;
    letter-spacing: 0.02em;
    color: #030305;
}

.wholesale-family-card__price-stack {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.wholesale-family-card__price-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.35rem 1rem;
    border-radius: 14px;
    background: #ffc43a;
    color: #2f2410;
    font-size: clamp(12px, 2.3vw, 30px);
    font-weight: 600;
    line-height: 1;
}

.wholesale-price--sale {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: #999999;
    font-weight: 460;
}

.wholesale-price--sale span {
    color: #999999;
}

.wholesale-price--sale s {
    color: #999999;
    text-decoration: line-through;
}

.wholesale-price--sale s .wholesale-money,
.wholesale-price--sale s .wholesale-money__sign,
.wholesale-price--sale s .wholesale-money__symbol,
.wholesale-price--sale s .wholesale-money__whole,
.wholesale-price--sale s .wholesale-money__cents {
    color: inherit;
    text-decoration: inherit;
}

.wholesale-family-card__controls {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    justify-self: end;
    width: max-content;
}

.wholesale-size-row {
    display: grid;
    grid-template-columns: minmax(40px, 56px) minmax(126px, 142px) 72px;
    align-items: center;
    gap: 0.7rem;
}

.wholesale-size-row__label {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1;
    text-align: right;
    letter-spacing: -0.03em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wholesale-size-row__notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: auto;
    max-width: 72px;
    min-height: 30px;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #6c6c6c;
    color: #F3F3F5;
    font-size: clamp(8px, 1vw, 15px);
    font-weight: 420;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.wholesale-size-row__notice--hidden {
    opacity: 0;
    transform: translateY(2px);
}

.wholesale-size-row__notice--visible {
    opacity: 1;
    transform: translateY(0);
}

.wholesale-quantity-form--catalog {
    display: grid;
    grid-template-columns: 38px minmax(50px, 66px) 38px;
    gap: 0;
    align-items: stretch;
}

.wholesale-quantity-form__button,
.wholesale-quantity-form__input {
    min-height: 32px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.wholesale-quantity-form__button {
    background: #e6e6e6;
    color: #a6a6a6;
    font-size: 1.55rem;
    line-height: 1;
    padding: 0;
}

.wholesale-quantity-form__button:first-of-type {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.wholesale-quantity-form__button:last-of-type {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.wholesale-quantity-form__button:hover,
.wholesale-quantity-form__button:focus {
    background: #dadada;
    color: #030305;
}

.wholesale-quantity-form__button:disabled,
.wholesale-quantity-form__input:disabled {
    background: #d3d3d3;
    color: #8d8d8d;
}

.wholesale-quantity-form__input {
    background: #ffffff;
    text-align: center;
    font-size: 1.23rem;
    font-weight: 460;
    padding: 0.08rem 0.35rem;
    appearance: textfield;
    -moz-appearance: textfield;
}

.wholesale-quantity-form__input::-webkit-outer-spin-button,
.wholesale-quantity-form__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wholesale-quantity-form__input:focus {
    border: 0;
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.16);
}

.wholesale-family-card__subtotal {
    display: grid;
    grid-template-columns: minmax(40px, 56px) minmax(126px, 142px) 72px;
    justify-content: initial;
    align-items: baseline;
    gap: 0.55rem;
    margin-top: 0.35rem;
    color: #8f8f93;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 1;
    transition: opacity 220ms ease;
}

.wholesale-family-card__subtotal--empty {
    opacity: 0;
}

.wholesale-family-card__subtotal span,
.wholesale-family-card__subtotal strong {
    grid-column: 2;
}

.wholesale-family-card__subtotal span {
    display: inline-flex;
    align-items: baseline;
    justify-self: center;
    gap: 0.55rem;
    white-space: nowrap;
    font-weight: 480;
}

.wholesale-family-card__subtotal strong {
    font-size: clamp(1.32rem, 1.92vw, 1.88rem);
    font-weight: 520;
    letter-spacing: -0.04em;
    color: #7c7d80;
}

.wholesale-family-card__subtotal strong .wholesale-money,
.wholesale-family-card__subtotal strong .wholesale-money__sign,
.wholesale-family-card__subtotal strong .wholesale-money__symbol,
.wholesale-family-card__subtotal strong .wholesale-money__whole,
.wholesale-family-card__subtotal strong .wholesale-money__cents {
    font-weight: 448;
}

@media (max-width: 991.98px) {
    .wholesale-welcome-grid {
        grid-template-columns: 1fr;
    }

    .wholesale-shell-main--catalog {
        padding-bottom: 1rem;
    }

    .wholesale-catalog-page {
        padding-top: 8.75rem;
    }

    .wholesale-catalog-toolbar,
    .wholesale-catalog-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .wholesale-catalog-nav {
        flex-wrap: wrap;
    }

    .wholesale-catalog-toolbar__start,
    .wholesale-tier-copy,
    .wholesale-catalog-toolbar__end {
        justify-content: flex-start;
        justify-self: stretch;
        flex-wrap: wrap;
    }

    .wholesale-tier-copy {
        display: grid;
        justify-items: start;
        text-align: left;
    }

    .wholesale-product-card {
        position: static;
        top: auto;
    }

    .wholesale-product-card__sticky {
        position: static;
        top: auto;
        z-index: auto;
    }

    .wholesale-welcome-hero {
        grid-template-columns: 1fr;
    }

    .wholesale-welcome-hero__icon {
        width: 68px;
        height: 68px;
    }

    .wholesale-shell-main {
        padding: 1rem;
    }

    .wholesale-auth-shell {
        padding: 0 0 1.5rem;
    }

    .wholesale-auth-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .wholesale-catalog-toolbar,
    .wholesale-catalog-list {
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .wholesale-catalog-toolbar,
    .wholesale-shell-header {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .wholesale-gallery-modal__body {
        padding: 0.35rem 0.75rem 0.75rem;
    }

    .wholesale-gallery-modal__inner,
    .wholesale-gallery-modal__carousel .carousel-item {
        min-height: 0;
    }

    .wholesale-gallery-modal__carousel .carousel-item {
        padding: 0.5rem 0.5rem 1.75rem;
    }

    .wholesale-gallery-modal__image {
        max-height: min(62vh, 420px);
    }

    .wholesale-gallery-modal__indicators {
        margin-bottom: 0.55rem;
    }

    .wholesale-catalog-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "start start"
            "tiers end";
        align-items: start;
        gap: 0.75rem 0.85rem;
    }

    .wholesale-catalog-toolbar__start {
        grid-area: start;
        justify-self: stretch;
    }

    .wholesale-tier-copy {
        grid-area: tiers;
        justify-self: start;
        align-self: center;
    }

    .wholesale-catalog-toolbar__end {
        grid-area: end;
        justify-self: end;
        align-self: center;
        gap: 0.6rem;
    }

    .wholesale-product-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.85rem;
    }

    .wholesale-product-card {
        padding: 0.35rem;
    }

    .wholesale-product-card__primary {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: start;
        gap: 0.9rem;
    }

    .wholesale-product-card__image-trigger {
        width: 100%;
    }

    .wholesale-product-card h2 {
        margin: 0;
        text-align: center;
        font-size: clamp(15px, 4.8vw, 22px);
    }

    .wholesale-product-meta,
    .wholesale-product-tags {
        justify-content: center;
    }

    .wholesale-product-gallery {
        margin-top: 0.15rem;
        gap: 0.4rem;
    }

    .wholesale-family-card {
        grid-template-columns: minmax(140px, 46vw) minmax(0, 1fr);
        gap: 1.35rem;
    }

    .wholesale-family-card__media {
        width: 100%;
        justify-items: center;
        text-align: center;
    }

    .wholesale-family-card__image-trigger {
        width: 46vw;
    }

    .wholesale-family-card__content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        justify-items: stretch;
    }

    .wholesale-family-card__details,
    .wholesale-family-card__price-stack {
        justify-items: center;
        text-align: center;
    }

    .wholesale-family-card__image {
        width: 100%;
        max-height: 230px;
    }

    .wholesale-family-card__controls {
        justify-self: stretch;
        width: 100%;
    }

    .wholesale-size-row {
        grid-template-columns: minmax(34px, 48px) minmax(108px, 128px) 64px;
        gap: 0.5rem;
        width: 100%;
        justify-items: stretch;
    }

    .wholesale-size-row__label {
        font-size: clamp(1rem, 4vw, 1.2rem);
        text-align: right;
    }

    .wholesale-size-row__notice {
        max-width: 64px;
        justify-self: start;
    }

    .wholesale-family-card__subtotal {
        grid-template-columns: minmax(34px, 48px) minmax(108px, 128px) 64px;
        margin-top: 0.1rem;
        text-align: initial;
        justify-content: initial;
    }

    .wholesale-family-card__subtotal span,
    .wholesale-family-card__subtotal strong {
        grid-column: 2;
        justify-self: center;
    }
}

/* Phase 18.1 — Skip-to-main-content link. Purely additive —
   does not touch the existing portal chrome per Decision 6.
   Same visually-hidden-until-focused pattern as the admin
   skip link, but in the portal's own color palette (Gruff
   Pup yellow on dark text, matching the existing
   `.wholesale-shell-brand__badge` token). The target is
   `<main id="wholesale-portal-main">` set by
   `WholesalePortalLayout.php`. */
.wholesale-skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1080;
    padding: 0.6rem 1rem;
    background: #ffc43a;
    color: #030305;
    border: 2px solid #030305;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.wholesale-skip-link:focus,
.wholesale-skip-link:focus-visible {
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
    white-space: normal;
    outline: 2px solid #030305;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px #f3f3f5;
}

/* Suppress the `<main>` focus ring so the user doesn't see a
   giant yellow box around the catalog after activating the
   skip link. Inner elements keep their own focus rings. */
#wholesale-portal-main:focus,
#wholesale-portal-main:focus-visible {
    outline: none;
    box-shadow: none;
}
