/* The simple sticky header ( .czsh ) : logo , search bar , phone and email.
 * It waits above the window and slides down once the page's own header is out of view.
 * 80px tall : the products page keeps that much room above its own sticky bar.
 * The phone layout is in cazrom_sticky_header_mobile.css. */

.czsh {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9990; height: 80px; max-height: 80px;
    background: rgba(255, 255, 255, .97); border-bottom: 1px solid #dcdfe4; box-shadow: none;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform: translateY(-110%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), visibility 0s linear .28s;
    font-family: inherit; color: var(--e-global-color-text, #16181d);
}
.czsh.is-shown { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .3, 1), visibility 0s; }
/* under WordPress's own bar for people who are signed in */
.admin-bar .czsh { top: 32px; }
/* never while the design studio is open */
html:has(.czd-studio.is-open) .czsh { display: none; }

.czsh *, .czsh *::before, .czsh *::after { box-sizing: border-box; }
.czsh .czsh-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.czsh .czsh-logo { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; color: inherit; text-decoration: none; }
/* never stretched : the width follows the height */
.czsh .czsh-logo img { display: block; width: auto; height: auto; max-height: 56px; max-width: min(240px, 100%); object-fit: contain; }
.czsh .czsh-logo span { font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.czsh .czsh-search { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.czsh .czsh-contact { flex: none; display: flex; align-items: center; gap: 22px; }
.czsh .czsh-link { display: flex; align-items: center; gap: 9px; color: var(--e-global-color-text, #16181d); font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.czsh .czsh-link svg { flex: none; color: var(--e-global-color-primary, #16181d); }
.czsh .czsh-link:hover span { text-decoration: underline; text-underline-offset: 2px; }
.czsh .czsh-link:focus-visible, .czsh .czsh-logo:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

@media (max-width: 1100px) {
    .czsh .czsh-inner { gap: 18px; }
    /* the icons stay , the words go */
    .czsh .czsh-link > span:not(.czsh-cart-icon) { display: none; }
    .czsh .czsh-contact { gap: 16px; }
}
@media (max-width: 782px) { .admin-bar .czsh { top: 46px; } }
/* WordPress's bar scrolls away with the page on small screens */
@media (max-width: 600px) { .admin-bar .czsh { top: 0; } }
@media (prefers-reduced-motion: reduce) { .czsh, .czsh.is-shown { transition: none; } }
