/*
 * Payism V3 website: the bazaar look of the shared header and footer (owner prototype, 31 Oct 2026).
 * Loaded on every V3 page after header.css: a deep-blue band (Payism Blue #1366D6, navy #0A2E6E) with a thin
 * navy top bar, a white search pill, translucent chips and a row of category icons; a full navy footer.
 * Saffron (#FF8A00 -> #FF6F00) is kept for buy actions and deal urgency only (bazaar.css).
 * Markup: frontend/v3/header/header.blade.php, frontend/v3/footer/footer.blade.php (classes unchanged).
 */
:root {
    --bz-navy: #0A2E6E;
    --bz-blue: #1366D6;
    --bz-blue-2: #0F56B8;
    --bz-sky: #E7F0FD;
    --bz-page: #F3F6FB;
    --bz-ink: #0E1726;
    --bz-ink-2: #5B6B82;
    --bz-line: #E1E8F2;
    --bz-tile: #EEF2F8;
    --bz-saffron: #FF8A00;
    --bz-saffron-2: #FF6F00;
    --bz-green: #0B7A3B;
    --bz-gold: #F5B301;
    --bz-topbar: #071F4D;
    --bz-foot: #0B1830;
    --bz-foot-2: #0F2244;
    --bz-foot-line: #1E3358;
    --bz-glass: rgba(255, 255, 255, .14);
    --bz-glass-line: rgba(255, 255, 255, .28);
    --bz-band: radial-gradient(120% 140% at 85% 0%, #1E78E8 0%, transparent 55%), linear-gradient(160deg, #0A2E6E 0%, #0F4FB0 60%, #1366D6 100%);
}
body.v3.v3-page, body.v3.v3-page .payism-main-wrapper { background: var(--bz-page) !important; }
body.v3 :focus-visible { outline: 3px solid #FFB54D; outline-offset: 2px; box-shadow: none; }

/* ---------- header band ---------- */
body.v3 .v3-header { background: var(--bz-band); color: #fff; }
body.v3:not(.v3-home--bazaar) .v3-header { border-radius: 0 0 28px 28px; }
/* The bazaar home continues the band below the header (frontend/v3/home/bazaar_hero.blade.php). */
body.v3.v3-home--bazaar .v3-header { background: linear-gradient(180deg, #0A2E6E 0%, #0D3F8F 100%); }
body.v3 .v3-header.is-stuck { box-shadow: 0 8px 24px rgba(4, 20, 60, .28); }

/* thin top bar */
body.v3 .v3-util { background: var(--bz-topbar); color: #DCE8FB; }
body.v3 .v3-util__in { height: 34px; }
body.v3 .v3-util__trust { font-weight: 600; }
body.v3 .v3-util__links { gap: 20px; }
body.v3 .v3-util__links > a, body.v3 .v3-util__lang > a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; color: #fff !important; font-weight: 600; opacity: 1; }

/* main bar */
body.v3 .v3-main { border-bottom: 0; }
body.v3 .v3-main__in { gap: 16px; height: 80px; }
body.v3 .v3-logo img { filter: grayscale(1) invert(1) brightness(1.8); mix-blend-mode: screen; }
body.v3 .v3-deliver { height: 48px; padding: 0 16px; border-radius: 999px; background: var(--bz-glass); border: 1px solid var(--bz-glass-line); color: #fff; }
body.v3 .v3-deliver:hover { background: rgba(255, 255, 255, .22); }
body.v3 .v3-deliver__txt small { color: rgba(255, 255, 255, .82); font-size: 12px; }
body.v3 .v3-deliver__txt b { color: #fff; }
body.v3 .v3-header .v3-search { max-width: 720px; }
body.v3 .v3-header .v3-search__bar { height: 52px; padding: 4px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(4, 20, 60, .25); }
body.v3 .v3-header .v3-search.is-open .v3-search__bar, body.v3 .v3-header .v3-search__bar:focus-within { border: 0; box-shadow: 0 0 0 3px #FFB54D, 0 6px 18px rgba(4, 20, 60, .25); }
body.v3 .v3-header .v3-search__scope { border-right-color: var(--bz-line); }
body.v3 .v3-header .v3-search__scope select { border-radius: 999px 0 0 999px; }
body.v3 .v3-header .v3-search__input { font-size: 16px; }
body.v3 .v3-header .v3-search__go { width: 44px; height: 44px; margin: 0; border-radius: 50%; background: var(--bz-blue); }
body.v3 .v3-header .v3-search__go:hover { background: var(--bz-blue-2); }
body.v3 .v3-main__menu, body.v3 .v3-main__back { color: #fff !important; }
body.v3 .v3-acct__btn { color: #fff !important; border-radius: 999px; padding: 4px 12px 4px 4px; min-height: 48px; }
body.v3 .v3-acct__btn:hover { background: rgba(255, 255, 255, .12); }
body.v3 .v3-acct__btn > .v3i { color: #fff; }
body.v3 .v3-acct__txt small { color: rgba(255, 255, 255, .82); }
body.v3 .v3-acct__btn .v3-acct__avatar { width: 40px; height: 40px; background: #2B7DE9; border: 2px solid rgba(255, 255, 255, .7); }
body.v3 .v3-acct__menu, body.v3 .v3-acct__menu * { color: var(--v3-ink); }
body.v3 .v3-acct__menu .v3-acct__earn, body.v3 .v3-acct__menu .v3-acct__earn * { color: #fff !important; }
body.v3 .v3-earn-pill { background: var(--bz-glass); color: #fff !important; border: 1px solid var(--bz-glass-line); height: 40px; }
body.v3 .v3-main__icon { min-width: 48px; height: 48px; border-radius: 50%; background: var(--bz-glass); border: 1px solid var(--bz-glass-line); color: #fff !important; }
body.v3 .v3-main__icon:hover { background: rgba(255, 255, 255, .22); }
body.v3 .v3-main__icon .payism-retail-mini-link, body.v3 .v3-main__icon .payism-retail-mini-link * { color: #fff !important; }
body.v3 .v3-main__icon svg { stroke: #fff; }
body.v3 .v3-cart__btn { justify-content: center; width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%; background: var(--bz-glass); border: 1px solid var(--bz-glass-line); color: #fff !important; }
body.v3 .v3-cart__btn:hover { background: rgba(255, 255, 255, .22); }
body.v3 .v3-cart__total { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.v3 .v3-header .v3-dot, body.v3 .v3-main__icon .payism-retail-mini-badge { background: var(--bz-gold); color: #1B1200; border: 2px solid #0F4FB0; min-width: 22px; height: 22px; line-height: 18px; }
body.v3 .v3-cart__ico .v3-dot { top: -12px; right: -14px; }

/* category icon rail */
body.v3 .v3-catnav { background: transparent; border-bottom: 0; }
body.v3 .v3-catnav__in { height: auto; min-height: 48px; padding-top: 2px; padding-bottom: 12px; gap: 6px; align-items: stretch; }
body.v3 .v3-catnav__all { align-self: center; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--bz-glass); border: 1px solid var(--bz-glass-line); color: #fff; }
body.v3 .v3-catnav__all[aria-expanded='true'] { background: #fff; color: var(--bz-blue); }
body.v3 .v3-catnav__links { gap: 4px; overflow-x: auto; scrollbar-width: none; }
body.v3 .v3-catnav__links::-webkit-scrollbar { display: none; }
/* Report 6 Nov: each item kept at least 84 px and never shrank, so 10 categories needed ~1,090 px of an ~840 px row
   on a 1440 px screen and the last ones were hidden under "Today's deals" (no scrollbar). Items now share the row
   and shrink to 72 px (the name wraps to two lines); only a still narrower screen scrolls the row. */
body.v3 .v3-catnav__links li { flex: 1 1 0; min-width: 72px; }
@media (min-width: 992px) {
    /* Narrow desktops can still run out of room: while more categories sit to the right (site.js sets .is-more),
       the right edge fades so the row reads as "scroll for more". A row that fits, or one scrolled to its end,
       keeps every name fully drawn. */
    body.v3 .v3-catnav__links.is-more { padding-right: 24px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
}
body.v3 .v3-catnav__links a { flex-direction: column; justify-content: center; gap: 6px; width: 100%; height: auto; min-width: 0; max-width: 128px; margin: 0 auto; padding: 6px 4px 8px; border-radius: 14px; color: #fff !important; font-size: 13px; font-weight: 600; line-height: 16px; text-align: center; white-space: normal; }
body.v3 .v3-catnav__links a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
body.v3 .v3-catnav__links a[aria-current='page'] { box-shadow: inset 0 -3px 0 #fff; }
body.v3 .v3-catnav__ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--bz-blue); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
body.v3 .v3-catnav__ico img { width: 26px; height: 26px; object-fit: contain; }
body.v3 .v3-catnav__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.v3 .v3-catnav__right { align-self: center; border-left-color: rgba(255, 255, 255, .25); }
body.v3 .v3-catnav__right a { min-height: 44px; color: #fff !important; font-weight: 600; }
body.v3 .v3-catnav__right a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
body.v3 .v3-catnav__right a.v3-catnav__deal { color: #FFC67A !important; }
body.v3 .v3-mega { top: calc(100% + 6px); }

@media (max-width: 991.98px) {
    body.v3 .v3-main__in { padding-top: 8px; padding-bottom: 10px; gap: 8px; }
    body.v3 .v3-main__icon, body.v3 .v3-cart__btn { width: 44px; min-width: 44px; height: 44px; }
    body.v3 .v3-main__right { gap: 6px; }
    body.v3 .v3-deliver-row { width: auto; height: 44px; margin: 0 var(--v3-side) 10px; padding: 0 16px; border-radius: 999px; background: var(--bz-glass); border: 1px solid var(--bz-glass-line); color: #fff; }
    body.v3 .v3-deliver-row b { color: #fff; }
    /* The category icon rail stays on the phone home (scrolls sideways); other pages keep the compact bar. */
    body.v3.v3-home .v3-catnav__in { display: flex !important; padding-bottom: 10px; }
    body.v3.v3-home .v3-catnav__all, body.v3.v3-home .v3-catnav__right { display: none; }
    body.v3.v3-home .v3-catnav__links li { flex: 0 0 auto; }
    body.v3.v3-home .v3-catnav__links a { min-width: 72px; font-size: 12.5px; }
    body.v3.v3-home .v3-header.is-stuck .v3-catnav__in { display: none !important; }
    body.v3:not(.v3-home--bazaar) .v3-header { border-radius: 0 0 22px 22px; }
    /* The thin top bar keeps its one line of promises on the phone (links live in the drawer). */
    body.v3 .v3-header .v3-util { display: block !important; font-size: 12px; }
    body.v3 .v3-header .v3-util__in { height: 30px; }
    body.v3 .v3-header .v3-util__links { display: none; }
    body.v3 .v3-header.is-stuck .v3-util { display: none !important; }
}
/* Report 6 Nov: the phone top bar shows one promise at a time (site.js turns them every 4 s, or keeps the first
   one with "reduce motion"), centred, instead of one long line cut with "…". */
@media (max-width: 767.98px) {
    body.v3 .v3-header .v3-util__in { justify-content: center; }
    body.v3 .v3-util__trust[data-v3-util-rotate] { text-align: center; }
    body.v3 .v3-util__trust[data-v3-util-rotate] .v3-util__sep,
    body.v3 .v3-util__trust[data-v3-util-rotate] .v3-util__item:not(.is-on) { display: none; }
}

/* ---------- footer ---------- */
body.v3 .v3-footer { background: var(--bz-foot); color: #C9D4E6; }
body.v3 .v3-footer a { color: #C9D4E6 !important; }
body.v3 .v3-footer a:hover { color: #fff !important; }
.v3-footer__news-row { background: var(--bz-foot-2); }
.v3-footer__news-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; padding-bottom: 22px; }
.v3-footer__news-txt b { display: block; color: #fff; font-size: 20px; line-height: 28px; }
.v3-footer__news-txt span { font-size: 14px; }
body.v3 .v3-footer .v3-footer__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #25D366; color: #052E16 !important; font-weight: 800; text-decoration: none; }
body.v3 .v3-footer .v3-footer__wa:hover { filter: brightness(1.05); color: #052E16 !important; }
.v3-footer__news-row .v3-footer__news { flex: 1 1 320px; max-width: 460px; margin: 0; }
.v3-footer__news-row .v3-footer__news input { height: 48px; background: #fff; color: var(--bz-ink); border: 0; }
.v3-footer__news-row .v3-footer__news input::placeholder { color: #6B7686; }
.v3-footer__news-row .v3-footer__news button { height: 48px; }
body.v3 .v3-footer__grid { grid-template-columns: minmax(240px, 1.5fr) repeat(var(--v3f-cols, 5), minmax(0, 1fr)); gap: 24px; padding: 36px 0 24px; }
.v3-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.v3-footer__brand p { margin: 4px 0 6px; font-size: 14px; line-height: 22px; max-width: 40ch; }
body.v3 .v3-footer .v3-footer__care { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #fff !important; text-decoration: none; }
.v3-footer__care small { display: block; color: #9FB0CC; font-size: 12px; line-height: 16px; }
.v3-footer__care b { font-size: 15px; }
.v3-footer__care-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; }
.v3-footer__hours { color: #9FB0CC; font-size: 13px; }
.v3-footer__brand .v3-footer__contact { margin-top: 6px; font-size: 13px; }
body.v3 .v3-footer__col ul { display: grid; gap: 4px; }
body.v3 .v3-footer__col li { padding: 0; }
body.v3 .v3-footer__col a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; }
.v3-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--bz-foot-line); }
.v3-footer__label { color: #fff; font-weight: 700; font-size: 14px; margin-right: 6px; }
body.v3 .v3-footer__marks li { height: 30px; padding: 0 12px; border: 1px solid #2A416B; border-radius: 999px; background: transparent; color: #DCE6F5; font-style: normal; font-weight: 700; letter-spacing: 0; }
.v3-footer__langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v3-footer__tag { min-height: 40px; padding: 0 14px; border: 1px solid #2A416B; border-radius: 999px; background: transparent; color: #DCE6F5; font: 600 13px var(--v3-font); cursor: pointer; }
.v3-footer__tag:hover { background: #1A3157; }
.v3-footer__tag[aria-pressed='true'] { background: #fff; border-color: #fff; color: var(--bz-foot); }
.v3-footer__popular { padding: 14px 0; border-top: 1px solid var(--bz-foot-line); }
.v3-footer__popular b { color: #fff; font-size: 14px; }
.v3-footer__popular ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 2px; }
.v3-footer__popular li:not(:last-child)::after { content: '|'; margin: 0 8px; color: #3A5072; }
body.v3 .v3-footer .v3-footer__popular a { color: #8FA3C4 !important; font-size: 14px; line-height: 28px; }
body.v3 .v3-footer .v3-footer__popular a:hover { color: #fff !important; }
body.v3 .v3-footer__bottom { justify-content: flex-start; gap: 12px 24px; border-top-color: var(--bz-foot-line); }
body.v3 .v3-footer__social { margin-top: 0 !important; }
body.v3 .v3-footer__social a { width: 40px; height: 40px; border-color: #2A416B; }
body.v3 .v3-footer .v3-footer__top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid #2A416B; border-radius: 999px; color: #fff !important; font-weight: 700; text-decoration: none; }
body.v3 .v3-footer .v3-footer__top:hover { background: #1A3157; }

@media (max-width: 1199.98px) {
    body.v3 .v3-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.v3 .v3-footer__brand { grid-column: 1 / -1; }
}
/* Report 6 Nov (tablet footer): 768-1199 px took the desktop sizes, so on an iPad the language chips, pay marks and
   popular searches were small and tight to tap. Tablets now get touch sizes and a little more room per row. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .v3-footer__row, .v3-footer__popular { padding: 18px 0; }
    .v3-footer__row { gap: 10px; }
    .v3-footer__label, .v3-footer__popular b { font-size: 15px; }
    body.v3 .v3-footer__marks li { height: 36px; padding: 0 14px; font-size: 14px; }
    .v3-footer__langs { gap: 10px; }
    .v3-footer__tag { min-height: 44px; padding: 0 16px; font-size: 15px; }
    body.v3 .v3-footer .v3-footer__popular a { font-size: 15px; line-height: 36px; }
    .v3-footer__popular li:not(:last-child)::after { margin: 0 10px; }
    body.v3 .v3-footer__social a { width: 44px; height: 44px; }
}
@media (max-width: 767.98px) {
    .v3-footer__news-in { padding-top: 18px; padding-bottom: 18px; }
    .v3-footer__news-txt b { font-size: 18px; }
    body.v3 .v3-footer .v3-footer__wa { width: 100%; justify-content: center; }
    body.v3 .v3-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
    body.v3 .v3-footer__brand { padding-bottom: 14px; }
    body.v3 .v3-footer--acc .v3-footer__col { border-bottom: 0; border-top: 1px solid var(--bz-foot-line); }
    body.v3 .v3-footer--acc .v3-footer__col a { min-height: 40px; }
    .v3-footer__tag { min-height: 48px; }
    body.v3 .v3-footer__bottom { flex-direction: row; flex-wrap: wrap; align-items: center; }
    body.v3 .v3-footer .v3-footer__top { margin-left: 0; }
}

/* Team issues 6 Nov 2026 (T8): the footer's Pay with, Shop in your language and Popular searches groups are one
   row each: the same label column, the same 32 px pills and the same 8 px gaps (phones: the label sits above its
   pills, which keep the 48 px tap height). Popular searches are pills too, no "|" dividers. */
.v3-footer__groups .v3-footer__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 8px; padding: 12px 0; }
.v3-footer__groups .v3-footer__label { margin: 0; }
.v3-footer__groups .v3-footer__row > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.v3 .v3-footer__groups .v3-footer__marks li { height: 32px; }
.v3-footer__groups .v3-footer__tag { min-height: 32px; }
.v3-footer__groups .v3-footer__popular li:not(:last-child)::after { content: none; }
body.v3 .v3-footer .v3-footer__groups .v3-footer__popular a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid #2A416B; border-radius: 999px; color: #DCE6F5 !important; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; }
body.v3 .v3-footer .v3-footer__groups .v3-footer__popular a:hover { background: #1A3157; color: #fff !important; }
@media (max-width: 767.98px) {
    .v3-footer__groups .v3-footer__row { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
    .v3-footer__groups .v3-footer__tag { min-height: 48px; }
    body.v3 .v3-footer .v3-footer__groups .v3-footer__popular a { min-height: 44px; padding: 0 14px; }
}
