/**
 * Neo Compounds — global chrome
 * Marquee, sticky header, account dropdown, side cart drawer, footer.
 */

@keyframes neoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Marquee ─────────────────────────────────────────────── */
.neo-marquee {
  background: var(--neo-navy);
  color: var(--neo-on-dark);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.neo-marquee__track {
  display: inline-flex;
  animation: neoMarquee var(--neo-marquee-duration) linear infinite;
  will-change: transform;
}

.neo-marquee__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 11px 28px 11px 0;
  font-family: var(--neo-font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.neo-marquee__bullet {
  width: var(--neo-bullet);
  height: var(--neo-bullet);
  background: var(--neo-green);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .neo-marquee__track {
    animation: none;
  }
}

/* ── Sticky header ───────────────────────────────────────── */
.neo-header {
  position: sticky;
  top: 0;
  z-index: var(--neo-z-header);
  background: var(--neo-header-bg);
  backdrop-filter: blur(var(--neo-header-blur));
  -webkit-backdrop-filter: blur(var(--neo-header-blur));
  border-bottom: 1px solid var(--neo-border);
}

.neo-header__inner {
  max-width: var(--neo-max);
  margin: 0 auto;
  padding: 16px var(--neo-pad);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.neo-header__logo {
  width: 150px;
  height: 52px;
  flex-shrink: 0;
  position: relative;
  display: block;
}

.neo-header__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.neo-header__nav-wrap {
  order: 3;
  width: 100%;
}

.neo-header__nav {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
  padding-top: 4px;
  font-size: 14.5px;
  font-weight: 600;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.neo-header__nav li {
  list-style: none;
  margin: 0;
}

.neo-header__nav a {
  color: var(--neo-navy);
  text-decoration: none;
  white-space: nowrap;
}

.neo-header__nav a:hover,
.neo-header__nav .current-menu-item > a,
.neo-header__nav .current_page_item > a {
  color: var(--neo-blue);
}

.neo-header__search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--neo-fill);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-pill);
  padding: 0 6px 0 18px;
  height: var(--neo-header-control-h);
  min-width: 200px;
}

.neo-header__search input[type="search"],
.neo-header__search input[type="text"] {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  outline: none;
  color: var(--neo-navy);
  min-width: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  height: auto;
}

.neo-header__search-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--neo-navy);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.neo-header__search-btn:hover {
  background: var(--neo-blue);
}

.neo-header__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.neo-header__signin {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--neo-header-control-h);
  padding: 0 18px;
  border: 1px solid var(--neo-border-input);
  border-radius: var(--neo-pill);
  white-space: nowrap;
  color: var(--neo-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}

.neo-header__signin:hover {
  border-color: var(--neo-navy);
  color: var(--neo-navy);
}

.neo-header__acct {
  position: relative;
}

.neo-header__acct-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--neo-header-control-h);
  padding: 0 16px 0 18px;
  border: 1px solid var(--neo-border-input);
  border-radius: var(--neo-pill);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--neo-navy);
  cursor: pointer;
  white-space: nowrap;
}

.neo-header__acct-btn:hover,
.neo-header__acct.is-open .neo-header__acct-btn {
  border-color: var(--neo-navy);
}

.neo-header__acct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neo-green);
  box-shadow: 0 0 0 4px var(--neo-green-tint);
}

.neo-header__acct-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: var(--neo-z-dropdown);
  width: 240px;
  background: #fff;
  border: 1px solid var(--neo-border);
  border-radius: 18px;
  box-shadow: var(--neo-shadow-dropdown);
  padding: 8px;
  flex-direction: column;
}

.neo-header__acct.is-open .neo-header__acct-menu {
  display: flex;
}

.neo-header__acct-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
}

.neo-header__acct.is-open .neo-header__acct-backdrop {
  display: block;
}

.neo-header__acct-head {
  padding: 12px 12px 14px;
  border-bottom: 1px solid var(--neo-border-row);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.neo-header__acct-name {
  font-size: 14.5px;
  font-weight: 700;
}

.neo-header__acct-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--neo-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neo-muted);
}

.neo-header__acct-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neo-green);
  display: inline-block;
}

.neo-header__acct-menu a,
.neo-header__acct-menu button.neo-header__signout {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--neo-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.neo-header__acct-menu a:hover {
  background: var(--neo-fill);
  color: var(--neo-navy);
}

.neo-header__signout {
  margin-top: 6px;
  border-top: 1px solid var(--neo-border-row) !important;
  border-radius: 0 0 12px 12px !important;
  color: var(--neo-muted) !important;
}

.neo-header__signout:hover {
  background: var(--neo-fill);
  color: var(--neo-error) !important;
}

.neo-header__cart {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--neo-header-control-h);
  padding: 0 8px 0 18px;
  white-space: nowrap;
  background: var(--neo-navy);
  border-radius: var(--neo-pill);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.neo-header__cart:hover {
  background: var(--neo-blue);
  color: #fff;
}

.neo-header__cart-count {
  min-width: 28px;
  height: 28px;
  border-radius: var(--neo-pill);
  background: var(--neo-green);
  color: var(--neo-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  padding: 0 8px;
  box-sizing: border-box;
}

/* ── Side cart drawer ────────────────────────────────────── */
.neo-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--neo-z-cart-backdrop);
  background: rgba(11, 26, 48, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.neo-cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.neo-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--neo-z-cart);
  width: min(var(--neo-drawer-w), 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--neo-shadow-drawer);
  transform: translateX(calc(100% + 100px));
  visibility: hidden;
  transition: transform 0.35s var(--neo-ease-drawer), visibility 0.35s;
}

.neo-cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.neo-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--neo-border);
}

.neo-cart-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.neo-cart-drawer__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.neo-cart-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--neo-border);
  background: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--neo-navy);
}

.neo-cart-drawer__close:hover {
  border-color: var(--neo-navy);
}

.neo-cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 8px 28px;
}

.neo-cart-drawer__empty {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.neo-cart-drawer__empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.neo-cart-drawer__empty a {
  font-size: 14px;
  font-weight: 700;
  color: var(--neo-navy);
  border-bottom: 2px solid var(--neo-green);
  padding-bottom: 3px;
  text-decoration: none;
}

.neo-cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--neo-border-row);
  align-items: start;
}

.neo-cart-line__thumb {
  width: 76px;
  height: 95px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--neo-navy);
}

.neo-cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.neo-cart-line__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.neo-cart-line__price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--neo-blue);
}

.neo-cart-line__price-orig {
  font-size: 13px;
  font-weight: 500;
  color: #7A889B;
  text-decoration: line-through;
}

.neo-cart-line__price-sale {
  font-size: 14px;
  font-weight: 700;
  color: var(--neo-blue);
}

.neo-cart-line__total {
  font-size: 15px;
  font-weight: 700;
  color: var(--neo-ink);
  white-space: nowrap;
}

.neo-cart-line__size {
  align-self: flex-start;
  font-family: var(--neo-font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--neo-pill);
  border: 1px solid var(--neo-border-input);
}

.neo-cart-line__qty {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--neo-border-input);
  border-radius: var(--neo-pill);
  overflow: hidden;
}

.neo-cart-line__qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  color: var(--neo-navy);
}

.neo-cart-line__qty button:hover {
  background: var(--neo-fill);
}

.neo-cart-line__qty span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.neo-cart-line__remove {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--neo-muted);
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.neo-cart-line__remove:hover {
  color: var(--neo-error);
}

.neo-cart-drawer__foot {
  padding: 22px 28px 28px;
  border-top: 1px solid var(--neo-border);
  background: var(--neo-bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.neo-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.neo-cart-drawer__subtotal-label {
  font-size: 17px;
  font-weight: 700;
}

.neo-cart-drawer__subtotal-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.neo-cart-drawer__note {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--neo-muted);
}

.neo-cart-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: var(--neo-pill);
  background: var(--neo-navy);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.neo-cart-drawer__cta:hover {
  background: var(--neo-blue);
  color: #fff;
}

.neo-cart-drawer__lock {
  margin: -4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--neo-body);
  text-align: center;
}

.neo-cart-drawer__ruo {
  margin: 0;
  font-family: var(--neo-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--neo-muted);
  text-align: center;
}

body.neo-cart-open {
  overflow: hidden;
}

/* ── Footer ──────────────────────────────────────────────── */
.neo-footer {
  background: var(--neo-navy);
  color: var(--neo-on-dark-muted);
}

.neo-footer__inner {
  max-width: var(--neo-max);
  margin: 0 auto;
  padding: 80px var(--neo-pad) 40px;
}

.neo-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.neo-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.neo-footer__logo {
  width: 190px;
  height: 66px;
  position: relative;
}

.neo-footer__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.neo-footer__ruo {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.neo-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  margin: 0;
  padding: 0;
}

.neo-footer__col a {
  color: #fff;
  text-decoration: none;
}

.neo-footer__col a:hover {
  color: var(--neo-green);
}

.neo-footer__bar {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.neo-footer__bar-ruo {
  font-family: var(--neo-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neo-green);
}

/* ── Age gate shell (JS mounts content) ──────────────────── */
#neo-age-gate {
  position: fixed;
  inset: 0;
  z-index: var(--neo-z-age);
}

/* Hide Storefront chrome we replace (when parent is storefront) */
.neo-compounds .site-header,
.neo-compounds .storefront-primary-navigation,
.neo-compounds .col-full > .site-search,
.neo-compounds .site-footer {
  /* Parent header/footer still render if we don't replace templates;
     header.php / footer.php overrides remove them. Keep as safety net. */
}

/* Soften Storefront defaults inside neo chrome pages */
.neo-compounds .woocommerce-message,
.neo-compounds .woocommerce-info,
.neo-compounds .woocommerce-error {
  border-radius: var(--neo-radius-panel);
}

/* ── Storefront conflict overrides (neo chrome owns chrome) ─ */
body.neo-compounds .site-header,
body.neo-compounds .storefront-primary-navigation,
body.neo-compounds .storefront-breadcrumb,
body.neo-compounds .col-full.header,
body.neo-compounds header#masthead {
  display: none !important;
}

body.neo-compounds .site-footer,
body.neo-compounds footer#colophon {
  display: none !important;
}

body.neo-compounds #content,
body.neo-compounds .site-content,
body.neo-compounds .neo-page {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

body.neo-compounds.home .site-main,
body.neo-compounds.home .content-area {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
}

/* Ensure sticky white header always paints above Storefront hero blues */
.neo-header {
  background: rgba(255, 255, 255, 0.96) !important;
}
