:root {
    --tf-ink: #172033;
    --tf-muted: #667085;
    --tf-line: #e4e7ec;
    --tf-canvas: #f6f7fb;
    --tf-surface: #ffffff;
    --tf-primary: #2156d9;
    --tf-primary-dark: #173ea7;
    --tf-accent: #ffb000;
    --tf-success: #147a55;
    --tf-danger: #c9362b;
    --tf-radius-sm: .65rem;
    --tf-radius: 1rem;
    --tf-radius-lg: 1.5rem;
    --tf-shadow: 0 12px 32px rgba(23, 32, 51, .08);
    --tf-content-max: 1440px;
    --tf-content-gutters: clamp(24px, 4vw, 64px);
    --tf-storefront-max: 1520px;
    --tf-side-rails: clamp(24px, 4vw, 72px);
    --tf-confirmed-side-rail: 48px;
}

html { scroll-behavior: smooth; }

/*
 * Retired legacy announcement. Keep this narrow compatibility rule until all
 * cached/older header templates have been replaced by marketplace-header.
 * Removing the container also removes its height above the navigation.
 */
header > .bg-blue-600.text-white.text-xs.py-1\.5 {
    display: none !important;
}

body.marketplace-shell {
    background: #fff;
    color: var(--tf-ink);
    font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.fashion-theme2,
body.fashion-theme2 #main-wrapper {
    background: #fff;
}

/*
 * One centered storefront stage keeps all selling content away from the
 * monitor edges. The white body remains visible as equal left/right rails.
 */
.tf-storefront-frame {
    background: #fff;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--tf-storefront-max);
    min-height: 55vh;
    width: calc(100% - var(--tf-side-rails));
}

/* Product browsing canvas stays white so the side rails flow cleanly to cards. */
.tf-storefront-frame > .min-h-screen,
.tf-storefront-frame > section,
.tf-storefront-frame .tf-product-shell {
    background-color: #fff;
}

.tf-storefront-frame .tf-product-shell {
    width: 100%;
}

.marketplace-header {
    border-bottom-color: var(--tf-line) !important;
    box-shadow: 0 2px 12px rgba(23, 32, 51, .06);
}

.marketplace-header form[action*="search"] input {
    border: 2px solid var(--tf-ink) !important;
    border-right-width: 0 !important;
    min-height: 46px;
}

.marketplace-header form[action*="search"] button[type="submit"] {
    background: var(--tf-primary) !important;
    min-width: 58px;
}

.marketplace-header form[action*="search"] button[type="submit"]:hover {
    background: var(--tf-primary-dark) !important;
}

/* Shared public marketplace header */
.tf-market-header,
.tf-market-header * { box-sizing: border-box; }

.tf-market-header {
    background: #fff;
    border-bottom: 1px solid #dfe3e8;
    box-shadow: none;
    color: #111820;
    font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: sticky !important;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.tf-market-header a { color: inherit; text-decoration: none; }
.tf-market-header a:hover { color: #174ea6; text-decoration: underline; }
.tf-market-header__container { margin: 0 auto; max-width: 1540px; padding-left: 34px; padding-right: 34px; width: 100%; }
.tf-market-header__top { border-bottom: 1px solid #e5e7eb; font-size: 12px; }
.tf-market-header__top-inner { align-items: center; display: flex; justify-content: space-between; min-height: 31px; }
.tf-market-header__top-left,
.tf-market-header__top-right { align-items: center; display: flex; gap: 25px; white-space: nowrap; }
.tf-market-header__top-left { gap: 8px; }
.tf-market-header__top-left a:nth-of-type(n+3) { margin-left: 18px; }
.tf-market-header__top a { color: #111820; }
.tf-market-header__top-left > a:first-of-type,
.tf-market-header__top-left > a:nth-of-type(2) { color: #174ea6; text-decoration: underline; }

.tf-header-menu,
.tf-shop-categories,
.tf-mobile-menu { position: relative; }
.tf-header-menu summary,
.tf-shop-categories summary,
.tf-mobile-menu summary { cursor: pointer; list-style: none; }
.tf-header-menu summary::-webkit-details-marker,
.tf-shop-categories summary::-webkit-details-marker,
.tf-mobile-menu summary::-webkit-details-marker { display: none; }
.tf-header-menu summary { padding: 7px 2px; }
.tf-menu-chevron { display: inline-block; margin-left: 2px; transition: transform .15s ease; }
.tf-header-menu[open] .tf-menu-chevron { transform: rotate(180deg); }
.tf-header-menu__panel,
.tf-shop-categories__panel,
.tf-mobile-menu__panel {
    background: #fff;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .16);
    display: grid;
    min-width: 210px;
    padding: 8px;
    position: absolute;
    top: calc(100% + 4px);
    z-index: 1010;
}
.tf-header-menu__panel { min-width: 285px; right: 0; }
.tf-header-menu__intro { border-bottom: 1px solid #e5e7eb; display: grid; gap: 3px; margin: 0 4px 5px; padding: 8px 8px 11px; }
.tf-header-menu__intro strong { color: #111820; font-size: 14px; }
.tf-header-menu__intro span,
.tf-header-menu__panel a span { color: #667085; display: block; font-size: 11px; font-weight: 400; line-height: 1.4; margin-top: 2px; }
.tf-header-menu__panel a strong { color: #202833; display: block; font-size: 12px; font-weight: 700; }
.tf-header-menu__panel a,
.tf-header-menu__panel button,
.tf-shop-categories__panel a,
.tf-mobile-menu__panel a { background: transparent; border: 0; border-radius: 7px; color: #202833; display: block; font: inherit; padding: 10px 12px; text-align: left; width: 100%; }
.tf-header-menu__panel a:hover,
.tf-header-menu__panel button:hover,
.tf-shop-categories__panel a:hover,
.tf-mobile-menu__panel a:hover { background: #f2f5f9; color: #173ea7; text-decoration: none; }

@media (min-width: 861px) {
    .tf-header-menu:not([open]) > .tf-header-menu__panel { display: none; }
    .tf-header-menu:hover > .tf-header-menu__panel,
    .tf-header-menu:focus-within > .tf-header-menu__panel { display: grid; }
}

.tf-header-icon { align-items: center; display: inline-flex; justify-content: center; min-height: 30px; min-width: 30px; position: relative; }
.tf-header-icon svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 22px; }
.tf-header-count { align-items: center; background: #c9362b; border: 2px solid #fff; border-radius: 999px; color: #fff; display: flex; font-size: 9px; font-weight: 800; height: 18px; justify-content: center; line-height: 1; min-width: 18px; padding: 0 3px; position: absolute; right: -7px; top: -4px; }
.tf-header-count.is-hidden { display: none; }

.tf-market-header__main { background: #fff; }
.tf-market-header__desktop-search { align-items: center; display: grid; gap: 15px; grid-template-columns: auto 78px minmax(420px, 1fr) auto; min-height: 82px; }
.tf-header-logo { align-items: center; display: inline-flex; flex: 0 0 auto; justify-content: center; min-width: 116px; }
.tf-header-logo img { display: block; height: 53px; max-width: 150px; object-fit: contain; width: auto; }
.tf-header-wordmark { color: #2156d9; font-size: 31px; font-weight: 500; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.tf-header-wordmark b { color: #173ea7; font-weight: 850; }
.tf-header-wordmark::after { color: #ffb000; content: "•"; font-size: .58em; margin-left: .12em; vertical-align: top; }
.tf-shop-categories summary { color: #5d6672; font-size: 12px; line-height: 1.05; padding: 9px 0; }
.tf-shop-categories summary span { color: #111820; font-size: 15px; margin-left: 5px; }
.tf-shop-categories__panel { left: 0; max-height: min(70vh, 520px); min-width: 260px; overflow-y: auto; }

.tf-header-search { align-items: stretch; display: grid !important; grid-template-columns: 42px minmax(180px, 1fr) 46px minmax(142px, auto) 168px; min-width: 0; }
.tf-header-search::before { border: 2px solid #111820; border-radius: 999px; content: ""; inset: 0 183px 0 0; pointer-events: none; position: absolute; }
.tf-header-search { position: relative; }
.tf-header-search__icon { align-self: center; fill: none; height: 21px; justify-self: end; stroke: #5c6570; stroke-linecap: round; stroke-width: 2; width: 21px; z-index: 1; }
.marketplace-header form.tf-header-search input { background: transparent !important; border: 0 !important; color: #1b2430; font-size: 16px; min-height: 46px !important; min-width: 0; outline: none; padding: 0 14px !important; position: relative; z-index: 1; }
.tf-image-search { align-items: center; background: transparent; border: 0; color: #5c6570; cursor: not-allowed; display: flex; justify-content: center; opacity: .68; position: relative; z-index: 1; }
.tf-image-search svg { fill: none; height: 21px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 21px; }
.tf-header-search select { appearance: auto; background: transparent; border: 0; border-left: 1px solid #c8cdd3; color: #525b67; cursor: pointer; font-size: 12px; min-width: 0; outline: 0; padding: 0 13px; position: relative; z-index: 1; }
.tf-header-search__submit { background: #2156d9 !important; border: 0; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 750; margin-left: 14px; min-height: 46px; min-width: 168px !important; padding: 0 28px; }
.tf-header-search__submit:hover { background: #173ea7 !important; }
.tf-advanced-search { color: #505966 !important; font-size: 11px; white-space: nowrap; }
.tf-market-header__mobile-main { display: none; }

.tf-market-header__categories { border-top: 1px solid #e3e6e9; }
.tf-category-rail { align-items: center; display: flex; gap: 31px; min-height: 49px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.tf-category-rail::-webkit-scrollbar { display: none; }
.tf-category-rail a { color: #252d37; flex: 0 0 auto; font-size: 12px; }

.tf-recently-viewed { background: #fff; border-bottom: 1px solid #e3e6e9; color: #111820; padding: 24px 0 26px; }
.tf-recently-viewed h2 { font-family: Figtree, ui-sans-serif, system-ui, sans-serif; font-size: clamp(22px, 2vw, 27px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.tf-recently-viewed__empty { color: #667085; font-size: 14px; margin: 11px 0 0; }
.tf-recently-viewed__rail { display: grid; gap: 15px; grid-auto-columns: minmax(155px, 1fr); grid-auto-flow: column; margin-top: 17px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.tf-recent-item { border: 1px solid #e1e5ea; border-radius: 12px; color: #172033 !important; display: grid; gap: 7px; min-width: 155px; padding: 10px; scroll-snap-align: start; }
.tf-recent-item:hover { border-color: #aebbd1; box-shadow: 0 5px 18px rgba(23, 32, 51, .08); text-decoration: none !important; }
.tf-recent-item img { aspect-ratio: 1 / 1; background: #f6f7f9; border-radius: 8px; height: auto; object-fit: contain; padding: 7px; width: 100%; }
.tf-recent-item span { display: -webkit-box; font-size: 13px; line-height: 1.35; min-height: 35px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tf-recent-item strong { font-size: 15px; }

@media (max-width: 1120px) {
    .tf-market-header__container { padding-left: 18px; padding-right: 18px; }
    .tf-market-header__top-left,
    .tf-market-header__top-right { gap: 14px; }
    .tf-market-header__top-left { gap: 6px; }
    .tf-market-header__top-left a:nth-of-type(n+3) { margin-left: 8px; }
    .tf-market-header__desktop-search { gap: 10px; grid-template-columns: auto 70px minmax(380px, 1fr) auto; }
    .tf-header-search { grid-template-columns: 38px minmax(140px, 1fr) 42px minmax(120px, auto) 125px; }
    .tf-header-search::before { right: 135px; }
    .tf-header-search__submit { margin-left: 10px; min-width: 125px !important; }
    .tf-category-rail { gap: 23px; }
}

@media (max-width: 860px) {
    .tf-market-header { position: sticky !important; }
    .tf-market-header__top,
    .tf-market-header__desktop-search { display: none; }
    .tf-market-header__mobile-main { align-items: center; display: grid; gap: 11px; grid-template-columns: auto 1fr auto; min-height: 62px; padding-bottom: 9px; padding-top: 9px; }
    .tf-mobile-menu summary { align-items: center; display: flex; justify-content: center; padding: 7px; }
    .tf-mobile-menu summary svg { fill: none; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-width: 2; width: 24px; }
    .tf-mobile-menu__panel { left: 0; min-width: 225px; }
    .tf-header-logo { justify-content: flex-start; min-width: 0; }
    .tf-header-logo img { height: 38px; max-width: 125px; }
    .tf-header-wordmark { font-size: 25px; }
    .tf-mobile-actions { align-items: center; display: flex; gap: 7px; justify-content: flex-end; }
    .tf-mobile-actions .tf-header-icon { min-width: 29px; }
    .tf-mobile-search { align-items: center; border: 2px solid #111820; border-radius: 999px; display: grid !important; grid-column: 1 / -1; grid-template-columns: 36px 1fr 38px 40px; overflow: hidden; }
    .tf-mobile-search > svg { fill: none; height: 19px; justify-self: end; stroke: #5d6672; stroke-linecap: round; stroke-width: 2; width: 19px; }
    .marketplace-header form.tf-mobile-search input { border: 0 !important; font-size: 15px; min-height: 42px !important; min-width: 0; outline: 0; padding: 0 10px !important; }
    .tf-mobile-search button { align-items: center; align-self: stretch; background: transparent; border: 0; color: #5d6672; display: flex; justify-content: center; padding: 0; }
    .tf-mobile-search button[disabled] { cursor: not-allowed; opacity: .55; }
    .tf-mobile-search button:last-child { background: #2156d9 !important; color: #fff; }
    .marketplace-header form.tf-mobile-search button[type="submit"] { min-width: 0 !important; }
    .tf-mobile-search button svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 20px; }
    .tf-category-rail { gap: 24px; min-height: 43px; padding-right: 0; }
    .tf-category-rail a { font-size: 12px; }
    .tf-recently-viewed { padding: 20px 0; }
    .tf-recently-viewed__rail { grid-auto-columns: minmax(145px, 42vw); }
}

#cart-count-badge.tf-header-count,
#cart-count-badge-mobile.tf-header-count {
    align-items: center !important;
    background: #c9362b !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    display: flex !important;
    font-size: 9px !important;
    height: 18px !important;
    justify-content: center !important;
    min-width: 18px !important;
    padding: 0 3px !important;
    right: -7px !important;
    top: -4px !important;
    transform: none !important;
}

#cart-count-badge.tf-header-count.is-hidden,
#cart-count-badge-mobile.tf-header-count.is-hidden { display: none !important; }

@media (max-width: 420px) {
    .tf-market-header__container { padding-left: 12px; padding-right: 12px; }
    .tf-mobile-actions { gap: 2px; }
    .tf-header-logo img { max-width: 105px; }
    .tf-header-wordmark { font-size: 22px; }
}

.tf-card,
body.marketplace-shell .rounded-xl.border,
body.marketplace-shell .rounded-2xl.border,
body.marketplace-shell .rounded-3xl.border {
    border-color: var(--tf-line);
}

.tf-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tf-card:hover {
    border-color: #c8d3f4;
    box-shadow: var(--tf-shadow);
    transform: translateY(-2px);
}

.tf-eyebrow {
    color: var(--tf-primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tf-button-primary {
    align-items: center;
    background: var(--tf-primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.35rem;
    transition: background .2s ease, transform .2s ease;
}

.tf-button-primary:hover { background: var(--tf-primary-dark); transform: translateY(-1px); }

.tf-button-secondary {
    align-items: center;
    background: #fff;
    border: 1px solid var(--tf-ink);
    border-radius: 999px;
    color: var(--tf-ink);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.35rem;
}

.tf-price { color: var(--tf-ink); font-weight: 800; letter-spacing: -.02em; }
.tf-muted { color: var(--tf-muted); }

/* Centered catalog frame: generous gutters on wide screens, practical density inside. */
.tf-product-shell {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--tf-content-max);
    width: calc(100% - var(--tf-content-gutters));
}

/* Keep legacy public-page containers aligned with the same calm marketplace frame. */
body.marketplace-shell main .container,
body.marketplace-shell main .container-responsive,
body.fashion-theme2 #main-wrapper .container,
body.fashion-theme2 #main-wrapper .container-responsive {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--tf-content-max);
}

.tf-case-timeline { list-style: none; margin-left: .35rem; padding: 0; }
.tf-case-timeline li { display: grid; grid-template-columns: 18px 1fr; gap: .65rem; position: relative; padding-bottom: 1rem; }
.tf-case-timeline li > span { width: 10px; height: 10px; margin-top: .35rem; border-radius: 999px; background: #1d4ed8; box-shadow: 0 0 0 4px #dbeafe; }
.tf-case-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 4px; top: 18px; bottom: 2px; width: 2px; background: #dbeafe; }
.tf-case-timeline strong { display: block; font-size: .875rem; }
.tf-case-timeline p, .tf-case-timeline time { display: block; color: #5f6368; font-size: .75rem; }

.tf-product-grid {
    align-items: stretch;
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tf-product-card {
    border: 1px solid var(--tf-line);
    border-radius: .85rem;
    box-shadow: none;
    min-width: 0;
}

.tf-product-card:hover {
    border-color: #9aace0;
    box-shadow: 0 6px 20px rgba(23, 32, 51, .1);
}

.tf-product-card .aspect-square {
    align-items: center;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    padding: 14px;
}
.tf-product-card .aspect-square img {
    height: 100% !important;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain !important;
    padding: 0 !important;
    width: 100% !important;
}
.tf-true-price-card { border-top: 1px solid #edf0f4; display: grid; gap: 2px; margin-top: 9px; padding-top: 8px; }
.tf-true-price-card span { color: #556070; font-size: 10px; font-weight: 650; }
.tf-true-price-card strong { color: #172033; font-size: 14px; }
.tf-true-price-card small { color: #7b8491; font-size: 9px; line-height: 1.3; }
.tf-product-compare { align-items: center; background: #fff; border: 0; border-top: 1px solid #e7eaf0; color: #43516a; display: flex; font-size: 12px; font-weight: 700; gap: 6px; justify-content: center; min-height: 38px; padding: 7px 10px; width: 100%; }
.tf-product-compare:hover,
.tf-product-compare[aria-pressed="true"] { background: #edf3ff; color: #173ea7; }
.tf-product-compare svg { fill: none; height: 14px; stroke: currentColor; stroke-width: 1.8; width: 14px; }
.tf-product-card__actions { display: grid; gap: 8px; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); padding: 0 12px 12px; }
.tf-product-card__actions button,
.tf-product-card__actions a { align-items: center; border-radius: 999px; display: inline-flex; font-size: 11px; font-weight: 750; justify-content: center; min-height: 36px; padding: 7px 10px; text-decoration: none; }
.tf-product-card__save { background: #fff; border: 1px solid #cfd5dd; color: #344054; }
.tf-product-card__save:hover,
.tf-product-card__save.is-saved { background: #fff1f2; border-color: #fda4af; color: #be123c; }
.tf-product-card__save svg { fill: none; height: 14px; margin-right: 5px; stroke: currentColor; stroke-width: 1.8; width: 14px; }
.tf-product-card__save.is-saved svg { fill: currentColor; }
.tf-product-card__cart { background: #172033; border: 1px solid #172033; color: #fff; }
.tf-product-card__cart:hover { background: #2156d9; border-color: #2156d9; color: #fff; }
.tf-product-card__cart:disabled { cursor: not-allowed; opacity: .48; }

.tf-true-price { background: #f6f9ff; border: 1px solid #cddbf8; border-radius: 14px; display: grid; gap: 12px; padding: 17px; }
.tf-true-price > div:first-child { display: grid; gap: 4px; }
.tf-true-price h2 { color: #172033; font-size: 17px; font-weight: 800; margin: 0; }
.tf-true-price > strong { color: #173ea7; font-size: 25px; }
.tf-true-price dl { display: grid; gap: 6px; margin: 0; }
.tf-true-price dl div { display: flex; gap: 14px; justify-content: space-between; }
.tf-true-price dt { color: #667085; font-size: 12px; }
.tf-true-price dd { color: #273142; font-size: 12px; font-weight: 650; margin: 0; text-align: right; }
.tf-true-price > p { color: #667085; font-size: 10px; line-height: 1.45; margin: 0; }
.tf-delivery-promise { border-left: 3px solid #2156d9; display: grid; gap: 3px; padding: 5px 0 5px 12px; }
.tf-delivery-promise strong { color: #172033; font-size: 13px; }
.tf-delivery-promise span { color: #344054; font-size: 12px; }
.tf-delivery-promise p { color: #667085; font-size: 10px; margin: 0; }

.tf-compare-tray { align-items: center; background: #172033; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; bottom: 18px; box-shadow: 0 18px 45px rgba(15,23,42,.28); color: #fff; display: flex; gap: 12px; left: 50%; max-width: min(900px, calc(100% - 24px)); padding: 11px 14px; position: fixed; transform: translateX(-50%); width: max-content; z-index: 1050; }
.tf-compare-tray[hidden] { display: none; }
.tf-compare-tray > div:first-child { display: grid; min-width: 112px; }
.tf-compare-tray > div:first-child span { color: #c4ccda; font-size: 10px; }
.tf-compare-tray__items { display: flex; gap: 6px; max-width: 430px; overflow-x: auto; }
.tf-compare-tray__items button { background: rgba(255,255,255,.12); border: 0; border-radius: 999px; color: #fff; font-size: 10px; max-width: 145px; overflow: hidden; padding: 6px 9px; text-overflow: ellipsis; white-space: nowrap; }
.tf-compare-tray .tf-button-primary { min-height: 36px; padding: 7px 12px; white-space: nowrap; }
.tf-compare-tray .tf-button-primary[aria-disabled="true"] { opacity: .5; }
.tf-compare-tray > button { background: transparent; border: 0; color: #d8dfeb; font-size: 11px; }
.tf-compare-table-wrap { overflow-x: auto; }
.tf-compare-table { background: #fff; border-collapse: separate; border-spacing: 0; min-width: 760px; width: 100%; }
.tf-compare-table th,
.tf-compare-table td { border-bottom: 1px solid #e5e7eb; border-right: 1px solid #eef0f3; padding: 14px; text-align: left; vertical-align: top; }
.tf-compare-table th:first-child { background: #f7f8fa; left: 0; min-width: 165px; position: sticky; z-index: 2; }
.tf-compare-table thead th { background: #eef4ff; font-size: 13px; min-width: 210px; }
.tf-compare-table td { font-size: 13px; }
.tf-compare-table td small { color: #667085; display: block; font-size: 10px; line-height: 1.4; margin-top: 5px; }
.tf-trust-passport { background: #fff; border: 1px solid #dce3ee; border-radius: 16px; padding: 22px; }
.tf-trust-passport__heading h2 { font-size: 22px; font-weight: 850; margin: 4px 0; }
.tf-trust-passport__heading p,
.tf-trust-passport__note { color: #667085; font-size: 12px; margin: 0; }
.tf-trust-passport dl { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 13px; }
.tf-trust-passport dl div { background: #f7f9fc; display: grid; gap: 4px; padding: 12px; }
.tf-trust-passport dt { color: #667085; font-size: 10px; }
.tf-trust-passport dd { color: #172033; font-size: 13px; font-weight: 750; margin: 0; }
.tf-condition-evidence { background: #fbfcfe; border: 1px solid #e3e7ed; border-radius: 12px; display: grid; gap: 7px; padding: 13px; }
.tf-condition-evidence > div { display: flex; justify-content: space-between; }
.tf-condition-evidence span,
.tf-condition-evidence p { color: #667085; font-size: 11px; margin: 0; }
.tf-condition-evidence .is-reviewed { color: #147a55; font-weight: 700; }
@media (max-width: 760px) { .tf-trust-passport dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 700px) {
    .tf-compare-tray { align-items: stretch; bottom: 8px; display: grid; gap: 7px; grid-template-columns: 1fr auto auto; width: calc(100% - 16px); }
    .tf-compare-tray__items { grid-column: 1 / -1; grid-row: 1; max-width: none; }
    .tf-compare-tray > div:first-child { grid-column: 1; grid-row: 2; }
}

.tf-catalog-view-controls { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 0 0 16px; }
.tf-catalog-view-controls > span { color: var(--tf-muted); font-size: 12px; font-weight: 650; margin-right: 3px; }
.tf-catalog-view-controls button { align-items: center; background: #fff; border: 1px solid #cfd5dd; border-radius: 8px; color: #4c5664; display: inline-flex; font-size: 12px; gap: 5px; min-height: 34px; padding: 6px 9px; }
.tf-catalog-view-controls button:hover { border-color: #8ea3d8; color: #173ea7; }
.tf-catalog-view-controls button[aria-pressed="true"] { background: #edf3ff; border-color: #2156d9; color: #173ea7; }
.tf-catalog-view-controls svg { fill: none; height: 15px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 15px; }

@media (min-width: 700px) {
    .tf-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
    .tf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1360px) {
    .tf-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

html[data-tf-catalog-view="comfortable"] .tf-product-grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; gap: 20px !important; }
@media (min-width: 560px) { html[data-tf-catalog-view="comfortable"] .tf-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 900px) { html[data-tf-catalog-view="comfortable"] .tf-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1250px) { html[data-tf-catalog-view="comfortable"] .tf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

html[data-tf-catalog-view="list"] .tf-product-grid { grid-template-columns: minmax(0, 1fr) !important; }
html[data-tf-catalog-view="list"] .tf-product-card { display: grid !important; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
html[data-tf-catalog-view="list"] .tf-product-card > a:first-child { grid-row: 1; }
html[data-tf-catalog-view="list"] .tf-product-card > a:nth-child(2) { grid-column: 2; grid-row: 1; }
html[data-tf-catalog-view="list"] .tf-product-card .aspect-square { height: 100%; min-height: 180px; }

@media (max-width: 339px) {
    .tf-product-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .tf-catalog-view-controls button span { display: none; }
}

@media (max-width: 559px) {
    html[data-tf-catalog-view="list"] .tf-product-card { grid-template-columns: 120px minmax(0, 1fr); }
    html[data-tf-catalog-view="list"] .tf-product-card .aspect-square { min-height: 140px; }
}

@media (min-width: 1280px) {
    .tf-product-shell { width: calc(100% - 64px); }
}

@media (min-width: 1024px) {
    .tf-product-detail > .grid {
        gap: 3rem;
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    }
}

@media (max-width: 767px) {
    .tf-product-shell { width: calc(100% - 24px); }
    .tf-product-card .aspect-square { padding: 8px; }
}

.tf-trust-strip {
    background: linear-gradient(100deg, #eef4ff 0%, #f8f2ff 55%, #fff7df 100%);
    border: 1px solid #dbe5ff;
    border-radius: var(--tf-radius-lg);
}

.tf-focus:focus-visible,
body.marketplace-shell a:focus-visible,
body.marketplace-shell button:focus-visible,
body.marketplace-shell input:focus-visible,
body.marketplace-shell select:focus-visible {
    outline: 3px solid rgba(33, 86, 217, .35);
    outline-offset: 2px;
}

.marketplace-footer { background: #111827 !important; }

.tf-page-banner {
    background: #10213f;
    border-radius: 18px;
    color: #fff;
    isolation: isolate;
    margin: 20px auto 0;
    max-width: var(--tf-content-max);
    overflow: hidden;
    position: relative;
    width: calc(100% - var(--tf-content-gutters));
}

.tf-page-banner::before {
    background: linear-gradient(105deg, rgba(33, 86, 217, .55), rgba(9, 29, 58, .12) 52%, rgba(255, 176, 0, .18));
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.tf-page-banner--deals::before { background: linear-gradient(105deg, rgba(200, 73, 31, .48), rgba(16, 33, 63, .2) 58%, rgba(255, 176, 0, .24)); }
.tf-page-banner--category::before { background: linear-gradient(105deg, rgba(33, 86, 217, .52), rgba(16, 33, 63, .14) 58%, rgba(20, 122, 85, .22)); }
.tf-page-banner--seller::before { background: linear-gradient(105deg, rgba(20, 122, 85, .5), rgba(16, 33, 63, .18) 58%, rgba(85, 200, 162, .18)); }
.tf-page-banner--checkout::before,
.tf-page-banner--cart::before { background: linear-gradient(105deg, rgba(33, 86, 217, .34), rgba(16, 33, 63, .08) 62%, rgba(20, 122, 85, .2)); }
.tf-page-banner--success::before { background: linear-gradient(105deg, rgba(20, 122, 85, .52), rgba(16, 33, 63, .12) 62%, rgba(110, 231, 183, .18)); }

.tf-page-banner__inner {
    align-items: center;
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(180px, .36fr);
    margin: 0 auto;
    max-width: var(--tf-content-max);
    min-height: 232px;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
    position: relative;
}

.tf-page-banner--large .tf-page-banner__inner { min-height: 390px; }
.tf-page-banner--compact .tf-page-banner__inner { min-height: 210px; padding-bottom: clamp(1.75rem, 3vw, 3rem); padding-top: clamp(1.75rem, 3vw, 3rem); }
.tf-page-banner--category .tf-page-banner__inner { min-height: 190px; padding-bottom: clamp(1.5rem, 2.5vw, 2.35rem); padding-top: clamp(1.5rem, 2.5vw, 2.35rem); }
.tf-page-banner__copy { max-width: 790px; position: relative; z-index: 2; }

.tf-page-banner__eyebrow {
    color: #a9c4ff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    margin: 0 0 .75rem;
    text-transform: uppercase;
}

.tf-page-banner__title {
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 4.35rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
    margin: 0;
    max-width: 820px;
}

.tf-page-banner--compact .tf-page-banner__title { font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.04; }

.tf-page-banner__description {
    color: #d7e2f4;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.65;
    margin: 1rem 0 0;
    max-width: 690px;
}

.tf-page-banner__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.tf-page-banner__primary,
.tf-page-banner__secondary {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: .94rem;
    font-weight: 750;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1.25rem;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.tf-page-banner__primary { background: #fff; color: #10213f; }
.tf-page-banner__primary:hover { background: #edf3ff; color: #10213f; transform: translateY(-1px); }
.tf-page-banner__secondary { border-color: rgba(255, 255, 255, .48); color: #fff; }
.tf-page-banner__secondary:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

.tf-page-banner__search {
    align-items: center;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    display: flex;
    margin-top: 1.5rem;
    max-width: 690px;
    overflow: hidden;
    padding: .3rem .35rem .3rem 1rem;
}

.tf-page-banner__search svg { color: #667085; flex: 0 0 auto; height: 21px; stroke-width: 2; width: 21px; }
.tf-page-banner__search input { background: transparent; border: 0; color: #172033; flex: 1; font-size: 1rem; min-width: 0; outline: 0; padding: .75rem; }
.tf-page-banner__search button { background: #2156d9; border: 0; border-radius: 999px; color: #fff; font-weight: 750; min-height: 44px; padding: .65rem 1.4rem; }
.tf-page-banner__search button:hover { background: #173ea7; }

.tf-page-banner__mark { height: 190px; justify-self: end; position: relative; width: 190px; }
.tf-page-banner--large .tf-page-banner__mark { height: 250px; width: 250px; }
.tf-page-banner__mark-ring { border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; inset: 8%; position: absolute; }
.tf-page-banner__mark-ring::after { border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; content: ""; inset: 18%; position: absolute; }
.tf-page-banner__mark-card { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 1.25rem; height: 44%; position: absolute; transform: rotate(12deg); width: 34%; }
.tf-page-banner__mark-card--one { right: 7%; top: 7%; }
.tf-page-banner__mark-card--two { bottom: 6%; left: 3%; transform: rotate(-13deg); }
.tf-page-banner__mark-letter { align-items: center; background: #ffb000; border-radius: 1.4rem; box-shadow: 0 18px 48px rgba(0, 0, 0, .22); color: #10213f; display: flex; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; inset: 27%; justify-content: center; letter-spacing: -.06em; position: absolute; transform: rotate(-4deg); }

.tf-page-banner__glow { border-radius: 50%; filter: blur(2px); opacity: .35; position: absolute; }
.tf-page-banner__glow--one { background: #2156d9; height: 260px; left: -120px; top: -170px; width: 260px; }
.tf-page-banner__glow--two { background: #ffb000; bottom: -180px; height: 250px; right: 11%; width: 250px; }

.tf-cart-recommendations { scroll-margin-top: 7rem; }

@media (max-width: 767px) {
    .tf-storefront-frame {
        width: 100%;
    }

    .tf-product-shell {
        width: 100%;
    }

    .tf-page-banner {
        border-radius: 0;
        margin-top: 0;
        width: 100%;
    }

    .tf-page-banner__inner { grid-template-columns: 1fr; min-height: auto; }
    .tf-page-banner--large .tf-page-banner__inner { min-height: 350px; }
    .tf-page-banner__mark { display: none; }
    .tf-page-banner__actions { margin-top: 1.15rem; }
    .tf-page-banner__search { border-radius: 1rem; flex-wrap: wrap; padding: .45rem; }
    .tf-page-banner__search svg { margin-left: .55rem; }
    .tf-page-banner__search input { min-height: 44px; width: calc(100% - 42px); }
    .tf-page-banner__search button { border-radius: .75rem; width: 100%; }
}

@media (max-width: 767px) {
    .marketplace-header { position: sticky !important; top: 0; }
    .tf-card:hover { transform: none; }
}

@media (max-width: 639px) {
    .tf-cart-recommendations__track {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: .75rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .tf-cart-recommendations__track > .tf-product-card {
        flex: 0 0 min(78vw, 290px);
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/*
 * Requested ultra-wide composition: preserve exactly 720px of empty white
 * space on each side. At 1920px this leaves a 480px, two-card storefront.
 */
@media (min-width: 1920px) {
    .tf-storefront-frame,
    .tf-page-banner {
        max-width: var(--tf-content-max);
        width: calc(100% - 64px);
    }

    .tf-storefront-frame .tf-product-shell {
        max-width: var(--tf-content-max);
        width: 100%;
    }
}
