@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;1,6..12,400&family=Rubik:wght@400;500;600;700&display=swap");

/* Happy4us — marketplace retail (Shopee-like), not gaming boutique */
:root {
  --bg: #f5f5f5;
  --bg-elevated: #ffffff;
  --ink: #ffffff;
  --text: #222222;
  --text-dim: #666666;
  --mute: #8c8c8c;
  --line: #ebebeb;
  --line-strong: #d9d9d9;
  --orange: #ee4d2d;
  --orange-hover: #d73211;
  --green: #26aa99;
  --green-bright: #1a9e8f;
  --green-soft: rgba(38, 170, 153, 0.12);
  --price: #ee4d2d;
  --danger: #ee2c4a;
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1200px;
  --font: "Nunito Sans", "Segoe UI", sans-serif;
  --display: "Rubik", "Nunito Sans", sans-serif;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.25rem;
  --header-h: 4rem;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
h1, h2, h3, h4, .brand span { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); line-height: 1.2; margin: 0; color: var(--text); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); line-height: 1.25; margin: 0; }
h3 { font-size: 1rem; margin: 0; font-weight: 600; }
p { margin: 0; }

/* Header — white marketplace bar */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav,
.container.nav {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  text-transform: none; letter-spacing: -0.03em;
}
.brand img,
.brand svg.logo-mark {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: 9px;
  background: transparent;
  flex: 0 0 auto;
  display: block;
}
.brand .wordmark { display: inline-flex; align-items: baseline; gap: 0; }
.brand .wordmark .accent { color: var(--orange); }
.nav-links {
  display: flex; gap: 1.25rem; align-items: center;
  color: var(--text-dim); font-weight: 600; font-size: 0.92rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a.active::after { display: none; }
.nav-toggle {
  display: none; width: 42px; height: 42px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); cursor: pointer;
}
.nav-cta { display: inline-flex; }
.nav-drawer {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem; box-shadow: var(--shadow-lg);
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; padding: 0.75rem 0.25rem; color: var(--text-dim); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a.active, .nav-drawer a:hover { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 0.65rem 1.15rem; font-family: var(--display); font-weight: 600;
  font-size: 0.92rem; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-ghost {
  background: #fff; color: var(--orange); border-color: var(--orange);
}
.btn-ghost:hover { background: #fff5f3; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Marketplace hero — search first, light banner */
.hero-bleed {
  position: relative;
  min-height: auto;
  display: block;
  overflow: visible;
  border-bottom: 0;
  background:
    linear-gradient(180deg, #fff7f5 0%, var(--bg) 100%);
  animation: none;
}
.hero-bleed::before { display: none; }
.hero-bleed .container {
  position: relative; z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 1.75rem;
}
.hero-copy {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  display: grid;
  gap: 1rem;
}
.hero-brand {
  display: none;
}
.hero-bleed h1 {
  margin: 0;
  max-width: none;
  text-shadow: none;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.hero-bleed .lede {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 40rem;
  text-shadow: none;
}
.hero-search {
  display: flex; gap: 0;
  max-width: 640px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--orange);
  background: #fff;
}
.hero-search input {
  flex: 1;
  border: 0;
  padding: 0.85rem 1rem;
  min-height: 48px;
  background: transparent;
  color: var(--text);
}
.hero-search input:focus { outline: none; }
.hero-search .btn {
  border-radius: 0;
  min-height: 48px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-cats {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.15rem;
}
.hero-cats a {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.85rem;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
}
.hero-cats a:hover { border-color: var(--orange); color: var(--orange); background: #fff5f3; }

.site-section {
  padding: var(--space-5) 0;
  background: var(--bg);
}
.site-section + .site-section { border-top: 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 1.15rem;
}
.section-head p { color: var(--text-dim); max-width: 36rem; margin-top: 0.35rem; font-size: 0.92rem; }
.section-head a {
  color: var(--orange); font-weight: 600; font-family: var(--display); white-space: nowrap;
  font-size: 0.92rem;
}
.section-head a:hover { text-decoration: underline; }

.split-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.split-block .lede { color: var(--text-dim); margin: 0.65rem 0 1rem; max-width: 36rem; }
.steps {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 0;
}
.steps li {
  display: grid; grid-template-columns: 2rem 1fr; gap: 0.65rem; align-items: start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps .n {
  font-family: var(--display); font-weight: 700; color: var(--orange); font-size: 0.95rem;
}
.steps strong { display: block; margin-bottom: 0.15rem; }
.steps span { color: var(--text-dim); font-size: 0.9rem; }

/* Product grid — marketplace tiles */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: #e0e0e0;
}
.product .thumb {
  aspect-ratio: 1 / 1;
  background: #fafafa;
  display: grid; place-items: center; overflow: hidden;
  border: 0;
}
.product:hover .thumb { border-color: transparent; }
.product .thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.25s ease;
}
.product:hover .thumb img { transform: scale(1.03); }
.product .thumb.fallback {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.04em;
  color: var(--mute); font-size: 0.85rem;
  background: #f0f0f0;
}
.product .body {
  padding: 0.65rem 0.7rem 0.75rem;
  display: grid; gap: 0.25rem; flex: 1;
}
.product .body h3 {
  margin: 0; font-size: 0.88rem; line-height: 1.35; font-weight: 500;
  font-family: var(--font);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.product .body h3 a:hover { color: var(--orange); }
.product .meta {
  color: var(--price); font-size: 1rem; font-weight: 700;
  font-family: var(--display);
}
.product .ask { margin-top: 0.4rem; }
.product .ask .btn { width: 100%; }

/* Page interiors */
.page-hero { padding: 1.75rem 0 1rem; }
.page-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--orange);
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero.shop-hero h1 { display: block; }
.page-hero.shop-hero h1::before { display: none; }
.page-hero p, .page-hero .desc { color: var(--text-dim); max-width: 42rem; font-size: 0.95rem; }
.page-hero .count { color: var(--text); font-weight: 600; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 3rem;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.form-section { display: grid; gap: 0.85rem; margin-bottom: 1.15rem; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); margin: 0;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.trust-rail {
  display: grid; gap: 0.85rem;
  position: sticky; top: calc(var(--header-h) + 0.85rem);
}
.trust-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.trust-block h3 { font-size: 0.95rem; margin: 0 0 0.65rem; }
.trust-block ol, .trust-block ul {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem;
}
.trust-block li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.45rem;
  color: var(--text-dim); font-size: 0.88rem; line-height: 1.4;
}
.trust-block .n { font-weight: 700; color: var(--orange); font-size: 0.88rem; }
.trust-block p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }
.trust-block a { color: var(--orange); font-weight: 600; }
.trust-block a:hover { text-decoration: underline; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.form { display: grid; gap: 0.85rem; }
.form label {
  display: grid; gap: 0.35rem;
  color: var(--text-dim); font-size: 0.85rem; font-weight: 600;
}
.form input, .form textarea, .form select,
.shop-toolbar input, .shop-toolbar select,
.qty-label input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  min-height: 44px;
}
.form input:focus, .form textarea:focus, .form select:focus,
.shop-toolbar input:focus, .shop-toolbar select:focus {
  outline: 2px solid rgba(238, 77, 45, 0.35); outline-offset: 0;
  border-color: var(--orange);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .btn-primary { min-height: 46px; width: 100%; margin-top: 0.25rem; }
.pay-extra { display: grid; gap: 0.85rem; }
.pay-qr {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.pay-qr img {
  width: min(220px, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid var(--line-strong);
}
.pay-qr p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-status {
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--text-dim);
}
.form-status[data-state="ok"] {
  color: #0d7a6f; border-color: #b6e6df; background: var(--green-soft);
}
.form-status[data-state="err"] {
  color: #b42318; border-color: #fecdca; background: #fef3f2;
}
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.cta-band h3 { margin: 0 0 0.25rem; }
.cta-band p { margin: 0; color: var(--text-dim); max-width: 36rem; }

.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.shop-toolbar input[type="search"] { flex: 1 1 220px; min-width: 160px; }
.shop-toolbar select { min-width: 160px; }
.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--orange); border-color: var(--orange); }
.chip.active {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}
.pager {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 1.5rem 0 0.5rem; color: var(--mute); font-weight: 600;
}
.empty-catalog { color: var(--mute); grid-column: 1 / -1; padding: 2rem 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  padding: 1rem 0 0; color: var(--mute); font-size: 0.85rem; font-weight: 600;
}
.breadcrumb a:hover { color: var(--orange); }

.product-detail {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem;
  padding: 1.25rem 0 3rem; align-items: start;
}
.product-detail-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 360px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.product-detail-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.product-detail-media.fallback, .fallback-label {
  font-family: var(--display); font-weight: 700; color: var(--mute);
  background: #f0f0f0;
  width: 100%; min-height: 360px; display: grid; place-items: center;
}
.product-detail-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.product-detail-body .meta { color: var(--mute); font-weight: 600; margin-bottom: 0.45rem; font-size: 0.88rem; }
.price-lg {
  font-family: var(--display); font-size: 1.85rem; font-weight: 700;
  color: var(--price); margin: 0.4rem 0 0.85rem;
}
.product-detail-body .desc { color: var(--text-dim); line-height: 1.6; }
.product-detail-body .desc p { margin: 0 0 0.65rem; }
.sku { color: var(--mute); font-size: 0.82rem; margin-bottom: 0.55rem; }
.trailer { margin: 0.45rem 0 0.85rem; }
.qty-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-dim); font-weight: 600;
}
.qty-label input { width: 4.25rem; }
.buy-row { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-top: 1rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  text-align: left; padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.cart-table th { color: var(--mute); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cart-item { display: flex; gap: 0.75rem; align-items: center; }
.cart-item img, .cart-thumb {
  width: 52px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); background: #f5f5f5;
}
.cart-summary { margin-top: 1.15rem; display: grid; gap: 0.85rem; }
.checkout-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.15rem; align-items: start;
  padding-bottom: 2.5rem;
}
@media (max-width: 860px) {
  .checkout-grid #summary {
    position: sticky; bottom: 0; z-index: 5;
    box-shadow: 0 -8px 24px rgba(0,0,0,.08);
  }
}
.order-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.order-steps li {
  display: grid; gap: 0.2rem; padding: 0.75rem 0.85rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.order-steps li.done { border-color: #b6e6df; background: var(--green-soft, #eefaf7); }
.order-steps strong { font-size: 0.95rem; }
.promo-banner {
  display: block; text-align: center; padding: 0.65rem 1rem; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; color: inherit;
}
.promo-banner.promo { background: #fff4e8; color: #9a4b00; }
.promo-banner.info { background: #e8f4ff; color: #0a4b78; }
.promo-banner.warn { background: #fff3f0; color: #9b1c1c; }
.cart-nudge {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 35;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.75rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  max-width: min(320px, calc(100vw - 2rem));
}
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.gallery-thumbs button {
  border: 1px solid var(--line); border-radius: 8px; padding: 0; background: #fff; cursor: pointer;
}
.gallery-thumbs img { width: 56px; height: 72px; object-fit: cover; display: block; border-radius: 7px; }
.reviews-box { margin-top: 2rem; }
.review-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem 1rem; background: #fff; margin-top: 0.65rem;
}
.recent-strip { margin-top: 2rem; }
.order-list { margin: 0; padding: 0; list-style: none; }
.order-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: 0.9rem;
}

.service-list {
  display: grid; gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1.25rem;
  box-shadow: var(--shadow);
}
.service-list article {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.service-list article:last-child { border-bottom: 0; }
.service-list .tag {
  font-family: var(--display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange);
  padding-top: 0.15rem;
}
.service-list p { color: var(--text-dim); margin-top: 0.25rem; font-size: 0.92rem; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.75rem;
  color: var(--mute); font-size: 0.88rem;
  background: #fff;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.35rem;
}
.footer-grid h4 { margin: 0 0 0.45rem; color: var(--text); font-size: 0.92rem; }
.footer-grid p, .footer-grid a { color: var(--mute); line-height: 1.55; }
.footer-grid a:hover { color: var(--orange); }
.footer-row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--line);
}

.muted { color: var(--mute); }

.h4u-chat { position: fixed; right: 0.85rem; bottom: 0.85rem; z-index: 80; }
.h4u-chat-launcher {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: var(--font); font-weight: 700; font-size: 0.85rem;
  background: var(--orange); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.h4u-chat-launcher:hover { background: var(--orange-hover); }
.h4u-chat-panel {
  position: absolute; right: 0; bottom: 3rem;
  width: min(340px, calc(100vw - 2rem));
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; flex-direction: column;
  max-height: min(440px, calc(100vh - 6rem));
}
.h4u-chat-panel:not([hidden]) { display: flex; }
.h4u-chat-panel header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0.9rem; background: var(--orange); color: #fff;
  border-bottom: 0;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
}
.h4u-chat-panel header button {
  border: 0; background: transparent; color: #fff; font-size: 1.35rem; cursor: pointer;
}
.h4u-chat-log {
  padding: 0.75rem; overflow: auto; flex: 1; display: grid; gap: 0.5rem; min-height: 140px;
  background: #fafafa;
}
.h4u-chat-empty { margin: 0; color: var(--mute); font-size: 0.88rem; }
.h4u-chat-bubble {
  padding: 0.5rem 0.65rem; border-radius: var(--radius-sm); font-size: 0.88rem; line-height: 1.4;
  max-width: 92%; background: #fff; border: 1px solid var(--line);
}
.h4u-chat-bubble.customer { background: #fff5f3; border-color: #ffd5cc; justify-self: end; }
.h4u-chat-bubble.admin { justify-self: start; }
.h4u-chat-meta { font-size: 0.7rem; color: var(--mute); margin-bottom: 0.15rem; }
.h4u-chat-form {
  display: grid; gap: 0.4rem; padding: 0.75rem; border-top: 1px solid var(--line);
  background: #fff;
}
.h4u-chat-form input, .h4u-chat-form textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); padding: 0.5rem 0.6rem;
}
.h4u-chat-status { margin: 0; font-size: 0.82rem; color: var(--green); }

.btn:focus-visible, .chip:focus-visible, .nav-toggle:focus-visible,
a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-block, .product-detail, .checkout-grid, .footer-grid, .form-layout { grid-template-columns: 1fr; }
  .trust-rail { position: static; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { display: none; }
  .service-list article { grid-template-columns: 5.5rem 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .service-list article { grid-template-columns: 1fr; gap: 0.25rem; }
  .hero-search { flex-direction: column; border-width: 1px; }
  .hero-search .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product, .product .thumb img, .btn { transition: none; }
}
