/* xMonthly Cloud Tour — marketplace header layouts (Refined, Showcase, Storefront).
 * "Classic" keeps the original markup and styles in tour-page.css, untouched.
 * Loaded on generated marketplace pages (non-classic only) and in the builder,
 * where the same markup is shown scaled-down as live previews.
 * Colors come from three custom properties set inline on the section:
 *   --hdr-ac (accent), --hdr-ac-dark, --hdr-ac-light, --hdr-ac-tint. */

.xmct-hdr {
    --hdr-ac: #0F5FC0;
    --hdr-ac-dark: #0A3F80;
    --hdr-ac-light: #2F7FE0;
    --hdr-ac-tint: #E9F1FC;
    --hdr-navy: #1B2641;
    --hdr-mute: #5B6B84;
    position: relative;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Poppins', sans-serif;
    text-align: left;
    padding: 0;
}
.xmct-hdr *, .xmct-hdr *::before, .xmct-hdr *::after { box-sizing: border-box; }
.xmct-hdr .xmct-hdr-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.xmct-hdr h1.xmct-hdr-title { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.xmct-hdr p { margin: 0; }
.xmct-hdr .xmct-hdr-accent { color: inherit; }

/* Logo / initial tiles */
.xmct-hdr .xmct-hdr-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 10px; background: #fff; overflow: hidden;
}
.xmct-hdr .xmct-hdr-ico img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.xmct-hdr .xmct-hdr-ico--initial { background: var(--hdr-ac); color: #fff; font-weight: 700; font-size: 18px; line-height: 1; }

/* Buttons used by Showcase */
.xmct-hdr .xmct-hdr-btn {
    appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700;
    line-height: 20px; border-radius: 999px; padding: 13px 26px; border: 2px solid var(--hdr-ac);
}
.xmct-hdr .xmct-hdr-btn--primary { background: var(--hdr-ac); color: #fff; }
.xmct-hdr .xmct-hdr-btn--primary:hover { filter: brightness(1.08); }
.xmct-hdr .xmct-hdr-btn--outline { background: #fff; color: var(--hdr-ac); }
.xmct-hdr .xmct-hdr-btn--outline:hover { background: var(--hdr-ac-tint); }
.xmct-hdr button:focus-visible, .xmct-hdr input:focus-visible { outline: 3px solid #F5C300; outline-offset: 2px; }

/* ── Refined ─────────────────────────────────────────────────────────────── */
.xmct-tp-hero.xmct-hdr--refined {
    background: linear-gradient(140deg, var(--hdr-ac-dark) 0%, var(--hdr-ac) 60%, var(--hdr-ac-light) 100%) !important;
    color: #fff; padding: 44px 0 42px; text-align: left;
}
.xmct-tp-hero.xmct-hdr--refined.xmct-hdr--solid { background: var(--hdr-ac) !important; }
.xmct-hdr--refined .xmct-hdr-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.xmct-hdr--refined .xmct-hdr-main { min-width: 0; }
.xmct-hdr--refined .xmct-hdr-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: 10px; }
.xmct-hdr--refined h1.xmct-hdr-title { font-size: clamp(28px, 3.6vw, 44px); color: #fff; }
.xmct-hdr--refined .xmct-hdr-sub { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.9); margin-top: 12px; max-width: 720px; }
.xmct-hdr--refined .xmct-hdr-logo-tile {
    flex: 0 0 auto; width: 96px; height: 96px; border-radius: 22px; background: #fff;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,.22); overflow: hidden;
}
.xmct-hdr--refined .xmct-hdr-logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; display: block; }
.xmct-hdr--refined .xmct-hdr-logo-tile--initial { background: #fff; color: var(--hdr-ac); font-size: 46px; font-weight: 700; }

/* ── Showcase ────────────────────────────────────────────────────────────── */
.xmct-tp-hero.xmct-hdr--showcase {
    background: linear-gradient(135deg, var(--hdr-ac-tint) 0%, #ffffff 72%) !important;
    color: var(--hdr-navy); padding: 52px 0 52px; text-align: left;
}
.xmct-hdr--showcase .xmct-hdr-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center; }
.xmct-hdr--showcase.xmct-hdr--nocards .xmct-hdr-wrap { grid-template-columns: minmax(0, 1fr); }
.xmct-hdr--showcase .xmct-hdr-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; color: var(--hdr-navy); }
.xmct-hdr--showcase .xmct-hdr-lockup .xmct-hdr-ico { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 4px rgba(27,38,65,.14); }
.xmct-hdr--showcase .xmct-hdr-lockup-name { font-weight: 700; }
.xmct-hdr--showcase .xmct-hdr-eyebrow {
    display: inline-block; background: #fff; border: 1px solid var(--hdr-ac-tint); border-radius: 999px;
    padding: 7px 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hdr-ac); margin-bottom: 16px;
}
.xmct-hdr--showcase h1.xmct-hdr-title { font-size: clamp(30px, 4vw, 50px); color: var(--hdr-navy); }
.xmct-hdr--showcase .xmct-hdr-accent { color: var(--hdr-ac); }
.xmct-hdr--showcase .xmct-hdr-sub { font-size: 17px; line-height: 1.6; color: var(--hdr-mute); margin-top: 14px; max-width: 540px; }
.xmct-hdr--showcase .xmct-hdr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.xmct-hdr--showcase .xmct-hdr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.xmct-hdr--showcase .xmct-hdr-card {
    display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; min-width: 0;
    text-decoration: none; color: inherit; cursor: pointer; border: 2px solid transparent;
    box-shadow: 0 10px 28px rgba(27,38,65,.10); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.xmct-hdr--showcase .xmct-hdr-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(27,38,65,.16); }
.xmct-hdr--showcase .xmct-hdr-card.is-active { border-color: var(--hdr-ac); background: var(--hdr-ac-tint); }
.xmct-hdr--showcase .xmct-hdr-card .xmct-hdr-ico { width: 42px; height: 42px; background: var(--hdr-ac-tint); }
.xmct-hdr--showcase .xmct-hdr-card.is-active .xmct-hdr-ico { background: #fff; }
.xmct-hdr--showcase .xmct-hdr-card-text { min-width: 0; }
.xmct-hdr--showcase .xmct-hdr-card-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--hdr-navy); overflow-wrap: anywhere; }
.xmct-hdr--showcase .xmct-hdr-card-sub { display: block; font-size: 12px; line-height: 1.35; color: var(--hdr-mute); margin-top: 2px; overflow-wrap: anywhere; }

/* ── Storefront ──────────────────────────────────────────────────────────── */
.xmct-tp-hero.xmct-hdr--storefront {
    background: linear-gradient(140deg, var(--hdr-ac-dark) 0%, var(--hdr-ac) 60%, var(--hdr-ac-light) 100%) !important;
    color: #fff; padding: 46px 0 44px; text-align: center;
}
.xmct-tp-hero.xmct-hdr--storefront.xmct-hdr--solid { background: var(--hdr-ac) !important; }
.xmct-hdr--storefront .xmct-hdr-pill {
    display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.16); border-radius: 999px;
    padding: 6px 16px 6px 6px; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.xmct-hdr--storefront .xmct-hdr-pill .xmct-hdr-ico { width: 30px; height: 30px; border-radius: 50%; }
.xmct-hdr--storefront .xmct-hdr-pill .xmct-hdr-ico img { padding: 3px; }
.xmct-hdr--storefront .xmct-hdr-pill .xmct-hdr-ico--initial { font-size: 14px; }
.xmct-hdr--storefront h1.xmct-hdr-title { font-size: clamp(30px, 4.4vw, 52px); color: #fff; }
.xmct-hdr--storefront .xmct-hdr-sub { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.9); margin: 12px auto 0; max-width: 680px; }
.xmct-hdr--storefront .xmct-hdr-search {
    display: flex; align-items: center; max-width: 700px; margin: 26px auto 0; background: #fff; border-radius: 999px;
    padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.xmct-hdr--storefront .xmct-hdr-search input {
    flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
    font: inherit; font-size: 16px; color: var(--hdr-navy) !important; -webkit-text-fill-color: var(--hdr-navy) !important; caret-color: var(--hdr-navy);
    padding: 0 20px; height: 46px; outline: none; opacity: 1;
}
.xmct-hdr--storefront .xmct-hdr-search input::placeholder { color: #8A97AB; -webkit-text-fill-color: #8A97AB; opacity: 1; }
.xmct-hdr--storefront .xmct-hdr-search button {
    appearance: none; -webkit-appearance: none; flex: 0 0 auto; border: 0; cursor: pointer; background: #F5C300; color: var(--hdr-navy);
    font: inherit; font-size: 15px; font-weight: 700; border-radius: 999px; height: 46px; padding: 0 28px;
}
.xmct-hdr--storefront .xmct-hdr-search button:hover { background: #E0B200; }
.xmct-hdr--storefront .xmct-hdr-search-msg { min-height: 20px; font-size: 13px; color: #fff; margin-top: 10px; }
.xmct-hdr--storefront .xmct-hdr-tiles {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; text-align: left;
}
.xmct-hdr--storefront .xmct-hdr-tile {
    flex: 0 1 176px; min-height: 112px; background: #fff; border-radius: 16px; padding: 16px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0;
    text-decoration: none; color: inherit; cursor: pointer; border: 2px solid transparent;
    box-shadow: 0 10px 28px rgba(27,38,65,.14); transition: transform .15s ease, border-color .15s ease;
}
.xmct-hdr--storefront .xmct-hdr-tile:hover { transform: translateY(-3px); }
.xmct-hdr--storefront .xmct-hdr-tile.is-active { border-color: #F5C300; box-shadow: 0 0 0 3px rgba(245,195,0,.45), 0 10px 28px rgba(27,38,65,.14); }
.xmct-hdr--storefront .xmct-hdr-tile .xmct-hdr-ico { width: 38px; height: 38px; background: var(--hdr-ac-tint); }
.xmct-hdr--storefront .xmct-hdr-tile-name { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--hdr-navy); overflow-wrap: anywhere; }

/* "Featured Products" label (inside the tile/card container) and "More Products" label above the remaining pills */
.xmct-hdr .xmct-hdr-featlabel { grid-column: 1 / -1; flex: 0 0 100%; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.xmct-hdr--storefront .xmct-hdr-featlabel { text-align: center; color: rgba(255,255,255,.82); margin-bottom: -4px; }
.xmct-hdr--showcase .xmct-hdr-featlabel { text-align: left; color: var(--hdr-mute); margin-bottom: -2px; }
.xmct-hdr-more { background: #fff; text-align: left; padding: 16px max(24px, calc((100% - 1200px) / 2)) 0; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6B7C93; line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Poppins', sans-serif; }

/* Initial-letter fallbacks sit on a tint inside cards/tiles and on white inside the storefront pill */
.xmct-hdr--showcase .xmct-hdr-card .xmct-hdr-ico--initial,
.xmct-hdr--storefront .xmct-hdr-tile .xmct-hdr-ico--initial { background: var(--hdr-ac-tint); color: var(--hdr-ac); }
.xmct-hdr--storefront .xmct-hdr-pill .xmct-hdr-ico--initial { background: #fff; color: var(--hdr-ac); }

/* ── Narrow screens ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .xmct-hdr .xmct-hdr-wrap { padding: 0 20px; }
    .xmct-hdr--showcase .xmct-hdr-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .xmct-hdr--showcase.xmct-hdr--nocards .xmct-hdr-wrap { gap: 0; }
    .xmct-hdr--refined .xmct-hdr-logo-tile { width: 72px; height: 72px; border-radius: 18px; }
    .xmct-hdr--refined .xmct-hdr-logo-tile--initial { font-size: 34px; }
}
@media (max-width: 640px) {
    .xmct-tp-hero.xmct-hdr--refined { padding: 32px 0 30px; }
    .xmct-hdr--refined .xmct-hdr-wrap { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
    .xmct-tp-hero.xmct-hdr--showcase { padding: 36px 0 38px; }
    .xmct-hdr--showcase .xmct-hdr-actions .xmct-hdr-btn { flex: 1 1 100%; }
    .xmct-tp-hero.xmct-hdr--storefront { padding-top: 34px; padding-bottom: 26px; }
    .xmct-hdr--storefront .xmct-hdr-tiles { gap: 12px; margin-top: 22px; }
    .xmct-hdr--storefront .xmct-hdr-tile { flex: 1 1 calc(50% - 6px); max-width: none; min-height: 96px; padding: 12px 14px; }
    .xmct-hdr--showcase .xmct-hdr-cards { grid-template-columns: minmax(0, 1fr); }
    .xmct-hdr--storefront .xmct-hdr-tile .xmct-hdr-ico { width: 32px; height: 32px; }
    .xmct-hdr--storefront .xmct-hdr-search { padding: 5px; }
    .xmct-hdr--storefront .xmct-hdr-search input { padding: 0 14px; height: 42px; font-size: 15px; }
    .xmct-hdr--storefront .xmct-hdr-search button { height: 42px; padding: 0 18px; }
}

@media (max-width: 600px) { .xmct-hdr-more { padding-left: 16px; padding-right: 16px; } }
