/* SZ_SITE_CHROME (phase 2) — store header + footer blocks designed in the page builder.
   App\Services\Storefront\SiteChrome · views resources/views/sz-chrome/*. Colours come from the block's settings;
   the counter colour falls back to the store's own colour (--main-color-one). */

.sz-chrome-wrap { position: relative; z-index: 60; }
.sz-chrome-wrap:has(.sz-hd.is-sticky) { position: sticky; top: 0; }
.sz-chrome-wrap > *, .sz-chrome-wrap section, .sz-chrome-wrap [class*="container"] { max-width: none; }
/* the builder gives every section and column 15px side padding; the header/footer bands run edge to edge */
.pb-section:has(.sz-hd, .sz-ft) .section-inner, .xgp_column:has(> .xgp-widget > .sz-hd, > .xgp-widget > .sz-ft) { padding-left: 0; padding-right: 0; }
.pb-section:has(.sz-hd, .sz-ft) .xgp_row { margin-left: 0; margin-right: 0; }

.sz-hd { --hd-ac: var(--main-color-one, #F97316); background: var(--hd-bg, #fff); color: var(--hd-fg, #0F1B3D); font-family: inherit; position: relative; }
.sz-hd.has-line { border-bottom: 1px solid color-mix(in srgb, var(--hd-fg, #0F1B3D) 10%, transparent); }
.sz-hd a { color: inherit; text-decoration: none; }
.sz-hd__in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; min-height: 70px; display: flex; align-items: center; gap: 18px; box-sizing: border-box; }
.sz-hd__logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.sz-hd__logo img { height: var(--hd-logo, 44px); width: auto; max-width: 190px; object-fit: contain; display: block; }
.sz-hd__logo .t { font-weight: 800; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.sz-hd__nav { flex: 1 1 auto; min-width: 0; }
.sz-hd__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sz-hd__menu > li { position: relative; list-style: none; }
.sz-hd__menu > li > a { display: flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; transition: background .15s, color .15s; }
.sz-hd__menu > li > a:hover, .sz-hd__menu > li.current-menu-item > a { background: color-mix(in srgb, var(--hd-fg, #0F1B3D) 7%, transparent); }
.sz-hd__menu > li.menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); opacity: .6; margin-inline-start: 4px; }
.sz-hd__menu .sub-menu { position: absolute; top: calc(100% + 4px); inset-inline-start: 0; min-width: 210px; margin: 0; padding: 8px; list-style: none; background: #fff; color: #0F1B3D; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(15, 27, 61, .25), 0 0 0 1px rgba(15, 27, 61, .06); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 5; }
.sz-hd__menu li:hover > .sub-menu, .sz-hd__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sz-hd__menu .sub-menu li { list-style: none; position: relative; }
.sz-hd__menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.sz-hd__menu .sub-menu a:hover { background: #FFF7ED; color: #C2410C; }
.sz-hd__menu .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }
.sz-hd__icons { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex: 0 0 auto; }
.sz-hd__ic { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; transition: background .15s; }
.sz-hd__ic:hover { background: color-mix(in srgb, var(--hd-fg, #0F1B3D) 7%, transparent); }
.sz-hd__ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sz-hd__badge { position: absolute; top: 2px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hd-ac); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--hd-bg, #fff); box-sizing: border-box; }
.sz-hd__burger { display: none; }
.sz-hd.no-menu .sz-hd__burger { display: none !important; }

/* centered: logo in the middle, the menu on its own row */
.sz-hd--centered .sz-hd__in { display: grid; grid-template-columns: 1fr auto 1fr; row-gap: 4px; padding-bottom: 6px; }
.sz-hd--centered .sz-hd__burger { grid-column: 1; grid-row: 1; justify-self: start; }
.sz-hd--centered .sz-hd__logo { grid-column: 2; grid-row: 1; }
.sz-hd--centered .sz-hd__icons { grid-column: 3; grid-row: 1; justify-self: end; }
.sz-hd--centered .sz-hd__nav { grid-column: 1 / -1; grid-row: 2; }
.sz-hd--centered .sz-hd__menu { justify-content: center; }

/* minimal: the menu always lives in the drawer */
.sz-hd--minimal .sz-hd__burger { display: inline-grid; }

@media (max-width: 991px) {
    .sz-hd__in { padding: 8px 12px; min-height: 60px; gap: 8px; }
    .sz-hd__nav { display: none; }
    .sz-hd__burger { display: inline-grid; }
    .sz-hd__logo img { height: calc(var(--hd-logo, 44px) * .82); max-width: 140px; }
    .sz-hd__logo .t { font-size: 18px; }
    .sz-hd__acc, .sz-hd__wish { display: none; }
    .sz-hd--centered .sz-hd__in { padding-bottom: 8px; }
    .sz-hd--classic .sz-hd__logo { margin-inline-end: auto; }
}

/* the same, inside the editor's phone / tablet frame (a container named sz-canvas; the store has none, so the
   browser ignores these there) */
@container sz-canvas (max-width: 991px) {
    .sz-hd__in { padding: 8px 12px; min-height: 60px; gap: 8px; }
    .sz-hd__nav { display: none; }
    .sz-hd__burger { display: inline-grid; }
    .sz-hd__logo img { height: calc(var(--hd-logo, 44px) * .82); max-width: 140px; }
    .sz-hd__logo .t { font-size: 18px; }
    .sz-hd__acc, .sz-hd__wish { display: none; }
    .sz-hd--centered .sz-hd__in { padding-bottom: 8px; }
    .sz-hd--classic .sz-hd__logo { margin-inline-end: auto; }
    .sz-ft__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 40px 16px 28px; }
    .sz-ft__brand { grid-column: 1 / -1; }
}
@container sz-canvas (max-width: 480px) { .sz-ft__in { grid-template-columns: 1fr; } }

/* phone drawer (moved under <body> by its script) */
.sz-hd-drawer { position: fixed; inset: 0; z-index: 100050; background: rgba(15, 27, 61, 0); transition: background .2s; }
.sz-hd-drawer.is-open { background: rgba(15, 27, 61, .45); }
.sz-hd-drawer[hidden] { display: none; }
.sz-hd-drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 340px); background: #fff; color: #0F1B3D; overflow-y: auto; padding: 14px 16px 24px; box-sizing: border-box; transform: translateX(100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(15, 27, 61, .2); }
[dir="ltr"] .sz-hd-drawer__panel, html:not([dir="rtl"]) .sz-hd-drawer__panel { transform: translateX(-100%); }
[dir="rtl"] .sz-hd-drawer__panel { transform: translateX(100%); }
.sz-hd-drawer.is-open .sz-hd-drawer__panel { transform: none; }
.sz-hd-drawer a { color: inherit; text-decoration: none; }
.sz-hd-drawer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid #EEF1F5; }
.sz-hd-drawer__top .sz-hd__logo img { height: 36px; max-width: 150px; }
.sz-hd-drawer__top .sz-hd__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sz-hd-drawer .sz-hd__ic { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: #F1F5F9; cursor: pointer; color: inherit; }
.sz-hd-drawer__menu, .sz-hd-drawer__menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.sz-hd-drawer__menu li { list-style: none; }
.sz-hd-drawer__menu > li { border-bottom: 1px solid #F1F5F9; }
.sz-hd-drawer__menu a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; font-size: 15.5px; font-weight: 600; }
.sz-hd-drawer__menu .menu-item-has-children > a::after { content: "+"; font-weight: 400; font-size: 20px; color: #94A3B8; }
.sz-hd-drawer__menu .menu-item-has-children.is-open > a::after { content: "−"; }
.sz-hd-drawer__menu .sub-menu { display: none; padding: 0 12px 8px; }
.sz-hd-drawer__menu .is-open > .sub-menu { display: block; }
.sz-hd-drawer__menu .sub-menu a { font-size: 14.5px; font-weight: 500; padding: 9px 4px; color: #475569; }
.sz-hd-drawer__links { margin-top: 18px; display: grid; gap: 6px; }
.sz-hd-drawer__links a { display: block; padding: 11px 14px; border-radius: 12px; background: #F8FAFC; font-size: 14px; font-weight: 600; }
.sz-hd-drawer__links a:hover { background: #FFF7ED; color: #C2410C; }
html.sz-hd-lock, html.sz-hd-lock body { overflow: hidden; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.sz-ft { background: var(--ft-bg, #0F1B3D); color: var(--ft-fg, #E2E8F0); font-family: inherit; }
.sz-ft a { color: inherit; text-decoration: none; opacity: .82; transition: opacity .15s, color .15s; }
.sz-ft a:hover { opacity: 1; color: var(--main-color-one, #F97316); }
.sz-ft__in { max-width: 1280px; margin: 0 auto; padding: 56px 20px 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; box-sizing: border-box; }
.sz-ft__col h4 { font-size: 15px; font-weight: 800; margin: 4px 0 16px; color: inherit; letter-spacing: 0; }
.sz-ft__logo { display: inline-flex; align-items: center; opacity: 1 !important; }
.sz-ft__logo img { height: 46px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.sz-ft__logo.is-tile { background: #fff; padding: 8px 12px; border-radius: 12px; }
.sz-ft__logo .t { font-weight: 800; font-size: 22px; }
.sz-ft__about { margin: 16px 0 0; font-size: 14px; line-height: 1.85; opacity: .78; max-width: 360px; }
.sz-ft__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sz-ft__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--ft-fg, #E2E8F0) 10%, transparent); opacity: 1; }
.sz-ft__social a:hover { background: var(--main-color-one, #F97316); color: #fff; }
.sz-ft__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sz-ft__list li { list-style: none; font-size: 14px; line-height: 1.6; }
.sz-ft__menu .sub-menu { display: none; }
.sz-ft__menu a::after { display: none !important; }
.sz-ft__contact span { opacity: .78; }
.sz-ft__bar { border-top: 1px solid color-mix(in srgb, var(--ft-fg, #E2E8F0) 12%, transparent); }
.sz-ft__bar-in { max-width: 1280px; margin: 0 auto; padding: 18px 20px; font-size: 13px; opacity: .7; text-align: center; box-sizing: border-box; }
@media (max-width: 991px) {
    .sz-ft__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 40px 16px 28px; }
    .sz-ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .sz-ft__in { grid-template-columns: 1fr; }
}

/* SZ_CHROME_HOOKS (plan phase 5): the language / currency switchers the plugins add to every store header */
.sz-hd__hooks { display: flex; align-items: center; gap: 8px; margin-inline-end: 6px; font-size: 13px; color: var(--hd-fg); }
.sz-hd__hooks a { color: inherit; }
.sz-hd-drawer__hooks { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* SZ_P40: on a phone the switchers move into the drawer - a header without a menu has no drawer, so they stay */
@media (max-width: 991px) { .sz-hd:not(.no-menu) .sz-hd__icons .sz-hd__hooks { display: none; } }

/* SZ_P40: the footer headline (CTA) the store set, and its policy pages in the bottom bar */
.sz-ft__cta { border-bottom: 1px solid color-mix(in srgb, var(--ft-fg, #E2E8F0) 12%, transparent); }
.sz-ft__cta-in { max-width: 1280px; margin: 0 auto; padding: 26px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-sizing: border-box; }
.sz-ft__cta-t { display: grid; gap: 4px; }
.sz-ft__cta-t strong { font-size: 18px; line-height: 1.4; }
.sz-ft__cta-t span { font-size: 14px; opacity: .78; }
.sz-ft__cta-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--main-color-one, #F97316); color: #fff !important; font-weight: 600; text-decoration: none; }
.sz-ft__bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.sz-ft__policies { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sz-ft__policies a { color: inherit; text-decoration: none; }
.sz-ft__policies a:hover { text-decoration: underline; }
