/* Cryo Header — desktop bar, mega panel, search overlay, phone + basket drawers. */
.ct-hdr { position: relative; z-index: 900; background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .1); border-bottom: 1px solid var(--ct-line-soft); font-family: var(--ct-font); }
.ct-hdr *, .ct-hdr *::before, .ct-hdr *::after { box-sizing: border-box; }
.ct-hdr__in { display: flex; align-items: center; gap: 28px; height: var(--ct-header-h, 96px); padding: 0 35px 0 43px; }
.ct-hdr__logo { display: block; flex: 0 0 auto; width: 250px; line-height: 0; }
.ct-hdr__logo img { display: block; width: 100%; height: auto; }

/* ---------- desktop menu ---------- */
.ct-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.ct-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ct-nav__li { position: static; }
.ct-hdr .ct-nav__a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--ct-pill); font-family: var(--ct-font-title); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: uppercase; color: #333; background: transparent; text-decoration: none; transition: background-color .2s, color .2s; }
.ct-hdr .ct-nav__li:hover > .ct-nav__a, .ct-hdr .ct-nav__li.is-active > .ct-nav__a, .ct-hdr .ct-nav__li.is-open > .ct-nav__a { background: rgba(35, 61, 123, .22); color: var(--ct-primary); }
.ct-nav__chev { display: inline-flex; line-height: 0; color: var(--ct-sky); }
.ct-nav__chev svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ct-nav__li.is-open .ct-nav__chev svg { transform: rotate(180deg); }

/* mega panel: the block's Elementor content, under the bar */
.ct-mega { position: absolute; top: 100%; left: 50%; z-index: 20; width: min(1200px, calc(100vw - 40px)); background: #fff; border-top: 1px solid var(--ct-line-soft); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.ct-nav__li.is-open > .ct-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.ct-mega__in { max-height: calc(100vh - var(--ct-header-h, 96px) - 24px); overflow: auto; }
.ct-mega .e-con, .ct-mega .elementor-section { max-width: none; }

/* simple dropdown (items with children but no mega block) */
.ct-sub { position: absolute; z-index: 20; min-width: 220px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--ct-line-soft); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.ct-nav__li.has-sub { position: relative; }
.ct-nav__li.has-sub.is-open > .ct-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ct-sub a { display: block; padding: 9px 18px; font-size: 14px; color: #333; }
.ct-sub a:hover { background: var(--ct-soft); color: var(--ct-primary); }

/* ---------- tools ---------- */
.ct-hdr__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ct-hdr .ct-hdr__tool { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #333; cursor: pointer; transition: background-color .2s; }
.ct-hdr .ct-hdr__tool:hover { background: var(--ct-soft); color: var(--ct-primary); }
.ct-hdr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-hdr__count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ct-primary); color: #fff; font-family: var(--ct-font); font-size: 10px; font-weight: 600; line-height: 17px; text-align: center; }
.ct-hdr__count[data-zero] { background: var(--ct-primary); }
.ct-hdr .ct-hdr__acct { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-left: 6px; padding: 0 14px; border: 1px solid rgba(129, 129, 129, .35); border-radius: var(--ct-pill); background: transparent; font-family: var(--ct-font-title); font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: #333; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.ct-hdr .ct-hdr__acct:hover { background: var(--ct-primary); border-color: var(--ct-primary); color: #fff; }
.ct-hdr__acct-ico { display: none; line-height: 0; }
.ct-hdr .ct-hdr__burger { display: none; }

/* ---------- search overlay ---------- */
.ct-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-top: 1px solid var(--ct-line-soft); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .18); }
.ct-search[hidden] { display: none; }
.ct-search__in { position: relative; max-width: 900px; margin: 0 auto; padding: 28px 70px 28px 20px; }
.ct-search__form { display: flex; align-items: center; border-bottom: 2px solid var(--ct-ink); }
.ct-hdr .ct-search__form input[type="search"] { flex: 1; width: auto; height: 54px; padding: 0; border: 0; background: transparent; font-family: var(--ct-font-title); font-size: 26px; font-weight: 500; color: var(--ct-ink); outline: none; -webkit-appearance: none; }
.ct-hdr .ct-search__form button { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--ct-ink); cursor: pointer; }
.ct-hdr .ct-search__x { position: absolute; top: 28px; right: 14px; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ct-ink); cursor: pointer; }
.ct-hdr .ct-search__x:hover { background: var(--ct-soft); }

/* ---------- drawers ---------- */
.ct-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); }
.ct-scrim[hidden] { display: none; }
.ct-drawer { position: fixed; top: 0; bottom: 0; z-index: 1001; width: min(340px, 88vw); overflow-y: auto; background: #fff; box-shadow: 0 0 40px rgba(0, 0, 0, .25); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.ct-drawer[hidden] { display: none; }
.ct-drawer--menu { left: 0; transform: translateX(-100%); }
.ct-drawer--cart { right: 0; width: min(400px, 94vw); transform: translateX(100%); display: flex; flex-direction: column; }
.ct-drawer.is-open { transform: none; }
html.ct-lock { overflow: hidden; }
.ct-hdr .ct-drawer__x { position: absolute; top: 8px; right: 8px; display: none; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ct-ink); cursor: pointer; }

/* phone menu */
.ct-drawer__head { padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--ct-line-soft); }
.ct-drawer__search { display: flex; align-items: center; height: 46px; }
.ct-hdr .ct-drawer__search input[type="search"] { flex: 1; width: auto; min-height: 0; height: 40px; padding: 0; border: 0; background: transparent; font-family: var(--ct-font-title); font-size: 16px; font-weight: 600; color: var(--ct-ink); outline: none; }
.ct-hdr .ct-drawer__search button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: #555; cursor: pointer; }
.ct-drawer__tabs { display: flex; border-bottom: 1px solid var(--ct-line-soft); }
.ct-hdr .ct-drawer__tab { flex: 1; padding: 14px 8px; border: 0; border-bottom: 3px solid transparent; background: var(--ct-soft); font-family: var(--ct-font-title); font-size: 13px; font-weight: 600; text-transform: uppercase; color: #8a8a8a; cursor: pointer; }
.ct-hdr .ct-drawer__tab.is-on { border-bottom-color: var(--ct-primary); background: #fff; color: var(--ct-ink); }
.ct-mnav { margin: 0; padding: 0; list-style: none; }
.ct-mnav[hidden] { display: none; }
.ct-mnav__li { border-bottom: 1px solid var(--ct-line-soft); }
.ct-mnav__row { display: flex; align-items: stretch; }
.ct-mnav__row > a { flex: 1; padding: 14px 20px; font-family: var(--ct-font-title); font-size: 15px; font-weight: 600; color: var(--ct-ink); text-transform: capitalize; }
.ct-mnav__li.is-active > .ct-mnav__row > a { color: var(--ct-primary); }
.ct-hdr .ct-mnav__tg { display: inline-flex; width: 50px; align-items: center; justify-content: center; padding: 0; border: 0; border-left: 1px solid var(--ct-line-soft); background: none; color: #555; cursor: pointer; }
.ct-hdr .ct-mnav__tg svg { width: 18px; height: 18px; transition: transform .2s; }
.ct-hdr .ct-mnav__tg[aria-expanded="true"] svg { transform: rotate(90deg); }
.ct-mnav__sub { margin: 0; padding: 0 0 8px; list-style: none; background: var(--ct-soft); }
.ct-mnav__sub[hidden] { display: none; }
.ct-mnav__sub a { display: block; padding: 10px 20px 10px 34px; font-size: 14px; font-weight: 500; color: #444; }
.ct-drawer__acct { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-family: var(--ct-font-title); font-size: 15px; font-weight: 600; color: var(--ct-ink); border-bottom: 1px solid var(--ct-line-soft); }
.ct-drawer__acct svg { width: 20px; height: 20px; }

/* basket drawer */
.ct-mini__head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--ct-line-soft); }
.ct-mini__head h2 { margin: 0; font-size: 20px; }
.ct-hdr .ct-drawer__x--in { position: static; display: inline-flex; }
.ct-mini__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.ct-mini__list { margin: 0; padding: 0; list-style: none; }
.ct-mini__empty { margin: 40px 0; text-align: center; color: var(--ct-text); }
.ct-mini__line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ct-line-soft); }
.ct-mini__img { display: block; line-height: 0; background: var(--ct-soft); }
.ct-mini__img img { width: 72px; height: 72px; object-fit: contain; }
.ct-mini__info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-mini__top { display: flex; justify-content: space-between; gap: 8px; }
.ct-mini__name { font-family: var(--ct-font-title); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ct-ink); }
.ct-hdr .ct-mini__rm { flex: none; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: #888; cursor: pointer; }
.ct-hdr .ct-mini__rm svg { width: 16px; height: 16px; }
.ct-mini__meta, .ct-mini__unit { font-size: 12.5px; color: var(--ct-text); }
.ct-mini__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ct-mini__qty { display: inline-flex; align-items: center; border: 1px solid var(--ct-line); border-radius: 4px; }
.ct-hdr .ct-mini__qty button { width: 30px; height: 30px; padding: 0; border: 0; background: none; font-size: 16px; color: var(--ct-ink); cursor: pointer; }
.ct-hdr .ct-mini__qty button:disabled { opacity: .35; cursor: default; }
.ct-mini__qty output { min-width: 28px; text-align: center; font-size: 14px; color: var(--ct-ink); }
.ct-mini__total { font-weight: 600; color: var(--ct-ink); }
.ct-mini__one { font-size: 13px; color: var(--ct-text); }
.ct-mini__foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--ct-line-soft); }
.ct-mini__foot[hidden] { display: none; }
.ct-mini__sub { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 15px; color: var(--ct-ink); }

/* ---------- tablet + phone ---------- */
@media (max-width: 1024px) {
	.ct-hdr__in { gap: 10px; padding: 0 12px 0 16px; }
	.ct-nav { display: none; }
	.ct-hdr .ct-hdr__tool--search { display: none; }
	.ct-hdr .ct-hdr__acct { width: 42px; height: 42px; margin-left: 0; padding: 0; justify-content: center; border: 0; }
	.ct-hdr__acct-t { display: none; }
	.ct-hdr__acct-ico { display: inline-flex; }
	.ct-hdr .ct-hdr__acct:hover { background: var(--ct-soft); color: var(--ct-primary); }
	.ct-hdr .ct-hdr__burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; color: #333; cursor: pointer; }
	.ct-hdr .ct-drawer--menu > .ct-drawer__x { display: none; }
	.ct-search__in { padding: 18px 60px 18px 16px; }
	.ct-search__form input[type="search"] { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ct-drawer, .ct-mega, .ct-sub { transition: none; } }

/* signed in: the drawers and the dimmer start under the WordPress admin bar */
body.admin-bar .ct-drawer, body.admin-bar .ct-scrim { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ct-drawer, body.admin-bar .ct-scrim { top: 46px; } }

/* no focus box inside the search rows: the underline is the field */
.ct-hdr :is(.ct-search__form, .ct-drawer__search) input[type="search"], .ct-hdr :is(.ct-search__form, .ct-drawer__search) input[type="search"]:focus { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
.ct-search__form:focus-within { border-bottom-color: var(--ct-primary); }

/* ================= mega menu v2: promo panel + product tiles =================
   (the block's content is Elementor: container > [promo | product column | product column]) */
.ct-hdr .ct-mega { width: min(1400px, calc(100vw - 30px)) !important; border-top: 3px solid var(--ct-primary); box-shadow: 0 30px 60px -24px rgba(11, 61, 82, .35); }
.ct-mega .e-con.e-con-boxed:first-child, .ct-mega .elementor > .e-con { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; margin: 0 !important; }
.ct-mega .elementor > .e-con > .e-con-inner { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 !important; max-width: none !important; width: 100% !important; padding: 0 !important; }
.ct-mega .e-con-inner > .e-con { width: auto !important; min-width: 0; border: 0 !important; border-radius: 0 !important; }

/* promo */
.ct-mega .e-con-inner > .e-con:first-child { justify-content: center; gap: 24px !important; padding: 44px 48px !important; background: linear-gradient(135deg, var(--ct-dark) 0%, var(--ct-primary) 100%) !important; }
.ct-mega .e-con-inner > .e-con:first-child .stb-sc-heading { color: #fff !important; font-family: var(--ct-font-title); font-size: clamp(22px, 2vw, 28px) !important; font-weight: 600 !important; line-height: 1.2; }
.ct-mega .e-con-inner > .e-con:first-child :is(.stb-sc-eyebrow, [class*="eyebrow"]) { color: #8fd3f4 !important; }
.ct-mega .e-con-inner > .e-con:first-child :is(.stb-sc-sub, [class*="subheading"], .stb-st-text p) { color: rgba(255, 255, 255, .82) !important; font-size: 14.5px !important; line-height: 1.7 !important; }
.ct-mega .e-con-inner > .e-con:first-child .ct-btn { background: #fff !important; color: var(--ct-primary) !important; border-radius: 0 !important; }
.ct-mega .e-con-inner > .e-con:first-child .ct-btn:hover { background: var(--ct-sky) !important; color: #fff !important; }

/* product columns */
.ct-mega .e-con-inner > .e-con:not(:first-child) { display: grid !important; align-content: start; gap: 10px !important; padding: 34px 28px !important; }
.ct-mega .e-con-inner > .e-con:nth-child(2) { padding-left: 36px !important; padding-right: 14px !important; }
.ct-mega .e-con-inner > .e-con:nth-child(3) { padding-left: 14px !important; padding-right: 36px !important; }
.ct-mega .menu-css { width: 100% !important; margin: 0 !important; border: 0 !important; }
.ct-mega .menu-css .elementor-widget-container { height: 100%; }
.ct-mega .ct-info { position: relative; align-items: center; gap: 16px; padding: 14px 44px 14px 16px !important; border: 1px solid var(--ct-line); background: #fff; transition: border-color .2s, background-color .2s, transform .25s, box-shadow .25s; }
.ct-mega .ct-info::after { content: ""; position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--ct-primary); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.ct-mega .ct-info:hover { border-color: var(--ct-primary); background: #f5f8fc; box-shadow: 0 14px 28px -20px rgba(35, 61, 123, .5); }
.ct-mega .ct-info:hover::after { opacity: 1; transform: none; }
.ct-mega .ct-info__ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--ct-soft); }
.ct-mega .ct-info__ico img { width: 30px !important; height: 30px !important; }
.ct-mega .ct-info .ct-info__t { margin: 0 0 3px; font: 600 16px/1.3 var(--ct-font-title); color: var(--ct-ink); }
.ct-mega .ct-info__c, .ct-mega .ct-info__c p { margin: 0; font-size: 13.5px !important; line-height: 1.45 !important; color: #5c6771; }
@media (max-width: 1100px) {
	.ct-mega .elementor > .e-con > .e-con-inner { grid-template-columns: 1fr 1fr !important; }
	.ct-mega .e-con-inner > .e-con:first-child { grid-column: 1 / -1; padding: 30px 32px !important; }
}

/* mega menu: no blue line on top */
.ct-hdr .ct-mega { border-top: 0 !important; }
