/* CHZ storefront components: product grid, product page, cart, search, status, orders
   and legal pages. index-styles.css is a precompiled Tailwind build, so any utility class
   it does not already contain would silently do nothing; new styling lives here as plain
   CSS on the same tokens (--primary, --border, --surface, ...). */

:root {
  --chz-accent: #ffc800;
  --chz-accent-deep: #dba914;
  --chz-line: hsl(240 3.7% 15.9%);
  --chz-panel: hsl(240 5.9% 10% / 0.6);
  --chz-panel-solid: #121316;
  --chz-text: #e4e4e7;
  --chz-dim: #b4b4bd;
  --chz-faint: #a1a1aa; /* >= 4.9:1 on panels, tinted rows and the glow-lit art (measured) */
  --chz-on-accent: #131416;
  --chz-danger: #ef4444;
}

html.chz-lock, html.chz-lock body { overflow: hidden; }
/* Background orbs: yellow is ~2.8x brighter than the red they replaced, so the same .9 opacity
   washed the page olive and dropped grey text below 4.5:1. .33 gives the same glow luminance
   the red orbs had (0.9 x 0.236 / 0.653). */
.orb { opacity: .33; }
/* Below 768px the 520-740px orbs cover the whole screen, so the glow sits behind all text. */
@media (max-width: 767px) { .orb { opacity: .15; } }
#page-content { display: none; }
.chz-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--chz-accent); color: var(--chz-on-accent); font-weight: 700; font-size: 13px; transition: top .2s; }
.chz-skip:focus { top: 12px; }
:focus-visible { outline: 2px solid rgb(255 200 0 / 0.8); outline-offset: 2px; }
/* Controls inside overflow:hidden/auto groups: draw the ring inside so it is not clipped. */
.chz-qty button:focus-visible, .chz-qty input:focus-visible, .chz-thumb:focus-visible { outline-offset: -3px; }

/* ------------------------------------------------------------ header additions */
.chz-icon-btn { position: relative; }
.chz-badge { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--chz-accent); color: var(--chz-on-accent); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 14px rgb(255 200 0 / 0.65); transform: scale(0); transition: transform .25s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.chz-badge.is-visible { transform: scale(1); }
.chz-badge.bump { animation: chz-bump .4s cubic-bezier(.2,.8,.2,1); }
@keyframes chz-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.chz-hide-mobile { display: none; }
@media (min-width: 768px) { .chz-hide-mobile { display: inline-flex; } }

/* ------------------------------------------------------------ buttons */
.chz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; border: 1px solid transparent; transition: all .2s; text-decoration: none; color: #fff; background: transparent; font-family: inherit; }
.chz-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none !important; transform: none !important; }
.chz-btn-primary { color: var(--chz-on-accent); background: linear-gradient(135deg, var(--chz-accent), var(--chz-accent-deep)); box-shadow: 0 6px 22px -8px rgb(255 200 0 / 0.7); }
.chz-btn-primary:hover:not(:disabled) { box-shadow: 0 0 24px rgb(255 200 0 / 0.55); transform: translateY(-1px); }
.chz-btn-ghost { border-color: var(--chz-line); background: hsl(240 5.9% 10% / .6); color: var(--chz-text); }
.chz-btn-ghost:hover:not(:disabled) { border-color: rgb(255 200 0 / 0.6); background: rgb(255 200 0 / 0.1); color: #fff; }
.chz-btn-block { width: 100%; }
.chz-iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: var(--chz-dim); cursor: pointer; transition: all .2s; }
.chz-iconbtn:hover { color: #fff; border-color: rgb(255 200 0 / 0.55); background: rgb(255 200 0 / 0.12); }

/* ------------------------------------------------------------ product grid (catalog, related) */
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--chz-line); background: var(--chz-panel); transition: all 0.3s; text-decoration: none; color: inherit; }
.product-card:hover { border-color: rgb(255 200 0 / 0.4); transform: translateY(-4px); }
.product-card-img { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-card-img img { transform: scale(1.03); }
.product-card-badge, .hp-card-badge { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.product-card-body { padding: 16px 18px 20px; }
.product-card-body h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; color: var(--chz-text); }
.product-card-price { font-size: 15px; color: var(--chz-dim); margin-bottom: 14px; }
.product-card-price span { color: var(--chz-accent); font-weight: 800; }
.product-card-price s { color: var(--chz-faint); margin-left: 6px; font-size: 13px; }
.product-card-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, var(--chz-accent), var(--chz-accent-deep)); color: var(--chz-on-accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; transition: all 0.2s; }
.product-card:hover .product-card-btn { box-shadow: 0 0 20px rgb(255 200 0 / 0.4); }
.product-card.is-soldout .product-card-btn { background: #27272a; color: var(--chz-dim); }
.chz-soldout-tag { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgba(0,0,0,.65); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.chz-img-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 120%, rgb(255 200 0 / 0.35), transparent 60%), #0b0b0d; }
.chz-img-fallback span { font-weight: 900; font-size: 28px; letter-spacing: -.04em; color: rgba(255,255,255,.12); }
.product-card-img img, .hp-card-img img { position: relative; z-index: 1; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filter-btn { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--chz-line); background: transparent; color: var(--chz-dim); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.filter-btn:hover { border-color: rgb(255 200 0 / 0.5); color: var(--chz-text); }
.filter-btn.active { border-color: var(--chz-accent); background: rgb(255 200 0 / 0.15); color: #fff; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 40px; }
.page-btn { min-width: 40px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--chz-line); background: transparent; color: var(--chz-dim); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.page-btn:hover:not(:disabled) { border-color: rgb(255 200 0 / 0.5); color: var(--chz-text); }
.page-btn.active { border-color: var(--chz-accent); background: rgb(255 200 0 / 0.15); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { color: #52525b; padding: 0 4px; }
.chz-grid-empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--chz-faint); }
.chz-grid-empty a { color: var(--chz-accent); font-weight: 600; }

/* ------------------------------------------------------------ skeletons */
.chz-skel { position: relative; overflow: hidden; background: rgba(255,255,255,.04); border-radius: 12px; }
.chz-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: chz-shimmer 1.4s infinite; }
@keyframes chz-shimmer { to { transform: translateX(100%); } }
.chz-skel-card { border-radius: 16px; border: 1px solid var(--chz-line); background: var(--chz-panel); overflow: hidden; }
.chz-skel-card .chz-skel-img { aspect-ratio: 16/9; border-radius: 0; }
.chz-skel-card .chz-skel-body { padding: 16px 18px 20px; display: grid; gap: 10px; }
.chz-skel-line { height: 14px; }

/* ------------------------------------------------------------ page heading */
.chz-page-head { text-align: center; margin-bottom: 48px; }
.chz-page-head p { margin: 16px auto 0; max-width: 42rem; color: var(--muted-foreground); }
.chz-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--chz-dim); margin-bottom: 24px; }
.chz-crumbs a { color: var(--chz-dim); text-decoration: none; transition: color .2s; }
.chz-crumbs a:hover { color: var(--chz-accent); }
.chz-crumbs span[aria-current] { color: var(--chz-text); }

/* ------------------------------------------------------------ product page */
.chz-product { display: grid; gap: 36px; }
@media (min-width: 1024px) { .chz-product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.chz-gallery-main { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--chz-line); background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.chz-gallery-main img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.chz-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.chz-thumb { position: relative; flex: 0 0 96px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--chz-line); opacity: .55; cursor: pointer; background: #000; padding: 0; transition: all .2s; }
.chz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chz-thumb:hover, .chz-thumb.is-active { opacity: 1; border-color: var(--chz-accent); }
.chz-buybox { border-radius: 18px; border: 1px solid var(--chz-line); background: var(--chz-panel); padding: 26px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 1024px) { .chz-buybox { position: sticky; top: 150px; } }
.chz-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.chz-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chz-status .chz-dot { box-shadow: 0 0 10px currentColor; }
.chz-product-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.025em; line-height: 1.05; margin: 14px 0 10px; color: #fff; }
.chz-product-summary { color: var(--muted-foreground); font-size: 15px; line-height: 1.6; }
.chz-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.chz-price { font-size: 32px; font-weight: 900; color: var(--chz-accent); letter-spacing: -.02em; }
.chz-price-slash { font-size: 18px; color: var(--chz-faint); text-decoration: line-through; font-weight: 600; }
.chz-save { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgb(255 200 0 / 0.15); color: #fff; border: 1px solid rgb(255 200 0 / 0.4); }
.chz-label { display: block; margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.chz-variants { display: grid; gap: 10px; }
.chz-variant { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--chz-line); background: rgba(255,255,255,.015); color: inherit; text-align: left; cursor: pointer; transition: all .2s; font-family: inherit; }
.chz-variant:hover:not(:disabled) { border-color: rgb(255 200 0 / 0.5); }
.chz-variant[aria-checked="true"] { border-color: var(--chz-accent); background: rgb(255 200 0 / 0.1); box-shadow: inset 0 0 0 1px var(--chz-accent); }
.chz-variant:disabled { opacity: .45; cursor: not-allowed; }
.chz-variant-name { font-weight: 700; color: #fff; font-size: 15px; }
.chz-variant-sub { display: block; font-size: 12px; color: var(--chz-faint); margin-top: 2px; font-weight: 500; }
.chz-variant-price { font-weight: 800; color: #fff; white-space: nowrap; }
.chz-variant-price s { color: var(--chz-faint); font-weight: 500; font-size: 13px; margin-right: 6px; }
.chz-buy-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.chz-buy-row .chz-btn { flex: 1 1 150px; }
.chz-qty { display: inline-flex; align-items: center; border: 1px solid var(--chz-line); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.02); }
.chz-qty button { width: 42px; height: 46px; background: transparent; color: var(--chz-text); font-size: 18px; cursor: pointer; border: 0; transition: background .2s; font-family: inherit; }
.chz-qty button:hover { background: rgb(255 200 0 / 0.12); color: #fff; }
.chz-qty input { width: 48px; height: 46px; text-align: center; background: transparent; border: 0; color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; -moz-appearance: textfield; appearance: textfield; }
.chz-qty input::-webkit-outer-spin-button, .chz-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chz-qty-sm button { width: 32px; height: 34px; font-size: 16px; }
.chz-qty-sm input { width: 38px; height: 34px; font-size: 14px; }
.chz-stock { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted-foreground); }
.chz-trust { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--chz-line); }
.chz-trust div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--chz-dim); }
.chz-trust svg { color: var(--chz-accent); flex: none; }
.chz-section { margin-top: 64px; }
.chz-section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 20px; color: #fff; }
.chz-section-title span { color: var(--chz-accent); }
.chz-panel { border-radius: 18px; border: 1px solid var(--chz-line); background: var(--chz-panel); padding: 28px; }
.chz-features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .chz-features { grid-template-columns: 1fr 1fr; } }
.chz-features li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--chz-line); background: rgba(255,255,255,.015); color: var(--chz-text); font-size: 14px; line-height: 1.5; }
.chz-features svg { flex: none; margin-top: 2px; color: var(--chz-accent); }

/* ------------------------------------------------------------ rich text (descriptions, legal) */
.chz-prose { color: #c4c4cc; font-size: 15px; line-height: 1.75; }
.chz-prose > :first-child { margin-top: 0; }
.chz-prose h2 { font-size: 22px; font-weight: 800; color: #fff; margin: 36px 0 12px; letter-spacing: -.01em; }
.chz-prose h3 { font-size: 17px; font-weight: 800; color: #fff; margin: 26px 0 10px; }
.chz-prose h4 { font-size: 15px; font-weight: 800; color: #fff; margin: 20px 0 8px; }
.chz-prose p { margin: 0 0 14px; }
.chz-prose ul, .chz-prose ol { margin: 0 0 16px; padding-left: 22px; }
.chz-prose ul { list-style: disc; }
.chz-prose ol { list-style: decimal; }
.chz-prose li { margin: 6px 0; }
.chz-prose li::marker { color: var(--chz-accent); }
.chz-prose a { color: var(--chz-accent); text-decoration: underline; text-underline-offset: 3px; }
.chz-prose strong, .chz-prose b { color: #fff; font-weight: 700; }
.chz-prose code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); }
.chz-prose blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--chz-accent); background: rgb(255 200 0 / 0.06); border-radius: 0 10px 10px 0; }
.chz-prose hr { border: 0; border-top: 1px solid var(--chz-line); margin: 28px 0; }
.chz-prose img { max-width: 100%; border-radius: 12px; }
.chz-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.chz-prose th, .chz-prose td { border: 1px solid var(--chz-line); padding: 8px 12px; text-align: left; }

.chz-legal { max-width: 860px; margin: 0 auto; }
.chz-legal-meta { text-align: center; font-size: 13px; color: var(--chz-faint); margin-top: 12px; }
.chz-legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 36px; }
.chz-legal-nav a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--chz-line); color: var(--chz-dim); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; }
.chz-legal-nav a:hover { border-color: rgb(255 200 0 / 0.5); color: #fff; }
.chz-legal-nav a[aria-current] { border-color: var(--chz-accent); background: rgb(255 200 0 / 0.15); color: #fff; }
.chz-callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid rgb(255 200 0 / 0.35); background: rgb(255 200 0 / 0.07); margin: 0 0 28px; color: var(--chz-text); font-size: 14px; line-height: 1.6; }
.chz-callout svg { flex: none; color: var(--chz-accent); margin-top: 2px; }

/* ------------------------------------------------------------ overlays: drawer + search */
.chz-layer { position: fixed; inset: 0; z-index: 60; }
.chz-layer[hidden] { display: none; }
.chz-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.chz-layer.is-open .chz-backdrop { opacity: 1; }
.chz-drawer { position: absolute; top: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: linear-gradient(180deg, #141519, #0e0f12); box-shadow: 0 0 60px rgba(0,0,0,.7); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.chz-drawer-right { right: 0; border-left: 1px solid rgb(255 200 0 / 0.22); transform: translateX(100%); }
.chz-drawer-left { left: 0; width: min(320px, 86vw); border-right: 1px solid rgb(255 200 0 / 0.22); transform: translateX(-100%); }
.chz-layer.is-open .chz-drawer { transform: none; }
.chz-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
.chz-drawer-head h2 { font-size: 18px; font-weight: 800; color: #fff; }
.chz-drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.chz-drawer-foot { padding: 18px 22px 22px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.2); }
.chz-drawer-foot:empty { display: none; }
.chz-lines { list-style: none; margin: 0; padding: 0; }
.chz-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.chz-line:last-child { border-bottom: 0; }
.chz-line-img { position: relative; display: block; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgb(255 200 0 / 0.3), transparent 60%), #0b0b0d; border: 1px solid var(--chz-line); }
.chz-line-img img { width: 100%; height: 100%; object-fit: cover; }
.chz-line-name { display: block; font-weight: 700; color: #fff; font-size: 14px; line-height: 1.35; text-decoration: none; }
.chz-line-name:hover { color: var(--chz-accent); }
.chz-line-variant { font-size: 12px; color: var(--chz-faint); margin-top: 2px; }
.chz-line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.chz-line-price { font-weight: 800; color: #fff; font-size: 14px; }
.chz-line-remove { width: 32px; height: 32px; }
.chz-subtotal { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; color: var(--chz-dim); }
.chz-subtotal strong { font-size: 22px; font-weight: 900; color: #fff; }
.chz-foot-note { font-size: 12px; color: var(--chz-faint); margin: 6px 0 16px; }
.chz-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--chz-faint); }
.chz-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 64px 12px; color: var(--chz-faint); font-size: 14px; }
.chz-empty svg { color: rgb(255 200 0 / 0.7); margin-bottom: 8px; }
.chz-empty-title { font-size: 17px; font-weight: 800; color: #fff; }
.chz-empty .chz-btn { margin-top: 14px; }

.chz-menu-logo a, .chz-menu-logo { text-decoration: none; }
.chz-menu-nav { display: flex; flex-direction: column; padding: 12px 14px; }
.chz-menu-nav a { padding: 14px 12px; border-radius: 10px; color: var(--chz-text); font-weight: 600; font-size: 16px; text-decoration: none; border-left: 2px solid transparent; transition: all .2s; }
.chz-menu-nav a:hover { background: rgba(255,255,255,.04); }
.chz-menu-nav a.is-active { color: #fff; border-left-color: var(--chz-accent); background: rgb(255 200 0 / 0.1); }
.chz-menu-actions { display: grid; gap: 10px; padding: 12px 22px 24px; margin-top: auto; }

.chz-search-panel { position: relative; width: min(640px, calc(100vw - 32px)); margin: 12vh auto 0; border-radius: 18px; border: 1px solid rgb(255 200 0 / 0.3); background: linear-gradient(180deg, #16171b, #0f1013); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03); overflow: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transition: all .22s cubic-bezier(.2,.8,.2,1); }
.chz-layer.is-open .chz-search-panel { opacity: 1; transform: none; }
.chz-search-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--chz-dim); }
.chz-search-bar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 17px; font-family: inherit; }
.chz-search-bar input::-webkit-search-cancel-button { display: none; }
.chz-kbd { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--chz-line); background: rgba(255,255,255,.04); color: var(--chz-faint); font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.chz-search-results { max-height: min(60vh, 480px); overflow-y: auto; padding: 8px; }
.chz-search-label { padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--chz-faint); }
.chz-search-empty { padding: 36px 16px; text-align: center; color: var(--chz-faint); font-size: 14px; }
.chz-result { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.chz-result.is-active, .chz-result:hover { background: rgb(255 200 0 / 0.1); border-color: rgb(255 200 0 / 0.3); }
.chz-result-img { position: relative; display: block; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgb(255 200 0 / 0.3), transparent 60%), #0b0b0d; }
.chz-result-img img { width: 100%; height: 100%; object-fit: cover; }
.chz-result-text { min-width: 0; }
.chz-result-name { display: block; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chz-result-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--chz-faint); margin-top: 2px; }
.chz-result-price { font-weight: 800; color: var(--chz-accent); font-size: 14px; }

/* ------------------------------------------------------------ toasts */
.chz-toasts { position: fixed; z-index: 80; right: 16px; bottom: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.chz-toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 420px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--chz-line); border-left: 3px solid var(--chz-dim); background: rgba(18,19,22,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); color: var(--chz-text); font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(12px); transition: all .3s cubic-bezier(.2,.8,.2,1); }
.chz-toast.is-in { opacity: 1; transform: none; }
.chz-toast-success { border-left-color: #22c55e; }
.chz-toast-error { border-left-color: var(--chz-danger); }
.chz-toast a { flex: none; color: var(--chz-accent); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------------------ status page */
.chz-status-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; padding: 24px 26px; border-radius: 18px; border: 1px solid var(--chz-line); background: var(--chz-panel); margin-bottom: 28px; }
.chz-status-hero h2 { font-size: 20px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 12px; }
.chz-status-hero p { font-size: 13px; color: var(--chz-faint); margin-top: 4px; }
.chz-pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.chz-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; animation: chz-ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes chz-ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
.chz-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--chz-dim); }
.chz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chz-status-group { margin-top: 28px; }
.chz-status-group h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--chz-dim); margin-bottom: 12px; }
.chz-status-list { border-radius: 16px; border: 1px solid var(--chz-line); background: var(--chz-panel); overflow: hidden; }
.chz-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.05); text-decoration: none; color: inherit; transition: background .2s; }
.chz-status-row:first-child { border-top: 0; }
.chz-status-row:hover { background: rgba(255,255,255,.025); }
.chz-status-name { font-weight: 700; color: #fff; }
.chz-status-note { display: block; font-size: 12px; color: var(--chz-faint); margin-top: 2px; font-weight: 500; }

/* ------------------------------------------------------------ orders page */
.chz-orders { display: grid; gap: 14px; }
.chz-order { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--chz-line); background: var(--chz-panel); }
.chz-order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.chz-order-id { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 8px; border: 1px solid var(--chz-line); background: rgba(255,255,255,.05); }
.chz-order-code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: #fff; user-select: all; -webkit-user-select: all; }
.chz-order-copy { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent; color: var(--chz-dim); cursor: pointer; }
.chz-order-copy:hover { color: var(--chz-accent); background: rgb(255 200 0 / .1); }
.chz-order-meta { font-size: 13px; color: var(--chz-faint); }
.chz-order-total { font-weight: 900; color: #fff; }
.chz-order-items { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--chz-dim); }
.chz-order-items a { color: var(--chz-text); text-decoration: none; }
.chz-order-items a:hover { color: var(--chz-accent); }
.chz-help-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 768px) { .chz-help-grid { grid-template-columns: 1fr 1fr; } }
.chz-help { padding: 24px; border-radius: 16px; border: 1px solid var(--chz-line); background: var(--chz-panel); }
.chz-help h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.chz-help p { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 16px; }

/* ------------------------------------------------------------ 404 */
.chz-404 { font-size: clamp(110px, 22vw, 220px); font-weight: 900; letter-spacing: -.06em; line-height: .9; }

@media (prefers-reduced-motion: reduce) {
  .chz-drawer, .chz-search-panel, .chz-toast, .chz-backdrop, .product-card { transition: none !important; }
  .chz-skel::after, .chz-pulse::after, .chz-badge.bump { animation: none !important; }
}

/* ------------------------------------------------------------ CHZ MARKET wordmark */
/* The longer wordmark still fits between the menu and cart buttons on phones. */
@media (max-width: 767px) { .chz-wordmark { font-size: 1.5rem; line-height: 2rem; } }
/* Home hero: stacked on phones, one line from tablet width up. */
.chz-hero-title { font-size: 20vw; }
@media (min-width: 768px) { .chz-hero-title { font-size: min(10rem, 11.5vw); } }

/* ------------------------------------------------------------ products page */
/* paging scrolls the grid back into view below the sticky header (134px desktop, 80px phones) */
#list-wrap, #home-products { scroll-margin-top: 150px; }
@media (max-width: 767px) { #list-wrap, #home-products { scroll-margin-top: 96px; } }
.chz-filter-sub { margin-top: -14px; }
.chz-filter-sub .filter-btn { padding: 6px 14px; font-size: 12px; }

/* ------------------------------------------------------------ admin */
.chz-admin { max-width: 1040px; margin: 0 auto; }
.chz-admin-card { max-width: 440px; margin: 40px auto 0; }
.chz-admin-card p { margin: 10px 0; line-height: 1.6; }
.chz-admin-code { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.45); border: 1px solid var(--chz-line); font-family: var(--font-mono, ui-monospace, monospace); color: var(--chz-accent); font-size: 14px; }
:root { --chz-danger-line: rgb(239 68 68 / .45); --chz-danger-soft: rgb(239 68 68 / .1); --chz-danger-ink: #fecaca; } /* kept red by recolor.py ("danger") */
.chz-admin-msg { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--chz-danger-line); background: var(--chz-danger-soft); color: var(--chz-danger-ink); font-size: 14px; }
.chz-admin-input { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--chz-line); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 14px; }
.chz-admin-input:focus { border-color: var(--chz-accent); outline: none; box-shadow: 0 0 0 3px rgb(255 200 0 / .25); }
.chz-admin-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.chz-admin-sub { font-size: 13px; color: var(--chz-faint); margin-top: 4px; }
.chz-admin-list { display: grid; gap: 12px; }
.chz-admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main reset switch" "seg seg seg" "note note note"; gap: 14px 16px; align-items: center; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--chz-line); background: var(--chz-panel-solid); }
@media (min-width: 1024px) { .chz-admin-row { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "main switch seg reset" "note note note note"; } }
.chz-admin-main { grid-area: main; min-width: 0; }
.chz-admin-row .chz-switch { grid-area: switch; }
.chz-admin-row .chz-seg { grid-area: seg; }
.chz-admin-row .chz-admin-reset { grid-area: reset; }
.chz-admin-row.is-hidden .chz-admin-main { opacity: .72; }
.chz-admin-name { font-weight: 800; color: #fff; }
.chz-admin-name a { color: #fff; text-decoration: none; }
.chz-admin-name a:hover { color: var(--chz-accent); }
.chz-admin-flag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--chz-accent); border: 1px solid rgb(255 200 0 / .4); vertical-align: 2px; }
.chz-admin-note { grid-area: note; display: flex; gap: 8px; }
.chz-admin-note .chz-btn { padding: 10px 14px; white-space: nowrap; }
.chz-admin-reset { width: 38px; height: 38px; font-size: 18px; }
.chz-admin-pub { color: var(--chz-accent); font-weight: 700; }
.chz-admin-msg.is-info { border-color: var(--chz-line); background: rgba(255,255,255,.04); color: var(--chz-text); }
.chz-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.chz-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chz-switch span { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #3f3f46; transition: background .2s; flex: none; }
.chz-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.chz-switch input:checked + span { background: var(--chz-accent); }
.chz-switch input:checked + span::after { transform: translateX(20px); background: var(--chz-on-accent); }
.chz-switch input:focus-visible + span { outline: 2px solid rgb(255 200 0 / .8); outline-offset: 2px; }
.chz-switch em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--chz-dim); min-width: 24px; }
.chz-seg { display: flex; border: 1px solid var(--chz-line); border-radius: 10px; }
.chz-seg button { flex: 1; padding: 9px 8px; background: transparent; border: 0; color: var(--chz-dim); font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: all .2s; }
.chz-seg button:first-child { border-radius: 9px 0 0 9px; }
.chz-seg button:last-child { border-radius: 0 9px 9px 0; }
@media (min-width: 1024px) { .chz-seg button { flex: none; padding: 9px 12px; } }
.chz-seg button + button { border-left: 1px solid var(--chz-line); }
.chz-seg button:hover { color: #fff; }
.chz-seg button:focus-visible { outline-offset: -3px; }
.chz-seg .chz-seg-operational[aria-pressed="true"] { background: rgb(34 197 94 / .16); color: #4ade80; }
.chz-seg .chz-seg-updating[aria-pressed="true"] { background: rgb(249 115 22 / .16); color: #fb923c; }
.chz-seg .chz-seg-discontinued[aria-pressed="true"] { background: rgb(156 163 175 / .16); color: #d1d5db; }
/* hidden admin bits must stay hidden even though their classes set a display value */
.chz-admin-flag[hidden], .chz-admin-reset[hidden] { display: none; }
.chz-admin-warn { color: #fb923c; font-weight: 700; }
/* narrowest phones: the three status buttons still fit inside their border */
@media (max-width: 359px) {
  .chz-admin-row { padding: 16px 14px; }
  .chz-seg button { padding: 9px 4px; font-size: 11px; }
}

/* ------------------------------------------------------------ badges, notes, announcement (set on /admin) */
.chz-ribbon { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--chz-accent); color: var(--chz-on-accent); box-shadow: 0 4px 14px -4px rgb(255 200 0 / .6); }
.chz-badge-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--chz-accent); color: var(--chz-on-accent); vertical-align: middle; }
.chz-buy-note { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgb(249 115 22 / .45); background: rgb(249 115 22 / .1); color: #fed7aa; font-size: 13px; line-height: 1.5; }
.chz-status-note { margin-bottom: 20px; }
.chz-announce { position: relative; z-index: 45; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 8px 48px; background: var(--chz-accent); color: var(--chz-on-accent); font-size: 13px; font-weight: 700; text-align: center; }
.chz-announce a { color: var(--chz-on-accent); text-decoration: underline; text-underline-offset: 3px; }
.chz-announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--chz-on-accent); cursor: pointer; }
.chz-announce-close:hover { background: rgb(19 20 22 / .12); }
.chz-announce :focus-visible { outline-color: var(--chz-on-accent); }

/* ------------------------------------------------------------ admin: settings, bulk, rows, log */
.chz-admin-panel { margin-bottom: 14px; padding: 0; }
.chz-admin-panel > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.chz-admin-panel > summary::-webkit-details-marker { display: none; }
.chz-admin-panel > summary span { font-weight: 800; color: #fff; }
.chz-admin-panel > summary span::before { content: "\25B8"; display: inline-block; margin-right: 8px; color: var(--chz-accent); transition: transform .2s; }
.chz-admin-panel[open] > summary span::before { transform: rotate(90deg); }
.chz-admin-panel > summary small { color: var(--chz-faint); font-size: 12px; }
.chz-admin-form { display: grid; gap: 14px; padding: 0 20px 20px; }
.chz-admin-form fieldset { display: grid; gap: 10px; border: 1px solid var(--chz-line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; }
.chz-admin-form legend { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--chz-dim); }
.chz-admin-textarea { height: auto; min-height: 64px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.chz-admin-formfoot { display: flex; justify-content: flex-end; }
.chz-admin-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; font-size: 14px; color: var(--chz-dim); }
.chz-admin-bulk select { width: auto; height: 40px; padding: 0 10px; }
.chz-admin-bulk .chz-btn { padding: 10px 16px; }
.chz-admin-search { width: auto; flex: 1 1 180px; height: 40px; margin-left: auto; }
.chz-admin-hint { font-size: 12px; color: var(--chz-faint); margin: 4px 2px 10px; }
.chz-admin-row { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "move main reset switch" "seg seg seg seg" "note note note note" "more more more more"; }
@media (min-width: 1024px) { .chz-admin-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "move main switch seg reset" "note note note note note" "more more more more more"; } }
.chz-admin-move { grid-area: move; display: flex; flex-direction: column; gap: 4px; }
.chz-admin-move .chz-iconbtn { width: 30px; height: 26px; }
.chz-admin-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chz-admin-tags:empty { display: none; }
.chz-admin-tags span { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--chz-line); font-size: 11px; font-weight: 700; color: var(--chz-dim); }
.chz-admin-more { grid-area: more; border-top: 1px solid var(--chz-line); padding-top: 10px; }
.chz-admin-more > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--chz-dim); width: max-content; }
.chz-admin-more > summary:hover { color: #fff; }
.chz-admin-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 12px; }
.chz-admin-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--chz-dim); }
.chz-admin-select select { width: auto; height: 38px; padding: 0 10px; }
.chz-admin-log { list-style: none; margin: 0; padding: 0 20px 18px; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.chz-admin-log li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 13px; color: var(--chz-text); }
.chz-admin-log time, .chz-admin-log small { color: var(--chz-faint); font-size: 12px; white-space: nowrap; }
.chz-admin-log strong { color: var(--chz-accent); text-transform: capitalize; }
@media (max-width: 640px) { .chz-admin-log li { grid-template-columns: 1fr; } }
