/* order.hopop.in - the shops' ordering site. Phone first: most shopkeepers
   will open this on the phone at the counter. Inputs are 16px or iOS zooms. */
:root {
  --navy: #0d2c4f;
  --navy-2: #1d4675;
  --ink: #16202c;
  --mute: #66717f;
  --line: #e3e8ee;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ok: #1f8a4c;
  --bad: #c0392b;
  --warm: #fff6e0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 44, 79, .06), 0 4px 14px rgba(13, 44, 79, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  padding-bottom: calc(84px + var(--safe-b));
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 30; background: #fff;
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.top .home { flex: none; display: block; }
.top .search { flex: 1; max-width: 560px; margin: 0 auto; }
.top .search input { width: 100%; height: 42px; }
@media (max-width: 700px) {
  .top .wrap { flex-wrap: wrap; gap: 8px 10px; }
  .top .search { order: 3; flex: 1 1 100%; max-width: none; }
  .top .who { margin-left: auto; }
}
.top .logo { height: 34px; width: auto; }
.top .spacer { flex: 1; }
.who {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 6px 12px 6px 6px; max-width: 52vw;
}
.who .dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}
.who .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- banner */
.banner { position: relative; margin: 14px auto 0; border-radius: var(--radius); overflow: hidden; background: #e9eef3; aspect-ratio: 1400 / 386; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.banner img.on { opacity: 1; }
.banner .dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.banner .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(13, 44, 79, .25); }
.banner .dots i.on { background: var(--navy); }

/* ------------------------------------------------------------ categories */
.bar {
  position: sticky; top: 60px; z-index: 20; background: var(--bg);
  padding: 12px 0 10px; border-bottom: 1px solid transparent;
}
.bar.stuck { border-bottom-color: var(--line); }
.search { display: flex; gap: 8px; align-items: center; }
.search input {
  flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 0 14px; font-size: 16px; outline: none;
}
.search input:focus { border-color: var(--navy-2); }
.views { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.views button { border: 0; background: none; padding: 0 12px; height: 42px; font-size: 13px; font-weight: 600; color: var(--mute); }
.views button.on { background: var(--navy); color: #fff; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cats button {
  flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.cats button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cats button small { opacity: .6; font-weight: 500; margin-left: 4px; }

.section-h { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; }
.section-h h2 { margin: 0; font-size: 18px; }
.section-h span { color: var(--mute); font-size: 13px; }

/* ------------------------------------------------------------------- grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 1 / 1; background: #f0f3f6; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic .none { width: 100%; height: 100%; display: grid; place-items: center; color: #9aa6b2; font-size: 12px; }
.card .body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .nm { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.card .meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--mute); }
.card .meta b { color: var(--ink); font-weight: 600; }
.sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.sizes button {
  border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 4px 7px; font-size: 12px; min-width: 34px; position: relative;
}
.sizes button.on { border-color: var(--navy); background: #eaf0f7; font-weight: 700; }
.card .min, .short { font-size: 11.5px; color: #b45309; font-weight: 600; }
.short { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 13px; line-height: 1.5; }
.sizes + .sizes { margin-top: 5px; }
.sizes button.has::after { content: ''; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; background: var(--ok); border-radius: 50%; border: 2px solid #fff; }
.card .push { margin-top: auto; }

.add {
  width: 100%; height: 40px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
}
.step { display: flex; align-items: center; height: 40px; border-radius: 9px; border: 1.5px solid var(--navy); overflow: hidden; }
.step button { width: 40px; height: 100%; border: 0; background: #fff; font-size: 20px; font-weight: 700; color: var(--navy); flex: none; }
.step input {
  flex: 1; min-width: 0; height: 100%; border: 0; text-align: center; font-size: 16px; font-weight: 700; outline: none; background: #fff;
  -moz-appearance: textfield;
}
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------ row form */
.rows { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: grid; grid-template-columns: 48px 1fr 92px; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .th { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #f0f3f6; }
.row .th img { width: 100%; height: 100%; object-fit: cover; }
.row .nm { font-size: 14px; font-weight: 600; line-height: 1.25; }
.row .sub { font-size: 12px; color: var(--mute); margin-top: 2px; }
.row input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; text-align: center; font-size: 16px; font-weight: 700; outline: none; background: #fff;
}
.row input:focus { border-color: var(--navy-2); }
.row.has { background: #f3f8f4; }
.row.has input { border-color: var(--ok); }
.rows .group { padding: 10px 12px; background: #f7f9fb; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); border-top: 1px solid var(--line); }
.rows .group:first-child { border-top: 0; }

.empty { text-align: center; color: var(--mute); padding: 40px 16px; }

/* ---------------------------------------------------------- bottom bar */
.basket {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + var(--safe-b)); transform: translateY(110%); transition: transform .2s;
}
.basket.on { transform: none; }
.basket .wrap { display: flex; align-items: center; gap: 12px; padding: 0; }
.basket .sum { flex: 1; font-size: 14px; }
.basket .sum b { font-size: 16px; }
.btn {
  height: 46px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
}
.btn:disabled { opacity: .5; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.wide { width: 100%; }
.link { border: 0; background: none; color: var(--navy-2); font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- sheets */
.veil { position: fixed; inset: 0; z-index: 60; background: rgba(10, 22, 36, .45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .veil { align-items: center; } }
.sheet {
  background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(18px + var(--safe-b)); -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .sheet { border-radius: 18px; } }
.sheet h2 { margin: 0 0 4px; font-size: 20px; }
.sheet .lead { margin: 0 0 16px; color: var(--mute); }
.sheet .x { float: right; border: 0; background: #f0f3f6; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1; }

.login { text-align: left; }
.login .logo { height: 44px; width: auto; margin: 4px 0 18px; }
.phone { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; height: 52px; background: #fff; }
.phone:focus-within { border-color: var(--navy-2); }
.phone span { padding: 0 12px; color: var(--mute); font-weight: 600; border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; }
.phone input { flex: 1; min-width: 0; border: 0; height: 100%; padding: 0 14px; font-size: 18px; letter-spacing: .04em; outline: none; }
.code { width: 100%; height: 56px; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: .4em; outline: none; }
.code:focus { border-color: var(--navy-2); }
.err { color: var(--bad); font-size: 14px; margin: 10px 0 0; min-height: 20px; }
.note { color: var(--mute); font-size: 13px; margin: 12px 0 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.contact { background: var(--warm); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.5; }

.lines { margin: 6px 0 14px; }
.line { display: grid; grid-template-columns: 44px 1fr 110px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line .th { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #f0f3f6; }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line .nm { font-size: 14px; font-weight: 600; line-height: 1.25; }
.line .sub { font-size: 12px; color: var(--mute); }
.line .step { height: 38px; }
.line .step button { width: 34px; }
textarea.in { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; resize: vertical; min-height: 70px; outline: none; }
textarea.in:focus { border-color: var(--navy-2); }

.done { text-align: center; padding: 10px 0 6px; }
.done .tick { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #e6f4ec; color: var(--ok); display: grid; place-items: center; font-size: 34px; }
.done .no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 18px; color: var(--navy); }

.menu { display: flex; flex-direction: column; }
.menu button { text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 14px 2px; font-size: 15px; font-weight: 600; }
.menu button:first-child { border-top: 0; }
.menu button.cur { color: var(--navy); }
.menu button small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; }

.req { border-top: 1px solid var(--line); padding: 12px 0; }
.req:first-child { border-top: 0; }
.req .hd { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.req .no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.req .sub { color: var(--mute); font-size: 13px; margin-top: 2px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f4; color: var(--mute); white-space: nowrap; }
.pill.new { background: #fff1d6; color: #8a5a00; }
.pill.contacted { background: #e6eef8; color: var(--navy-2); }
.pill.ordered { background: #e6f4ec; color: var(--ok); }
.pill.cancelled { background: #fbe9e7; color: var(--bad); }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px);
}
.loading { padding: 60px 0; text-align: center; color: var(--mute); }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .row { grid-template-columns: 56px 1fr 120px; }
  .row .th { width: 56px; height: 56px; }
}

/* ------------------------------------------------------- catalogue pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--mute); margin: 14px 0 6px; }
.crumbs a { color: var(--navy-2); text-decoration: none; font-weight: 600; }
.crumbs b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s; }
.cat-card:active { transform: scale(.98); }
.cat-card .pic { aspect-ratio: 4 / 3; background: #eef2f6; }
.cat-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .pic .none { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #b8c4d0; }
.cat-card .txt { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.cat-card .txt b { font-size: 15px; }
.cat-card .txt span { font-size: 12.5px; color: var(--mute); }
.cat-card .txt small { font-size: 11.5px; color: var(--mute); line-height: 1.35; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.list-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; }
.list-head h1 { margin: 0; font-size: 22px; }
.list-head span { color: var(--mute); font-size: 13px; }
.sub-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sub-strip::-webkit-scrollbar { display: none; }
.sub-card { flex: none; width: 96px; border: 2px solid transparent; background: var(--card); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.sub-card .pic { width: 80px; height: 80px; border-radius: 9px; overflow: hidden; background: #eef2f6; }
.sub-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.sub-card span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub-card.on { border-color: var(--navy); }

.tools { position: sticky; top: 64px; z-index: 15; display: flex; gap: 8px; align-items: center; background: var(--bg); padding: 8px 0; }
@media (max-width: 700px) { .tools { top: 114px; } }
.tools .spacer { flex: 1; }
.tools select, .tool { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tool b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; margin-left: 6px; padding: 0 5px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.active-filters:empty { display: none; }
.af { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--navy); background: #eaf0f7; color: var(--navy); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.af i { font-style: normal; font-size: 15px; line-height: 1; }

.fgroup { margin: 14px 0; }
.fgroup h3 { margin: 0 0 8px; font-size: 14px; }
.fchips { display: flex; flex-wrap: wrap; gap: 7px; }
.fchips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; }
.fchips button small { color: var(--mute); font-weight: 500; margin-left: 5px; }
.fchips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fchips button.on small { color: rgba(255,255,255,.7); }
.fchips button:disabled { opacity: .4; }
.fbar { position: sticky; bottom: calc(-18px - var(--safe-b)); background: #fff; display: flex; gap: 10px; padding: 12px 0 calc(4px + var(--safe-b)); border-top: 1px solid var(--line); margin-top: 8px; }
.fbar .btn { flex: 1; }

a.pcard { text-decoration: none; color: inherit; }
.pcard .pic { position: relative; }
.pcard .incart { position: absolute; left: 8px; bottom: 8px; background: var(--ok); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pcard .price { font-size: 13px; color: var(--mute); }
.pcard .price b { color: var(--ink); font-size: 15px; }
.pcard .comes { font-size: 12px; color: var(--mute); }

/* product page */
.pp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 6px; }
@media (max-width: 800px) { .pp { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.pp > * { min-width: 0; }
.pp-info h1 { overflow-wrap: anywhere; }
.pp-gallery { position: sticky; top: 76px; }
@media (max-width: 800px) { .pp-gallery { position: static; } }
.pp-main { aspect-ratio: 1 / 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; }
.pp-main img { width: 100%; height: 100%; object-fit: contain; }
.pp-main .none { color: #9aa6b2; }
.pp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: #fff; }
.pp-thumbs button.on { border-color: var(--navy); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp-info h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; }
.pp-code { font-size: 13px; color: var(--mute); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pp-price { margin: 12px 0 4px; font-size: 15px; color: var(--mute); }
.pp-price b { font-size: 26px; color: var(--ink); }
.pp-note { font-size: 13px; color: var(--mute); background: #f0f4f8; border-radius: 9px; padding: 8px 11px; margin: 8px 0; }
.pp-opt { margin: 16px 0 0; }
.pp-label { font-size: 13.5px; color: var(--mute); margin-bottom: 8px; }
.pp-label b { color: var(--ink); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips button { position: relative; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; min-width: 48px; }
.pp-chips button.on { border-color: var(--navy); background: #eaf0f7; }
.pp-chips button.swatch { padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72px; }
.pp-chips button.swatch img { width: 60px; height: 60px; object-fit: cover; border-radius: 7px; }
.pp-chips button.swatch span { font-size: 11.5px; }
.pp-chips button.has::after { content: ''; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; background: var(--ok); border-radius: 50%; border: 2px solid #fff; }
.pp-min { margin: 16px 0 0; font-size: 13.5px; color: #b45309; font-weight: 700; }
.pp-push { margin: 14px 0 0; }
.pp-push .step { height: 48px; max-width: 260px; }
.pp-push .step button { width: 52px; }
.pp-push .btn { height: 50px; font-size: 16px; }
.pp-qlabel { font-size: 13px; color: var(--ok); font-weight: 700; margin-bottom: 6px; }
.pp-mine { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-mine .pp-label { width: 100%; margin: 0; }
.pp-mine button { border: 1px solid var(--line); background: #f3f8f4; border-radius: 999px; padding: 5px 11px; font-size: 13px; display: flex; gap: 6px; }
.pp-mine button.on { border-color: var(--ok); }
.pp-desc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin: 22px 0 0; }
.pp-desc h2 { margin: 0 0 8px; font-size: 17px; }
.pp-desc .txt { white-space: pre-line; font-size: 14.5px; line-height: 1.6; color: #2b3644; }
@media (max-width: 420px) {
  .tools { gap: 6px; }
  .tools select { min-width: 0; flex: 1 1 auto; max-width: 140px; padding: 0 8px; }
  .tools .spacer { display: none; }
  .tools .views button { padding: 0 9px; font-size: 12.5px; }
  .tool { padding: 0 10px; }
}


/* Retailer sign-in: compact, quiet typography and a lighter surface. */
.login-veil { align-items:center; padding:24px; background:rgba(15,31,44,.32); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
.sheet.login { width:100%; max-width:420px; padding:30px; border:1px solid rgba(255,255,255,.7); border-radius:14px; max-height:calc(100dvh - 48px); box-shadow:0 24px 80px rgba(8,29,44,.16); font-family:"Helvetica Neue",Arial,sans-serif; font-weight:400; }
.login .logo { height:34px; width:auto; margin:0 0 25px; display:block; }
.login h2 { margin:0 0 10px; font-size:24px; line-height:1.25; font-weight:400; letter-spacing:-.5px; color:#173247; }
.login .lead { margin:0 0 24px; color:#74808b; font-size:13px; line-height:1.7; font-weight:400; max-width:34ch; }
.login .stack { gap:8px; }
.login .field-label { font-size:11px; line-height:1.5; font-weight:400; letter-spacing:.2px; color:#5b6975; }
.login .phone { height:44px; border:1px solid #dce2e6; border-radius:6px; background:#fff; transition:border-color .15s; }
.login .phone:focus-within { border-color:#8da0ad; box-shadow:none; }
.login .phone span { padding:0 12px; border-right:1px solid #e8ecef; font-size:13px; font-weight:400; color:#7a8690; }
.login .phone input { padding:0 12px; font:400 16px/1.4 "Helvetica Neue",Arial,sans-serif; letter-spacing:.3px; color:#243b4b; background:transparent; }
.login input::placeholder { color:#a1aab1; font-weight:400; }
.login .btn.wide { width:auto; align-self:flex-start; margin-top:10px; height:36px; padding:0 17px; border-radius:5px; background:#12334c; color:#fff; font:400 12px/1 "Helvetica Neue",Arial,sans-serif; letter-spacing:.1px; cursor:pointer; transition:background .15s; }
.login .btn:hover { background:#21475f; }.login .btn:disabled { cursor:default; }
.login .btn:focus-visible,.login .link:focus-visible { outline:2px solid #819aaa; outline-offset:3px; }
.login .stack>div:empty,.login .err:empty { display:none; }
.login .err { font-size:12px; font-weight:400; line-height:1.5; margin:2px 0 0; min-height:0; }
.login .contact { padding:11px 12px; font-size:12px; font-weight:400; border-radius:6px; background:#faf7ed; }
.login .contact b { font-weight:500; }
.login .code { width:210px; max-width:100%; height:44px; border:1px solid #dce2e6; border-radius:6px; font-size:22px; font-weight:400; letter-spacing:.3em; color:#243b4b; }
.login .code:focus { border-color:#8da0ad; }
.login .note { margin-top:20px; font-size:11px; font-weight:400; color:#88939b; }
.login .link { color:#617581; font-size:11px; font-weight:400; text-decoration:none; }
.login .link:hover { text-decoration:underline; }
@media(max-width:480px) { .login-veil {padding:20px;} .sheet.login {padding:26px 24px;max-height:calc(100dvh - 40px);} .login h2 {font-size:23px;} .login .btn.wide {height:38px;} }

/* product page: a row per colour and size, one button under them */
.pp-label { margin-top: 16px; }
.pp-rows { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pp-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 96px; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); cursor: pointer; }
.pp-row:first-child { border-top: 0; }
.pp-row.on { background: #f3f6fa; }
.pp-row.has { box-shadow: inset 3px 0 0 var(--ok); }
.pp-row .th { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #f0f3f6; }
.pp-row .th img { width: 100%; height: 100%; object-fit: cover; }
.pp-row .lbl { display: flex; flex-direction: column; min-width: 0; }
.pp-row .lbl b { font-size: 14.5px; }
.pp-row .lbl small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-row input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 9px; text-align: center; font-size: 17px; font-weight: 700; outline: none; background: #fff; -moz-appearance: textfield; }
.pp-row input::-webkit-outer-spin-button, .pp-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-row input:focus { border-color: var(--navy-2); }
.pp-total { font-size: 14px; font-weight: 700; text-align: right; min-height: 20px; margin: 0 2px 8px; }
.pp-msg:empty { display: none; }
.pp-msg { margin-top: 10px; }
.pp-inorder { margin: 12px 0 0; font-size: 14px; color: var(--ok); }

/* Product and category pictures are square (1000 x 1000): square boxes,
   the whole picture shown, nothing cropped. */
.card .pic, .cat-card .pic { aspect-ratio: 1 / 1; background: #fff; }
.card .pic img, .cat-card .pic img { object-fit: contain; }
.pp-row .th, .line .th, .row .th { background: #fff; }
.pp-row .th img, .line .th img, .row .th img { object-fit: contain; }

/* Cards in a row - set in One (Website setup -> Categories) for a phone, a
   tablet and a computer. */
:root { --cat-m: 2; --cat-t: 4; --cat-c: 6; --prod-m: 2; --prod-t: 3; --prod-c: 5; }
.cat-grid { grid-template-columns: repeat(var(--cat-m), minmax(0, 1fr)); }
.grid { grid-template-columns: repeat(var(--prod-m), minmax(0, 1fr)); }
@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(var(--cat-t), minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(var(--prod-t), minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(var(--cat-c), minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(var(--prod-c), minmax(0, 1fr)); }
}

/* Back, and previous / next through the list being browsed */
.crumbs .back { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--navy); margin-right: 4px; }
.pp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.pp-nav button { border: 1px solid var(--line); background: #fff; border-radius: 10px; height: 38px; padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--navy); }
.pp-nav span { font-size: 13px; color: var(--mute); }
.pp-side { display: none; }
@media (min-width: 1320px) {
  .pp-nav { display: none; }
  .pp-side { display: grid; place-items: center; position: fixed; top: 50%; transform: translateY(-50%); z-index: 25;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
    font-size: 30px; line-height: 1; color: var(--navy); padding: 0 0 4px; }
  .pp-side:hover { background: var(--navy); color: #fff; }
  .pp-side.left { left: max(12px, calc(50vw - 640px)); }
  .pp-side.right { right: max(12px, calc(50vw - 640px)); }
}
.pp-main { position: relative; }
.gal { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); box-shadow: 0 1px 6px rgba(13, 44, 79, .2); font-size: 24px; line-height: 1; color: var(--navy); padding: 0 0 3px; }
.gal.prev { left: 10px; }
.gal.next { right: 10px; }
.gal-n { position: absolute; bottom: 10px; right: 12px; background: rgba(13, 44, 79, .7); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }

/* quantity: − [ n ] + */
.pp-row { grid-template-columns: 48px minmax(0, 1fr) 150px; }
.pp-row.nopic { grid-template-columns: minmax(0, 1fr) 150px; padding-left: 14px; }
.qbox { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; height: 44px; border: 2px solid #5aaec2; border-radius: 8px; overflow: hidden; background: #fff; }
.qbox button { border: 0; font-size: 22px; font-weight: 800; line-height: 1; padding: 0; }
.qbox .minus { background: #d6d6d6; color: #111; }
.qbox .plus { background: #5aaec2; color: #fff; }
.qbox input, .pp-row .qbox input { width: 100%; height: 100%; border: 0; border-radius: 0; text-align: center; font-size: 17px; font-weight: 600; outline: none; background: #fff; }
.qbox:focus-within { box-shadow: 0 0 0 3px rgba(90, 174, 194, .25); }
@media (max-width: 380px) { .pp-row { grid-template-columns: 40px minmax(0, 1fr) 132px; } .pp-row.nopic { grid-template-columns: minmax(0, 1fr) 132px; } .qbox { grid-template-columns: 38px minmax(0, 1fr) 38px; } }
/* The quantity box in the site's own navy. */
.qbox { border-color: var(--navy); }
.qbox .minus { background: #eaf0f7; color: var(--navy); }
.qbox .plus { background: var(--navy); color: #fff; }
.qbox:focus-within { box-shadow: 0 0 0 3px rgba(13, 44, 79, .18); }

/* Product page lines: [picture] code · colour/size · MRP · pieces, one row each. */
.pp-rows { margin-top: 16px; }
.pp-rows .pp-head, .pp-rows .pp-row { display: grid; align-items: center; gap: 10px; grid-template-columns: minmax(0, 1fr) 72px 136px; }
.pp-rows.wv .pp-head, .pp-rows.wv .pp-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 72px 136px; }
.pp-rows.wp .pp-head, .pp-rows.wp .pp-row { grid-template-columns: 44px minmax(0, 1fr) 72px 136px; }
.pp-rows.wp.wv .pp-head, .pp-rows.wp.wv .pp-row { grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr) 72px 136px; }
.pp-rows .pp-row.nopic { padding-left: 10px; }
.pp-head { padding: 8px 10px; font-size: 11.5px; color: var(--mute); background: #f7f9fb; border-bottom: 1px solid var(--line); }
.pp-head .r { text-align: right; }
.pp-head .c { text-align: center; }
.pp-rows .pp-row .th { width: 44px; height: 44px; }
.pp-rows .pp-row .th.none { background: transparent; }

.pp-row .pcode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pp-row .var { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.pp-row .mrp { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 480px) {
  .pp-rows .pp-head, .pp-rows .pp-row { gap: 6px; padding-left: 8px; padding-right: 8px; grid-template-columns: minmax(0, 1fr) 54px 100px; }
  .pp-rows.wv .pp-head, .pp-rows.wv .pp-row { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 54px 100px; }
  .pp-rows.wp .pp-head, .pp-rows.wp .pp-row { grid-template-columns: 34px minmax(0, 1fr) 54px 100px; }
  .pp-rows.wp.wv .pp-head, .pp-rows.wp.wv .pp-row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, .9fr) 54px 100px; }
  .pp-rows .pp-row .th { width: 34px; height: 34px; }
  .pp-row .pcode { font-size: 11.5px; }
  .pp-row .var, .pp-row .mrp { font-size: 12.5px; }
  .qbox { grid-template-columns: 30px minmax(0, 1fr) 30px; height: 40px; }
  .qbox button { font-size: 18px; }
  .qbox input, .pp-row .qbox input { font-size: 15px; }
}

/* Code, colour and MRP in one face and weight across the row. */
.pp-row .pcode, .pp-row .var, .pp-row .mrp { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 480px) { .pp-row .pcode, .pp-row .var, .pp-row .mrp { font-size: 12.5px; } }

.pp-row { position: relative; }
.moq-note { position: absolute; right: 10px; bottom: -2px; transform: translateY(100%); z-index: 2; background: #b45309; color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; pointer-events: none; }

/* Colour / size centred under its heading. */
.pp-row .var { text-align: center; }

/* The small MOQ popup. */
.veil.mini { align-items: center; padding: 16px; }
.sheet.mini { max-width: 300px; border-radius: 14px; padding: 16px 18px 14px; }
.sheet.mini .mini-t { display: block; font-size: 16px; color: var(--ink); }
.sheet.mini .mini-p { margin: 6px 0 12px; font-size: 14px; color: var(--mute); }
.sheet.mini .mini-a { display: flex; justify-content: flex-end; }
.sheet.mini .mini-ok { height: 36px; padding: 0 22px; font-size: 14px; border-radius: 9px; }

/* hopop.in's own page background (theme.css: body #f9f5f3). */
:root { --bg: #f9f5f3; }

/* Remarks on the left, Add to order on the right - the size of the
   quantity box above it. */
.pp-act { display: grid; grid-template-columns: minmax(0, 1fr) 136px; gap: 10px; align-items: center; }
.pp-act .btn, .pp-push .pp-act .btn { width: 100%; height: 44px; padding: 0 8px; font-size: 14px; border-radius: 8px; }
.pp-remark { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 15px; background: #fff; outline: none; }
.pp-remark:focus { border-color: var(--navy-2); }
@media (max-width: 480px) { .pp-act { grid-template-columns: minmax(0, 1fr) 100px; } .pp-act .btn { font-size: 13px; } }

.pp-act { padding-right: 11px; }
@media (max-width: 480px) { .pp-act { padding-right: 9px; } }

/* Plain, exactly hopop.in's page colour - the doodle wallpaper was tried and
   dropped (Sachin, 31 Oct). */
body { background: var(--bg); }

/* Rows stay white; the total lines up with the box and button below it;
   remarks and the button are one height. */
.pp-rows .pp-row, .pp-rows .pp-row.on { background: #fff; }
.pp-total { padding-right: 11px; margin-right: 0; }
.pp-push .pp-act .pp-remark, .pp-push .pp-act .btn { box-sizing: border-box; height: 44px; margin: 0; }
@media (max-width: 480px) { .pp-total { padding-right: 9px; } }

/* ---------------------------------------------------------------- fonts
   Each kind of text takes the font, size and weight set in One (Website
   setup -> Fonts); these are hopop.in's own until changed. */
:root {
  --t-body-f: Montserrat, sans-serif; --t-body-s: 15px; --t-body-w: 400;
  --t-title-f: Montserrat, sans-serif; --t-title-s: 22px; --t-title-w: 700;
  --t-category-f: Montserrat, sans-serif; --t-category-s: 15px; --t-category-w: 700;
  --t-card-f: Montserrat, sans-serif; --t-card-s: 14px; --t-card-w: 600;
  --t-price-f: Montserrat, sans-serif; --t-price-s: 14px; --t-price-w: 600;
  --t-code-f: Montserrat, sans-serif; --t-code-s: 14px; --t-code-w: 600;
  --t-button-f: Montserrat, sans-serif; --t-button-s: 15px; --t-button-w: 700;
  --t-nav-f: Montserrat, sans-serif; --t-nav-s: 13px; --t-nav-w: 600;
}
body, button, input, textarea, select { font-family: var(--t-body-f); }
body, .pp-desc .txt, .lead, .note { font-size: var(--t-body-s); font-weight: var(--t-body-w); }
.list-head h1, .pp-info h1, .section-h h2, .pp-desc h2, .sheet h2 { font-family: var(--t-title-f); font-size: var(--t-title-s); font-weight: var(--t-title-w); }
.section-h h2, .pp-desc h2 { font-size: calc(var(--t-title-s) * .8); }
.cat-card .txt b { font-family: var(--t-category-f); font-size: var(--t-category-s); font-weight: var(--t-category-w); }
.card .nm, .pcard .nm { font-family: var(--t-card-f); font-size: var(--t-card-s); font-weight: var(--t-card-w); }
.pcard .price b, .pp-row .mrp { font-family: var(--t-price-f); font-size: var(--t-price-s); font-weight: var(--t-price-w); }
.pp-row .pcode, .pp-row .var { font-family: var(--t-code-f); font-size: var(--t-code-s); font-weight: var(--t-code-w); }
.btn, .pp-push .pp-act .btn, .add, .sheet.mini .mini-ok { font-family: var(--t-button-f); font-size: var(--t-button-s); font-weight: var(--t-button-w); }
.crumbs, .crumbs a, .crumbs b, .crumbs .back, .tools select, .tool, .views button, .pp-nav button, .af, .fchips button, .menu button
  { font-family: var(--t-nav-f); font-size: var(--t-nav-s); font-weight: var(--t-nav-w); }
@media (max-width: 480px) {
  .pp-row .pcode, .pp-row .var { font-size: calc(var(--t-code-s) * .9); }
  .pp-row .mrp { font-size: calc(var(--t-price-s) * .9); }
  .list-head h1, .pp-info h1 { font-size: calc(var(--t-title-s) * .9); }
}

/* Four more kinds of text, set in One's Fonts tab too. */
:root {
  --t-heading-f: Montserrat, sans-serif; --t-heading-s: 12px; --t-heading-w: 500;
  --t-qty-f: Montserrat, sans-serif; --t-qty-s: 17px; --t-qty-w: 700;
  --t-input-f: Montserrat, sans-serif; --t-input-s: 16px; --t-input-w: 400;
  --t-total-f: Montserrat, sans-serif; --t-total-s: 14px; --t-total-w: 700;
}
.pp-head, .pp-head span { font-family: var(--t-heading-f); font-size: var(--t-heading-s); font-weight: var(--t-heading-w); }
.qbox input, .pp-row .qbox input, .step input, .row input { font-family: var(--t-qty-f); font-size: var(--t-qty-s); font-weight: var(--t-qty-w); }
.pp-remark, .search input, textarea.in { font-family: var(--t-input-f); font-size: var(--t-input-s); font-weight: var(--t-input-w); }
.pp-remark::placeholder, .search input::placeholder { font-weight: var(--t-input-w); }
.pp-total, .basket .sum, .basket .sum b { font-family: var(--t-total-f); font-size: var(--t-total-s); font-weight: var(--t-total-w); }
@media (max-width: 480px) { .qbox input, .pp-row .qbox input { font-size: calc(var(--t-qty-s) * .9); } }

/* Product cards a little taller: a portrait picture area (the square
   picture sits in it whole) and a touch more room under it. */
.pcard .pic { aspect-ratio: 4 / 5; }
.pcard .body { padding: 12px 12px 14px; gap: 7px; }

/* A lighter outline on the quantity box. */
.qbox { border-width: 1px; border-color: #c9d3de; }
.qbox:focus-within { border-color: var(--navy); }
/* The quantity box, Remarks and Add to Order all one height, on every screen. */
.qbox, .pp-push .pp-act .pp-remark, .pp-push .pp-act .btn { height: 44px; }
@media (max-width: 480px) { .qbox, .pp-push .pp-act .pp-remark, .pp-push .pp-act .btn { height: 44px; } }
/* Thin outline, in the same dark blue as the + button. */
.qbox { border: 1px solid var(--navy); }
