/* HyperX static preview: styles for the browser-only shop (shop.js), search (search.js) and form notices (forms.js). */
:root { --hx-accent: var(--as-clr-pr-1, #0b5cff); --hx-dark: var(--as-clr-h-1, #0a0a0a); --hx-text: var(--as-clr-p-1, #3e3e3e); --hx-line: rgba(10, 10, 10, .1); --hx-soft: #f4f6fb; }

.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 100px; background: var(--hx-accent); color: #fff !important; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; transition: background .25s, transform .25s; }
.hx-btn:hover { background: var(--hx-dark); transform: translateY(-1px); }
.hx-btn.is-dark { background: var(--hx-dark); } .hx-btn.is-dark:hover { background: var(--hx-accent); }
.hx-btn.is-ghost { background: transparent; color: var(--hx-dark) !important; box-shadow: inset 0 0 0 1.5px var(--hx-dark); } .hx-btn.is-ghost:hover { background: var(--hx-dark); color: #fff !important; }
.hx-btn.is-small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.hx-full { width: 100%; margin-top: 22px; }
.hx-muted { opacity: .7; } .hx-link { padding: 0; border: 0; background: none; color: var(--hx-accent); text-decoration: underline; cursor: pointer; }
.hx-x { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #c62828; font-size: 22px; line-height: 1; cursor: pointer; } .hx-x:hover { background: rgba(198, 40, 40, .08); }

/* cart count + floating bag + mini-cart drawer */
.hx-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--hx-accent); color: #fff; font: 700 11px/20px system-ui, sans-serif; vertical-align: middle; }
.hx-cart-count.is-empty { opacity: .55; }
.hx-fab { position: fixed; left: 24px; bottom: 24px; z-index: 9990; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--hx-dark); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); cursor: pointer; transition: background .25s; }
.hx-fab:hover { background: var(--hx-accent); } .hx-fab svg { width: 24px; height: 24px; }
.hx-fab .hx-cart-count { position: absolute; top: -4px; right: -4px; margin: 0; opacity: 1; }
.hx-fab .hx-cart-count.is-empty { background: #777; }
.hx-drawer { position: fixed; inset: 0; z-index: 99999; visibility: hidden; }
.hx-drawer.is-open { visibility: visible; }
.hx-drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s; }
.hx-drawer.is-open .hx-drawer__bg { opacity: 1; }
.hx-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(400px, 92vw); padding: 26px; background: #fff; color: var(--hx-text); transform: translateX(100%); transition: transform .35s; overflow-y: auto; }
.hx-drawer.is-open .hx-drawer__panel { transform: none; }
.hx-drawer__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--hx-line); }
.hx-drawer__head h4 { margin: 0; font-size: 22px; } .hx-drawer__head .hx-x { color: var(--hx-dark); }
.hx-drawer__body { padding-top: 16px; } .hx-drawer__body > .hx-btn { margin-top: 14px; }
.hx-mini { margin: 0; padding: 0; list-style: none; }
.hx-mini li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hx-line); }
.hx-mini img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--hx-soft); }
.hx-mini li > div { flex: 1; min-width: 0; } .hx-mini a { display: block; color: var(--hx-dark); font-weight: 600; } .hx-mini small { opacity: .75; }
.hx-drawer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hx-toast { position: fixed; right: 24px; bottom: 24px; z-index: 99998; display: flex; gap: 16px; align-items: center; max-width: min(400px, calc(100vw - 48px)); padding: 16px 20px; border-radius: 14px; background: var(--hx-dark); color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .3s; }
.hx-toast.is-on { transform: none; opacity: 1; pointer-events: auto; } .hx-toast a { color: #8fb3ff; font-weight: 700; white-space: nowrap; }

/* cart / checkout / account */
.hx-app { padding: 10px 0 20px; color: var(--hx-text); }
.hx-app h3 { margin: 0 0 20px; font-size: 26px; color: var(--hx-dark); }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.hx-grid.is-2 { grid-template-columns: 1fr 1fr; }
.hx-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--hx-line); border-radius: 14px; overflow: hidden; }
.hx-table th { padding: 16px; background: var(--hx-dark); color: #fff; font-weight: 600; text-align: left; }
.hx-table tfoot th { background: var(--hx-soft); color: var(--hx-dark); }
.hx-table td { padding: 16px; border-bottom: 1px solid var(--hx-line); vertical-align: middle; }
.hx-prod { display: flex; gap: 16px; align-items: center; }
.hx-prod img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--hx-soft); }
.hx-prod a { color: var(--hx-dark); font-weight: 600; font-size: 17px; } .hx-prod small { display: block; opacity: .75; }
.hx-qty { display: inline-flex; border: 1px solid var(--hx-line); border-radius: 100px; overflow: hidden; }
.hx-qty button { width: 38px; border: 0; background: var(--hx-soft); color: var(--hx-dark); font-size: 18px; cursor: pointer; }
.hx-qty input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.hx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.hx-box { padding: 32px; border-radius: 18px; background: var(--hx-soft); }
.hx-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hx-line); }
.hx-row.is-total { border: 0; font-size: 20px; font-weight: 700; color: var(--hx-dark); }
.hx-mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hx-line); font-size: 15px; }
.hx-coupon { display: flex; gap: 10px; margin-top: 20px; }
.hx-coupon input { flex: 1; min-height: 52px; padding: 0 18px; border: 1px solid var(--hx-line); border-radius: 100px; }
.hx-note { margin: 10px 0 0; font-size: 14px; } .hx-note.is-bad { color: #c62828; } .hx-note.is-ok { color: #2e7d32; }
.hx-empty { padding: 60px 20px; border-radius: 18px; background: var(--hx-soft); text-align: center; }
.hx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .hx-form p { margin: 0; } .hx-form .is-wide { grid-column: 1 / -1; }
.hx-form label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--hx-dark); } .hx-form abbr { color: #c62828; text-decoration: none; }
.hx-form input, .hx-form select, .hx-form textarea { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--hx-line); border-radius: 12px; background: #fff; color: var(--hx-dark); }
.hx-app .is-invalid { border-color: #c62828 !important; box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.hx-errors ul { margin: 16px 0 0; padding: 14px 18px 14px 34px; border-left: 4px solid #c62828; border-radius: 8px; background: #fff1f1; color: #8e1c1c; font-size: 14px; }
.hx-pay { display: grid; gap: 10px; margin-top: 18px; } .hx-pay label { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fff; cursor: pointer; }
.hx-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; } .hx-check input { margin-top: 3px; }
.hx-done { max-width: 820px; margin: 0 auto; }
.hx-tick { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; background: var(--hx-accent); color: #fff; font-size: 38px; }
.hx-done > h3 { text-align: center; }
.hx-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 26px 0 34px; padding: 0; list-style: none; border-radius: 14px; overflow: hidden; background: var(--hx-line); }
.hx-meta li { padding: 16px; background: var(--hx-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; } .hx-meta strong { display: block; margin-top: 4px; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--hx-dark); }
.hx-h { margin-top: 34px !important; } .hx-done address { font-style: normal; line-height: 1.8; } .hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hx-account { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.hx-tabs ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hx-tabs button { width: 100%; padding: 14px 20px; border: 0; border-radius: 12px; background: var(--hx-soft); color: var(--hx-dark); font-weight: 600; text-align: left; cursor: pointer; }
.hx-tabs button.is-on, .hx-tabs button:hover { background: var(--hx-accent); color: #fff; }

/* form notices */
.hx-form-notice { display: none; margin-top: 16px; padding: 14px 18px; border-left: 4px solid var(--hx-accent); border-radius: 8px; background: #eef4ff; color: #0a2a66; font-size: 15px; }
.hx-form-notice.is-on { display: block; } .hx-form-notice.is-bad { border-color: #c62828; background: #fff1f1; color: #8e1c1c; }

@media (max-width: 1024px) { .hx-grid, .hx-grid.is-2, .hx-account { grid-template-columns: 1fr; } .hx-meta { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .hx-form { grid-template-columns: 1fr; } .hx-coupon { flex-direction: column; } .hx-box { padding: 22px; }
  .hx-table thead { display: none; } .hx-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--hx-line); }
  .hx-table td { border: 0; padding: 6px 14px; } .hx-table td.hx-c-prod { grid-column: 1 / -1; }
  .hx-table td[data-label]::before { content: attr(data-label) ': '; opacity: .65; font-size: 13px; }
  .hx-table tfoot tr { display: flex; justify-content: space-between; } .hx-table tfoot th { background: none; }
  .hx-fab { left: 16px; bottom: 16px; } .hx-toast { right: 16px; bottom: 84px; }
}
