/* Banners, product cards, top and bottom menus, analytics boxes. Part of the site style sheet: the files load in number order and the order must not change. */
/* About page picture: shown whole (heads and shoulders), never cropped into a band (owner 2026-10-05). */
.aboutpic {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 14px;
}
@media (max-width: 640px) {
  .homebanner {
    height: auto;
    object-fit: initial;
  }
}

/* Product cards on the home page: raised light panels, clearly clickable (owner chose variant C, 2026-10-06). */
#products {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
#products .prod {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  border: 2px solid #b9d2f5;
  box-shadow:
    0 8px 24px rgba(31, 86, 184, 0.2),
    inset 0 1px 0 #fff;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    border-color 0.12s;
}
#products .prod .pic.mid {
  --box: 170px;
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d6e3f7;
  box-shadow: 0 3px 8px rgba(31, 86, 184, 0.12);
}
#products .prodname {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4em; /* two lines for every name, so the links below stand on one level */
  text-align: center;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #0b1f4d;
}
#products .prod .small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f56b8;
}
#products .prod .small::after {
  content: '›';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding-bottom: 3px;
  border-radius: 50%;
  background: #1f56b8;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(31, 86, 184, 0.5);
}
#products .prod:hover {
  transform: translateY(-3px);
  border-color: #6fa0ea;
  box-shadow:
    0 12px 28px rgba(31, 86, 184, 0.32),
    inset 0 1px 0 #fff;
}
#products .prod:active {
  transform: translateY(1px);
}
#products .prod:focus-visible {
  outline: 3px solid #1f56b8;
  outline-offset: 3px;
}

/* Lots and Requests: bright tabs in the top menu (owner 2026-10-09). Glow is a soft shadow of the same colour. */
.top .links a.navmain {
  color: #fff;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
}
.top .links a.navlots {
  background: #2f5fbf;
  box-shadow:
    0 0 0 3px rgba(47, 95, 191, 0.25),
    0 0 14px rgba(47, 95, 191, 0.55);
}
.top .links a.navreq {
  background: #e8731a;
  box-shadow:
    0 0 0 3px rgba(232, 115, 26, 0.25),
    0 0 14px rgba(232, 115, 26, 0.6);
}
.top .links a.navmain.on {
  color: #fff;
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Top menu: every item has the same height and sits on one centre line (owner 2026-10-13). */
.top .links {
  align-items: center;
}
.top .links a,
.top .pill,
.top .langsel {
  box-sizing: border-box;
  height: 40px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.top .links a {
  padding: 0 6px;
}
.top .links a.navmain {
  padding: 0 18px;
}
.top .pill {
  padding: 0 14px;
}
.top .langsel {
  padding: 0 8px;
}

/* Latest requests on the home page. */
.homereq:empty {
  display: none;
}
.homereq {
  margin: 20px 0;
}
.homereq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.homereq-head h2 {
  margin: 0;
  color: #e8731a;
}
.homereq-all {
  background: #e8731a;
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  text-decoration: none;
}
.homereq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.homereq-card {
  background: #fff;
  border: 2px solid #f2b27a;
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 760px) {
  .homereq-grid {
    grid-template-columns: 1fr;
  }
}

/* Draft badge in red (owner 2026-10-09). */
.tag.DRAFT {
  background: #fdecec;
  color: #d11a1a;
  font-weight: 700;
}

/* Bottom (phone) menu: Lots and Requests as bright as in the top menu. */
.bottom a.navmain {
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.bottom a.navlots {
  background: #2f5fbf;
  box-shadow: 0 0 10px rgba(47, 95, 191, 0.55);
}
.bottom a.navreq {
  background: #e8731a;
  box-shadow: 0 0 10px rgba(232, 115, 26, 0.6);
}
.bottom a.navmain.on {
  color: #fff;
  outline: 2px solid #111;
  outline-offset: 1px;
}

/* Readable page titles on the photo banners: the title sits on a solid light plate (owner 2026-10-09). */
.pagehead:not(.adminhead) h1,
.pagehead:not(.adminhead) > p:not(.chips) {
  display: inline-block;
  background: rgba(255, 255, 255, 0.93);
  color: #0b1f4d;
  padding: 6px 16px;
  border-radius: 12px;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(11, 31, 77, 0.18);
}
.pagehead:not(.adminhead) > p:not(.chips) {
  display: block;
  width: fit-content;
  margin-top: 10px;
  font-weight: 600;
}
.pagehead:not(.adminhead) h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
}

/* Analytics: a product row opens the list of its active lots. */
.popularrow {
  cursor: pointer;
}
.popularlots h3 {
  margin: 16px 0 6px;
}

/* Long lists in the admin analytics scroll inside their own box instead of making the page long. */
.scrollbox {
  overflow-y: auto;
}
.recentbox {
  max-height: 62vh;
}

/* Popular products are shown in a frame (owner 2026-10-09): they are what clients looked at. */
.popularcard {
  border: 3px solid #2f5fbf;
  box-shadow: 0 0 0 4px rgba(47, 95, 191, 0.15);
}

.legal {
  max-width: 46rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
.legal h2 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
}
.legal p,
.legal ul {
  margin: 0 0 0.5rem;
}
.legal ul {
  padding-left: 1.2rem;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 34rem;
  margin: 1.5rem auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
}
.qr-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.qr-arrow {
  width: 44px;
  height: auto;
}
.qr-phone {
  width: 60px;
  height: auto;
}
.qr-btn {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.qr-img {
  display: block;
  width: 96px;
  height: 96px;
}
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}
.qr-big {
  width: min(86vw, 86vh, 480px);
  height: auto;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .qr-row {
    cursor: zoom-in;
  }
}
@media (min-width: 701px) {
  .qr-img {
    width: 180px;
    height: 180px;
  }
  .qr-phone {
    width: 88px;
  }
  .qr-arrow {
    width: 64px;
  }
  .qr-row {
    gap: 1.6rem;
  }
}
.msgr {
  margin: 12px 0;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.chip.on {
  border-color: var(--accent);
  background: #eef4fd;
}
.msgr-field {
  margin: 8px 0;
}
.msgr-field label {
  display: flex;
  align-items: center;
  gap: 4px;
}
input.bad,
select.bad,
textarea.bad {
  border-color: var(--bad);
  background: #fef3f2;
}

/* Banner under the deal total: the lot is sold / the request is closed (owner 2026-10-13). */
.statusbar {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.statusbar.sold {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: var(--ok);
}
.statusbar.closed {
  background: #f1efec;
  border: 1px solid #cfcbc6;
  color: #555;
}
/* About page (owner 2026-11-08): section headings, lists and the green registration button. */
.abouthead {
  margin: 22px 0 8px;
  color: #14377f;
}
.aboutlist {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.aboutlist li {
  margin: 4px 0;
}
.aboutreg {
  margin-top: 22px;
  text-align: center;
}
.aboutreg a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  background: #1a7a3a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.aboutreg a:hover {
  background: #156330;
}
/* Owner 2026-11-09: request card on the home page: product and volume only. */
.homereq-vol {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #13294b;
}
.homereq-sort {
  margin-top: 2px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #13294b;
}
