/* [cazrom_header] : the site header ( .czh ) and its menu for small screens ( .czh-drawer , moved to the end of the page ).
 * Top row : logo , search , call / chat / email. Menu row : the menu , each item opening the one shared panel.
 * Every state of a link and a button is written out , so a theme's ( and Bootstrap's ) own rules stay out.
 * The compact layout is in cazrom_header_mobile.css. */

:is(.czh, .czh-drawer) {
    --czh-ink: var(--e-global-color-text, #16181d); --czh-muted: #6b7280; --czh-line: #e3e4e8; --czh-soft: #f3f4f6;
    --czh-primary: var(--czp-primary, var(--e-global-color-primary, #16181d)); --czh-on-primary: var(--czp-on-primary, #fff);
    /* behind the item that is open , and a row that is pointed at */
    --czh-tint: color-mix(in srgb, var(--czh-primary) 11%, #fff);
    color: var(--czh-ink); font-family: inherit; font-size: 15px; line-height: 1.3; text-align: left;
}
:is(.czh, .czh-drawer) *, :is(.czh, .czh-drawer) *::before, :is(.czh, .czh-drawer) *::after { box-sizing: border-box; }
:is(.czh, .czh-drawer) [hidden] { display: none !important; }
/* the class twice : a theme's rule for links inside its content area ( .entry-content a ) must not win */
:is(.czh.czh, .czh-drawer.czh-drawer) a, :is(.czh.czh, .czh-drawer.czh-drawer) a:hover, :is(.czh.czh, .czh-drawer.czh-drawer) a:focus, :is(.czh.czh, .czh-drawer.czh-drawer) a:active { text-decoration: none; box-shadow: none; }
:is(.czh, .czh-drawer) a, :is(.czh, .czh-drawer) a:hover, :is(.czh, .czh-drawer) a:focus, :is(.czh, .czh-drawer) a:active { color: inherit; }
:is(.czh, .czh-drawer) button, :is(.czh, .czh-drawer) button:hover, :is(.czh, .czh-drawer) button:focus, :is(.czh, .czh-drawer) button:active {
    margin: 0; border: 0; background: none; color: inherit; box-shadow: none; font: inherit; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer;
}
:is(.czh, .czh-drawer) :is(a, button):focus-visible { outline: 2px solid var(--czh-ink); outline-offset: 2px; }
:is(.czh, .czh-drawer) ul { margin: 0; padding: 0; list-style: none; }
:is(.czh, .czh-drawer) li { margin: 0; padding: 0; }
:is(.czh, .czh-drawer) p { margin: 0; }
:is(.czh, .czh-drawer) svg { flex: none; }

.czh { position: relative; z-index: 9980; width: 100%; background: #fff; }
/* as wide as the pages the plugin makes , with the same room at the sides ( Design tab > Page width and spacing ) */
.czh .czh-inner { display: flex; align-items: center; max-width: calc(var(--czpg-width, 1450px) + 2 * var(--czpg-pad, 30px)); margin: 0 auto; padding: 0 var(--czpg-pad, 30px); }
@media (max-width: 1024px) { .czh .czh-inner { padding-left: var(--czpg-pad-x, 10px); padding-right: var(--czpg-pad-x, 10px); } }

/* ---------- top row ---------- */
.czh .czh-top .czh-inner { gap: 28px; height: 84px; }
.czh .czh-burger, .czh .czh-quick { display: none; }
:is(.czh, .czh-drawer) .czh-logo { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
/* never stretched : the width follows the height */
:is(.czh, .czh-drawer) .czh-logo img { display: block; width: auto; height: auto; max-height: 60px; max-width: min(240px, 100%); object-fit: contain; }
:is(.czh, .czh-drawer) .czh-logo span { font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.czh .czh-search { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }

.czh .czh-side { flex: none; display: grid; grid-template-columns: auto; align-items: center; row-gap: 5px; }
.czh .czh-contact { grid-column: 1; display: flex; align-items: center; gap: 22px; }
.czh .czh-link, .czh .czh-link:hover, .czh .czh-link:focus { padding: 0; display: flex; align-items: center; gap: 9px; color: var(--czh-ink); font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.czh .czh-link svg { width: 26px; height: 26px; color: var(--e-global-color-primary, #16181d); }
/* pointed at : the words take the site's primary color , nothing is underlined */
.czh .czh-link > span { transition: color .15s ease; }
.czh .czh-link:hover > span { color: var(--e-global-color-primary, var(--czh-ink)); text-decoration: none; }

/* full menu : favorites and sign in as a small grey line over the contacts , the cart to their right */
.czh .czh-mini { grid-column: 1; justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
/* only the three links of the line itself ( .czh-mini-link ) : the cart's pop-up sits inside this line too , and its
   "View cart" button keeps its own colors */
.czh .czh-mini .czh-mini-link, .czh .czh-mini .czh-mini-link:focus { color: #8a909b; }
.czh .czh-mini .czh-mini-link { display: inline-flex; align-items: center; gap: 5px; transition: color .15s ease; }
/* their icons : the grey of the words , and the size of the words ( smaller than the phone and email ones ) */
.czh .czh-mini .czh-mini-link > svg { flex: none; width: 1.15em; height: 1.15em; color: inherit; }
.czh .czh-mini .czh-mini-link:hover { color: var(--e-global-color-primary, var(--czh-ink)); text-decoration: none; }
/* Cart , in words , with its count beside it : a perfect circle in the row , not laid over anything */
.czh .czh-mini-cart { position: static; display: flex; align-items: center; }
.czh .czh-mini-cart > .czh-mini-link { gap: 6px; }
.czh .czh-count-inline {
    flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; overflow: hidden; border-radius: 50%;
    background: var(--e-global-color-primary, #16181d); color: var(--czh-on-primary, #fff);
    font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: -.03em; text-align: center; font-variant-numeric: tabular-nums;
}
.czh .czh-count-inline.is-long { font-size: 9px; }
.czh .czh-mini .czh-mini-link:hover .czh-count-inline { color: var(--czh-on-primary, #fff); }
.czh .czh-mini-line { width: 1px; height: 12px; background: #cfd3d9; }

/* ---------- menu row ---------- */
.czh .czh-nav { border-top: 1px solid #eceef1; border-bottom: 1px solid #dcdfe4; }
.czh .czh-nav .czh-inner { position: relative; gap: 16px; height: 54px; }
.czh .czh-menu { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px; margin-left: -12px; }
.czh.czh-full .czh-menu { justify-content: space-between; margin-right: -12px; }
.czh .czh-item { flex: none; }
.czh .czh-top-link, .czh .czh-top-link:hover, .czh .czh-top-link:focus, .czh .czh-top-link:active {
    display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 9px;
    color: var(--czh-ink); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .16s ease;
}
.czh .czh-top-link svg { color: #8a909b; transition: transform .2s ease; }
.czh .czh-top-link:hover, .czh .czh-item.is-open .czh-top-link { background: var(--czh-tint); }
.czh .czh-item.is-open .czh-top-link svg { transform: rotate(180deg); }

.czh .czh-tools { flex: none; display: flex; align-items: center; gap: 4px; margin-right: -8px; }
:is(.czh, .czh-drawer) .czh-icon-link, :is(.czh, .czh-drawer) .czh-icon-link:hover, :is(.czh, .czh-drawer) .czh-icon-link:focus {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 42px; height: 42px; padding: 0 9px; border-radius: 9px;
    color: var(--czh-ink); font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .16s ease;
}
.czh .czh-icon-link:hover { background: var(--czh-soft); }

/* ----- the cart : a count on the icon , and what is in it when pointed at ----- */
.czh .czh-cart { position: static; display: flex; align-items: center; }
:is(.czh, .czh-drawer) .czh-cart-icon { position: relative; display: flex; }
:is(.czh, .czh-drawer) .czh-count {
    position: absolute; top: -8px; right: -10px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; overflow: hidden;
    border-radius: 50%; background: var(--czh-primary); color: var(--czh-on-primary);
    font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: -.03em; text-align: center;
}
.czh .czh-count.is-long { font-size: 9px; }
/* the list hangs from the bottom of the row the cart is in , at its right end */
.czh .czh-top .czh-inner { position: relative; }
.czh .czh-pop {
    position: absolute; top: 100%; right: 24px; z-index: 8; width: 340px; margin-top: 6px; padding: 16px;
    border: 1px solid var(--czh-line); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(15, 17, 22, .16);
    color: #16181d; font-size: 14px; text-align: left;
}
.czh .czh-top .czh-pop { top: calc(100% - 14px); }
.czh .czh-pop-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: #16181d; }
.czh .czh-cart-items { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.czh .czh-cart-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--czh-line); }
.czh .czh-cart-item img { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--czh-line); }
.czh .czh-cart-item-info { flex: 1 1 auto; min-width: 0; }
.czh .czh-cart-item-info strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: #16181d; }
.czh .czh-cart-item-info small { display: block; font-size: 12px; color: #5d6470; }
.czh .czh-cart-item-price { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.czh .czh-cart-note { margin: 0 0 12px; font-size: 14px; color: #5d6470; }
.czh .czh-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 12px 0; border-top: 1px solid var(--czh-line); font-size: 14px; }
.czh .czh-cart-total strong { font-size: 17px; font-weight: 800; }
.czh .czh-cart-button, .czh .czh-cart-button:hover, .czh .czh-cart-button:focus {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 22px;
    border-radius: var(--czp-button-radius, 100px); background: var(--czh-primary); color: var(--czh-on-primary);
    font-size: 14px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease;
}
.czh .czh-cart-button:hover { transform: scale(1.035); box-shadow: 0 8px 22px rgba(15, 17, 22, .22); }

/* ---------- the shared panel ----------
 * One box under the menu row. The script gives it the place and the size of the open item's panel ; going
 * from one item to the next it slides and resizes , and the panels cross-fade inside it. */
.czh .czh-drop {
    position: absolute; top: calc(100% + 7px); left: 0; z-index: 6; width: 240px; height: 100px;
    border: 1px solid var(--czh-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(15, 17, 22, .16);
    opacity: 0; pointer-events: none; transform: translate(var(--czh-x, 0px), -6px);
    transition: opacity .16s ease, transform .16s ease;
}
/* keeps the pointer inside on the way from the item down to the panel */
.czh .czh-drop::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.czh .czh-drop.is-open { opacity: 1; pointer-events: auto; transform: translate(var(--czh-x, 0px), 0); }
/* already open : it travels */
.czh .czh-drop.is-open.is-moving { transition: opacity .16s ease, transform .3s cubic-bezier(.3, .9, .3, 1), width .3s cubic-bezier(.3, .9, .3, 1), height .3s cubic-bezier(.3, .9, .3, 1); }
.czh .czh-drop-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 13px; }
.czh .czh-panel {
    position: absolute; top: 0; left: 0; width: max-content; max-width: var(--czh-max, 1200px); padding: 16px;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(var(--czh-from, 0px));
    transition: opacity .16s ease, transform .3s cubic-bezier(.3, .9, .3, 1), visibility 0s linear .16s;
}
.czh .czh-panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .2s ease .06s, transform .3s cubic-bezier(.3, .9, .3, 1), visibility 0s; }

/* ----- the links of a panel ----- */
.czh .czh-links { display: flex; flex-direction: column; }
.czh .czh-sub, .czh a.czh-sub:hover, .czh a.czh-sub:focus {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
    color: var(--czh-ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; transition: background-color .14s ease;
}
.czh a.czh-sub:hover { background: var(--czh-tint); }
.czh .czh-all .czh-sub, .czh .czh-all a.czh-sub:hover, .czh .czh-all a.czh-sub:focus { font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--czh-muted); transition: color .14s ease, background-color .14s ease; }
.czh .czh-all a.czh-sub:hover, .czh .czh-all a.czh-sub:focus-visible { color: #000; }
:is(.czh, .czh-drawer) .czh-tag { flex: none; display: inline-block; padding: 2px 7px; border-radius: 4px; background: var(--czh-tag, #16181d); color: var(--czh-on-tag, #fff); font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }

.czh .czh-panel-list { min-width: 236px; }

/* a group : a column for each of its items , stacked like a newspaper when there are more than four */
.czh .czh-panel-mega { width: calc(var(--czh-cols, 4) * 208px + (var(--czh-cols, 4) - 1) * 24px + 32px); }
.czh .czh-mega { column-count: var(--czh-cols, 4); column-gap: 24px; }
.czh .czh-col { display: block; break-inside: avoid; padding-bottom: 12px; }
.czh .czh-col-title, .czh a.czh-col-title:hover, .czh a.czh-col-title:focus { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 7px 10px 9px; border-bottom: 1px solid var(--czh-line); color: var(--czh-ink); font-size: 15px; font-weight: 800; line-height: 1.3; }
.czh a.czh-col-title:hover { color: var(--e-global-color-primary, var(--czh-ink)); text-decoration: none; }

/* the brands : up to six pictures , then every brand */
.czh .czh-panel-brands { width: calc(var(--czh-cols, 5) * 168px + 32px); min-width: 300px; }
.czh .czh-brand-images { display: flex; align-items: center; justify-content: space-around; gap: 18px; margin-bottom: 12px; padding: 4px 6px 16px; border-bottom: 1px solid var(--czh-line); }
.czh .czh-brand-images a { flex: 0 1 132px; min-width: 0; display: flex; align-items: center; justify-content: center; height: 62px; border-radius: 8px; transition: transform .18s ease; }
.czh .czh-brand-images a:hover { transform: scale(1.06); }
.czh .czh-brand-images img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.czh .czh-brand-list { display: block; column-count: var(--czh-cols, 5); column-gap: 8px; }
.czh .czh-brand-list li { break-inside: avoid; }

/* a category with its best sellers : the whole width of the row */
.czh .czh-panel-best { padding: 22px 24px; }
.czh .czh-best { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
.czh .czh-eyebrow { margin: 0 0 8px; padding: 0 10px; color: var(--czh-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.czh .czh-best-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.czh .czh-best-head strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
.czh .czh-shop-all, .czh .czh-shop-all:hover, .czh .czh-shop-all:focus {
    flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border: 2px solid var(--czh-ink); border-radius: var(--czp-button-radius, 100px);
    background: #fff; color: var(--czh-ink); font-size: 13.5px; font-weight: 800; line-height: 1; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease;
}
.czh .czh-shop-all:hover { transform: scale(1.035); box-shadow: 0 8px 22px rgba(15, 17, 22, .18); }
.czh .czh-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* the catalog's product card , smaller : picture , tag , colors , name ( as in the search pop-up ) */
.czh .czh-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 12px; border: 1px solid #dcdfe4; border-radius: 14px; background: #fff; transition: box-shadow .18s ease; }
.czh .czh-card:hover { box-shadow: 0 8px 24px rgba(15, 17, 22, .14); }
.czh .czh-card-media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; background: var(--czh-soft); overflow: hidden; }
.czh .czh-card-media > img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.czh .czh-card-tag { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.czh .czh-overlay { position: absolute; display: block; pointer-events: none; color: #000; }
.czh .czh-overlay svg, .czh .czh-overlay img { display: block; width: 100%; height: 100%; object-fit: contain; }
.czh .czh-overlay svg * { fill: currentColor; }
.czh .czh-overlay svg [fill="none"] { fill: none; }
.czh .czh-swatches { position: relative; z-index: 2; display: flex; align-items: center; gap: 5px; height: 18px; margin: 9px 2px 6px; overflow: hidden; }
.czh .czh-swatch, .czh .czh-swatch:hover, .czh .czh-swatch:focus { flex: none; width: 14px; height: 14px; padding: 0; border: 1px solid #d6d8db; border-radius: 50%; background: var(--czh-swatch, #ccc); outline: 0 solid #d6d8db; }
.czh .czh-swatch:hover, .czh .czh-swatch.is-selected { outline: 1px solid #d6d8db; outline-offset: 1px; }
.czh .czh-swatch-more { font-size: 11px; color: var(--czh-muted); }
.czh .czh-card-title, .czh .czh-card-title:hover, .czh .czh-card-title:focus { margin: 0 2px; color: var(--czh-ink); font-size: 13.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
/* the whole card is the link */
.czh .czh-card-title::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }

/* the menu for small screens only exists there */
.czh-drawer { display: none; }

@media (max-width: 1280px) {
    .czh .czh-top .czh-inner { gap: 20px; }
    /* the words of the phone and email stay on every desktop : they only go with the compact header ( tablet and phone ) */
    .czh .czh-contact { gap: 14px; }
    .czh .czh-link, .czh .czh-link:hover, .czh .czh-link:focus { gap: 7px; font-size: 14px; }
    .czh .czh-link svg { width: 22px; height: 22px; }
    .czh .czh-top-link { padding: 0 9px; font-size: 14px; }
    .czh .czh-menu { margin-left: -9px; }
    .czh .czh-best { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .czh .czh-drop, .czh .czh-drop.is-open.is-moving, .czh .czh-panel, .czh .czh-panel.is-active { transition: none; }
}

/* the stores : names in as many columns as it takes , a title over each category , up to the width of the header */
.czh .czh-panel-stores { width: calc(var(--czh-cols, 4) * 208px + (var(--czh-cols, 4) - 1) * 24px + 32px); }
.czh .czh-stores .czh-col { break-inside: auto; }
.czh .czh-stores .czh-col-title { margin-top: 0; break-after: avoid; }
.czh .czh-stores .czh-links li { break-inside: avoid; }
.czh .czh-stores-all { column-span: all; margin: 4px 0 0; padding: 10px 10px 0; border-top: 1px solid var(--czh-line); }
.czh .czh-m-label .czh-m-link { color: var(--czh-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
