/* ZGO 1.3.0 — site chrome (header, drawer, footer) + shared tokens */
:root {
  --z-pink: #ff2d78;
  --z-pink-600: #e61e66;
  --z-pink-50: #fff0f5;
  --z-teal: #00c9a7;
  --z-teal-600: #00a88c;
  --z-teal-50: #e6faf6;
  --z-ink: #080c1c;
  --z-ink-2: #141a30;
  --z-yellow: #ffd600;
  --z-yellow-50: #fffbe0;
  --z-g900: #0f172a;
  --z-g700: #334155;
  --z-g600: #475569;
  --z-g500: #64748b;
  --z-g300: #cbd5e1;
  --z-g200: #e2e8f0;
  --z-g100: #f1f5f9;
  --z-g50: #f8fafc;
  --z-r-sm: 10px;
  --z-r: 16px;
  --z-r-lg: 24px;
  --z-sh-sm: 0 1px 2px rgba(8, 12, 28, .06), 0 1px 3px rgba(8, 12, 28, .06);
  --z-sh: 0 4px 6px -2px rgba(8, 12, 28, .05), 0 12px 24px -6px rgba(8, 12, 28, .10);
  --z-sh-lg: 0 24px 48px -12px rgba(8, 12, 28, .22);
  --z-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --z-gutter: 20px;
  --z-max: 1040px; /* 1.3.6: align with product content width */
}
@media (min-width: 768px) { :root { --z-gutter: 32px; } }
@media (min-width: 768px) { :root { --z-max: 1080px; } }
@media (min-width: 1024px) { :root { --z-gutter: 40px; } }

html, body { max-width: 100%; }
body { overflow-x: hidden; }
html.zh-lock, html.zh-lock body { overflow: hidden; }

.zwrap {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--z-max) + 2 * var(--z-gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--z-gutter);
  padding-right: var(--z-gutter);
}
.zwrap *, .zh *, .zf *, .zhome * { box-sizing: border-box; }
.zi { flex: none; display: inline-block; vertical-align: middle; }

/* Template-part wrappers: no theme block gaps around chrome */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.wp-site-blocks > footer.wp-block-template-part { margin-top: 64px !important; }
body.home .wp-site-blocks > footer.wp-block-template-part { margin-top: 0 !important; }
.wp-site-blocks > main.zhome,
.wp-site-blocks > .zhome { margin-top: 0 !important; }

/* Buttons */
.zbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0;
  font: 700 15px/1 var(--z-font); letter-spacing: -.005em;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.zbtn:hover { transform: translateY(-1px); }
.zbtn--pink, .zbtn--pink:visited { background: var(--z-pink); color: #fff !important; box-shadow: 0 8px 20px -6px rgba(255, 45, 120, .55); }
.zbtn--pink:hover, .zbtn--pink:focus-visible { background: var(--z-pink-600); color: #fff !important; }
.zbtn--ink, .zbtn--ink:visited { background: var(--z-ink); color: #fff !important; }
.zbtn--ink:hover, .zbtn--ink:focus-visible { background: var(--z-ink-2); color: #fff !important; }
.zbtn--white, .zbtn--white:visited { background: #fff; color: var(--z-ink) !important; }
.zbtn--white:hover, .zbtn--white:focus-visible { background: var(--z-yellow); color: var(--z-ink) !important; }

/* ---------------- Header ---------------- */
.zh {
  font-family: var(--z-font);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--z-g200);
  color: var(--z-ink);
}
.zh__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
}
.zh__logo { display: inline-flex; align-items: center; flex: none; text-decoration: none !important; }
.zh__logo img { display: block; height: 40px; width: auto; max-width: none; }
.zh__nav { display: none; }
.zh__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.zh__icon, .zh__burger {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--z-ink) !important; background: transparent; border: 0; padding: 0; cursor: pointer;
  text-decoration: none !important;
  transition: background .15s ease;
}
.zh__burger:focus:not(:focus-visible), .zh__icon:focus:not(:focus-visible) { outline: none; }
.zh__icon:hover, .zh__burger:hover { background: var(--z-g100); color: var(--z-ink) !important; }
.zh-cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--z-pink); color: #fff; font: 700 11px/18px var(--z-font); text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}
.zh-cart-count.is-empty { display: none; }
.zh__burger .zi--close { display: none; }
.zh.is-open .zh__burger .zi--menu { display: none; }
.zh.is-open .zh__burger .zi--close { display: inline-block; }

.zh-drawer {
  border-top: 1px solid var(--z-g200);
  background: #fff;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}
.zh-drawer[hidden] { display: none; }
.zh-drawer__inner { padding-top: 16px; padding-bottom: 24px; }
.zh-search {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px; margin-bottom: 8px;
  border: 1px solid var(--z-g200); border-radius: 14px; background: var(--z-g50); color: var(--z-g500);
}
.zh-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font: 500 16px var(--z-font); color: var(--z-ink);
}
.zh-drawer__nav { display: flex; flex-direction: column; }
.zh-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 4px;
  border-bottom: 1px solid var(--z-g100);
  font: 600 17px var(--z-font); color: var(--z-ink) !important; text-decoration: none !important;
}
.zh-drawer__link .zi { color: var(--z-g300); }
.zh-drawer__link:hover { color: var(--z-pink) !important; }
.zh-drawer__help { margin: 20px 4px 0; font: 500 14px var(--z-font); color: var(--z-g600); display: flex; align-items: center; gap: 8px; }
.zh-drawer__help a { color: var(--z-g700) !important; }

@media (min-width: 1024px) {
  .zh__bar { height: 72px; gap: 32px; }
  .zh__logo img { height: 44px; }
  .zh__nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
  .zh__link {
    padding: 10px 14px; border-radius: 10px;
    font: 600 15px var(--z-font); color: var(--z-g700) !important; text-decoration: none !important;
    white-space: nowrap;
  }
  .zh__link:hover { background: var(--z-g100); color: var(--z-ink) !important; }
  .zh__burger { display: none; }
  .zh-drawer { display: none !important; }
}

/* ---------------- Footer (1.7.1 light) ---------------- */
.zf {
  font-family: var(--z-font);
  background: #fff;
  color: var(--z-g600);
  padding: 48px 0 0;
  border-top: 1px solid var(--z-g200);
  position: relative;
}
.zf::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--z-pink) 0 25%, var(--z-yellow) 25% 50%, var(--z-teal) 50% 75%, var(--z-pink) 75% 100%);
  position: absolute; top: 0; left: 0;
}
.zf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.zf__brand { grid-column: 1 / -1; max-width: 360px; }
.zf__logo img { display: block; height: 44px; width: auto; }
.zf__tag { margin: 14px 0 12px; font-size: 14px; line-height: 1.6; color: var(--z-g600); }
.zf__mail, .zf__mail:visited {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--z-pink) !important; text-decoration: none !important;
}
.zf__mail:hover { color: var(--z-teal) !important; }
.zf__title {
  margin: 0 0 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--z-ink);
}
.zf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.zf__list a, .zf__list a:visited {
  display: inline-block; padding: 6px 0;
  font-size: 14px; color: var(--z-g600) !important; text-decoration: none !important;
}
.zf__list a:hover { color: var(--z-pink) !important; }
.zf__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 36px; padding-top: 20px; padding-bottom: 24px; width: 100%;
  border-top: 1px solid var(--z-g200);
  font-size: 13px; color: var(--z-g500);
}
@media (min-width: 768px) {
  .zf { padding-top: 56px; }
  .zf__grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}
@media (min-width: 1024px) {
  .zf { padding-top: 72px; }
  .zf__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
  .zf__brand { grid-column: auto; }
}

/* Old chrome rules from storefront.css that no longer apply */
footer.wp-block-template-part .zf a { font-size: 14px; }

/* 1.6.1: remove TT5 blockGap white strip above footer (all templates) */
.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > main + footer,
.wp-site-blocks > * + footer { margin-block-start: 0 !important; }
.wp-site-blocks > main:last-of-type { margin-block-end: 0 !important; }

/* 1.6.2 nav: Plans dropdown + drawer group */
.zh-drawer__group { margin: 18px 4px 2px; font: 700 12px var(--z-font); letter-spacing: .08em; text-transform: uppercase; color: var(--z-g500); }
.zh-drawer__sub { padding-left: 18px; font-weight: 500; font-size: 16px; min-height: 50px; position: relative; }
.zh-drawer__sub::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--z-teal, #00c9a7); }
.zh__dd { position: relative; }
.zh__ddbtn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; cursor: pointer; }
.zh__ddbtn[aria-expanded="true"] { background: var(--z-g100); color: var(--z-ink) !important; }
.zh__ddbtn[aria-expanded="true"] .zh__caret { transform: rotate(180deg); }
.zh__caret { transition: transform .15s ease; }
.zh__ddmenu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--z-g200); border-radius: 14px; box-shadow: 0 12px 32px rgba(8,12,28,.12); z-index: 60; }
.zh__ddmenu[hidden] { display: none; }
.zh__ddlink { display: block; padding: 10px 12px; border-radius: 10px; font: 600 14px var(--z-font); color: var(--z-g700) !important; text-decoration: none !important; white-space: nowrap; }
.zh__ddlink:hover, .zh__ddlink:focus-visible { background: #fff0f5; color: #ff2d78 !important; }

/* ---------------- 1.7.3: larger nav/footer type + unified pill interactions ---------------- */
.zh a, .zh button, .zf a, .zh-drawer a { -webkit-tap-highlight-color: transparent; }
.zh__icon, .zh__burger { transition: background .18s ease, transform .15s ease; }
.zh__icon:active, .zh__burger:active { background: var(--z-pink-50); transform: scale(.94); }
.zh__icon:focus-visible, .zh__burger:focus-visible,
.zh__link:focus-visible, .zh__ddlink:focus-visible,
.zh-drawer__link:focus-visible, .zf__list a:focus-visible, .zf__mail:focus-visible {
  outline: 2px solid var(--z-pink); outline-offset: 2px; border-radius: 10px;
}
/* Drawer (mobile) */
.zh-drawer__link {
  min-height: 56px; padding: 0 12px; margin: 2px 0; border-radius: 12px;
  font: 600 18px/1.3 var(--z-font); border-bottom-color: var(--z-g100);
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.zh-drawer__link .zi { transition: transform .18s ease, color .18s ease; }
.zh-drawer__link:hover, .zh-drawer__link:active, .zh-drawer__link[aria-current="page"] {
  background: var(--z-pink-50); color: var(--z-pink) !important; border-bottom-color: transparent;
}
.zh-drawer__link:hover .zi, .zh-drawer__link:active .zi, .zh-drawer__link[aria-current="page"] .zi { color: var(--z-pink); transform: translateX(3px); }
.zh-drawer__link:active { background: #ffe0ec; transform: scale(.985); }
.zh-drawer__sub { font-size: 17px; font-weight: 500; min-height: 52px; padding-left: 26px; }
.zh-drawer__sub::before { left: 12px; }
.zh-drawer__group { font-size: 13px; margin-left: 12px; }
/* Desktop */
@media (min-width: 1024px) {
  .zh__nav { gap: 6px; }
  .zh__link {
    padding: 10px 16px; border-radius: 999px;
    font: 600 16px/1.2 var(--z-font); letter-spacing: -.005em;
    transition: background .18s ease, color .18s ease, transform .15s ease;
  }
  .zh__link:hover, .zh__ddbtn[aria-expanded="true"] { background: var(--z-pink-50); color: var(--z-pink) !important; }
  .zh__link:active { background: #ffe0ec; color: var(--z-pink-600) !important; transform: scale(.96); }
  .zh__link[aria-current="page"] { color: var(--z-pink) !important; background: var(--z-pink-50); }
}
.zh__ddmenu { min-width: 230px; padding: 8px; }
.zh__ddlink {
  padding: 12px 14px; font: 600 15px/1.2 var(--z-font);
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.zh__ddlink:hover, .zh__ddlink[aria-current="page"] { background: var(--z-pink-50); color: var(--z-pink) !important; }
.zh__ddlink:active { background: #ffe0ec; transform: scale(.97); }
/* Footer */
.zf__title { font-size: 15px; letter-spacing: .04em; margin-bottom: 14px; }
.zf__tag { font-size: 15px; }
.zf__mail, .zf__mail:visited { font-size: 15px; }
.zf__list { gap: 4px; }
.zf__list a, .zf__list a:visited, footer.wp-block-template-part .zf .zf__list a {
  font-size: 15px; line-height: 1.5; padding: 6px 10px; margin-left: -10px; border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.zf__list a:hover, .zf__list a[aria-current="page"] { background: var(--z-pink-50); color: var(--z-pink) !important; }
.zf__list a:active { background: #ffe0ec; transform: scale(.97); }
.zf__mail:active { transform: scale(.97); }
.zf__bottom, footer.wp-block-template-part .zf .zf__bottom a { font-size: 14px; line-height: 1.6; }
@media (max-width: 767px) { .zf__list a, .zf__list a:visited { min-height: 40px; display: inline-flex; align-items: center; } }
