/* =====================================================================
   White-label Employee Gift Store — shared design system
   Mirrors the corpessen storefront layout. All brand-specific look comes
   from CSS variables set per brand (see each brand's <style> :root block).
   ===================================================================== */

:root {
  /* Brand tokens — overridden per brand */
  --brand:        #0050b4;
  --brand-dark:   #00306e;
  --brand-deep:   #001b40;
  --brand-accent: #00a1e0;
  --brand-on:     #ffffff;
  --brand-soft:   #eaf2fb;

  /* Neutrals */
  --ink:    #15181d;
  --body:   #3a4250;
  --muted:  #8a93a3;
  --line:   #e7eaf0;
  --bg:     #f5f6f9;
  --card:   #ffffff;

  --ok:     #1faa59;
  --warn:   #e8a200;
  --danger: #e23b3b;

  --radius:   14px;
  --radius-sm:10px;
  --shadow:   0 10px 30px rgba(18,24,38,.08);
  --shadow-sm:0 4px 14px rgba(18,24,38,.06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .topbar, .main-nav { position: static !important; }
  .drawer-overlay, .cart-drawer, .pmodal, .pmodal-overlay, .toast-wrap, #loadMore { display: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -.01em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 14px; line-height: 1;
  transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--brand-on); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--brand-on); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Icons ---------- */
.ic { width: 20px; height: 20px; display: inline-block; vertical-align: middle; stroke-width: 1.9; }
.ic-sm { width: 16px; height: 16px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--brand-deep); color: rgba(255,255,255,.78);
  font-size: 12.5px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar a { color: rgba(255,255,255,.78); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 18px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-main { display: flex; align-items: center; gap: 26px; height: 80px; }
.brand-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo .logo-mark {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand);
  color: var(--brand-on); display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand-logo .logo-text { line-height: 1.05; }
.brand-logo .logo-text b { display: block; font-size: 20px; color: var(--ink); letter-spacing: .12em; font-weight: 800; }
.brand-logo .logo-text span { font-size: 10.5px; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; }
.brand-logo .logo-img { height: 30px; width: auto; display: block; }
.brand-logo .logo-divider { width: 1px; height: 26px; background: var(--line); }
.brand-logo .logo-store { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
/* logos on dark surfaces render white */
.site-footer .brand-logo .logo-img, .login-aside .brand-logo .logo-img { background: #fff; padding: 6px 10px; border-radius: 8px; }
.site-footer .brand-logo .logo-divider, .login-aside .brand-logo .logo-divider { background: rgba(255,255,255,.25); }
.site-footer .brand-logo .logo-store, .login-aside .brand-logo .logo-store { color: rgba(255,255,255,.7); }

.search { flex: 1; position: relative; max-width: 560px; }
.search input {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 48px 0 20px; font-size: 14px; color: var(--ink); background: var(--bg);
  outline: none; transition: .18s;
}
.search input:focus { border-color: var(--brand); background: #fff; }
.search .search-btn {
  position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: none;
  border-radius: 50%; background: var(--brand); color: var(--brand-on); display: grid; place-items: center;
}
.search-results {
  position: absolute; top: 54px; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 50; max-height: 340px; overflow:auto;
}
.search-results a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.search-results a:hover { background: var(--brand-soft); }
.search-results img { width: 40px; height: 40px; object-fit: contain; background: var(--bg); border-radius: 8px; }
.search-results .sr-price { margin-left: auto; font-weight: 700; color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center; transition: .18s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand); color: var(--brand-on); border-radius: 999px; font-size: 11px;
  font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}

/* Budget wallet pill */
.wallet {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 11px;
  border-radius: 12px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.wallet .ic { color: var(--brand); }
.wallet .w-meta { line-height: 1.1; }
.wallet .w-meta small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wallet .w-meta b { font-size: 15px; color: var(--ink); }
.user-pill { display:flex; align-items:center; gap:9px; padding: 5px 6px 5px 12px; border-radius: 999px; border:1px solid var(--line); }
.user-pill .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-on); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-pill .u-name { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- Main nav ---------- */
.main-nav { background: var(--brand); }
.main-nav .container { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600; padding: 14px 16px; display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--brand-accent); }
.main-nav .nav-cats { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color:#fff; font-weight:700; background: var(--brand-dark); }
.main-nav .spacer { flex: 1; }
.main-nav .nav-help { color: rgba(255,255,255,.9); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: 26px 0; }
.hero-carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  min-width: 100%; min-height: 420px; display: flex; align-items: center;
  padding: 56px clamp(28px, 6vw, 92px); position: relative; color: #fff;
  background: linear-gradient(115deg, var(--brand-deep), var(--brand) 70%);
}
.hero-slide.alt { background: linear-gradient(115deg, #11151c, var(--brand-dark)); }
.hero-slide .hero-copy { max-width: 560px; position: relative; z-index: 2; }
.hero-slide .eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; opacity: .85; font-weight: 700; }
.hero-slide h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; margin: 14px 0; }
.hero-slide p { font-size: 16px; opacity: .92; margin: 0 0 26px; max-width: 460px; }
.hero-slide .hero-art {
  position: absolute; right: clamp(20px,5vw,80px); top: 50%; transform: translateY(-50%);
  width: clamp(180px, 30vw, 340px); opacity: .96; z-index: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}
.hero-art svg, .hero-art img { width: 100%; height: auto; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(255,255,255,.45); padding: 0; }
.hero-dots button.active { background: #fff; width: 26px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; z-index: 3; backdrop-filter: blur(4px); }
.hero-nav:hover { background: rgba(255,255,255,.3); }
.hero-nav.prev { left: 16px; } .hero-nav.next { right: 16px; }

/* ---------- Section title ---------- */
.section { padding: 30px 0; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.section-title h2 { font-size: 26px; }
.section-title h2 small { display:block; font-size: 13px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.section-title .links a { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.section-title .links a:hover { color: var(--brand); }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 10px;
  text-align: center; transition: .18s;
}
.cat-tile:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-tile .cat-ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.cat-tile .cat-ic .ic { width: 26px; height: 26px; }
.cat-tile b { font-size: 13px; color: var(--ink); display: block; }
.cat-tile span { font-size: 11.5px; color: var(--muted); }

/* ---------- Category filter chips ---------- */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--body); transition: .15s; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: var(--brand-on); border-color: var(--brand); }

/* ---------- Product grid + cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .2s; position: relative;
}
.product-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-4px); }
.product-thumb {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center; padding: 8px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: .3s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.p-badge {
  position: absolute; top: 12px; left: 12px; background: var(--brand); color: var(--brand-on);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em;
}
.p-badge.new { background: var(--ok); }
.p-fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted);
}
.p-fav:hover, .p-fav.active { color: var(--danger); border-color: var(--danger); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body .p-cat { font-size: 11.5px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.product-body .p-title { font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.3; min-height: 38px; }
.product-body .p-rating { display: flex; align-items: center; gap: 4px; color: var(--warn); font-size: 12px; }
.product-body .p-rating span { color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.p-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.p-price del { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.p-points { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.add-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--brand); color: var(--brand-on);
  display: grid; place-items: center; transition: .18s;
}
.add-btn:hover { background: var(--brand-dark); transform: scale(1.05); }

/* ---------- Promo strip ---------- */
.promo {
  border-radius: var(--radius); padding: 40px clamp(28px,5vw,64px); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand)); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.promo h3 { color: #fff; font-size: clamp(22px,3vw,32px); max-width: 560px; }
.promo p { opacity: .9; margin: 10px 0 0; }
.promo .promo-art { width: 160px; opacity: .9; }

.perks { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.perk { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; display:flex; gap:14px; align-items:center; }
.perk .perk-ic { width:46px; height:46px; border-radius:12px; background: var(--brand-soft); color: var(--brand); display:grid; place-items:center; flex-shrink:0; }
.perk b { color: var(--ink); font-size: 14px; display:block; }
.perk span { font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1219; color: rgba(255,255,255,.66); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 50px 0 36px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.66); font-size: 13.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--brand-accent); }
.footer-brand .brand-logo .logo-text b { color: #fff; }
.footer-brand p { font-size: 13.5px; margin: 16px 0; max-width: 320px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.foot-social a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* ---------- Cart drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(8,12,20,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 90; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: #fff; z-index: 100;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.18);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 18px; }
.cart-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 20px; }
.cart-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: contain; background: var(--bg); border-radius: 10px; flex-shrink: 0; }
.cart-row .cr-info { flex: 1; }
.cart-row .cr-info b { font-size: 13.5px; color: var(--ink); display:block; }
.cart-row .cr-info .cr-price { color: var(--brand); font-weight: 700; font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; border: none; background: none; color: var(--ink); font-size: 15px; }
.qty span { width: 30px; text-align: center; font-size: 13px; font-weight: 600; }
.cr-remove { color: var(--muted); background: none; border: none; align-self: flex-start; }
.cr-remove:hover { color: var(--danger); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.cart-empty .ic { width: 48px; height: 48px; color: var(--line); margin-bottom: 12px; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.cart-foot .row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.cart-foot .row.total { font-size: 17px; font-weight: 800; color: var(--ink); }
.budget-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.budget-bar > i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.budget-note { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.budget-note.over { color: var(--danger); font-weight: 600; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border-left: 4px solid var(--brand); border-radius: 10px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; min-width: 280px; transform: translateX(120%); transition: .3s;
}
.toast.show { transform: translateX(0); }
.toast.ok { border-left-color: var(--ok); } .toast.ok .ic { color: var(--ok); }
.toast.err { border-left-color: var(--danger); } .toast.err .ic { color: var(--danger); }
.toast b { color: var(--ink); font-size: 14px; }
.toast small { color: var(--muted); font-size: 12.5px; display: block; }

/* =====================================================================
   Login page
   ===================================================================== */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-aside {
  position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, var(--brand-deep), var(--brand) 75%); overflow: hidden;
}
.login-aside .la-art { position: absolute; right: -40px; bottom: -40px; width: 420px; opacity: .14; }
.login-aside .brand-logo .logo-text b { color: #fff; }
.login-aside .brand-logo .logo-mark { background: rgba(255,255,255,.16); }
.login-aside .la-mid { position: relative; z-index: 2; max-width: 440px; }
.login-aside .la-mid h2 { color: #fff; font-size: 36px; line-height: 1.12; }
.login-aside .la-mid p { opacity: .9; font-size: 15.5px; margin-top: 16px; }
.login-aside .la-points { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.login-aside .la-points div { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.login-aside .la-points .ic { color: var(--brand-accent); flex-shrink: 0; }
.login-aside .la-foot { position: relative; z-index: 2; font-size: 12.5px; opacity: .7; }

.login-form-wrap { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-card { width: 100%; max-width: 400px; }
.login-card .lc-eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.login-card h1 { font-size: 28px; margin: 8px 0 6px; }
.login-card .lc-sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .input-wrap { position: relative; }
.field .input-wrap .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field input {
  width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 16px 0 44px;
  font-size: 14.5px; color: var(--ink); outline: none; transition: .18s; background: var(--bg);
}
.field input:focus { border-color: var(--brand); background: #fff; }
.field .toggle-pass { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); background: none; border: none; }
.login-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 13px; }
.login-row label { display: flex; gap: 8px; align-items: center; color: var(--body); }
.login-row a { color: var(--brand); font-weight: 600; }
.login-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12.5px; margin: 22px 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso-btn { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 600; color: var(--ink); }
.sso-btn:hover { border-color: var(--brand); }
.login-hint { margin-top: 20px; padding: 12px 14px; background: var(--brand-soft); border-radius: 10px; font-size: 12.5px; color: var(--body); }
.login-hint b { color: var(--brand); }

/* ---------- Brand chip on product cards ---------- */
.product-card { cursor: pointer; }
.product-thumb .brand-chip {
  position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.94);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; display: flex;
  align-items: center; gap: 5px; box-shadow: var(--shadow-sm); backdrop-filter: blur(2px);
}
.product-thumb .brand-chip img { height: 11px; width: auto; max-width: 54px; }
.product-thumb .brand-chip span { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.product-card:hover .brand-chip { border-color: var(--brand); }
/* logo composited onto the product in the catalog tile */
.product-thumb .thumb-logo { position: absolute; mix-blend-mode: multiply; opacity: .96; pointer-events: none; z-index: 1; }
.product-thumb .thumb-logo.white { mix-blend-mode: screen; filter: brightness(0) invert(1); }
.product-thumb .thumb-hint { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 10px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; opacity: 0; transition: .18s; box-shadow: var(--shadow-sm); display: flex; gap: 4px; align-items: center; z-index: 2; }
.product-card:hover .thumb-hint { opacity: 1; }

/* ---------- "Preview your branding" modal ---------- */
.pmodal-overlay { position: fixed; inset: 0; background: rgba(8,12,20,.55); opacity: 0; visibility: hidden; transition: .25s; z-index: 110; }
.pmodal-overlay.open { opacity: 1; visibility: visible; }
.pmodal { position: fixed; z-index: 120; top: 50%; left: 50%; transform: translate(-50%,-46%); opacity: 0; visibility: hidden;
  transition: .28s cubic-bezier(.4,0,.2,1); width: min(920px,94vw); max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.pmodal.open { opacity: 1; visibility: visible; transform: translate(-50%,-50%); }
.pm-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; z-index: 3; }
.pm-grid { display: grid; grid-template-columns: 1.05fr .95fr; }
.pm-stage { position: relative; background: radial-gradient(circle at 50% 40%, var(--brand-soft), #fff 82%); display: grid; place-items: center; padding: 30px; border-radius: 18px 0 0 18px; overflow: hidden; aspect-ratio: 1/1; touch-action: none; }
.pm-product { width: 84%; height: 84%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pm-logo { position: absolute; width: 38%; left: 31%; top: 38%; cursor: grab; user-select: none; -webkit-user-drag: none; mix-blend-mode: multiply; transition: filter .15s; }
.pm-logo.white { mix-blend-mode: screen; filter: brightness(0) invert(1); }
.pm-logo:active { cursor: grabbing; }
.pm-drag-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(8,12,20,.72); color: #fff; font-size: 11px; padding: 5px 11px; border-radius: 999px; pointer-events: none; }
.pm-side { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.pm-eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }
.pm-side h3 { font-size: 22px; }
.pm-mockup-note { font-size: 13px; color: var(--muted); margin: 0; }
.pm-ctl label { font-size: 12px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 8px; }
.pm-presets, .pm-color { display: flex; gap: 8px; }
.pm-presets button, .pm-color button { flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; font-weight: 600; color: var(--body); transition: .15s; }
.pm-presets button:hover, .pm-color button:hover { border-color: var(--brand); color: var(--brand); }
.pm-color button.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pm-side input[type=range] { width: 100%; accent-color: var(--brand); }
.pm-fineprint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
@media (max-width: 720px) { .pm-grid { grid-template-columns: 1fr; } .pm-stage { border-radius: 18px 18px 0 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: repeat(2,1fr); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
}
@media (max-width: 720px) {
  .search { display: none; }
  .topbar .tb-left { display: none; }
  .main-nav .container { overflow-x: auto; }
  .main-nav a, .main-nav .nav-help { white-space: nowrap; }
  .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .hero-slide { min-height: 340px; padding: 36px 24px; }
  .hero-slide .hero-art { opacity: .25; }
  .wallet .w-meta { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .header-main { height: 64px; gap: 12px; }
}
