.marketplace-inner-page {
    min-width: 320px;
    background: var(--wash) !important;
    color: var(--ink);
}

/* Brand type system on marketplace pages: body = Hellix, headings = Archivo (the approved stand-in
   for Acumin), headings in sentence case.
   This layout also loads the legacy design.css/colors.css, which forces Roboto through three
   variables (--fonts body, --h-fonts headings, --i-fonts) using !important, and Title Case on every
   heading. Re-pointing those same variables is the most robust override: whatever reads them (the
   body, every heading, the .fonts/.h-fonts/.i-fonts utilities, the translate widget) follows, and
   it does not depend on stylesheet order or an !important fight. */
body.marketplace-inner-page {
    --fonts: var(--ui);
    --i-fonts: var(--ui);
    --h-fonts: var(--display);
}

/* Specificity (0,0,2) beats the legacy heading rule (0,0,1) but still yields to a component's own
   text-transform, so intentionally uppercase headings keep working. */
body:where(.marketplace-inner-page) :is(h1, h2, h3, h4, h5, h6) { text-transform: none; }

.saved-shopping-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.saved-product-card, .followed-seller-card { border: 1px solid var(--market-border, #e6e0e7); border-radius: 1.25rem; background: #fff; overflow: hidden; }
.saved-product-card__media { display: block; aspect-ratio: 1; background: #f7f3f7; }
.saved-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.saved-product-card__body { display: grid; gap: .65rem; padding: 1rem; }
.saved-product-card__body h2, .followed-seller-card h2 { margin: 0; font-size: 1rem; }
.saved-product-card__body p, .followed-seller-card p { margin: 0; color: var(--market-muted, #6d6670); }
.followed-seller-list { display: grid; gap: .85rem; }
.followed-seller-card { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem; }
.followed-seller-card > img { width: 4rem; height: 4rem; border-radius: 1rem; object-fit: cover; background: #f7f3f7; }
@media (max-width: 760px) {
    .saved-shopping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .followed-seller-card { grid-template-columns: 3.5rem minmax(0, 1fr); }
    .followed-seller-card .market-button { grid-column: 1 / -1; }
}

.marketplace-inner-page .market-header,
.marketplace-inner-page .market-footer {
    font-family: var(--ui);
}

.marketplace-inner-page .marketplace-page-content {
    min-height: 56vh;
    padding-block: clamp(28px, 5vw, 64px);
}

.marketplace-inner-page h1,
.marketplace-inner-page h2,
.marketplace-inner-page h3,
.marketplace-inner-page h4,
.marketplace-inner-page h5,
.marketplace-inner-page h6 {
    color: var(--ink);
    font-family: var(--display);
    font-weight: 720;
    letter-spacing: -0.025em;
}

.marketplace-inner-page button,
.marketplace-inner-page input,
.marketplace-inner-page select,
.marketplace-inner-page textarea {
    font-family: var(--ui);
}

.marketplace-inner-page a {
    text-decoration: none;
}

.market-header__mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
}

.market-header__mobile-toggle .icon-phosphor {
    font-size: 22px;
}

.market-header__cart-icon {
    position: relative;
    display: inline-flex;
}

.market-header__cart-icon .cart-counter-span:not(:empty) {
    position: absolute;
    top: -8px;
    right: -10px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding-inline: 4px;
    border-radius: 999px;
    background: var(--magenta);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.page-shell {
    width: var(--shell);
    margin-inline: auto;
}

.page-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: clamp(24px, 4vw, 42px);
}

.page-intro__copy {
    max-width: 760px;
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 0.98;
}

.page-intro p {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--body);
    font-size: clamp(16px, 1.6vw, 19px);
}

/* FAQ */
.faq-page {
    display: grid;
    gap: clamp(24px, 4vw, 42px);
}

.faq-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.faq-intro__copy {
    max-width: 760px;
}

.faq-intro h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .94;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.faq-intro p {
    max-width: 58ch;
    margin: 18px 0 0;
    color: var(--body);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.45;
}

.faq-board {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr);
    gap: clamp(24px, 5vw, 72px);
    min-width: 0;
    padding: clamp(26px, 5vw, 64px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.faq-board > * {
    min-width: 0;
}

.faq-board__aside {
    align-self: start;
    max-width: 260px;
}

.faq-board__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 25px;
}

.faq-board__aside h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1;
}

.faq-board__aside p {
    margin: 14px 0 0;
    color: var(--body);
    font-size: 16px;
    line-height: 1.5;
}

.faq-list {
    min-width: 0;
    border-top: 1px solid var(--line);
}

.faq-item {
    min-width: 0;
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 18px 0;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--ui);
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 650;
    line-height: 1.25;
    list-style: none;
}

.faq-item summary > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:focus-visible {
    outline: 3px solid rgba(105, 45, 112, .24);
    outline-offset: 6px;
    border-radius: 8px;
}

.faq-item__icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--purple-800);
    font-size: 18px;
    transition: transform var(--motion-duration-fast) var(--ease-out-smooth),
                background var(--motion-duration-fast) ease;
}

.faq-item[open] .faq-item__icon {
    background: var(--wash);
    transform: rotate(45deg);
}

.faq-item__answer {
    width: 100%;
    max-width: 58ch;
    min-width: 0;
    padding: 0;
    color: var(--body);
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: normal;
}

.faq-item[open] .faq-item__answer {
    padding-bottom: 24px;
    animation: faq-answer-in 220ms var(--ease-out-smooth) both;
}

.faq-item__answer p {
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    text-wrap: pretty;
}

.faq-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: clamp(44px, 8vw, 88px) 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    text-align: center;
}

.faq-state .icon-phosphor {
    color: var(--purple-800);
    font-size: 38px;
}

.faq-state h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.faq-state p {
    max-width: 48ch;
    margin: 0;
    color: var(--body);
    line-height: 1.5;
}

@keyframes faq-answer-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .faq-intro {
        display: grid;
        align-items: start;
        gap: 20px;
    }

    .faq-intro .market-button {
        justify-self: start;
    }

    .faq-board {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
        border-radius: 22px;
    }

    .faq-board__aside {
        max-width: 42ch;
    }

    .faq-board__mark {
        margin-bottom: 16px;
    }

    .faq-item summary {
        min-height: 70px;
        gap: 14px;
        font-size: 17px;
    }

    .faq-item__answer {
        max-width: 100%;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item__icon,
    .faq-item[open] .faq-item__answer {
        animation: none;
        transition: none;
    }
}

/* Contact */
.contact-page {
    display: grid;
    gap: clamp(28px, 5vw, 56px);
}

.contact-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.contact-intro__copy {
    max-width: 720px;
}

.contact-intro h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .95;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.contact-intro p {
    max-width: 56ch;
    margin: 18px 0 0;
    color: var(--body);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.45;
    text-wrap: pretty;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: start;
}

.contact-form-card,
.contact-side {
    min-width: 0;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.contact-form-card {
    display: grid;
    gap: 24px;
}

.contact-form-card h2,
.contact-side h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1;
}

.contact-form-card > p,
.contact-side > p {
    margin: 0;
    color: var(--body);
    line-height: 1.55;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field {
    position: relative;
    display: grid;
    min-width: 0;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    line-height: 1.4;
    outline: none;
    transition: border-color var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease, background var(--motion-duration-fast) ease;
}

.contact-field input {
    height: 58px;
    padding: 22px 16px 7px;
}

.contact-field textarea {
    min-height: 150px;
    padding: 24px 16px 10px;
    resize: vertical;
}

.contact-field span {
    position: absolute;
    top: 18px;
    left: 16px;
    max-width: calc(100% - 32px);
    overflow: hidden;
    color: var(--muted);
    pointer-events: none;
    text-overflow: ellipsis;
    transition: top var(--motion-duration-fast) var(--ease-out-smooth), color var(--motion-duration-fast) ease, font-size var(--motion-duration-fast) var(--ease-out-smooth);
    white-space: nowrap;
}

.contact-field textarea + span {
    top: 20px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--purple-800);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(107, 30, 116, .11);
}

.contact-field input:focus + span,
.contact-field input:not(:placeholder-shown) + span,
.contact-field textarea:focus + span,
.contact-field textarea:not(:placeholder-shown) + span {
    top: 7px;
    color: var(--purple-800);
    font-size: 12px;
    font-weight: 650;
}

.contact-field textarea:focus + span,
.contact-field textarea:not(:placeholder-shown) + span {
    top: 8px;
}

.contact-field-error {
    display: block;
    margin-top: -8px;
    color: #9b2c48;
    font-size: 13px;
}

.contact-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.contact-form__hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.contact-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.contact-side {
    display: grid;
    gap: 22px;
    background: var(--purple-950);
    color: var(--paper);
}

.contact-side h2 {
    color: var(--paper);
}

.contact-side > p {
    color: rgba(255, 253, 251, .76);
}

.contact-side__mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    background: rgba(255, 253, 251, .12);
    color: var(--orange);
    font-size: 26px;
}

.contact-paths {
    display: grid;
    gap: 10px;
}

.contact-path {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 253, 251, .18);
    color: var(--paper);
    transition: color var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth);
}

.contact-path:last-child {
    border-bottom: 1px solid rgba(255, 253, 251, .18);
}

.contact-path:hover {
    color: var(--orange);
    transform: translateX(4px);
}

.contact-path__icon {
    color: var(--orange);
    font-size: 21px;
}

.contact-path__copy {
    display: block;
    min-width: 0;
}

.contact-path__copy strong,
.contact-path__copy span {
    display: block;
}

.contact-path__copy strong {
    font-size: 15px;
}

.contact-path__copy span {
    margin-top: 2px;
    color: rgba(255, 253, 251, .68);
    font-size: 13px;
    line-height: 1.35;
}

.contact-path > .icon-phosphor {
    justify-self: end;
    font-size: 18px;
}

.contact-side__note {
    padding-top: 4px;
    color: rgba(255, 253, 251, .64);
    font-size: 13px;
    line-height: 1.5;
}

.contact-success {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(11, 122, 101, .2);
    border-radius: 18px;
    background: rgba(11, 122, 101, .08);
}

.contact-success .icon-phosphor {
    color: var(--success);
    font-size: 28px;
}

.contact-success h2,
.contact-success p {
    margin: 0;
}

.contact-success h2 {
    font-size: 22px;
}

.contact-success p {
    color: var(--body);
    line-height: 1.5;
}

@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-side {
        order: -1;
    }
}

@media (max-width: 560px) {
    .contact-intro {
        align-items: start;
        flex-direction: column;
        gap: 20px;
    }

    .contact-intro h1 {
        max-width: 10ch;
        font-size: clamp(44px, 13vw, 62px);
    }

    .contact-form-card,
    .contact-side {
        padding: 24px;
        border-radius: 22px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form__actions .market-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-field input,
    .contact-field textarea,
    .contact-field span,
    .contact-path {
        transition: none;
    }
}

.marketplace-cart-page .cart-intro {
    position: relative;
    min-height: 248px;
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    margin-bottom: clamp(32px, 5vw, 56px);
    padding: clamp(32px, 4.5vw, 56px) clamp(24px, 5vw, 72px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(55, 18, 61, .05);
}

.marketplace-cart-page .cart-intro::after {
    position: absolute;
    right: clamp(36px, 8vw, 150px);
    bottom: -155px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(107, 30, 116, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.marketplace-cart-page .cart-intro__copy {
    position: relative;
    z-index: 1;
    max-width: min(100%, 820px);
}

.marketplace-cart-page .cart-intro h1 {
    max-width: none;
    font-size: clamp(42px, 4.6vw, 60px);
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.marketplace-cart-page .cart-intro p {
    max-width: 54ch;
    margin-top: 18px;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.45;
}

.marketplace-cart-page .cart-intro > .market-button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: center;
}

.market-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--purple-800);
    border-radius: 14px;
    background: var(--purple-800);
    color: #fff !important;
    font-weight: 600;
    transition: transform var(--motion-duration-fast) var(--ease-out-smooth), background var(--motion-duration-fast) ease;
}

.market-button:hover {
    background: var(--purple-950);
    transform: translateY(-2px);
}

.market-button--secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink) !important;
}

.market-button--secondary:hover {
    border-color: var(--purple-600);
    background: #fff;
    color: var(--purple-800) !important;
}

.market-button--quiet {
    border-color: var(--line);
    background: #fff;
    color: var(--ink) !important;
}

.market-button--quiet:hover {
    border-color: var(--purple-600);
    background: var(--wash);
    color: var(--purple-800) !important;
}

.marketplace-logout-page .marketplace-page-content {
    display: grid;
    min-height: 44vh;
    align-items: center;
    padding-block: clamp(28px, 4vw, 52px);
}

.marketplace-session-page .marketplace-page-content {
    display: grid;
    min-height: 0;
    align-items: start;
    padding-block: clamp(28px, 4vw, 52px);
}

.session-shell {
    display: grid;
    place-items: center;
}

.session-notice {
    display: grid;
    width: min(100%, 680px);
    justify-items: center;
    gap: 18px;
    padding: clamp(34px, 5vw, 58px) clamp(24px, 6vw, 70px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(55, 18, 61, .05);
    text-align: center;
}

.session-notice__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 30px;
}

.session-notice h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.session-notice > p {
    max-width: 42ch;
    margin: 0;
    color: var(--body);
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.45;
}

.session-notice__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.session-notice__switch-form {
    display: contents;
}

.session-notice__hint {
    color: var(--muted) !important;
    font-size: 13px !important;
}

@media (max-width: 560px) {
    .session-notice {
        border-radius: 24px;
        padding: 34px 22px 38px;
    }

    .session-notice__actions,
    .session-notice__actions .market-button {
        width: 100%;
    }
}

.logout-shell {
    display: grid;
    place-items: center;
    padding-block: clamp(12px, 4vw, 32px);
}

.logout-card {
    display: grid;
    width: min(100%, 560px);
    justify-items: center;
    gap: 22px;
    padding: clamp(36px, 5vw, 56px) clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(55, 18, 61, .05);
    text-align: center;
}

.logout-card__logo {
    width: min(136px, 42vw);
    height: auto;
    margin-bottom: 2px;
}

.logout-card h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.logout-card > p {
    max-width: 34ch;
    margin: 0;
    color: var(--body);
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.45;
}

.logout-card__actions {
    display: grid;
    justify-items: center;
    gap: 0;
    margin-top: 2px;
}

@media (max-width: 560px) {
    .logout-card {
        border-radius: 24px;
        gap: 20px;
        padding: 34px 22px 36px;
    }

    .logout-card__actions,
    .logout-card__actions .market-button {
        width: 100%;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
}

[data-reveal].is-visible {
    animation: marketplace-reveal var(--motion-duration-deliberate) var(--ease-out-smooth) both;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes marketplace-reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Categories */
.category-directory-shell {
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.category-directory-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 160px;
    justify-content: center;
    color: var(--muted);
}

.category-directory-status .icon-phosphor {
    font-size: 26px;
}

.category-tree,
.category-tree ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-tree {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    /* A category with subcategories is taller than one without. Let each box keep its own height
       instead of stretching every box in the row to match the tallest one. */
    align-items: start;
}

.category-tree__group {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: border-color var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth), box-shadow var(--motion-duration-fast) ease;
}

.category-tree__group:hover {
    border-color: #d7bad8;
    box-shadow: 0 16px 30px rgba(55, 18, 61, 0.08);
    transform: translateY(-3px);
}

.category-tree__primary {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
}

.category-tree__media,
.category-tree__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 23px;
}

.category-tree__media {
    position: relative;
}

.category-tree__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tree__primary .icon-phosphor {
    color: var(--purple-800);
    font-size: 18px;
}

.category-tree__children {
    display: grid;
    gap: 8px;
    padding-top: 14px !important;
    margin-top: 14px !important;
    border-top: 1px solid var(--line);
}

.category-tree__children a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 4px;
    color: var(--body);
    font-size: 14px;
}

.category-tree__children a:hover {
    color: var(--purple-800);
}

.category-tree__grandchildren {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 5px !important;
}

.category-tree__grandchildren a {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--wash);
    color: var(--muted);
    font-size: 12px;
}

/* Search and shared product cards */
.marketplace-search-page .marketplace-page-content {
    padding-top: 36px;
}

.marketplace-search-page #lblshowingrecords,
.marketplace-search-page #lbltotalrecods,
.marketplace-search-page #lbltotalrecords,
.marketplace-search-page .list-grid span,
.marketplace-search-page .list-grid,
.marketplace-orders .customer-order__meta,
.marketplace-orders .customer-order-item span {
    color: #403846 !important;
}

.marketplace-product-page .d-compare,
.marketplace-product-page .unit,
.marketplace-product-page #lblskunumber,
.marketplace-product-page span[data-translate="sku"],
.marketplace-product-page span[data-translate="eancode"] {
    color: #161118 !important;
}

.marketplace-product-page #wordprice,
.marketplace-product-page .d-shipping-title {
    color: #2e2832 !important;
}

.marketplace-product-page .product-hero-layout--single > .detail-page > .row > .col-md-9 {
    width: 100%;
}

.marketplace-product-page .product-hero-layout--single > .detail-page > .row > .col-md-3 {
    display: none;
}

.marketplace-product-page .product-detail-sections,
.marketplace-product-page .product-detail-sections > .row,
.marketplace-product-page .product-detail-sections > .row > .col-md-9,
.marketplace-product-page .product-detail-sections > .row > .col-md-3,
.marketplace-product-page .product-detail-sections .detail-page,
.marketplace-product-page .product-detail-sections .c-product,
.marketplace-product-page .product-detail-sections .product-verticle {
    min-width: 0;
}

.marketplace-product-page .product-detail-sections {
    overflow-x: clip;
}

.marketplace-product-page .product-detail-sections,
.marketplace-product-page .product-detail-sections > .row,
.marketplace-product-page .product-detail-sections > .row > .col-md-9,
.marketplace-product-page .product-detail-sections > .row > .col-md-3,
.marketplace-product-page .product-detail-sections .detail-page,
.marketplace-product-page .product-detail-sections .tab-content {
    width: 100%;
    max-width: 100%;
}

.marketplace-product-page .product-detail-sections .detail-page {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.marketplace-product-page .product-detail-sections > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0 !important;
}

.marketplace-product-page .product-detail-sections > .row > .col-md-9,
.marketplace-product-page .product-detail-sections > .row > .col-md-3 {
    width: 100%;
    max-width: none;
    padding: 0 !important;
}

.marketplace-product-page .product-detail-sections > .row > .col-md-3 {
    display: block;
}

.marketplace-product-page .product-detail-sections .c-product > .product-box-8 > .row,
.marketplace-product-page .product-detail-sections .product-verticle > div > .row {
    margin-inline: 0 !important;
}

.marketplace-product-page .product-detail-sections .c-product .product-box-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.marketplace-product-page .product-detail-sections .product-verticle .product-box-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 1101px) {
    .marketplace-product-page .product-detail-sections > .row {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
        align-items: start;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .product-box-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .marketplace-product-page .product-detail-sections .product-verticle {
        padding: 18px !important;
    }

    .marketplace-product-page .product-detail-sections .product-verticle h3 {
        margin: 0 0 16px;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .product-box {
        min-width: 0;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .product-box > a:first-child {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        min-width: 0;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .p-img {
        width: 112px;
        height: 112px;
        aspect-ratio: auto;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .p-img img {
        object-fit: contain;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .p-data {
        min-width: 0;
        padding: 12px;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .p-title {
        min-height: 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .p-price {
        white-space: nowrap;
        font-size: 14px !important;
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.015em;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .p-action-btn {
        top: 8px;
        right: auto;
        left: 66px;
    }

    .marketplace-product-page .product-detail-sections .product-verticle .p-conditional_div {
        display: none;
    }
}

.marketplace-orders-page .orders-heading p {
    color: #2e2832;
}

.marketplace-search-page .search-category-box:focus-visible {
    outline: 3px solid rgba(105, 45, 112, .22);
    outline-offset: 3px;
}

.marketplace-search-page .search-page {
    display: grid;
    width: var(--shell);
    grid-template-columns: minmax(240px, 286px) minmax(0, 1fr);
    gap: 24px;
    margin-inline: auto;
}

.marketplace-search-page .search-page-intro {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

/* This page is a results/utility screen, not a landing page — the shared
   .page-intro h1 rule (clamp up to 68px) is sized for a marketing headline
   and reads oversized here. */
.marketplace-search-page .search-page-intro h1 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.08;
}

.marketplace-search-page .search-form-box {
    position: sticky;
    top: 18px;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: none;
}

.marketplace-search-page .search-form-box .form {
    padding: 20px;
}

.marketplace-search-page .search-form-box .top-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.marketplace-search-page .search-form-box .title-heading {
    color: var(--ink);
    font-family: var(--display);
    font-size: 20px;
    font-weight: 720;
}

.marketplace-search-page .search-form-box .back-btn {
    display: none;
}

.marketplace-search-page .searchbind {
    /* --line (#eadfe9) reads as almost invisible against this panel's background, so the
       divider alone did nothing to separate sections; the gap is widened and the rule
       darkened here, scoped to this panel only — --line itself is shared site-wide. */
    padding: 26px 0;
    border-bottom: 1px solid rgba(50, 22, 55, .1);
}

.marketplace-search-page .searchbind:first-child {
    padding-top: 4px;
}

.marketplace-search-page .searchbind:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.marketplace-search-page .searchbind .h5 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: var(--ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.marketplace-search-page .search-category-box,
.marketplace-search-page #productTypeCheckboxList,
.marketplace-search-page #sellingTypeCheckboxList,
.marketplace-search-page #ratingCheckboxList {
    display: grid;
    gap: 9px;
}

.marketplace-search-page .checkright > div > div,
.marketplace-search-page .search-category-box > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.marketplace-search-page input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--purple-800);
}

/* Subcategories sit under their main category: indent the whole row (checkbox included), not just the label. */
.marketplace-search-page .search-category-box > div:has(.searchcategory-level2) { padding-left: 22px; }
.marketplace-search-page .search-category-box > div:has(.searchcategory-level3) { padding-left: 44px; }
.marketplace-search-page .search-category-box > div:has(.searchcategory-level2) label,
.marketplace-search-page .search-category-box > div:has(.searchcategory-level3) label { color: var(--muted, #74627b); }

.marketplace-search-page .search-btn-box {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.marketplace-search-page .search-btn-box > div {
    padding: 11px 12px !important;
    border-color: var(--line) !important;
    border-radius: 12px !important;
}

.marketplace-search-page .pricing-box {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}

.marketplace-search-page .pricing-box input[type="text"] {
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.marketplace-search-page .pricing-box .go-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--purple-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/18px no-repeat;
}

.marketplace-search-page #price-error {
    display: block;
    margin-top: 8px;
    color: #a4253b;
    font-size: 12px;
}

.marketplace-search-page .search-data {
    min-width: 0;
    padding: 0 !important;
}

.marketplace-search-page .search-data .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.marketplace-search-page .search-data > #searchproduct > .container > .row {
    min-height: 54px;
    align-items: center;
    padding: 0 0 14px !important;
}

.marketplace-search-page .filter {
    display: none;
}

.marketplace-search-page .list-grid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.marketplace-inner-page #dvProductViewContainer .total,
.marketplace-inner-page .seller-products .total,
.marketplace-inner-page .related-products .total {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.marketplace-inner-page .product-box-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.marketplace-inner-page .product-box-wrapper > .block-item {
    width: auto;
    max-width: none;
    padding: 0 !important;
}

.marketplace-inner-page .product-box {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
    transition: transform var(--motion-duration-normal) var(--ease-out-smooth), box-shadow var(--motion-duration-normal) ease, border-color var(--motion-duration-normal) ease;
}

.marketplace-inner-page .product-box:hover {
    border-color: #d7bad8;
    box-shadow: 0 18px 38px rgba(55, 18, 61, 0.1);
    transform: translateY(-4px);
}

.marketplace-inner-page .product-box > a:first-child {
    display: block;
}

.marketplace-inner-page .product-box .p-img {
    aspect-ratio: 1 / 0.9;
    overflow: hidden;
    background: #f4eff4;
}

.marketplace-inner-page .product-box .p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--motion-duration-deliberate) var(--ease-out-smooth);
}

.marketplace-inner-page .product-box:hover .p-img img {
    transform: scale(1.035);
}

.marketplace-inner-page .product-box .p-data {
    padding: 14px 14px 12px;
}

.marketplace-inner-page .product-box .p-title {
    min-height: 44px;
    overflow: hidden;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.marketplace-inner-page .product-box .p-unit {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.marketplace-inner-page .product-box .p-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.marketplace-inner-page .product-box .p-badges span {
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--wash);
    color: var(--body);
    font-size: 10px;
    font-weight: 600;
}

.marketplace-inner-page .product-box .p-price {
    margin-top: 10px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 750;
}

.marketplace-inner-page .product-box .p-availability {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.marketplace-inner-page .product-box .p-availability-unavailable {
    color: #8a657f;
}

.marketplace-product-page .inventory-availability-note {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.marketplace-inner-page .product-box .p-old-p {
    color: var(--muted);
    font-family: var(--ui);
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
}

.marketplace-inner-page .product-box .p-action-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.marketplace-inner-page .product-box .p-action-btn > a:not(.product-wishlist) {
    display: none;
}

.marketplace-inner-page .product-box .product-wishlist {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--purple-800);
    box-shadow: 0 8px 18px rgba(55,18,61,.12);
}

.marketplace-inner-page .product-box .product-wishlist svg {
    width: 19px;
    height: 19px;
}

.marketplace-inner-page .product-box .p-conditional_div {
    padding: 0 14px 14px;
}

.marketplace-inner-page .product-box .p-cart {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    gap: 8px;
}

.marketplace-inner-page .product-box .qty {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.marketplace-inner-page .product-box .qty input {
    width: 42px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-align: center;
}

.marketplace-inner-page .product-box .product-buynow,
.marketplace-inner-page .product-box .product-addtocart {
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: var(--purple-800);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.marketplace-inner-page .product-box .product-addtocart {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    padding: 0;
    place-items: center;
}

.marketplace-inner-page .product-box .product-addtocart > span:not(.sr-only),
.marketplace-inner-page .product-box .product-addtocart > .cart {
    display: none;
}

.marketplace-inner-page .product-box .product-addtocart > .icon-phosphor {
    display: inline-flex;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.marketplace-inner-page .product-box .product-addtocart.loadingcart > .icon-phosphor {
    animation: marketplace-cart-pulse 700ms ease-out;
}

@keyframes marketplace-cart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

.marketplace-inner-page .product-box .product-buynow:disabled,
.marketplace-inner-page .product-box .product-addtocart:disabled,
.marketplace-inner-page .product-box .product-addtocart[disabled] {
    cursor: not-allowed;
    opacity: .48;
}

.marketplace-search-page #btnloadmore {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--ink);
    box-shadow: none !important;
}

/* Product detail */
.marketplace-product-page .marketplace-page-content {
    padding-top: 26px;
}

.marketplace-product-page .container {
    width: var(--shell);
    max-width: none;
}

.marketplace-product-page .detail-page {
    margin: 0 0 24px;
}

.marketplace-product-page .detail-page > .row {
    gap: 20px;
    flex-wrap: nowrap;
}

.marketplace-product-page .detail-page > .row > .col-md-9 {
    width: calc(75% - 10px);
}

.marketplace-product-page .detail-page > .row > .col-md-3 {
    width: calc(25% - 10px);
}

/* Seller panel: compact, scan-friendly treatment for the buyer-facing product page. */
.marketplace-product-page .marketplace-seller-card {
    display: grid;
    min-width: 0;
    gap: 20px;
    padding: 22px !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 24px !important;
    background: var(--paper, #fff) !important;
    color: var(--body);
    box-shadow: 0 14px 34px rgba(37, 15, 42, .06);
}

.marketplace-product-page .marketplace-seller-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.marketplace-product-page .marketplace-seller-card__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--wash);
    color: var(--purple-800);
}

.marketplace-product-page .marketplace-seller-card__icon .icon-phosphor {
    font-size: 22px;
}

.marketplace-product-page .marketplace-seller-card__header h2 {
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 19px;
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.marketplace-product-page .marketplace-seller-card__profile {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.marketplace-product-page .marketplace-seller-card__avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--wash);
}

.marketplace-product-page .marketplace-seller-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-product-page .marketplace-seller-card__identity {
    min-width: 0;
}

.marketplace-product-page .marketplace-seller-card__identity h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.marketplace-product-page .marketplace-seller-card__description {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.marketplace-product-page .marketplace-seller-card__actions {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.marketplace-product-page .marketplace-seller-card__secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.marketplace-product-page .marketplace-seller-card__action {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line) !important;
    border-radius: 13px !important;
    background: var(--paper, #fff) !important;
    color: var(--body) !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.15;
    text-align: center;
    transition: border-color var(--motion-duration-fast, 160ms) ease,
        background-color var(--motion-duration-fast, 160ms) ease,
        color var(--motion-duration-fast, 160ms) ease,
        transform var(--motion-duration-fast, 160ms) var(--ease-out-smooth, ease-out);
}

.marketplace-product-page .marketplace-seller-card__action .icon-phosphor {
    flex: 0 0 auto;
    font-size: 17px;
}

.marketplace-product-page .marketplace-seller-card__action:hover,
.marketplace-product-page .marketplace-seller-card__action:focus-visible {
    border-color: #c9a8cf !important;
    background: var(--wash) !important;
    color: var(--purple-800) !important;
    transform: translateY(-1px);
}

.marketplace-product-page .marketplace-seller-card__action--primary {
    border-color: var(--purple-800) !important;
    background: var(--purple-800) !important;
    color: #fff !important;
}

.marketplace-product-page .marketplace-seller-card__action--primary:hover,
.marketplace-product-page .marketplace-seller-card__action--primary:focus-visible {
    border-color: var(--purple-700, #6f237b) !important;
    background: var(--purple-700, #6f237b) !important;
    color: #fff !important;
}

.marketplace-product-page .marketplace-seller-card__availability {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--wash);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}

.marketplace-product-page .marketplace-seller-card__availability .icon-phosphor {
    flex: 0 0 auto;
    color: var(--purple-800);
    font-size: 16px;
}

.marketplace-product-page .marketplace-seller-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.marketplace-product-page .marketplace-seller-card__stats > div {
    min-width: 0;
    padding: 12px;
    background: var(--paper, #fff);
}

.marketplace-product-page .marketplace-seller-card__stats dt {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.marketplace-product-page .marketplace-seller-card__stats dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.marketplace-product-page .marketplace-seller-card__action:focus-visible,
.marketplace-product-page .marketplace-seller-card__availability:focus-visible {
    outline: 3px solid rgba(111, 35, 123, .22);
    outline-offset: 2px;
}

.marketplace-product-page .marketplace-seller-card .shop-btn,
.marketplace-product-page .marketplace-seller-card .chat-btn,
.marketplace-product-page .marketplace-seller-card .contact-btn {
    float: none;
    margin: 0;
}

.marketplace-product-page .detail,
.marketplace-product-page .detail-page > .row > .col-md-3 > * {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.marketplace-product-page .detail {
    padding: clamp(16px, 2vw, 26px);
}

.marketplace-product-page .breadcrumb {
    gap: 6px;
    padding: 0;
    margin-bottom: 20px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
}

.marketplace-product-page .detailslider2 {
    overflow: hidden;
    border-radius: 18px;
    background: var(--wash);
}

.marketplace-product-page .detailslider2 .swiper-slide {
    min-height: 420px;
}

.marketplace-product-page .detailslider2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marketplace-product-page .detailslider {
    margin-top: 10px;
}

.marketplace-product-page .detailslider .swiper-slide {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.marketplace-product-page .d-action-btn {
    position: static !important;
    z-index: auto !important;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.marketplace-product-page .d-action-btn > * {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--body);
    font-size: 12px;
}

.marketplace-product-page .d-action-btn svg {
    width: 18px;
    height: 18px;
}

.marketplace-product-page .type-name {
    display: inline-flex;
    margin: 10px 7px 0 0;
    color: var(--purple-800);
    font-size: 13px;
    font-weight: 600;
}

.marketplace-product-page .title {
    margin-top: 10px;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 740;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.marketplace-product-page .rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.marketplace-inner-page .product-purchase-panel {
    min-width: 0;
    padding-left: clamp(18px, 2.4vw, 34px) !important;
}

.marketplace-inner-page .product-purchase-panel .d-action-btn {
    margin-bottom: 18px;
}

.marketplace-inner-page .product-utility-action {
    cursor: pointer;
    transition: border-color var(--motion-duration-fast) ease,
        background-color var(--motion-duration-fast) ease,
        color var(--motion-duration-fast) ease,
        transform var(--motion-duration-fast) var(--ease-out-smooth);
}

.marketplace-inner-page .product-utility-action:hover {
    border-color: #d4b8d7;
    background: var(--wash);
    color: var(--purple-800);
    transform: translateY(-1px);
}

.marketplace-inner-page .product-utility-action--icon {
    width: 40px;
    padding: 0 !important;
    justify-content: center;
}

.marketplace-inner-page .product-utility-action--icon > a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: inherit;
}

.marketplace-inner-page .product-utility-action .icon-phosphor {
    font-size: 18px;
}

.marketplace-inner-page .product-title {
    max-width: 15ch;
    text-wrap: balance;
}

.marketplace-inner-page .product-meta-row {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.marketplace-inner-page .product-meta-chip {
    display: inline-flex;
    min-width: 0;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--body);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.marketplace-inner-page .product-meta-chip--accent {
    border-color: transparent;
    background: var(--wash);
    color: var(--purple-800);
}

.marketplace-inner-page .product-meta-chip--success {
    border-color: #cde7df;
    background: #eef8f5;
    color: #24705c;
}

.marketplace-inner-page .product-meta-chip__label {
    color: var(--muted);
    font-weight: 500;
}

.marketplace-inner-page .product-meta-chip .icon-phosphor {
    flex: 0 0 auto;
    font-size: 16px;
}

.marketplace-inner-page .product-summary {
    max-width: 62ch;
    margin: 18px 0 0;
    color: var(--body);
    font-size: 15px;
    line-height: 1.65;
}

.marketplace-product-page .d-price,
.marketplace-product-page .price {
    margin-block: 18px;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 780;
}

.marketplace-inner-page .product-price-block {
    display: grid;
    gap: 7px;
    margin: 24px 0;
    font-family: var(--ui);
    font-size: 14px;
    font-weight: 500;
}

.marketplace-inner-page .product-price-block__current {
    display: grid;
    gap: 4px;
}

.marketplace-inner-page .product-price-block__label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.marketplace-inner-page .product-price-block__amount {
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.marketplace-inner-page .product-price-block__amount .currency {
    font-size: .46em;
    font-weight: 720;
    letter-spacing: .02em;
}

.marketplace-inner-page .product-price-block__words {
    max-width: 58ch;
    color: var(--muted);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
}

.marketplace-inner-page .product-price-block__before {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.marketplace-inner-page .product-price-block__before .amount {
    text-decoration: line-through;
}

.marketplace-inner-page .product-price-block__saving {
    width: fit-content;
    padding: 6px 9px;
    border-radius: 9px;
    background: #eef8f5;
    color: #24705c;
    font-size: 12px;
    font-weight: 650;
}

.marketplace-inner-page .product-purchase-controls {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.marketplace-inner-page .product-purchase-row {
    display: grid !important;
    /* The quantity column grows to fit the - 1 + stepper; a fixed 104px let it run under the buttons. */
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.marketplace-inner-page .product-quantity-field,
.marketplace-inner-page .product-purchase-actions {
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
}

.marketplace-inner-page .product-quantity-field > div {
    display: grid;
    gap: 7px;
}

.marketplace-inner-page .product-quantity-field label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.marketplace-inner-page .product-quantity-field input[type="number"] {
    width: 100%;
    height: 46px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    text-align: center;
    outline: none;
    transition: border-color var(--motion-duration-fast) ease,
        box-shadow var(--motion-duration-fast) ease;
}

.marketplace-inner-page .product-quantity-field input[type="number"]:focus-visible {
    border-color: var(--purple-800);
    box-shadow: 0 0 0 3px rgba(107, 30, 116, .13);
}

.marketplace-inner-page .product-purchase-actions__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
}

.marketplace-inner-page .product-primary-action,
.marketplace-inner-page .product-secondary-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--purple-800);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 680;
    transition: transform var(--motion-duration-fast) var(--ease-out-smooth),
        background-color var(--motion-duration-fast) ease,
        border-color var(--motion-duration-fast) ease,
        color var(--motion-duration-fast) ease,
        box-shadow var(--motion-duration-fast) ease;
}

.marketplace-inner-page .product-primary-action {
    background: var(--purple-800);
    color: #fff;
}

.marketplace-inner-page .product-secondary-action {
    background: #fff;
    color: var(--purple-800);
}

.marketplace-inner-page .product-primary-action:hover,
.marketplace-inner-page .product-secondary-action:hover {
    box-shadow: 0 10px 22px rgba(55, 18, 61, .12);
    transform: translateY(-1px);
}

.marketplace-inner-page .product-secondary-action:hover {
    background: var(--wash);
}

.marketplace-inner-page .product-primary-action:active,
.marketplace-inner-page .product-secondary-action:active {
    box-shadow: none;
    transform: translateY(0);
}

.marketplace-inner-page .product-primary-action .icon-phosphor,
.marketplace-inner-page .product-secondary-action .icon-phosphor {
    flex: 0 0 auto;
    font-size: 19px;
}

.marketplace-inner-page .product-secondary-action.loadingcart .icon-phosphor {
    animation: marketplace-cart-pulse 700ms ease-out;
}

.marketplace-inner-page .product-quantity-hint {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.marketplace-inner-page .out-of-stock {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e6cdd3;
    border-radius: 12px;
    background: #fbf1f3;
    color: #8e3146;
    font-size: 13px;
    font-weight: 700;
}

.marketplace-inner-page .out-of-stock br {
    display: none;
}

.marketplace-inner-page .product-fulfilment-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--wash);
}

.marketplace-inner-page .product-fulfilment-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--purple-800);
}

.marketplace-inner-page .product-fulfilment-card__icon .icon-phosphor {
    font-size: 21px;
}

.marketplace-inner-page .product-fulfilment-card__content {
    display: grid;
    gap: 9px;
}

.marketplace-inner-page .product-fulfilment-card p {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.marketplace-inner-page .product-fulfilment-card .d-shipping-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.marketplace-inner-page .product-fulfilment-card .d-shipping-data {
    color: var(--ink);
    font-size: 12px;
    font-weight: 680;
    text-align: right;
}

.marketplace-inner-page .product-share-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.marketplace-inner-page .product-share-actions .social-title {
    margin: 0 3px 0 0;
    color: var(--body);
    font-size: 12px;
    font-weight: 650;
}

.marketplace-inner-page .product-share-actions .social-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.marketplace-inner-page .product-share-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--body);
    transition: border-color var(--motion-duration-fast) ease,
        background-color var(--motion-duration-fast) ease,
        color var(--motion-duration-fast) ease,
        transform var(--motion-duration-fast) var(--ease-out-smooth);
}

.marketplace-inner-page .product-share-button:hover,
.marketplace-inner-page .product-share-button.copied {
    border-color: #d4b8d7;
    background: var(--wash);
    color: var(--purple-800);
    transform: translateY(-1px);
}

.marketplace-inner-page .product-share-button .icon-phosphor {
    font-size: 18px;
}

.marketplace-inner-page .product-share-status {
    color: #24705c;
    font-size: 11px;
    font-weight: 650;
}

.marketplace-product-page .d-cart,
.marketplace-product-page .d-buynow,
.marketplace-product-page .product-buynow,
.marketplace-product-page .product-addtocart {
    border-radius: 13px !important;
}

.marketplace-product-page .r-products,
.marketplace-product-page .listing-details {
    padding: clamp(18px, 3vw, 32px) !important;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.marketplace-product-page .tab-content {
    min-width: 0;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.marketplace-product-page .listing-details {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.marketplace-product-page .listing-details > label {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.marketplace-product-page .listing-details > label > * {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.marketplace-product-page .listing-details :is(img, svg, video, iframe) {
    max-width: 100%;
    height: auto;
}

.marketplace-product-page .listing-details table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
}

.marketplace-product-page .listing-details pre {
    max-width: 100%;
    overflow: auto;
    white-space: pre-wrap;
}

.marketplace-product-page .detail-tab {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    box-sizing: border-box;
    max-width: calc(100% - 24px);
    overflow: visible;
    padding: 0 12px 20px;
    background: transparent !important;
}

.marketplace-product-page #sticky {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.marketplace-product-page #sticky .detail-tab {
    box-sizing: border-box;
    width: var(--shell) !important;
    max-width: calc(100% - 24px);
    margin-inline: auto !important;
}

.marketplace-product-page #sticky.stick {
    position: sticky !important;
    top: 0;
    right: auto;
    left: auto;
    z-index: 20;
    width: 100%;
    border-radius: 0;
    background: var(--wash);
}

.marketplace-product-page #sticky.stick .detail-tab {
    margin-inline: auto;
}

.marketplace-product-page .nav-tabs {
    display: flex !important;
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    overflow: visible !important;
}

.marketplace-product-page .detail-page .tab-content > .active {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block;
    padding: 0 !important;
    background: transparent !important;
}

.marketplace-product-page .product-detail-sections .tab-content > .tab-pane.active {
    min-width: 0;
    max-width: 100%;
}

.marketplace-product-page .nav-tabs .nav-link {
    max-width: 100%;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--body);
}

.marketplace-product-page .nav-tabs .nav-link.active {
    border-color: var(--purple-800);
    background: var(--purple-800);
    color: #fff;
}

.marketplace-product-page .related-products .product-box-wrapper,
.marketplace-product-page .r-products .product-box-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Vendor storefront */
.seller-storefront {
    width: var(--shell);
    margin-inline: auto;
}

.seller-storefront__hero {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--purple-950), var(--purple-800) 58%, #a838ad);
}

.seller-storefront__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
}

.seller-storefront__hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 7, 35, .86), rgba(30, 7, 35, .2));
    content: "";
}

.seller-storefront__identity {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 760px;
    min-height: 290px;
    align-items: end;
    gap: 18px;
    padding: clamp(24px, 5vw, 52px);
    color: #fff;
}

.seller-storefront__logo {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    border: 4px solid rgba(255,255,255,.85);
    border-radius: 24px;
    background: #fff;
    object-fit: cover;
}

.seller-storefront__logo--initials {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--purple-800, #6b1e74);
    font-family: var(--display, inherit);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.seller-storefront__identity h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1;
}

.seller-storefront__identity p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.8);
}

.seller-storefront__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
    font-size: 13px;
}

.seller-storefront__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seller-storefront__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    margin-top: 24px;
}

.seller-panel {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.seller-panel + .seller-panel {
    margin-top: 18px;
}

.seller-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.seller-panel p {
    color: var(--body);
}

.seller-storefront__aside {
    align-self: start;
}

.seller-actions {
    position: sticky;
    top: 18px;
}

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

.seller-actions__buttons .market-button {
    width: 100%;
}

.seller-facts {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.seller-facts div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.seller-facts strong {
    color: var(--ink);
}

.seller-products .product-box-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seller-availability,
.seller-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.seller-availability li,
.seller-team article {
    padding: 12px;
    border-radius: 14px;
    background: var(--wash);
    list-style: none;
}

/* Cart */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.cart-panel,
.cart-summary,
.cart-empty {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.cart-panel {
    overflow: hidden;
}

.cart-seller-name {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #fbf7fb;
    color: var(--purple-800);
    font-size: 13px;
    font-weight: 700;
}

.cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item__image {
    width: 112px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: var(--wash);
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__name {
    color: var(--ink);
    font-weight: 650;
}

.cart-item__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cart-item__variants span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--wash);
    color: var(--body);
    font-size: 11px;
}

.cart-item__price {
    margin-top: 12px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 18px;
    font-weight: 740;
}

.cart-item__shipping {
    margin: 3px 0 0;
    color: var(--success);
    font-size: 12px;
}

.cart-item__controls {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.cart-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #9b2940;
    font-size: 12px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.cart-quantity input {
    width: 64px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.cart-summary {
    position: sticky;
    top: 18px;
    padding: 24px;
}

.cart-summary h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.cart-summary__notice {
    padding: 11px 12px;
    margin: 0 0 10px;
    border-radius: 12px;
    background: var(--wash);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    color: var(--body);
}

.cart-summary__total {
    padding-top: 18px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
}

.cart-summary .market-button {
    width: 100%;
    margin-top: 20px;
}

.cart-empty {
    grid-column: 1 / -1;
    display: grid;
    min-height: 360px;
    place-items: center;
    padding: 40px;
    text-align: center;
}

.cart-empty .icon-phosphor {
    color: var(--purple-800);
    font-size: 56px;
}

.cart-empty h2 {
    margin: 14px 0 6px;
}

.cart-empty p {
    margin: 0 0 20px;
    color: var(--muted);
}

.cart-loading {
    display: grid;
    min-height: 280px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    color: var(--muted);
}

.cart-load-state {
    display: grid;
    min-height: 280px;
    place-items: center;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.cart-load-state__content {
    display: grid;
    max-width: 360px;
    justify-items: center;
    gap: 8px;
}

.cart-load-state .icon-phosphor {
    color: var(--purple-800);
    font-size: 42px;
}

.cart-load-state h2,
.cart-load-state p {
    margin: 0;
}

.cart-load-state p {
    color: var(--muted);
}

.cart-load-state .market-button {
    margin-top: 10px;
}

.cart-status {
    margin: 12px 0 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--wash);
    color: var(--body);
    font-size: 13px;
}

.cart-status--error {
    border-color: #e8b8c1;
    background: #fff4f5;
    color: #8d263d;
}

.cart-data-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid #e8d7aa;
    border-radius: 20px;
    background: #fffaf0;
    color: var(--body);
}

.cart-data-warning h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 16px;
}

.cart-data-warning p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Checkout */
.checkout-page__intro { margin-bottom: clamp(24px, 4vw, 40px); }

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.checkout-main { display: grid; gap: 18px; min-width: 0; }

.checkout-card,
.checkout-summary {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.checkout-card { padding: clamp(20px, 3vw, 32px); }

.checkout-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.checkout-card__heading h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; }
.checkout-card__heading p { max-width: 600px; margin: 9px 0 0; color: var(--muted); line-height: 1.45; }

.checkout-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 16px;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 25px;
}

.checkout-address-list,
.checkout-shipping-list { display: grid; gap: 10px; }

.checkout-address-option,
.checkout-shipping-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color var(--motion-duration-fast) ease, background var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth);
}

.checkout-address-option:hover,
.checkout-shipping-option:hover { border-color: #d5b9d7; transform: translateY(-1px); }
.checkout-address-option:has(input:checked),
.checkout-shipping-option:has(input:checked) { border-color: var(--purple-800); background: #fcf8fc; }

.checkout-address-option input,
.checkout-shipping-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkout-address-option__mark {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid #b7adb9;
    border-radius: 50%;
}

.checkout-address-option__mark::after {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--purple-800);
    content: "";
    opacity: 0;
    transform: scale(.4);
    transition: opacity var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth);
}

.checkout-address-option:has(input:checked) .checkout-address-option__mark { border-color: var(--purple-800); }
.checkout-address-option:has(input:checked) .checkout-address-option__mark::after { opacity: 1; transform: scale(1); }
.checkout-address-option > .icon-phosphor { color: var(--purple-800); font-size: 20px; opacity: 0; }
.checkout-address-option:has(input:checked) > .icon-phosphor { opacity: 1; }

.checkout-address-option__copy,
.checkout-shipping-option__copy { display: grid; min-width: 0; gap: 4px; }
.checkout-address-option__copy strong,
.checkout-shipping-option__copy strong { color: var(--ink); font-size: 15px; }
.checkout-address-option__copy strong small { margin-left: 7px; color: var(--purple-800); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.checkout-address-option__copy span,
.checkout-shipping-option__copy span { overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.35; }

.checkout-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--purple-800);
    font-size: 13px;
    font-weight: 650;
}

.checkout-shipping-option__price { color: var(--body); font-size: 13px; font-weight: 650; text-align: right; white-space: nowrap; }
.checkout-message { min-height: 20px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.checkout-message[data-state="error"] { color: #9b2940; }
.checkout-message[data-state="success"] { color: var(--success); }
.checkout-message[data-state="loading"] { color: var(--purple-800); }
.checkout-quote-button { min-width: 190px; }
.checkout-quote-button.is-loading { cursor: wait; opacity: .7; }
.checkout-quote-button:disabled { cursor: not-allowed; opacity: .5; }

.checkout-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed #d7c9d8;
    border-radius: 16px;
    background: #fcf8fc;
}

.checkout-empty > .icon-phosphor { color: var(--purple-800); font-size: 30px; }
.checkout-empty h3 { margin: 0 0 4px; font-size: 18px; }
.checkout-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.checkout-empty .market-button { margin-left: auto; flex: 0 0 auto; }

.checkout-summary {
    position: sticky;
    top: 18px;
    padding: 24px;
}

.checkout-summary h2 { margin: 0 0 18px; font-size: 28px; }
.checkout-line-list { display: grid; gap: 12px; }
.checkout-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.checkout-line__image { width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: var(--wash); }
.checkout-line__image img { width: 100%; height: 100%; object-fit: cover; }
.checkout-line__copy { display: grid; min-width: 0; gap: 3px; }
.checkout-line__copy strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-line__copy span { color: var(--muted); font-size: 12px; }
.checkout-line__amount { color: var(--body); font-size: 12px; font-weight: 650; white-space: nowrap; }
.checkout-summary__preview { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 4px; color: var(--muted); font-size: 12px; }
.checkout-summary__preview strong { color: var(--ink); white-space: nowrap; }
.checkout-quote-summary[hidden] { display: none; }
.checkout-summary__rule { height: 1px; margin: 16px 0 18px; background: var(--line); }
.checkout-summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; color: var(--body); font-size: 13px; }
.checkout-summary__row strong { color: var(--ink); white-space: nowrap; }
.checkout-summary__total { padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 700; }
.checkout-summary__total strong { font-family: var(--display); font-size: 22px; }
.checkout-quote-expiry { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.checkout-quote-summary .market-button { width: 100%; margin-top: 18px; }
.checkout-summary__note { display: flex; align-items: flex-start; gap: 7px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.checkout-summary__note .icon-phosphor { flex: 0 0 auto; color: var(--purple-800); font-size: 16px; }

/* Payment selection */
.payment-outcome-page { display: grid; min-height: min(680px, calc(100dvh - 180px)); place-items: center; }
.payment-outcome-card { width: min(640px, 100%); padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: 30px; background: #fff; text-align: center; box-shadow: 0 18px 60px rgba(57, 33, 60, .07); }
.payment-outcome-card__icon { display: grid; width: 72px; height: 72px; margin: 0 auto 24px; place-items: center; border-radius: 24px; font-size: 42px; }
.payment-outcome-card--success { border-color: #cce3d7; }
.payment-outcome-card--success .payment-outcome-card__icon { background: #eaf7ef; color: #23764b; }
.payment-outcome-card--error { border-color: #ead0d8; }
.payment-outcome-card--error .payment-outcome-card__icon { background: #fff0f3; color: #9b2940; }
.payment-outcome-card h1 { max-width: 500px; margin: 0 auto; font-size: clamp(32px, 5vw, 52px); line-height: 1.03; letter-spacing: -.03em; }
.payment-outcome-card > p { max-width: 470px; margin: 16px auto 0; color: var(--muted); line-height: 1.55; }
.payment-outcome-card__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.payment-outcome-card__actions .market-button { display: inline-flex; align-items: center; gap: 8px; }
.payment-outcome-card__actions .icon-phosphor { font-size: 18px; }
.payment-selection-page__intro { margin-bottom: clamp(22px, 4vw, 38px); }
.payment-selection-page__back { margin: 0 0 16px; }
.payment-selection-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
.payment-selection-main { display: grid; gap: 18px; min-width: 0; }
.payment-card,
.payment-summary,
.payment-state {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}
.payment-card { padding: clamp(22px, 3.5vw, 36px); }
.payment-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.payment-card__heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.04; }
.payment-card__heading p { max-width: 560px; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.payment-card__icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 16px; background: var(--wash); color: var(--purple-800); font-size: 24px; }
.payment-method-list { display: grid; gap: 11px; padding: 0; margin: 0; border: 0; }
.payment-method-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    cursor: pointer;
    transition: border-color var(--motion-duration-fast) ease, background var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth);
}
.payment-method-option:hover { border-color: #d5b9d7; background: #fdfafd; transform: translateY(-1px); }
.payment-method-option:has(input:checked) { border-color: var(--purple-800); background: #fcf8fc; }
.payment-method-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-method-option input:focus-visible ~ .payment-method-option__mark,
.payment-method-option:focus-within { outline: 3px solid rgba(107, 30, 116, .22); outline-offset: 2px; }
.payment-method-option__mark { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #b7adb9; border-radius: 50%; }
.payment-method-option__mark::after { width: 10px; height: 10px; border-radius: 50%; background: var(--purple-800); content: ""; opacity: 0; transform: scale(.4); transition: opacity var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth); }
.payment-method-option:has(input:checked) .payment-method-option__mark { border-color: var(--purple-800); }
.payment-method-option:has(input:checked) .payment-method-option__mark::after { opacity: 1; transform: scale(1); }
.payment-method-option__copy { display: grid; min-width: 0; gap: 4px; }
.payment-method-option__copy strong { color: var(--ink); font-size: 15px; }
.payment-method-option__copy span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.payment-method-option__tag { padding: 4px 7px; border-radius: 999px; background: var(--wash); color: var(--purple-800); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.payment-method-option__tag--cashback { background: #f1e3c4; color: #5c4415; }
.payment-method-option__arrow { color: var(--purple-800); font-size: 20px; opacity: .55; }
.payment-method-option:has(input:checked) .payment-method-option__arrow { opacity: 1; }
.payment-method-empty { display: flex; align-items: flex-start; gap: 13px; padding: 18px; border: 1px dashed #d7c9d8; border-radius: 16px; background: #fcf8fc; }
.payment-method-empty > .icon-phosphor { flex: 0 0 auto; color: var(--purple-800); font-size: 28px; }
.payment-method-empty h3 { margin: 0 0 5px; font-size: 18px; }
.payment-method-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.payment-incentive {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    margin-top: 18px;
    border: 1px solid #e4d5e6;
    border-radius: 16px;
    background: #fcf8fc;
}
.payment-incentive__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    background: #f1e3c4;
    color: #5c4415;
    font-size: 18px;
}
.payment-incentive strong { display: block; color: var(--ink); font-size: 14px; }
.payment-incentive p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.payment-method-connect--dmp {
    display: grid;
    gap: 18px;
    padding: 18px;
    margin-top: 18px;
    border: 1px solid #e4d5e6;
    border-radius: 18px;
    background: #fcf8fc;
}
.payment-method-connect--dmp[hidden] { display: none; }
.payment-method-connect__heading { display: flex; align-items: flex-start; gap: 11px; }
.payment-method-connect__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 18px;
}
.payment-method-connect__heading h3 { margin: 0; font-size: 17px; }
.payment-method-connect__heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dmp-connect-form { display: grid; gap: 14px; }
.payment-method-connect--dmp .auth-field { display: grid; gap: 7px; }
.payment-method-connect--dmp .auth-floating-field { position: relative; padding-top: 18px; }
.payment-method-connect--dmp .auth-floating-field.is-initializing label { transition: none; }
.payment-method-connect--dmp .auth-input-wrap { position: relative; display: flex; align-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.payment-method-connect--dmp .auth-input-wrap:focus-within { border-color: var(--purple-600); box-shadow: 0 0 0 4px rgba(107, 30, 116, .11); }
.payment-method-connect--dmp .auth-field.has-error .auth-input-wrap { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.payment-method-connect--dmp .auth-input-wrap input { width: 100%; min-width: 0; height: 50px; padding: 2px 15px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.payment-method-connect--dmp .auth-input-wrap input::placeholder { color: transparent; }
.payment-method-connect--dmp .auth-floating-field .auth-input-wrap label { position: absolute; top: 50%; left: 15px; z-index: 1; max-width: calc(100% - 30px); overflow: hidden; color: #746c74; font-size: 15px; font-weight: 400; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; transform: translateY(-50%); transform-origin: left center; transition: color 160ms ease, transform 180ms var(--ease-out-smooth), top 180ms var(--ease-out-smooth), font-weight 160ms ease; }
.payment-method-connect--dmp .auth-floating-field.is-raised .auth-input-wrap label,
.payment-method-connect--dmp .auth-floating-field:focus-within .auth-input-wrap label { top: -18px; color: #4d454e; font-size: 12px; font-weight: 650; transform: none; }
.payment-method-connect--dmp .auth-floating-field:focus-within .auth-input-wrap label { color: var(--purple-800); }
.payment-method-connect--dmp .auth-floating-field--utility .auth-input-wrap label { max-width: calc(100% - 76px); }
.payment-method-connect--dmp .auth-password-toggle { display: grid; width: 42px; height: 42px; flex: 0 0 42px; margin-right: 4px; place-items: center; border: 0; border-radius: 11px; background: transparent; color: #716971; cursor: pointer; }
.payment-method-connect--dmp .auth-password-toggle:hover { background: var(--wash); color: var(--purple-800); }
.payment-method-connect--dmp .auth-password-toggle .icon-phosphor { font-size: 19px; }
.payment-method-connect--dmp .auth-field__error { min-height: 0; color: #b42318; font-size: 12px; line-height: 1.4; }
.dmp-connect-submit { justify-self: start; min-width: 170px; }
.dmp-connect-submit.is-loading { cursor: wait; opacity: .7; }
.payment-message { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; margin-top: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fcf8fc; color: var(--muted); font-size: 13px; line-height: 1.4; }
.payment-message[hidden] { display: none; }
.payment-message[data-state="loading"] { color: var(--purple-800); }
.payment-message[data-state="success"] { color: var(--success); }
.payment-message[data-state="error"] { color: #9b2940; }
.payment-message__spinner { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: 0; }
.payment-message[data-state="loading"] .payment-message__spinner { opacity: 1; animation: payment-spin 700ms linear infinite; }
.payment-message[data-state="success"] { border-color: #cce3d7; background: #f7fcf9; }
.payment-message[data-state="error"] { border-color: #ead0d8; background: #fff9fb; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
.payment-submit { min-width: 190px; margin-top: 2px; }
.payment-submit .icon-phosphor { font-size: 18px; }
.payment-submit.is-loading { cursor: wait; opacity: .7; }
.payment-submit:disabled { cursor: not-allowed; opacity: .5; }
.payment-disclaimer { display: flex; align-items: flex-start; gap: 7px; max-width: 610px; margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.payment-disclaimer .icon-phosphor { flex: 0 0 auto; color: var(--purple-800); font-size: 17px; }
.payment-summary { position: sticky; top: 18px; padding: 25px; }
.payment-summary h2 { margin: 0 0 5px; font-size: 30px; }
.payment-summary__invoice { margin: 0 0 21px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.payment-summary__rows { display: grid; gap: 3px; }
.payment-summary__rows > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; color: var(--body); font-size: 13px; }
.payment-summary__rows strong { color: var(--ink); font-weight: 650; white-space: nowrap; }
.payment-summary__total { display: flex; justify-content: space-between; gap: 15px; padding-top: 17px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 700; }
.payment-summary__total strong { font-family: var(--display); font-size: 23px; white-space: nowrap; }
.payment-summary__evidence { display: flex; align-items: flex-start; gap: 7px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.payment-summary__evidence .icon-phosphor { flex: 0 0 auto; color: var(--purple-800); font-size: 17px; }
.payment-summary__expiry { margin: 14px 0 0; color: var(--purple-800); font-size: 12px; font-weight: 650; }
.payment-state { display: flex; align-items: flex-start; gap: 18px; padding: clamp(22px, 3.5vw, 34px); }
.payment-state > .icon-phosphor { flex: 0 0 auto; color: var(--purple-800); font-size: 34px; }
.payment-state--error { border-color: #ead0d8; background: #fff9fb; }
.payment-state--error > .icon-phosphor { color: #9b2940; }
.payment-state--pending { border-color: #d9cbea; background: #fbf8fd; }
.payment-state--recovery { border-color: #ead8b8; background: #fffaf1; }
.payment-state--recovery > .icon-phosphor { color: #9a6a14; }
.payment-state--success { border-color: #cce3d7; background: #f7fcf9; }
.payment-state--success > .icon-phosphor { color: #23764b; }
.payment-state h2 { margin: 0 0 7px; font-size: 24px; }
.payment-state p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.5; }
.payment-state .market-button { margin-left: auto; flex: 0 0 auto; }
.payment-state__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.payment-state__actions .market-button { margin-left: 0; }
.payment-state__actions .checkout-inline-link { margin: 0; }

@media (max-width: 800px) {
    .payment-selection-layout { grid-template-columns: 1fr; }
    .payment-summary { position: static; }
}

@media (max-width: 560px) {
    .payment-outcome-page { min-height: calc(100dvh - 140px); }
    .payment-outcome-card { padding: 28px 20px; border-radius: 22px; }
    .payment-outcome-card h1 { font-size: 34px; }
    .payment-outcome-card__actions { align-items: stretch; flex-direction: column; }
    .payment-outcome-card__actions .market-button { justify-content: center; }
    .payment-card { padding: 19px; border-radius: 20px; }
    .payment-card__heading { gap: 12px; }
    .payment-card__icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 21px; }
    .payment-method-option { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
    .payment-method-option__tag { grid-column: 2; justify-self: start; }
    .payment-method-option__arrow { grid-column: 3; grid-row: 1 / span 2; }
    .payment-method-connect--dmp { padding: 16px; border-radius: 16px; }
    .dmp-connect-submit { width: 100%; }
    .payment-summary { padding: 19px; border-radius: 20px; }
    .payment-state { flex-wrap: wrap; padding: 20px; border-radius: 20px; }
    .payment-state .market-button { width: 100%; margin-left: 0; }
    .payment-state__actions { align-items: stretch; flex-direction: column; width: 100%; }
    .payment-state__actions .checkout-inline-link { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .payment-method-option,
    .payment-method-option__mark::after { transition-duration: 1ms; }
    .payment-message__spinner { animation: none; }
}

/* Finance and legal pages use the same quiet, evidence-first language as My Dmore. */
.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.finance-summary-card {
    display: grid;
    min-height: 126px;
    align-content: start;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.finance-summary-card .icon-phosphor {
    color: var(--purple-800);
    font-size: 24px;
}

.finance-summary-card span {
    color: var(--muted);
    font-size: 12px;
}

.finance-summary-card strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 24px;
    line-height: 1;
}

.finance-summary-card--quiet strong { font-family: var(--ui); font-size: 18px; }

.finance-panel {
    min-width: 0;
    padding: clamp(18px, 3vw, 28px);
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.finance-panel .account-section-heading { margin-bottom: 18px; }
.finance-panel .account-section-heading h2 { margin: 0; font-size: 24px; }
.finance-panel .account-section-heading p { max-width: 62ch; }

.finance-table-wrap { overflow-x: auto; }
.finance-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.finance-table th,
.finance-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.finance-table th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.finance-table td { color: var(--body); font-size: 13px; }
.finance-table tbody tr:last-child td { border-bottom: 0; }
.finance-table tbody tr { transition: background-color var(--motion-duration-fast) ease; }
.finance-table tbody tr:hover { background: #fcf8fc; }
.finance-table td:first-child { color: var(--ink); }
.finance-table td:first-child strong,
.finance-table td:first-child small { display: block; }
.finance-table td:first-child small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.finance-table__amount { color: var(--ink) !important; font-family: var(--display); font-size: 15px !important; font-weight: 700; white-space: nowrap; }
.finance-table time { white-space: nowrap; }

.finance-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--wash);
    color: var(--body);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}
.finance-status--succeeded,
.finance-status--delivered { background: #eef8f5; color: #24705c; }
.finance-status--pending,
.finance-status--processing,
.finance-status--requested { background: #fbf4e7; color: #8a6219; }
.finance-status--failed,
.finance-status--cancelled,
.finance-status--rejected { background: #fff0f3; color: #9b2940; }

.finance-empty-state { min-height: 250px; padding: 28px; }
.finance-empty-state .market-button { margin-top: 10px; }
.finance-inline-empty { display: flex; align-items: center; gap: 9px; padding: 15px; border-radius: 14px; background: var(--wash); color: var(--muted); font-size: 13px; }
.finance-inline-empty .icon-phosphor { color: var(--success); font-size: 19px; }
.finance-refund-list { display: grid; gap: 10px; }
.finance-refund-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.finance-refund-card > div { display: grid; gap: 5px; min-width: 0; }
.finance-refund-card > div:last-child { justify-items: end; }
.finance-refund-card strong { color: var(--ink); font-family: var(--display); font-size: 17px; }
.finance-refund-card span:not(.finance-status),
.finance-refund-card time { color: var(--muted); font-size: 12px; }

.invoice-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}
.invoice-card__header { display: flex; justify-content: space-between; gap: 20px; padding: clamp(22px, 4vw, 34px); border-bottom: 1px solid var(--line); background: #fcf8fc; }
.invoice-card__label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.invoice-card__header h2 { margin: 0; color: var(--ink); font-size: clamp(22px, 3vw, 31px); overflow-wrap: anywhere; }
.invoice-card__date { display: grid; align-content: start; justify-items: end; color: var(--body); font-size: 13px; text-align: right; }
.invoice-card__items { padding: clamp(22px, 4vw, 34px); }
.invoice-card__items h3 { margin: 0 0 14px; font-size: 18px; }
.invoice-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.invoice-line:last-child { border-bottom: 0; }
.invoice-line > div { display: grid; min-width: 0; gap: 4px; }
.invoice-line strong { color: var(--ink); }
.invoice-line span { color: var(--muted); font-size: 12px; }
.invoice-line > strong { flex: 0 0 auto; font-family: var(--display); white-space: nowrap; }
.invoice-totals { display: grid; gap: 0; padding: 0 clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px); margin: 0; }
.invoice-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; color: var(--body); font-size: 13px; }
.invoice-totals dt, .invoice-totals dd { margin: 0; }
.invoice-totals dd { color: var(--ink); font-weight: 650; white-space: nowrap; }
.invoice-totals__grand { padding-top: 16px !important; margin-top: 8px; border-top: 1px solid var(--line); color: var(--ink) !important; font-size: 18px !important; font-weight: 700; }
.invoice-totals__grand dd { font-family: var(--display); font-size: 22px; }
.invoice-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(22px, 4vw, 34px); background: var(--wash); color: var(--muted); font-size: 12px; }
.invoice-card__footer > span { display: inline-flex; align-items: center; gap: 7px; }
.invoice-card__footer .icon-phosphor { color: var(--purple-800); font-size: 17px; }

.legal-shell { max-width: 920px; }
.legal-heading { max-width: 720px; margin-bottom: 24px; }
.legal-heading h1 { margin: 12px 0 0; font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -.045em; }
.legal-heading p { max-width: 58ch; margin: 16px 0 0; color: var(--body); font-size: 18px; line-height: 1.5; }
.legal-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid #e0cce3; border-radius: 14px; background: #fcf8fd; color: var(--body); font-size: 13px; line-height: 1.45; }
.legal-notice .icon-phosphor { flex: 0 0 auto; color: var(--purple-800); font-size: 20px; }
.legal-card { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.legal-card section { padding: clamp(20px, 3.5vw, 32px); border-bottom: 1px solid var(--line); }
.legal-card section:last-child { border-bottom: 0; }
.legal-card h2 { margin: 0 0 9px; font-size: 22px; }
.legal-card p { max-width: 72ch; margin: 0; color: var(--body); line-height: 1.65; }

@media (max-width: 800px) {
    .finance-summary-grid { grid-template-columns: 1fr; }
    .finance-summary-card { min-height: 0; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; }
    .finance-summary-card span { margin: 0; }
    .finance-summary-card strong { grid-column: 3; grid-row: 1; }
}

@media (max-width: 560px) {
    .finance-panel { padding: 18px; border-radius: 20px; }
    .finance-refund-card { align-items: flex-start; flex-direction: column; }
    .finance-refund-card > div:last-child { justify-items: start; }
    .invoice-card { border-radius: 20px; }
    .invoice-card__header { align-items: flex-start; flex-direction: column; }
    .invoice-card__date { justify-items: start; text-align: left; }
    .invoice-line { align-items: flex-start; flex-direction: column; gap: 7px; }
    .invoice-line > strong { align-self: flex-start; }
    .invoice-card__footer { align-items: stretch; flex-direction: column; }
    .invoice-card__footer .market-button { width: 100%; }
    .legal-heading h1 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .finance-table tbody tr { transition: none; }
}

@media (max-width: 800px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}

@media (max-width: 560px) {
    .checkout-card { padding: 18px; border-radius: 20px; }
    .checkout-card__heading { gap: 12px; }
    .checkout-card__icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 21px; }
    .checkout-address-option,
    .checkout-shipping-option { grid-template-columns: auto minmax(0, 1fr); padding: 13px; }
    .checkout-address-option > .icon-phosphor { display: none; }
    .checkout-shipping-option__price { grid-column: 2; justify-self: start; text-align: left; }
    .checkout-empty { align-items: flex-start; flex-wrap: wrap; }
    .checkout-empty .market-button { width: 100%; margin-left: 0; }
    .checkout-summary { padding: 18px; border-radius: 20px; }
}

/* Account overview and orders */
.account-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-nav {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.account-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--body);
    font-size: 14px;
    font-weight: 600;
}

.account-nav a:hover,
.account-nav a.is-active {
    background: var(--wash);
    color: var(--purple-800);
}

.account-nav .icon-phosphor {
    font-size: 19px;
}

.account-nav__logout {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    border-radius: 0 !important;
    color: var(--muted) !important;
}

.account-nav__logout:hover {
    color: var(--purple-800) !important;
}

.account-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 26px;
    background: var(--purple-950);
    color: #fff;
}

.account-welcome h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 50px);
}

.account-welcome p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.72);
}

.account-welcome .icon-phosphor {
    color: var(--orange);
    font-size: 54px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.account-stat {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.account-stat .icon-phosphor {
    color: var(--purple-800);
    font-size: 28px;
}

.account-stat span {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.account-stat strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 25px;
}

.account-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.account-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-weight: 650;
}

.account-quick-links a:hover {
    border-color: var(--purple-600);
    color: var(--purple-800);
}

/* Customer account detail pages */
.account-workspace {
    min-width: 0;
}

.account-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.account-page-heading h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.1;
    text-wrap: balance;
}

.account-page-heading p {
    max-width: 650px;
    margin: 6px 0 0;
    color: var(--muted);
}

.notification-history-count {
    display: grid;
    min-width: 104px;
    flex: 0 0 auto;
    place-items: center;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: var(--purple-800);
}

.notification-history-count .icon-phosphor { font-size: 24px; }
.notification-history-count strong { margin-top: 4px; color: var(--ink); font-family: var(--display); font-size: 27px; line-height: 1; }
.notification-history-count span { margin-top: 4px; color: var(--muted); font-size: 12px; }

.notification-history-actions,
.notification-history-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.notification-history-actions { justify-content: flex-end; margin: -2px 0 18px; }
.notification-history-actions form,
.notification-history-item__actions form { margin: 0; }

.notification-history-list,
.notification-preferences {
    display: grid;
    gap: 12px;
}

.notification-history-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: border-color var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth), box-shadow var(--motion-duration-fast) ease;
}

.notification-history-item:hover { border-color: #d7bad8; box-shadow: 0 14px 28px rgba(55, 18, 61, .07); transform: translateY(-1px); }
.notification-history-item.is-unread { border-color: #d6b4da; background: linear-gradient(100deg, #fff, #fcf8fd); }
.notification-history-item__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: var(--wash); color: var(--purple-800); font-size: 21px; }
.notification-history-item__topline { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.notification-history-item h2 { margin: 0; font-size: 17px; }
.notification-history-item time { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.notification-history-item p { max-width: 720px; margin: 7px 0 12px; color: var(--body); line-height: 1.5; }
.notification-history-item__actions .market-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.notification-history-more { display: flex; justify-content: center; margin-top: 16px; }
.notification-preferences { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.notification-preferences h2 { margin: 0; font-size: 22px; }
.notification-preferences p { margin: 7px 0 0; color: var(--muted); }
.notification-preference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.notification-preference-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.notification-preference-row strong, .notification-preference-row small { display: block; }
.notification-preference-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.account-heading-icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    place-items: center;
    border-radius: .85rem;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 1.3rem;
}

.account-form-card,
.account-settings-card,
.account-device-card,
.account-danger-card,
.account-advice-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.account-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-address-card {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    transition: border-color var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth), box-shadow var(--motion-duration-fast) ease;
}

.account-address-card:hover {
    border-color: #d7bad8;
    box-shadow: 0 16px 30px rgba(55, 18, 61, 0.08);
    transform: translateY(-2px);
}

.account-address-card__topline,
.account-address-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-address-card__topline > .icon-phosphor {
    color: var(--purple-800);
    font-size: 24px;
}

.account-address-card h2 {
    margin: 3px 0 0;
    font-size: 20px;
}

.account-address-card p {
    margin: 0;
    color: var(--body);
    line-height: 1.45;
}

.account-address-card__meta {
    color: var(--muted) !important;
    font-size: 13px;
}

.account-address-card__actions {
    justify-content: flex-start;
    margin-top: 8px;
}

.account-address-card__actions .market-button {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 13px;
}

.account-address-form {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}

.account-address-form[hidden] {
    display: none;
}

.account-address-form .account-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.account-address-form .account-field-grid {
    margin-top: 0;
}

.account-address-form .account-field-grid {
    gap: 18px 16px;
}

.account-field-full {
    grid-column: 1 / -1;
}

.account-floating-field {
    position: relative;
    min-width: 0;
    padding-top: 18px;
}

.account-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.account-input-wrap:focus-within {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 4px rgba(107, 30, 116, .10);
}

.account-input-wrap input,
.account-input-wrap select {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 3px 15px 0;
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.account-input-wrap select {
    padding-right: 46px;
    appearance: none;
    cursor: pointer;
}

.account-input-wrap > label {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    max-width: calc(100% - 30px);
    overflow: hidden;
    color: #746c74;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: color 160ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1), top 180ms cubic-bezier(.2, .8, .2, 1), font-weight 160ms ease;
}

.account-floating-field.is-raised .account-input-wrap > label,
.account-floating-field:focus-within .account-input-wrap > label {
    top: -18px;
    color: #4d454e;
    font-size: 13px;
    font-weight: 650;
    transform: none;
}

.account-floating-field:focus-within .account-input-wrap > label {
    color: var(--purple-800);
}

.account-floating-field--select .account-input-wrap > .icon-phosphor {
    position: absolute;
    right: 15px;
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
}

.account-input-wrap input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    .account-input-wrap,
    .account-input-wrap > label {
        transition: none;
    }
}

.account-address-autocomplete {
    position: relative;
    min-width: 0;
}

.account-address-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(37, 19, 43, .14);
}

.account-address-suggestions[hidden] {
    display: none;
}

.account-address-suggestion {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.account-address-suggestion:hover,
.account-address-suggestion.is-active {
    background: #fbf6fc;
    color: var(--purple-800);
}

.account-address-suggestion__title {
    overflow: hidden;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-address-suggestion__meta {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-address-attribution {
    margin: 7px 2px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.account-address-attribution a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.account-address-autocomplete__status {
    display: block;
    min-height: 0;
    margin: 6px 2px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.account-address-autocomplete__status:empty {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .account-address-suggestions,
    .account-address-suggestion {
        scroll-behavior: auto;
    }
}

.account-address-empty {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.account-form-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(22px, 4vw, 48px);
    padding: clamp(20px, 4vw, 38px);
}

.account-form-card--single {
    display: block;
}

.account-form-message:empty,
.account-field-error:empty {
    display: none;
}

.account-form-message,
.account-field-error {
    color: #a32921;
    font-size: 13px;
}

.account-form-card > .account-form-message {
    grid-column: 1 / -1;
}

.account-profile-photo {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.account-profile-photo__frame {
    width: 132px;
    height: 132px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--wash);
}

.account-profile-photo__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-photo p,
.account-field-meta,
.account-preference-group > p,
.account-section-heading p,
.account-danger-card p,
.account-advice-card li,
.account-device-row p,
.account-device-row small,
.account-empty-state p {
    color: var(--muted);
}

.account-profile-photo p {
    margin: 3px 0 0;
    font-size: 13px;
}

.account-upload-progress {
    width: 100%;
    accent-color: var(--purple-800);
}

.account-form-fields,
.account-field {
    display: grid;
    gap: 8px;
}

.account-form-fields {
    gap: 20px;
}

.account-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-field label,
.account-preference-group legend {
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
}

.account-field input,
.account-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.account-field input {
    height: 50px;
    padding: 0 14px;
}

.account-field textarea {
    min-height: 130px;
    padding: 13px 14px;
    resize: vertical;
}

.account-field input:focus,
.account-field textarea:focus {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 3px rgba(107, 30, 116, .10);
}

.account-field-meta,
.account-form-actions,
.account-section-heading,
.account-danger-card,
.account-preference-row,
.account-device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.account-field-meta {
    font-size: 12px;
}

.account-form-actions {
    justify-content: flex-end;
    padding-top: 4px;
}

.account-security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    gap: 18px;
    align-items: start;
}

.account-password-input {
    position: relative;
}

.account-password-input input {
    padding-right: 52px;
}

.account-password-input button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    transform: translateY(-50%);
}

.account-advice-card {
    padding: 24px;
}

.account-advice-card > .icon-phosphor {
    color: var(--orange);
    font-size: 36px;
}

.account-advice-card h2 {
    margin: 20px 0 10px;
    font-size: 21px;
}

.account-advice-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 19px;
}

.auth-password-strength {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.auth-password-strength__meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.auth-password-strength__meter span {
    height: 4px;
    border-radius: 99px;
    background: var(--line);
}

.auth-password-strength[data-score="1"] .auth-password-strength__meter span:nth-child(1) { background: #b42318; }
.auth-password-strength[data-score="2"] .auth-password-strength__meter span:nth-child(-n+2) { background: #c47b20; }
.auth-password-strength[data-score="3"] .auth-password-strength__meter span:nth-child(-n+3) { background: #287f70; }
.auth-password-strength[data-score="4"] .auth-password-strength__meter span { background: #157a6e; }

.auth-password-strength__summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.auth-password-strength__rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 12px;
}

.auth-password-strength__rules li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-password-strength__rules li.is-met {
    color: #157a6e;
}

.account-settings-card,
.account-device-card {
    padding: clamp(20px, 4vw, 34px);
}

.account-preference-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.account-preference-group + .account-preference-group {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.account-preference-group legend {
    font-size: 19px;
}

.account-preference-group > p {
    margin: 5px 0 15px;
}

.account-preference-row {
    min-height: 70px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.account-preference-row span,
.account-preference-row small {
    display: block;
}

.account-preference-row small {
    margin-top: 3px;
    color: var(--muted);
}

.account-switch {
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
    accent-color: var(--purple-800);
}

.account-section-heading h2,
.account-danger-card h2 {
    margin: 0;
    font-size: 22px;
}

.account-section-heading p,
.account-danger-card p {
    margin: 5px 0 0;
}

.account-section-heading > .icon-phosphor {
    color: var(--purple-800);
    font-size: 34px;
}

.account-device-list {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.account-device-row {
    justify-content: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.account-device-row > div {
    min-width: 0;
    flex: 1;
}

.account-device-row p,
.account-device-row small {
    margin: 3px 0 0;
}

.account-device-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 23px;
}

.account-status-badge {
    padding: 7px 10px;
    border-radius: 99px;
    background: #e8f6f1;
    color: #176955;
    font-size: 12px;
    font-weight: 700;
}

.account-empty-state {
    padding: 50px 20px 24px;
    text-align: center;
}

.account-empty-state > .icon-phosphor {
    color: var(--purple-800);
    font-size: 42px;
}

.account-empty-state h3 {
    margin: 13px 0 5px;
}

.account-empty-state p {
    max-width: 480px;
    margin: 0 auto;
}

.account-danger-card {
    margin-top: 18px;
    padding: 22px 24px;
    border-color: #ecd5d2;
}

.account-delete-confirmation {
    position: relative;
    flex: 0 0 auto;
}

.account-delete-confirmation summary {
    list-style: none;
    cursor: pointer;
}

.account-delete-confirmation summary::-webkit-details-marker {
    display: none;
}

.account-delete-button {
    border-color: #a32921;
    background: #a32921;
}

.account-delete-button:hover {
    background: #7e211c;
}

.account-delete-confirmation__body {
    position: absolute;
    z-index: 5;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 48px));
    padding: 18px;
    border: 1px solid #ecd5d2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(39, 23, 39, .16);
}

.account-delete-confirmation__body p {
    margin: 5px 0 16px;
    color: var(--muted);
}

.orders-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.orders-heading h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 50px);
}

.orders-heading p {
    margin: 7px 0 0;
    color: var(--muted);
}

.customer-orders {
    display: grid;
    gap: 14px;
}

.customer-order {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.customer-order__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fbf8fb;
}

.customer-order__header small,
.customer-order__total small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.customer-order__header strong,
.customer-order__total strong {
    color: var(--ink);
    font-size: 14px;
}

.customer-order__invoice {
    display: inline-block;
    color: var(--purple-800);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.customer-order__invoice:hover,
.customer-order__invoice:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.customer-order__status {
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8f6f2;
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}

.customer-order__items {
    display: grid;
}

.customer-order-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}

.customer-order-item:last-child {
    border-bottom: 0;
}

.customer-order-item img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: var(--wash);
    object-fit: cover;
}

.customer-order-item__placeholder {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 12px;
    background: var(--wash);
    color: var(--purple-800);
    font-size: 28px;
}

.customer-order-item__name {
    color: var(--ink);
    font-weight: 650;
}

.market-link {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--purple-800);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.market-link:hover,
.market-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legacy-order-history {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.legacy-order-history h2 {
    margin: 0;
    font-size: 22px;
}

.customer-order__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.customer-order__refunds {
    display: grid;
    gap: 1rem;
}

.customer-order__refund-list {
    display: grid;
    gap: .75rem;
}

.customer-order__refund-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    border: 1px solid var(--market-border, #eadfeb);
    border-radius: 1rem;
    background: var(--market-surface, #fff);
}

.customer-order__refund-card > div {
    display: grid;
    gap: .25rem;
}

.customer-order__refund-card > div span {
    color: var(--market-muted, #796b7f);
    font-size: .875rem;
    text-transform: capitalize;
}

.customer-order__line-cancel {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .65rem;
}

.customer-order__line-cancel .market-field {
    margin: 0;
    width: 5rem;
}

.market-button--quiet {
    padding: .45rem .7rem;
    border: 1px solid var(--market-border, #eadfeb);
    border-radius: 999px;
    background: transparent;
    color: var(--market-ink, #211927);
    font-size: .8rem;
}

@media (max-width: 640px) {
    .customer-order__refund-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.customer-order__actions h2,
.customer-order__actions p { margin: 0; }
.customer-order__actions p { color: var(--muted); font-size: 13px; }
.customer-order__actions form { display: grid; gap: 12px; max-width: 560px; }
.customer-order__actions textarea { min-height: 92px; resize: vertical; }
.customer-order__actions .market-button { justify-self: start; }
.form-error { color: #a13348; font-weight: 650; }

.customer-order__timeline {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.customer-order__timeline h2 { margin: 0; font-size: 22px; }

.customer-order-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-order-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 0 0 18px;
}

.customer-order-timeline li:not(:last-child)::before {
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 5px;
    width: 1px;
    background: var(--line);
    content: "";
}

.customer-order-timeline__marker {
    position: relative;
    z-index: 1;
    display: block;
    width: 11px;
    height: 11px;
    margin-top: 3px;
    border: 2px solid var(--purple-800);
    border-radius: 50%;
    background: #fff;
}

.customer-order-timeline strong { display: block; color: var(--ink); font-size: 14px; }
.customer-order-timeline time { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.customer-order-timeline p { margin: 5px 0 0; color: var(--muted); font-size: 12px; text-transform: capitalize; }

.customer-order-item__meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.orders-empty {
    display: grid;
    min-height: 340px;
    place-items: center;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.orders-empty .icon-phosphor {
    color: var(--purple-800);
    font-size: 54px;
}

.orders-empty h2 { margin: 12px 0 6px; }
.orders-empty p { margin: 0 0 18px; color: var(--muted); }

.customer-fulfilments {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.customer-fulfilments__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.customer-fulfilment-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--wash);
}

.customer-fulfilment-card header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.customer-fulfilment-card h3 { margin: 3px 0 0; font-size: 18px; }
.customer-fulfilment-card p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.customer-fulfilment-card__events { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.customer-fulfilment-card__events li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.customer-fulfilment-card__events strong { display: block; font-size: 12px; }
.customer-fulfilment-card__events time { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.customer-fulfilment-card__events p { margin-top: 3px; font-size: 11px; }

.customer-order__postpurchase {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.customer-order__postpurchase > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.customer-order__inline-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    align-items: end;
    gap: 10px !important;
    max-width: none !important;
}

.customer-order__inline-form .market-field { min-width: 0; }
.market-field--compact { max-width: 160px; }
.customer-order__inline-form .market-button { white-space: nowrap; }

@media (max-width: 1100px) {
    .marketplace-inner-page .market-header__main {
        grid-template-columns: auto minmax(240px, 1fr) auto;
    }

    .marketplace-inner-page .market-header__categories {
        display: none;
    }

    .marketplace-inner-page .product-box-wrapper,
    .seller-products .product-box-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketplace-product-page .related-products .product-box-wrapper,
    .marketplace-product-page .r-products .product-box-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 800px) {
    .marketplace-inner-page .marketplace-page-content { padding-block: 28px 42px; }
    .marketplace-inner-page .market-header__utility { display: none; }
    .marketplace-inner-page .market-header__main {
        position: relative;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding-block: 12px;
    }
    .marketplace-inner-page .market-brand__logo { width: 112px; }
    .marketplace-inner-page .market-search { grid-column: 1 / -1; grid-row: 2; }
    .market-header__mobile-toggle { display: inline-flex; justify-self: end; }
    .marketplace-inner-page .market-header__actions {
        position: absolute;
        top: 68px;
        right: 0;
        z-index: 3;
        display: none;
        min-width: 200px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--shadow);
    }
    .marketplace-inner-page .market-header__actions.is-open { display: grid; }
    .marketplace-inner-page .market-header__actions a {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        min-height: 42px;
        padding: 0 10px;
    }
    .marketplace-inner-page .market-header__quick-links { overflow-x: auto; white-space: nowrap; }

    .page-intro { align-items: start; flex-direction: column; }
    .category-tree { grid-template-columns: 1fr; }

    .marketplace-search-page .search-page { grid-template-columns: 1fr; }
    .marketplace-search-page .search-form-box {
        position: fixed;
        inset: 0 10% 0 0;
        z-index: 100;
        display: none;
        max-height: none;
        border-radius: 0 22px 22px 0;
        box-shadow: 20px 0 60px rgba(23,13,25,.22);
    }
    .marketplace-search-page .search-form-box.is-open,
    .marketplace-search-page .search-form-box.showfilter { display: block; }
    .marketplace-search-page .search-form-box .back-btn { display: inline-flex; }
    .marketplace-search-page .filter { display: block; }
    .marketplace-search-page .filter a {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        gap: 7px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 11px;
        background: #fff;
        color: var(--ink);
    }
    .marketplace-search-page .filter svg { width: 18px; height: 18px; }
    .marketplace-search-page .search-data > #searchproduct > .container > .row { justify-content: space-between; }
    .marketplace-search-page .search-data > #searchproduct > .container > .row > div { width: auto; }

    .marketplace-product-page .detail-page > .row { flex-wrap: wrap; }
    .marketplace-product-page .detail-page > .row > .col-md-9,
    .marketplace-product-page .detail-page > .row > .col-md-3 { width: 100%; }
    .marketplace-product-page .product-detail-sections > .row {
        grid-template-columns: minmax(0, 1fr);
    }
    .marketplace-product-page .product-detail-sections > .row > .col-md-3 {
        display: none;
    }
    .marketplace-product-page .product-detail-sections .c-product .product-box-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .marketplace-product-page .related-products .product-box-wrapper,
    .marketplace-product-page .r-products .product-box-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .seller-storefront__body,
    .cart-layout,
    .account-layout { grid-template-columns: 1fr; }
    .seller-actions,
    .cart-summary,
    .account-nav { position: static; }
    .account-nav { display: flex; overflow-x: auto; }
    .account-nav a { flex: 0 0 auto; }
    .account-form-card,
    .account-security-grid { grid-template-columns: 1fr; }
    .account-profile-photo { display: grid; grid-template-columns: auto 1fr; align-items: center; }
    .account-profile-photo .market-button,
    .account-profile-photo .account-field-error,
    .account-profile-photo .account-upload-progress { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .marketplace-cart-page .cart-intro {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        padding: 32px 24px;
    }

    .marketplace-cart-page .cart-intro h1 {
        max-width: 14ch;
        font-size: clamp(42px, 10.5vw, 54px);
        text-wrap: balance;
    }

    .marketplace-cart-page .cart-intro p {
        max-width: 42ch;
        font-size: 17px;
    }

    .marketplace-cart-page .cart-intro::after {
        right: -150px;
        bottom: -190px;
    }

    .marketplace-cart-page .cart-intro > .market-button {
        align-self: flex-start;
    }
}

@media (max-width: 560px) {
    :root { --shell: calc(100% - 28px); }
    .marketplace-inner-page .market-header__quick-links { gap: 20px; }
    .page-intro h1 { font-size: 40px; }
    .category-directory-shell { padding: 14px; border-radius: 22px; }
    .category-tree__group { padding: 14px; }
    .marketplace-inner-page .product-box-wrapper,
    .seller-products .product-box-wrapper,
    .marketplace-product-page .related-products .product-box-wrapper,
    .marketplace-product-page .r-products .product-box-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .marketplace-inner-page .product-box .p-data { padding: 10px; }
    .marketplace-inner-page .product-box .p-conditional_div { padding: 0 10px 10px; }
    .marketplace-inner-page .product-box .p-cart { grid-template-columns: minmax(0, 1fr) 44px; }
    .marketplace-inner-page .product-box .qty { display: none; }
    .marketplace-inner-page .product-box .product-buynow { grid-column: 1; }
    .marketplace-inner-page .product-box .product-addtocart { grid-column: 2; }
    .marketplace-inner-page .product-box .p-title { font-size: 13px; }
    .marketplace-inner-page .product-box .p-price { font-size: 15px; }

    .marketplace-product-page .detailslider2 .swiper-slide { min-height: 300px; }
    .marketplace-product-page .marketplace-seller-card { gap: 16px; padding: 18px !important; }
    .marketplace-product-page .marketplace-seller-card__profile { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
    .marketplace-product-page .marketplace-seller-card__avatar { width: 60px; height: 60px; border-radius: 16px; }
    .seller-storefront__identity { align-items: start; flex-direction: column; justify-content: end; }
    .seller-storefront__logo { width: 72px; height: 72px; }
    .seller-availability,
    .seller-team { grid-template-columns: 1fr; }

    .cart-item { grid-template-columns: 82px minmax(0, 1fr); padding: 14px; gap: 12px; }
    .cart-item__image { width: 82px; }
    .cart-item__controls { grid-column: 1 / -1; flex-direction: row-reverse; align-items: center; }
    .cart-data-warning { align-items: stretch; flex-direction: column; }
    .cart-data-warning .market-button { width: 100%; }
    .account-stats { grid-template-columns: 1fr; }
    .account-stat { min-height: 118px; }
    .account-quick-links { grid-template-columns: 1fr; }
    .account-welcome .icon-phosphor { display: none; }
    .account-field-grid,
    .auth-password-strength__rules { grid-template-columns: 1fr; }
    .account-address-grid { grid-template-columns: 1fr; }
    .account-address-form .account-section-heading { align-items: stretch; flex-direction: column; }
    .account-address-form .account-section-heading .market-button { width: 100%; }
    .account-page-heading { align-items: flex-start; }
    .account-heading-icon { display: none; }
    .notification-history-count { width: 100%; grid-template-columns: auto auto auto; justify-content: start; gap: 8px; min-width: 0; }
    .notification-history-count .icon-phosphor { grid-row: span 2; }
    .notification-history-count strong { margin-top: 0; }
    .notification-history-count span { margin-top: 0; align-self: end; }
    .notification-history-item__topline { align-items: flex-start; flex-direction: column; gap: 5px; }
    .notification-preference-grid { grid-template-columns: 1fr; }
    .account-danger-card,
    .account-device-row { align-items: flex-start; flex-direction: column; }
    .account-device-row > div { width: 100%; }
    .account-form-actions { align-items: stretch; flex-direction: column-reverse; }
    .account-form-actions .market-button { width: 100%; }
    .customer-order__header { grid-template-columns: 1fr auto; }
    .customer-order__total { grid-column: 1 / -1; }
    .customer-order-item { grid-template-columns: 56px minmax(0, 1fr); }
    .customer-order-item img,
    .customer-order-item__placeholder { width: 56px; height: 56px; }
    .customer-order-item > strong { grid-column: 2; }
    .customer-order__inline-form { grid-template-columns: 1fr; }
    .market-field--compact { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; }
    [data-reveal].is-visible { animation: none; }
    .marketplace-inner-page *,
    .marketplace-inner-page *::before,
    .marketplace-inner-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================
   Search page revamp — 12 August 2026
   Every rule below is scoped to .marketplace-search-page, which the page sets via
   ViewData["MarketplacePageClass"]. Nothing here can reach the 12 other pages that
   share _MarketplaceLayout and this stylesheet.
   ========================================================================== */

/* 1 — Intro copy. The sentence was wrapping to three lines against the narrow
   grid column; giving it its own measure keeps it on one line on desktop and
   still wraps sensibly below. */
.marketplace-search-page .search-intro-copy {
    max-width: 74ch;
    text-wrap: pretty;
}

/* 2 — "Search by near you". Was a <button> wrapping a bordered <div>, so two
   boxes rendered inside each other and the inner edge read as a line through
   the middle. Now a single field-shaped control. */
.marketplace-search-page .location-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 12px;
    height: 42px;
    background: var(--white, #fff);
    border: 1px solid rgba(17, 17, 17, .14);
    border-radius: 10px;
    color: rgba(17, 17, 17, .62);
    font-size: .9rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.marketplace-search-page .location-field iconify-icon {
    font-size: 1.05rem;
    color: rgba(105, 45, 112, .78);
    flex: none;
}

.marketplace-search-page .location-field:hover {
    border-color: rgba(105, 45, 112, .4);
    color: rgba(17, 17, 17, .84);
}

.marketplace-search-page .location-field:focus-visible {
    outline: none;
    border-color: rgba(105, 45, 112, .55);
    box-shadow: 0 0 0 3px rgba(105, 45, 112, .16);
}

/* 3 — Categories. The filter panel itself no longer scrolls (that produced
   an unstyled native scrollbar running the full panel height). Only this
   list scrolls now, in a fixed region with its own thin on-brand scrollbar,
   so Location and Type stay visible without scrolling past them.
   design.css is left untouched because the override belongs to this page. */
.marketplace-search-page .search-category-box {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #d9c6df transparent;
}

.marketplace-search-page .search-category-box::-webkit-scrollbar {
    width: 6px;
}

.marketplace-search-page .search-category-box::-webkit-scrollbar-track {
    background: transparent;
}

.marketplace-search-page .search-category-box::-webkit-scrollbar-thumb {
    background: #d9c6df;
    border-radius: 999px;
}

.marketplace-search-page .search-category-box::-webkit-scrollbar-thumb:hover {
    background: #c7a9d1;
}

/* 4 — Results toolbar: sort control beside the view toggle. */
.marketplace-search-page .results-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.marketplace-search-page .sort-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: rgba(17, 17, 17, .6);
}

.marketplace-search-page .sort-field select {
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid rgba(17, 17, 17, .14);
    border-radius: 9px;
    background: var(--white, #fff)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    color: #111;
    font: inherit;
    font-size: .85rem;
    appearance: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.marketplace-search-page .sort-field select:hover { border-color: rgba(105, 45, 112, .4); }

.marketplace-search-page .sort-field select:focus-visible {
    outline: none;
    border-color: rgba(105, 45, 112, .55);
    box-shadow: 0 0 0 3px rgba(105, 45, 112, .16);
}

/* 5 — View toggle buttons with a real pressed state. */
.marketplace-search-page .view-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(17, 17, 17, .12);
    border-radius: 9px;
    background: var(--white, #fff);
    color: rgba(17, 17, 17, .55);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}

.marketplace-search-page .view-toggle:hover {
    color: #111;
    border-color: rgba(105, 45, 112, .35);
}

.marketplace-search-page .view-toggle:active { transform: translateY(1px); }

.marketplace-search-page .view-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(105, 45, 112, .18);
}

.marketplace-search-page .view-toggle.is-active {
    background: rgba(105, 45, 112, .1);
    border-color: rgba(105, 45, 112, .42);
    color: #692D70;
}

/* 6 — List view, corrected 12 August 2026.
   The first pass set `flex` properties on .block-item, but .marketplace-inner-page
   .product-box-wrapper is `display: grid` (repeat(3, 1fr)), not a Bootstrap flex
   row — flex-basis/grow/shrink are simply ignored by a grid layout algorithm. The
   only rule that landed was max-width:100%, which stretched cards while the
   3-column track structure stayed underneath: exactly the "shifted left,
   misaligned" symptom reported. Fixed to override the actual grid in play. */

.marketplace-search-page #searchproduct.listview .product-box-wrapper {
    grid-template-columns: 1fr;
    gap: 12px;
}

.marketplace-search-page #searchproduct.listview .product-box-wrapper > .block-item {
    width: auto;
    max-width: none;
}

.marketplace-search-page #searchproduct.listview .product-box {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
    height: auto;
}

/* .product-box wraps .p-img and .p-data in one <a>. `display: contents` removes
   the anchor from the box model while keeping its children as direct grid items,
   so the image and the text sit in the two explicit columns above instead of
   stacking as they do in the anchor's normal block flow. */
.marketplace-search-page #searchproduct.listview .product-box > a:first-child {
    display: contents;
}

.marketplace-search-page #searchproduct.listview .p-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 148px;
}

.marketplace-search-page #searchproduct.listview .p-data {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.marketplace-search-page #searchproduct.listview .p-title {
    min-height: 0;
    -webkit-line-clamp: 1;
}

/* .p-action-btn and .p-conditional_div are siblings of the now-unwrapped <a>, so
   grid auto-placement would otherwise drop .p-conditional_div into column 1 of a
   new row. Spanning both columns keeps it under the full row instead. */
.marketplace-search-page #searchproduct.listview .p-conditional_div {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .marketplace-search-page #searchproduct.listview .product-box {
        grid-template-columns: 108px minmax(0, 1fr);
    }
    .marketplace-search-page #searchproduct.listview .p-img { min-height: 108px; }
    .marketplace-search-page #searchproduct.listview .p-data { padding: 10px 12px; }
}

/* 7 — Empty and end-of-results states. The shared .no-record-found rule is left
   alone because five other pages still render it. */
.marketplace-search-page .search-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    padding: 56px 24px 60px;
    margin: 8px 0 0;
    background: linear-gradient(180deg, rgba(105, 45, 112, .04), rgba(105, 45, 112, 0));
    border: 1px dashed rgba(105, 45, 112, .22);
    border-radius: 16px;
}

.marketplace-search-page .search-empty__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(105, 45, 112, .1);
    color: #692D70;
    font-size: 1.5rem;
}

.marketplace-search-page .search-empty__title {
    margin: 6px 0 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #111;
}

.marketplace-search-page .search-empty__copy {
    margin: 0;
    max-width: 46ch;
    font-size: .92rem;
    line-height: 1.55;
    color: rgba(17, 17, 17, .6);
    text-wrap: pretty;
}

.marketplace-search-page .search-empty__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.marketplace-search-page .search-empty__btn {
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #692D70;
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s ease, transform .12s ease;
}

.marketplace-search-page .search-empty__btn:hover { background: #571b5e; }
.marketplace-search-page .search-empty__btn:active { transform: translateY(1px); }

.marketplace-search-page .search-empty__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(105, 45, 112, .25);
}

.marketplace-search-page .search-empty__link {
    font-size: .88rem;
    color: rgba(17, 17, 17, .66);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.marketplace-search-page .search-empty__link:hover { color: #692D70; }

.marketplace-search-page .search-end {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 4px;
}

.marketplace-search-page .search-end__rule {
    flex: 1;
    height: 1px;
    background: rgba(17, 17, 17, .1);
}

.marketplace-search-page .search-end__text {
    font-size: .82rem;
    color: rgba(17, 17, 17, .48);
    white-space: nowrap;
}

/* Screen-reader-only status line, used to announce result counts. */
.marketplace-search-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Search page revamp, part 2 — 12 August 2026
   List-view fix, filter-section spacing, and the two shared modals below.
   ========================================================================== */

/* ---- Sign-in modal (.auth-modal) --------------------------------------
   _Login.cshtml is injected via AJAX into #loginFormContainer from 10+ pages
   across the site (site.js, register.js and several partials all call
   Controller/Login/LoginView). The base .overlay-view/.popup/.login-popup
   rules in design.css have 33+ selectors shared with 16 other modals
   (reviews, invoices, shipping, credits, contact form, _Register.cshtml…),
   so none of them are edited here. `auth-modal` is a class added only to
   this file's root element; every rule below is scoped under it, and every
   element ID/class the embedded <script> depends on is untouched. Where
   .auth-modal reaches a globally shared class (.clickable-button, used on
   51 other pages) the selector is deliberately scoped to the ID inside this
   modal, never the bare class. */

.auth-modal.overlay-view {
    background: rgba(23, 13, 25, .58);
    backdrop-filter: blur(3px);
    padding: 24px;
}

.auth-modal .popup.popup-large {
    width: min(860px, 100%);
    margin: 0;
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation-duration: var(--motion-duration-normal);
}

.auth-modal .login-box {
    margin: 0;
    align-items: stretch;
}

.auth-modal .login-box > .col-md-6:first-child {
    padding: 0;
    background: var(--wash);
}

.auth-modal .login-box img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.auth-modal .popup-heading {
    padding: 22px 28px 0;
    border-bottom: 0;
}

.auth-modal .popup-heading .w-none {
    display: none;
}

.auth-modal .popup-heading .close-back {
    position: absolute;
    top: 18px;
    right: 18px;
    float: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: var(--wash);
    transition: background var(--motion-duration-fast) var(--ease-out-smooth);
}

.auth-modal .popup-heading .close-back:hover {
    background: var(--line);
}

.auth-modal .popup-heading .close-back::before {
    color: var(--body);
}

.auth-modal .login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.auth-modal #dvLoginfirststep,
.auth-modal #dvLoginsecondstep {
    padding: 8px 28px 30px;
}

.auth-modal .login.form .pb-3 {
    margin-bottom: 22px;
}

.auth-modal .login.form .h3 {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.auth-modal .login.form .grey-c {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.auth-modal .login.form .theme-c {
    color: var(--purple-800);
    font-weight: 600;
    text-decoration: none;
}

.auth-modal .login.form .theme-c:hover {
    text-decoration: underline;
}

/* First-step provider buttons and social sign-in */
.auth-modal .login.form > a.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    transition: border-color var(--motion-duration-fast) var(--ease-out-smooth),
                background var(--motion-duration-fast) var(--ease-out-smooth);
}

.auth-modal .login.form > a.btn:hover {
    border-color: var(--purple-800);
    background: var(--wash);
}

.auth-modal .login.form > a.btn svg {
    width: 20px;
    height: 20px;
    float: none;
    flex: none;
}

.auth-modal .login.form p.upp {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .06em;
}

.auth-modal .login.form p.upp::before,
.auth-modal .login.form p.upp::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-modal .login.form .center {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.auth-modal .login.form .center a.btn {
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.auth-modal .login.form .center a.btn svg {
    width: 20px;
    height: 20px;
}

/* Second-step: email/phone + password */
.auth-modal .login.form .form-group {
    margin-bottom: 16px;
}

.auth-modal .login.form .form-group > span {
    display: block;
    margin-bottom: 6px;
    color: var(--body);
    font-size: 13px;
    font-weight: 600;
}

.auth-modal .login.form input[type="email"],
.auth-modal .login.form input[type="password"],
.auth-modal .login.form input[type="text"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    transition: border-color var(--motion-duration-fast) var(--ease-out-smooth),
                box-shadow var(--motion-duration-fast) var(--ease-out-smooth);
}

.auth-modal .login.form input:focus {
    outline: none;
    border-color: var(--purple-800);
    box-shadow: 0 0 0 3px rgba(107, 30, 116, .14);
}

.auth-modal .login.form .input-group {
    position: relative;
    display: block;
}

.auth-modal .login.form .input-group input[type="password"] {
    padding-right: 44px;
}

/* The checkbox+label password toggle keeps its existing #showPass id and click
   handler; only its visual presentation changes, to a plain-text affordance so
   no icon font dependency is introduced. */
.auth-modal .show_password {
    position: absolute;
    top: 0;
    right: 4px;
    height: 46px;
    display: flex;
    align-items: center;
}

.auth-modal .show_password input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 30px;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.auth-modal .show_password label {
    pointer-events: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.auth-modal .show_password label::before {
    content: "Show";
}

.auth-modal .show_password input[type="checkbox"]:checked ~ label::before {
    content: "Hide";
}

.auth-modal .login.form a[href="/forgetpassword"] {
    display: inline-block;
    margin: 4px 0 20px;
    color: var(--purple-800);
    font-size: 13px;
    font-weight: 600;
}

.auth-modal .login.form #btnlogin.clickable-button {
    height: 50px;
    border-radius: 12px;
    background: var(--purple-800);
    font-size: 15px;
    font-weight: 650;
    transition: background var(--motion-duration-fast) var(--ease-out-smooth),
                transform var(--motion-duration-instant) ease;
}

.auth-modal .login.form #btnlogin.clickable-button:hover {
    background: var(--purple-900);
}

.auth-modal .login.form #btnlogin.clickable-button:active {
    transform: translateY(1px);
}

.auth-modal .login.form .required,
.auth-modal .login.form .error-label {
    display: block;
    margin-top: 6px;
    color: #b3261e;
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .auth-modal .popup.popup-large {
        width: 100%;
        border-radius: 18px;
        max-height: calc(100dvh - 48px);
        overflow-y: auto;
    }
    .auth-modal #dvLoginfirststep,
    .auth-modal #dvLoginsecondstep {
        padding: 8px 20px 24px;
    }
}

/* ---- "Search by area" modal -------------------------------------------
   #dvaddressview only exists in this file (search.cshtml), but it renders
   the shared /Pages/Shared/setups/_search-address.cshtml partial, which is
   also used unmodified by servicemate-home and propertyzone-home. Scoping
   every rule under both the search page's body class AND this modal's own
   added class guarantees nothing here can reach those other two pages, and
   every input id/select id/click handler the partial's own <script> depends
   on (#txtaddresssearch, #optiondistance, #optionmkm, #btnaddresssearch) is
   left untouched — only presentation changes. */

.marketplace-search-page #dvaddressview.location-modal.overlay-view {
    background: rgba(23, 13, 25, .58);
    backdrop-filter: blur(3px);
    padding: 24px;
}

.marketplace-search-page #dvaddressview.location-modal .popup {
    width: min(560px, 100%);
    margin: 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding-bottom: 0;
    overflow: hidden;
}

.marketplace-search-page #dvaddressview.location-modal .popup-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 18px;
    font-weight: 650;
    color: var(--ink);
}

.marketplace-search-page #dvaddressview.location-modal .popup-heading .close-back {
    float: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: var(--wash);
    transition: background var(--motion-duration-fast) var(--ease-out-smooth);
}

.marketplace-search-page #dvaddressview.location-modal .popup-heading .close-back:hover {
    background: var(--line);
}

.marketplace-search-page #dvaddressview.location-modal .padding10.l-grey-bg {
    padding: 22px;
    background: #fff;
}

.marketplace-search-page #dvaddressview.location-modal h4 {
    margin: 0 0 18px;
    color: var(--body);
    font-size: 14px;
    font-weight: 500;
}

.marketplace-search-page #dvaddressview.location-modal .searchform .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
}

.marketplace-search-page #dvaddressview.location-modal .address-box .input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color var(--motion-duration-fast) var(--ease-out-smooth),
                box-shadow var(--motion-duration-fast) var(--ease-out-smooth);
}

.marketplace-search-page #dvaddressview.location-modal .address-box .input-group:focus-within {
    border-color: var(--purple-800);
    box-shadow: 0 0 0 3px rgba(107, 30, 116, .14);
}

.marketplace-search-page #dvaddressview.location-modal .acurrentlocation svg {
    width: 18px;
    height: 18px;
    fill: var(--purple-800);
}

.marketplace-search-page #dvaddressview.location-modal .googleaddress {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.marketplace-search-page #dvaddressview.location-modal .googleaddress:focus {
    outline: none;
}

.marketplace-search-page #dvaddressview.location-modal .number-box,
.marketplace-search-page #dvaddressview.location-modal .mile-box {
    display: inline-block;
}

.marketplace-search-page #dvaddressview.location-modal .searchform .row > div:not(.address-box):not(.btn-box) {
    display: inline-flex;
}

.marketplace-search-page #dvaddressview.location-modal .number-box .input-group,
.marketplace-search-page #dvaddressview.location-modal .mile-box .input-group {
    display: block;
}

.marketplace-search-page #dvaddressview.location-modal select#optiondistance,
.marketplace-search-page #dvaddressview.location-modal select#optionmkm {
    height: 42px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    color: var(--ink);
    font-size: 13px;
    appearance: none;
}

.marketplace-search-page #dvaddressview.location-modal .btn-box {
    margin-top: 4px;
}

.marketplace-search-page #dvaddressview.location-modal #btnaddresssearch {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--purple-800);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background var(--motion-duration-fast) var(--ease-out-smooth),
                transform var(--motion-duration-instant) ease;
}

.marketplace-search-page #dvaddressview.location-modal #btnaddresssearch:hover {
    background: var(--purple-900);
}

.marketplace-search-page #dvaddressview.location-modal #btnaddresssearch:active {
    transform: translateY(1px);
}

@media (min-width: 560px) {
    .marketplace-search-page #dvaddressview.location-modal .searchform .row {
        grid-template-columns: 1fr auto auto;
        align-items: end;
    }
    .marketplace-search-page #dvaddressview.location-modal .btn-box {
        grid-column: 1 / -1;
        margin-top: 6px;
    }
}

@media (max-width: 767px) {
    .marketplace-inner-page .product-purchase-panel {
        padding: 24px 0 0 !important;
    }

    .marketplace-inner-page .product-purchase-row {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    .marketplace-inner-page .product-purchase-actions__buttons {
        grid-template-columns: 1fr;
    }

    .marketplace-inner-page .product-primary-action,
    .marketplace-inner-page .product-secondary-action {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .marketplace-product-page .marketplace-seller-card__secondary-actions {
        grid-template-columns: 1fr;
    }

    .marketplace-inner-page .product-purchase-row {
        grid-template-columns: 1fr;
    }

    .marketplace-inner-page .product-quantity-field input[type="number"] {
        width: 88px;
    }

    .marketplace-inner-page .product-fulfilment-card p {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .marketplace-inner-page .product-fulfilment-card .d-shipping-data {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-inner-page .product-utility-action,
    .marketplace-inner-page .product-primary-action,
    .marketplace-inner-page .product-secondary-action,
    .marketplace-inner-page .product-share-button {
        transition: none;
    }

    .marketplace-inner-page .product-secondary-action.loadingcart .icon-phosphor {
        animation: none;
    }
}

/* ---------- Quantity stepper (wwwroot/js/qty-stepper.js upgrades the plain number boxes) ---------- */

.qty-stepper {
    --qs-h: 44px;
    display: inline-flex;
    align-items: stretch;
    align-self: start;
    justify-self: start;
    width: fit-content;
    height: var(--qs-h);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease;
}

.qty-stepper:hover { border-color: #d5b9d7; }
.qty-stepper:focus-within { border-color: var(--purple-800); box-shadow: 0 0 0 3px rgba(107, 30, 116, .14); }
.cart-quantity .qty-stepper { --qs-h: 40px; }
.product-box .qty-stepper { --qs-h: 34px; border-radius: 10px; }

.qty-stepper__btn {
    position: relative;
    width: var(--qs-h);
    flex: 0 0 var(--qs-h);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--body);
    cursor: pointer;
    transition: background var(--motion-duration-fast) ease, color var(--motion-duration-fast) ease, transform var(--motion-duration-fast) var(--ease-out-smooth);
}

.qty-stepper__btn::before,
.qty-stepper__btn--plus::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.qty-stepper__btn--plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.qty-stepper__btn:hover:not(:disabled) { background: var(--wash); color: var(--purple-800); }
.qty-stepper__btn:active:not(:disabled) { transform: scale(.9); }
.qty-stepper__btn:focus-visible { outline: 2px solid var(--purple-800); outline-offset: -3px; }
.qty-stepper__btn:disabled { cursor: not-allowed; opacity: .32; }

.marketplace-inner-page .qty-stepper .qty-stepper__input[type="number"] {
    width: calc(var(--qs-h) * 1.15);
    height: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-family: var(--ui);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-stepper__input::-webkit-inner-spin-button,
.qty-stepper__input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.qty-stepper__input.is-bump { animation: qty-bump 200ms var(--ease-out-smooth); }
.qty-stepper.is-pending { border-color: #d5b9d7; }

@keyframes qty-bump {
    40% { transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
    .qty-stepper__input.is-bump { animation: none; }
    .qty-stepper__btn { transition: none; }
}

/* Branch pickup (only rendered when Commerce:Pickup:Enabled). */
.pickup-pick { margin: 0 0 16px; border: 1px solid var(--line, #eadfe9); border-radius: 14px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.pickup-pick.is-empty { border-color: #d9cddb; }
.pickup-pick:hover { border-color: #c9a9ce; }
.pickup-pick__row { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pickup-pick__row:focus-visible { outline: 3px solid rgba(107, 30, 116, .25); outline-offset: 2px; }
.pickup-pick__text { display: grid; flex: 1; gap: 3px; min-width: 0; }
.pickup-pick__label { color: var(--muted, #7d6b80); font-size: 12px; font-weight: 600; }
.pickup-pick__value { color: #170d19; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pickup-pick.is-empty .pickup-pick__value { color: var(--purple-800, #6b1e74); text-decoration: underline; }
.pickup-pick__sub { color: var(--muted, #7d6b80); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.pickup-pick__action { display: inline-flex; flex-shrink: 0; align-items: center; gap: 2px; color: var(--purple-800, #6b1e74); font-size: 13px; font-weight: 700; }
.pickup-pick__action svg, .pickup-drawer__close svg { display: block; flex: none; }
.pickup-pick__action svg { width: 14px; height: 14px; }
.pickup-drawer__close svg { width: 16px; height: 16px; }
.pickup-pick__stock { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line, #eadfe9); color: #0b7a65; font-size: 13px; font-weight: 600; }
.pickup-pick__stock::before { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 999px; background: currentColor; content: ""; vertical-align: 1px; }
.pickup-pick__stock.is-low { color: #8f520a; }
.pickup-pick__stock[hidden] { display: none; }

/* Branch picker: slides in from the right on desktop, up from the bottom on phones. */
.pickup-noscroll { overflow: hidden; }
.pickup-drawer-scrim { position: fixed; inset: 0; z-index: 1290; background: rgba(23, 13, 25, .45); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.pickup-drawer-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .28s ease, visibility 0s; }
.pickup-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300; display: flex; flex-direction: column; width: min(380px, 100vw); background: #fff; box-shadow: -12px 0 40px rgba(23, 13, 25, .18); transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.22, .8, .3, 1), visibility 0s linear .28s; }
.pickup-drawer.is-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.22, .8, .3, 1), visibility 0s; }
.pickup-drawer__handle { display: none; }
.pickup-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line, #eadfe9); }
.pickup-drawer__head h2 { margin: 0; color: #170d19; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.pickup-drawer__head p { margin: 3px 0 0; color: var(--muted, #7d6b80); font-size: 13px; }
.pickup-drawer__close { display: inline-flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--wash, #f7f2f7); color: #170d19; cursor: pointer; }
.pickup-drawer__close:focus-visible, .pickup-drawer__clear:focus-visible, .pickup-drawer__done:focus-visible { outline: 3px solid rgba(107, 30, 116, .25); outline-offset: 2px; }
.pickup-drawer__list { display: grid; flex: 1; align-content: start; gap: 10px; padding: 20px 24px; overflow-y: auto; }
.pickup-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, #eadfe9); border-radius: 14px; background: #fff; cursor: pointer; }
.pickup-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pickup-opt__dot { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; align-items: center; justify-content: center; border: 1.5px solid #cdbfcf; border-radius: 999px; background: #fff; }
.pickup-opt__body { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pickup-opt__body strong { color: #170d19; font-size: 15px; font-weight: 700; }
.pickup-opt__body span { color: var(--muted, #7d6b80); font-size: 12px; overflow-wrap: anywhere; }
.pickup-opt__stock { flex-shrink: 0; color: #0b7a65; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pickup-opt__stock.is-low { color: #8f520a; }
.pickup-opt__stock.is-out { color: var(--muted, #7d6b80); }
.pickup-opt:has(input:checked) { padding: 13px 15px; border: 2px solid var(--purple-800, #6b1e74); background: #fbf6fc; }
.pickup-opt:has(input:checked) .pickup-opt__dot { border-color: var(--purple-800, #6b1e74); background: var(--purple-800, #6b1e74); }
.pickup-opt:has(input:checked) .pickup-opt__dot::after { width: 8px; height: 8px; border-radius: 999px; background: #fff; content: ""; }
.pickup-opt:has(input:focus-visible) { outline: 3px solid rgba(107, 30, 116, .25); outline-offset: 2px; }
.pickup-opt.is-disabled { border-color: #efe7ef; background: #faf8fa; cursor: not-allowed; }
.pickup-opt.is-disabled .pickup-opt__body strong { color: #9a8c9d; }
.pickup-opt.is-disabled .pickup-opt__body span { color: #a99bac; }
.pickup-opt.is-disabled .pickup-opt__dot { border-color: #e2d8e3; }
.pickup-drawer__foot { display: flex; gap: 10px; padding: 16px 24px 24px; border-top: 1px solid var(--line, #eadfe9); }
.pickup-drawer__clear, .pickup-drawer__done { height: 48px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pickup-drawer__clear { flex: 1; background: var(--wash, #f7f2f7); color: var(--purple-800, #6b1e74); }
.pickup-drawer__done { flex: 2; background: var(--purple-800, #6b1e74); color: #fff; }
@media (max-width: 640px) {
    .pickup-drawer { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 32px rgba(23, 13, 25, .2); transform: translateY(100%); }
    .pickup-drawer.is-open { transform: none; }
    .pickup-drawer__handle { display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: #ddd0df; }
    .pickup-drawer__head { padding: 14px 20px 12px; border-bottom: 0; }
    .pickup-drawer__list { padding: 8px 20px 12px; }
    .pickup-drawer__foot { padding: 12px 20px 28px; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pickup-drawer, .pickup-drawer.is-open, .pickup-drawer-scrim, .pickup-drawer-scrim.is-open { transition: none; }
}
#btnaddtocart:disabled, #btnbuynow:disabled { opacity: 0.5; cursor: not-allowed; }
.pickup-prompt { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(23, 13, 25, 0.55); }
.pickup-prompt__card { position: relative; width: min(440px, 100%); padding: 24px; border-radius: 12px; background: #fff; }
.pickup-prompt__card h2 { margin: 0 0 6px; color: #170d19; font-size: 20px; }
.pickup-prompt__card p { margin: 0 0 16px; color: var(--muted, #6f6272); font-size: 14px; }
.pickup-prompt__close { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: #6f6272; font-size: 24px; line-height: 1; cursor: pointer; }
.pickup-prompt__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pickup-prompt__list a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #eadfe9; border-radius: 12px; color: #170d19; text-decoration: none; }
.pickup-prompt__list a:hover { border-color: #6b1e74; background: #fcf8fc; }
.pickup-prompt__list span { color: var(--muted, #6f6272); font-size: 13px; }
