/* ===== Seller storefront (store.php). Uses the tokens from style.css ===== */
.store-page { background: var(--blue-tint); }
.store-missing { padding: 3rem 0 4rem; display: grid; gap: 1rem; justify-items: start; }

/* ---- Banner ---- */
.store-hero {
  --banner: none;
  position: relative; color: var(--white);
  background:
    linear-gradient(100deg, rgba(11, 47, 122, .96) 0%, rgba(18, 80, 196, .88) 60%, rgba(18, 80, 196, .7) 100%),
    var(--banner) center / cover no-repeat,
    var(--blue);
  padding: 2.5rem 0 0;
  border-bottom: 6px solid var(--yellow);
}
.store-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.store-id { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.store-avatar {
  position: relative; flex: none; width: 96px; height: 96px; border-radius: 18px;
  background: var(--yellow); color: var(--blue-deep); display: grid; place-items: center;
  font: 700 2.8rem/1 var(--font-head); box-shadow: 6px 6px 0 var(--blue-deep); overflow: visible;
}
.store-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.online-dot { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #18b26b; border: 3px solid var(--white); }
.store-kicker { margin: 0 0 .25rem; font: 600 .85rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.store-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.store-tagline { margin: .4rem 0 0; color: #d6e3ff; font-size: 1.1rem; max-width: 52ch; }
.store-loc { margin: .35rem 0 0; color: #d6e3ff; font-size: .95rem; }
.store-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-ghost-light:hover, .btn-ghost-light[aria-pressed="true"] { background: var(--white); color: var(--blue-deep); }

.store-stats {
  list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); color: var(--ink); border-radius: 12px 12px 0 0; overflow: hidden;
}
.store-stats li { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .15rem; }
.store-stats li + li { border-left: 1px solid var(--line); }
.store-stats strong { font: 700 1.5rem/1.1 var(--font-head); color: var(--blue-deep); }
.store-stats span { font-size: .88rem; color: var(--muted); }
.store-stats .stat-hl { background: #fff6d6; }
.store-stats .stat-hl strong { color: var(--blue); }

/* ---- Tabs ---- */
.store-tabs { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.store-tabs .wrap { display: flex; gap: 2rem; }
.store-tabs a { padding: .95rem 0 .8rem; text-decoration: none; font: 600 1.05rem/1 var(--font-head); color: var(--muted); border-bottom: 4px solid transparent; }
.store-tabs a:hover { color: var(--blue-deep); }
.store-tabs a.is-active { color: var(--blue-deep); border-bottom-color: var(--yellow); }

/* ---- Layout ---- */
.store-body { padding: 2rem 0 3rem; }
.store-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }

.store-filters { position: sticky; top: 4.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.filter-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-deep); margin: 0 0 .6rem; }
.filter-title:not(:first-child) { margin-top: 1.5rem; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.cat-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  background: none; border: 0; border-radius: 8px; padding: .55rem .7rem; cursor: pointer; text-align: left;
  font: 500 .98rem var(--font-body); color: var(--ink);
}
.cat-btn span { font-size: .8rem; color: var(--muted); background: var(--blue-tint); border-radius: 999px; padding: .1rem .5rem; }
.cat-btn:hover { background: var(--blue-tint); }
.cat-btn.is-active { background: var(--blue); color: var(--white); }
.cat-btn.is-active span { background: var(--yellow); color: var(--blue-deep); }
.check { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .98rem; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.filter-note { margin-top: 1.5rem; padding: .9rem 1rem; background: #fff6d6; border-left: 4px solid var(--yellow); border-radius: 6px; font-size: .9rem; color: var(--ink); }
.filter-note strong { display: block; color: var(--blue-deep); margin-bottom: .2rem; }

/* ---- Toolbar ---- */
.store-toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.store-toolbar input, .store-toolbar select {
  font: 500 1rem var(--font-body); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem;
}
.store-toolbar input { flex: 1 1 260px; min-width: 0; }
.store-toolbar input:focus, .store-toolbar select:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.result-count { margin: 0 0 0 auto; color: var(--muted); font-size: .95rem; }

/* ---- Product cards ---- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.product-card:hover, .product-card:focus-within { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); border-color: var(--blue); }
.product-card[hidden] { display: none; }
.product-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.4rem; }
.save-badge { position: absolute; left: .7rem; top: .7rem; background: var(--yellow); color: var(--blue-deep); font: 700 .85rem/1 var(--font-head); padding: .4rem .6rem; border-radius: 6px; }
.product-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.product-title { font-size: 1.2rem; color: var(--blue-deep); margin: .2rem 0 .4rem; }
.product-price { margin: 0 0 .6rem; font: 700 1.6rem/1 var(--font-head); color: var(--ink); }
.product-price span { font: 500 .85rem var(--font-body); color: var(--muted); }
.product-price small { font: 500 .9rem var(--font-body); color: var(--muted); }

.tier-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: .9rem; }
.tier-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 0 .5rem .25rem; }
.tier-table th:last-child, .tier-table td:last-child { text-align: right; }
.tier-table td { padding: .35rem .5rem; border-top: 1px solid var(--blue-tint); }
.tier-table tr.is-current td { background: #fff6d6; font-weight: 600; color: var(--blue-deep); }
.tier-table tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }

.add-form { display: flex; gap: .5rem; margin-top: auto; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.qty input { width: 3.4rem; border: 0; text-align: center; font: 600 1rem var(--font-body); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.qty-btn { width: 2.2rem; border: 0; background: var(--blue-tint); color: var(--blue-deep); font-size: 1.2rem; cursor: pointer; }
.qty-btn:hover { background: var(--line); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.add-btn { flex: 1; padding: .7rem .8rem; font-size: .95rem; display: flex; justify-content: center; gap: .35rem; white-space: nowrap; }
.add-btn.is-added { background: #18b26b; }
.moq-note { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); }
.qty.is-invalid { border-color: #c62828; box-shadow: 0 0 0 2px rgba(198, 40, 40, .2); }

/* ---- About ---- */
.store-about { background: var(--white); padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 3.5rem; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.store-about h2 { font-size: 1.9rem; color: var(--blue-deep); margin-bottom: .8rem; }
.store-about p { margin: 0; max-width: 62ch; color: var(--ink); }
.policy-list { margin: 0; display: grid; gap: .75rem; }
.policy-list div { padding: .9rem 1.1rem; border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 8px; }
.policy-list dt { font: 700 1rem/1.2 var(--font-head); color: var(--blue-deep); }
.policy-list dd { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
#products { scroll-margin-top: 3.5rem; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 50;
  background: var(--blue-deep); color: var(--white); padding: .85rem 1.2rem; border-radius: 10px;
  box-shadow: 0 6px 0 var(--yellow); font-weight: 500; max-width: calc(100% - 2rem);
}

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-filters { position: static; }
  .cat-list { display: flex; flex-wrap: wrap; gap: .4rem; }
  .cat-btn { width: auto; background: var(--blue-tint); }
  .filter-note { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .store-hero { padding-top: 1.75rem; }
  .store-avatar { width: 72px; height: 72px; font-size: 2.1rem; box-shadow: 4px 4px 0 var(--blue-deep); }
  .store-stats { grid-template-columns: repeat(2, 1fr); }
  .store-stats li:nth-child(3) { border-left: 0; }
  .store-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .store-actions, .store-actions .btn { width: 100%; text-align: center; }
  .product-grid { grid-template-columns: 1fr; }
  .result-count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
  .product-card:hover, .product-card:focus-within { transform: none; }
}

/* ===== Group bids ===== */
.filter-note-blue { background: var(--blue-tint); border-left-color: var(--blue); }
.live-badge {
  position: absolute; right: .7rem; top: .7rem; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--white); color: var(--blue-deep); font: 700 .85rem/1 var(--font-head); padding: .4rem .6rem; border-radius: 6px;
}
.live-badge[hidden] { display: none; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #e0362c; animation: bid-blink 1.4s infinite; }
@keyframes bid-blink { 50% { opacity: .25; } }

/* When a product has a live bid, the bid replaces the normal tier table + add button */
.product-card.has-bid .tier-table,
.product-card.has-bid .add-form,
.product-card.has-bid .moq-note,
.product-card.has-bid .product-price { display: none; }
.product-card.has-bid { border-color: var(--blue); }
.start-bid-btn[hidden] { display: none; }

.btn-outline { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); margin-top: .7rem; padding: .65rem; font-size: .95rem; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-ghost { background: var(--blue-tint); color: var(--blue-deep); }
.btn-ghost:hover { background: var(--line); }

.bid-slot:empty { display: none; }
.bid-panel { border: 2px solid var(--blue); border-radius: 10px; padding: .85rem; background: var(--white); display: grid; gap: .55rem; }
.bid-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.bid-tag { background: var(--blue); color: var(--white); font: 700 .8rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; padding: .35rem .5rem; border-radius: 5px; }
.bid-clock { font: 600 .95rem/1 var(--font-head); color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.bid-panel.is-urgent .bid-clock { color: #c62828; }
.bid-prices { display: flex; align-items: flex-end; gap: .6rem; }
.bid-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bid-now { font: 700 1.75rem/1 var(--font-head); color: var(--ink); }
.bid-target { font: 700 1.2rem/1 var(--font-head); color: var(--blue); }
.bid-arrow { color: var(--muted); padding-bottom: .15rem; }
.bid-bar { height: 10px; background: var(--blue-tint); border-radius: 999px; overflow: hidden; }
.bid-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--yellow)); border-radius: 999px; transition: width .5s ease; }
.bid-meta { margin: 0; font-size: .82rem; color: var(--muted); }
.bid-meta strong { color: var(--blue-deep); }
.bid-mine { margin: 0; font-size: .88rem; background: #fff6d6; border-left: 3px solid var(--yellow); padding: .4rem .6rem; border-radius: 4px; }
.bid-join { display: flex; gap: .5rem; }
.bid-join-btn { flex: 1; padding: .7rem .6rem; font-size: .95rem; text-align: center; white-space: nowrap; }
.bid-join .qty input { width: 2.8rem; }
.bid-hint { margin: 0; font-size: .82rem; color: var(--ink); min-height: 1.2em; }
.bid-rule { margin: 0; font-size: .75rem; color: var(--muted); }
.bid-owner-note { margin: 0; font-weight: 600; color: var(--blue-deep); font-size: .9rem; }

/* Seller modal */
.bid-modal { position: fixed; inset: 0; z-index: 60; background: rgba(11, 47, 122, .45); display: grid; place-items: center; padding: 1rem; }
.bid-modal[hidden] { display: none; }
.bid-modal-card { background: var(--white); border-radius: 14px; padding: 1.5rem; width: min(520px, 100%); box-shadow: 8px 8px 0 var(--yellow); }
.bid-modal-card h2 { font-size: 1.6rem; color: var(--blue-deep); }
.bid-modal-product { margin: .2rem 0 1rem; color: var(--muted); }
.bid-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.bid-fields label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 500; color: var(--blue-deep); }
.bid-fields input { font: 600 1rem var(--font-body); padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.bid-fields input:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.bid-preview { margin: 1rem 0 0; padding: .8rem 1rem; background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 6px; font-size: .92rem; }
.bid-modal-card .form-error { margin: .75rem 0 0; }
.bid-modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; }
@media (max-width: 560px) { .bid-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } .bid-bar span { transition: none; } }

/* ===== My bids page ===== */
.mybids-head { background: var(--blue); color: var(--white); padding: 2.25rem 0 2rem; border-bottom: 6px solid var(--yellow); }
.mybids-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.mybids-head p { margin: .5rem 0 0; color: #d6e3ff; max-width: 62ch; }
.mybids-body { padding: 2rem 0 3.5rem; display: grid; gap: 1.25rem; }
.strike-box { background: #fdecec; border-left: 6px solid #c62828; color: #7a1b1b; padding: 1rem 1.25rem; border-radius: 8px; }
.strike-box strong { display: block; font: 700 1.15rem/1.2 var(--font-head); margin-bottom: .2rem; }
.due-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff6d6; border: 2px solid var(--yellow); border-radius: 10px; padding: 1rem 1.25rem; }
.due-box span { display: block; font-size: .85rem; color: var(--muted); }
.due-box strong { font: 700 2rem/1 var(--font-head); color: var(--blue-deep); }
.due-box p { margin: 0; color: var(--ink); }
.mybids-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mybid { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; }
.mybid h2 { font-size: 1.3rem; color: var(--blue-deep); margin: .25rem 0 .35rem; }
.mybid-status { margin: 0; }
.mybid-status span { font: 700 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; padding: .3rem .5rem; border-radius: 5px; background: var(--blue-tint); color: var(--blue-deep); }
.mybid-line { margin: 0 0 .5rem; color: var(--ink); font-size: .95rem; }
.mybid-when { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.mybid .bid-bar { max-width: 420px; }
.mybid-side { display: grid; justify-items: end; gap: .4rem; text-align: right; }
.mybid-amount { font: 700 1.7rem/1 var(--font-head); color: var(--ink); }
.mybid-sub { font-size: .85rem; color: var(--muted); }
.mybid.st-open   { border-left-color: var(--blue); }
.mybid.st-due    { border-left-color: var(--yellow); box-shadow: 6px 6px 0 var(--yellow); }
.mybid.st-due .mybid-status span { background: var(--yellow); color: var(--blue-deep); }
.mybid.st-paid   { border-left-color: #18b26b; }
.mybid.st-paid .mybid-status span { background: #e3f6ec; color: #11734a; }
.mybid.st-missed { border-left-color: #c62828; }
.mybid.st-missed .mybid-status span { background: #fdecec; color: #7a1b1b; }
.mybid.st-void   { opacity: .75; }
@media (max-width: 640px) {
  .mybid { grid-template-columns: 1fr; }
  .mybid-side { justify-items: start; text-align: left; }
  .mybid-side .btn { width: 100%; text-align: center; }
}

/* Back link to the sellers list */
.store-back { display: inline-block; margin-bottom: .5rem; color: #d6e3ff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.store-back:hover { color: var(--yellow); text-decoration: underline; }

.product-price-ask { font: 600 1.15rem/1.2 var(--font-head); color: var(--muted); }
.bid-reopened { margin: 0; font-size: .82rem; color: #7a4b00; background: #fff6d6; border: 1px dashed var(--yellow-dk); padding: .45rem .6rem; border-radius: 6px; }
.refund-note { display: block; margin-top: .3rem; color: #11734a; }

/* ===== Seller payments ===== */
.pay-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.pay-tiles li { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: .2rem; }
.pay-tiles span { font-size: .85rem; color: var(--muted); }
.pay-tiles strong { font: 700 1.8rem/1.1 var(--font-head); color: var(--blue-deep); }
.pay-tiles em { font-style: normal; font-size: .82rem; color: var(--muted); }
.pay-tiles .tile-paid   { border-top-color: #18b26b; }
.pay-tiles .tile-due    { border-top-color: var(--yellow); background: #fffbea; }
.pay-tiles .tile-missed { border-top-color: #c62828; }
.pay-tiles .tile-refund { border-top-color: var(--blue); }
.pay-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-filter button { font: 600 .95rem/1 var(--font-body); padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--blue-deep); cursor: pointer; }
.pay-filter button:hover { border-color: var(--blue); }
.pay-filter button.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pay-bid { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pay-bid[hidden] { display: none; }
.pay-bid-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.pay-bid-head h2 { font-size: 1.35rem; color: var(--blue-deep); margin: .3rem 0 .3rem; }
.pay-bid-head .bid-reopened { margin-top: .5rem; max-width: 60ch; }
.pay-bid-sum { margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: flex-start; }
.pay-bid-sum div { display: grid; gap: .1rem; text-align: right; }
.pay-bid-sum dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pay-bid-sum dd { margin: 0; font: 700 1.25rem/1 var(--font-head); color: var(--ink); }
.pay-bid-sum .sum-missed dd { color: #c62828; }
.pay-bid-sum .sum-refund dd { color: var(--blue); }
.bidst-open { background: var(--blue) !important; color: var(--white) !important; }
.bidst-won { background: #e3f6ec !important; color: #11734a !important; }
.bidst-closed { background: var(--yellow) !important; color: var(--blue-deep) !important; }
.bidst-cancelled { background: #eceff4 !important; color: var(--muted) !important; }
.pay-table-wrap { overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pay-table th, .pay-table td { padding: .7rem 1.25rem; text-align: left; border-top: 1px solid var(--blue-tint); white-space: nowrap; }
.pay-table thead th { border-top: 0; background: var(--blue-tint); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.pay-table tbody th { font-weight: 600; color: var(--blue-deep); }
.pay-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pay-table small { color: var(--muted); font-size: .8rem; }
.pay-table .when { color: var(--muted); font-size: .88rem; }
.pay-table tr[hidden] { display: none; }
.pay-chip { display: inline-block; font: 700 .78rem/1 var(--font-head); letter-spacing: .03em; padding: .35rem .55rem; border-radius: 5px; background: var(--blue-tint); color: var(--blue-deep); }
.pay-chip.st-due { background: var(--yellow); }
.pay-chip.st-paid { background: #e3f6ec; color: #11734a; }
.pay-chip.st-missed { background: #fdecec; color: #7a1b1b; }
.pay-chip.st-void { background: #eceff4; color: var(--muted); }
.pay-chip.st-refund { background: var(--blue); color: var(--white); }
.pay-empty { margin: 0; padding: 1rem 1.25rem; color: var(--muted); }
@media (max-width: 900px) { .pay-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-bid-sum div { text-align: left; } }

/* ===== Bid panel v2: start / now / target, units left, ended card ===== */
.bid-ladder { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: .25rem; background: var(--blue-tint); border-radius: 8px; padding: .55rem .6rem; }
.bid-step-price { display: grid; gap: .15rem; min-width: 0; }
.bid-step-price:last-child { text-align: right; }
.bid-step-price.is-now { text-align: center; }
.bid-start { font: 600 1.05rem/1 var(--font-head); color: var(--muted); text-decoration-color: #c62828; text-decoration-thickness: 2px; }
.bid-step-price .bid-now { font-size: 1.7rem; color: var(--blue-deep); }
.bid-step-price .bid-target { font-size: 1.1rem; }
.bid-drop { margin: 0; font-size: .8rem; color: var(--muted); }
.bid-drop strong { color: var(--blue-deep); }

.bid-left { position: relative; display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border: 2px solid var(--yellow); border-radius: 8px; background: #fffbea; }
.bid-left-num { font: 700 2.2rem/1 var(--font-head); color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.bid-left span { font-size: .85rem; line-height: 1.2; color: var(--ink); font-weight: 600; }
.bid-left em { font-style: normal; font-weight: 400; color: var(--muted); }
.bid-left-delta { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font: 700 1.15rem/1 var(--font-head); font-style: normal; color: #c62828; animation: bid-delta 2.2s ease-out forwards; }
.bid-left.just-changed .bid-left-num { animation: bid-pop .6s ease-out; }
@keyframes bid-delta { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160%); } }
@keyframes bid-pop { 0% { transform: scale(1); color: #c62828; } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Result card when the bid stops */
.product-card.bid-done { border-color: #18b26b; }
.bid-ended { border: 2px solid #18b26b; border-radius: 10px; padding: .9rem; background: #effaf4; display: grid; gap: .55rem; }
.bid-ended-title { margin: 0; font: 700 1.3rem/1.1 var(--font-head); color: #11734a; }
.bid-ended-line { margin: 0; font-size: .92rem; color: var(--ink); }
.bid-done-link { text-align: center; padding: .75rem; font-size: .98rem; }
.bid-done-sub { margin: 0; font-size: .85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .bid-left-delta, .bid-left.just-changed .bid-left-num { animation: none; }
}

/* ===== Price ladder: start - step = next price ===== */
.bid-ladder-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lad-formula { margin: 0; padding: .5rem .65rem; background: var(--blue-deep); color: #d6e3ff; font-size: .9rem; border-radius: 8px; font-variant-numeric: tabular-nums; }
.lad-formula strong { font-size: 1.05rem; }
.lad-formula strong { color: var(--yellow); }
.lad-formula em { font-style: normal; color: #fff; opacity: .8; }
.lad-rows { list-style: none; margin: 0; padding: 0; font-size: .8rem; font-variant-numeric: tabular-nums; }
.lad-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .28rem .55rem; border-top: 1px solid var(--blue-tint); }
.lad-rows li:first-child { border-top: 0; }
.lad-u { color: var(--muted); white-space: nowrap; }
.lad-calc { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: clip; text-align: right; font-size: .74rem; }
.lad-p { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.lad-start .lad-p { color: var(--muted); text-decoration: line-through; text-decoration-color: #c62828; }
.lad-past { opacity: .55; }
.lad-past .lad-p { text-decoration: line-through; text-decoration-color: #c62828; }
.lad-now { background: #fff6d6; box-shadow: inset 4px 0 0 var(--yellow); }
.lad-now .lad-u, .lad-now .lad-p { color: var(--blue-deep); font-weight: 700; }
.lad-now .lad-p { font-size: .9rem; }
.lad-next { background: var(--blue-tint); }
.lad-next .lad-u { color: var(--blue); font-weight: 600; }
.lad-gap { display: block !important; text-align: center; color: var(--muted); font-size: .75rem; padding: .15rem .6rem !important; }
.lad-target { background: #effaf4; }
.lad-target .lad-u, .lad-target .lad-p { color: #11734a; font-weight: 700; }
.lad-start.lad-now .lad-p { text-decoration: none; color: var(--blue-deep); }
.lad-head { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .45rem; padding: .25rem .55rem; background: var(--blue-tint); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lad-head span:nth-child(2) { text-align: right; }

/* Payment list inside the "Target reached" card (seller only) */
.bid-pay-list { width: 100%; table-layout: auto; border-collapse: collapse; font-size: .82rem; background: var(--white); border-radius: 8px; overflow: hidden; }
.bid-pay-list th, .bid-pay-list td { padding: .32rem .3rem; text-align: left; border-top: 1px solid var(--blue-tint); white-space: nowrap; }
.bid-pay-list th:first-child, .bid-pay-list td:first-child { padding-left: .45rem; white-space: normal; word-break: break-word; }
.bid-pay-list tbody th small, .bid-pay-list tfoot th small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.bid-pay-list th:last-child, .bid-pay-list td:last-child { padding-right: .45rem; }
.bid-pay-list thead th { border-top: 0; background: var(--blue-tint); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.bid-pay-list tbody th { color: var(--blue-deep); font-weight: 600; }
.bid-pay-list .num { text-align: right; font-variant-numeric: tabular-nums; }
.bid-pay-list tfoot th, .bid-pay-list tfoot td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--line); }
.bid-pay-list .pay-chip { font-size: .66rem; padding: .22rem .32rem; }
.bid-ended { min-width: 0; }
.bid-pay-wrap { overflow-x: auto; border-radius: 8px; }
.bid-pay-list thead th { white-space: nowrap; word-break: normal; }
.bid-pay-list tbody th small, .bid-pay-list tfoot th small { white-space: nowrap; }
.bid-pay-list td small { display: block; font-size: .7rem; font-weight: 700; }
.bid-pay-list .pl-due { color: #8a6500; }
.bid-pay-list .pl-paid { color: #11734a; }
.bid-pay-list .pl-missed { color: #c62828; }
.bid-pay-list .pl-open { color: var(--blue); }

/* units-left: preview + live indicator */
.bid-left-side { margin-left: auto; display: grid; justify-items: end; gap: .15rem; text-align: right; }
.bid-left-after { font-size: .78rem; color: var(--blue-deep); font-weight: 700; min-height: 1em; }
.bid-live { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.bid-live i { width: 7px; height: 7px; border-radius: 50%; background: #18b26b; animation: bid-blink 1.4s infinite; }
.bid-live.is-stale i { background: #9aa4b8; animation: none; }
.bid-left-delta { right: auto !important; left: 4.2rem; }
/* units-left box: number on top, preview + live on a second line */
.bid-left { flex-wrap: wrap; row-gap: .3rem; }
.bid-left-side { flex-basis: 100%; margin-left: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; border-top: 1px dashed #f0d77a; padding-top: .3rem; }
.bid-left-after:empty::before { content: "Pick how many to see what's left"; font-weight: 400; color: var(--muted); }
.bid-left-delta { left: auto !important; right: .7rem !important; top: .55rem !important; transform: none; }
@keyframes bid-delta { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.bid-left-side { flex-direction: column; align-items: flex-start; gap: .15rem; }
.bid-left-after, .bid-live { white-space: nowrap; }

/* "Bid ended" popup */
.bid-done-modal .bid-modal-card { width: min(460px, 100%); display: grid; gap: .7rem; box-shadow: 8px 8px 0 #18b26b; border-top: 6px solid #18b26b; }
.bid-done-modal h2 { font-size: 1.5rem; color: var(--blue-deep); margin: 0; }
.bid-done-badge { margin: 0; justify-self: start; background: #e3f6ec; color: #11734a; font: 700 .9rem/1 var(--font-head); padding: .4rem .6rem; border-radius: 6px; }
.bid-done-modal .bid-modal-product { margin: 0; }
.bid-done-modal .bid-mine { font-size: .95rem; }
.bid-done-modal .bid-pay-list { font-size: .9rem; }
.bid-done-modal .bid-modal-actions { margin-top: .3rem; flex-wrap: wrap; }
.bid-done-modal .bid-modal-actions .btn { text-align: center; }
@media (max-width: 480px) { .bid-done-modal .bid-modal-actions .btn { flex: 1 1 100%; } }
.bid-done-modal .bid-modal-actions { flex-wrap: nowrap; }
.bid-done-modal .bid-modal-actions a.btn { flex: 1; }
@media (max-width: 480px) { .bid-done-modal .bid-modal-actions { flex-wrap: wrap; } }
/* start / now / target row: keep long prices (e.g. $1,020.00) from overlapping */
.bid-ladder { grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto); column-gap: .45rem; }
.bid-step-price .bid-now { font-size: clamp(1.15rem, 1.1rem + .6vw, 1.55rem); white-space: nowrap; }
.bid-step-price .bid-target, .bid-start { font-size: .95rem; white-space: nowrap; }
/* start + target on one small line, price now big underneath: fits any card width */
.bid-ladder { grid-template-columns: 1fr 1fr; grid-template-areas: "start target" "now now"; row-gap: .2rem; }
.bid-ladder .bid-step-price:nth-child(1) { grid-area: start; }
.bid-ladder .bid-step-price:nth-child(2) { grid-area: now; text-align: center; border-top: 1px solid var(--line); padding-top: .3rem; }
.bid-ladder .bid-step-price:nth-child(3) { grid-area: target; text-align: right; }
.bid-ladder .bid-step-price:nth-child(1), .bid-ladder .bid-step-price:nth-child(3) { display: flex; gap: .35rem; align-items: baseline; }
.bid-ladder .bid-step-price:nth-child(3) { justify-content: flex-end; }
.bid-step-price .bid-now { font-size: 1.7rem; }
.bid-ladder .bid-step-price:nth-child(1), .bid-ladder .bid-step-price:nth-child(3) { display: grid; gap: .1rem; }
.bid-ladder .bid-step-price:nth-child(3) { justify-items: end; }

/* ===== Shopping together bar (store.php?...&group=ID) ===== */
.together-bar { position: sticky; top: 0; z-index: 30; background: var(--blue-deep); color: var(--white); border-bottom: 4px solid var(--yellow); box-shadow: 0 6px 20px -10px rgba(11, 47, 122, .6); }
.together-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: .6rem; }
.together-title { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.together-title strong { color: var(--yellow); }
.together-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--yellow); font-size: 1.1rem; }
.together-here { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.together-faces { display: flex; }
.together-faces span, .together-faces img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--blue-deep); margin-left: -8px; background: var(--yellow); color: var(--blue-deep); display: grid; place-items: center; font: 700 .72rem/1 var(--font-head); object-fit: cover; }
.together-faces > :first-child { margin-left: 0; }
.together-count { font-size: .9rem; color: #d6e3ff; display: inline-flex; align-items: center; gap: .4rem; }
.together-dot { width: 9px; height: 9px; border-radius: 50%; background: #18b26b; animation: bid-blink 1.4s infinite; }
.together-back { padding: .55rem .9rem; font-size: .95rem; }
.together-bar ~ .store-tabs { top: 3.4rem; }
.bid-group { margin: 0; font-size: .82rem; background: #F0F5FF; border: 1px solid #C9DCFF; border-radius: 8px; padding: .45rem .6rem; color: var(--blue-deep); }
.bid-group small { color: var(--muted); }
.bid-group.is-empty { background: #fff; border-style: dashed; color: var(--muted); }
@media (max-width: 720px) { .together-row { gap: .5rem; } .together-back { width: 100%; text-align: center; } .together-bar ~ .store-tabs { top: 0; } }

/* ===== Fair fees ===== */
.pay-tiles .tile-net { border-top-color: var(--blue-deep); background: var(--blue-tint); }
.fee-sub { display: block; font: 400 .75rem/1.3 var(--font-body); color: var(--muted); white-space: nowrap; }
.fee-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--white); border: 2px solid var(--line); border-left: 6px solid var(--blue); border-radius: 12px; padding: 1rem 1.25rem; }
.fee-banner.is-welcome { border-color: #b8d8c4; border-left-color: #18b26b; background: #f3fbf6; }
.fee-banner strong { display: block; font: 700 1.25rem/1.2 var(--font-head); color: var(--blue-deep); }
.fee-banner p { margin: .3rem 0 0; color: var(--ink); max-width: 70ch; }
.fee-banner .fee-banner-small { color: var(--muted); font-size: .88rem; }
.fee-banner .btn-outline { margin-top: 0; }
.save-box { display: flex; align-items: center; gap: 1rem; background: #f3fbf6; border: 2px solid #b8d8c4; border-radius: 12px; padding: 1rem 1.25rem; }
.save-box strong { font: 700 2rem/1 var(--font-head); color: #13653a; }
.save-box p { margin: 0; color: var(--ink); }
.mybid-save { display: block; margin-top: .3rem; font-size: .85rem; font-weight: 600; color: #13653a; }

/* pay options on My bids */
.pay-opts { border: 0; margin: 0 0 .5rem; padding: 0; display: grid; gap: .35rem; min-width: 0; }
.pay-opt, .pay-credit { display: flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.pay-opt input, .pay-credit input { accent-color: var(--blue); width: 1rem; height: 1rem; margin: 0; }
.pay-opt em { display: block; font-style: normal; font-size: .75rem; color: #13653a; }
.pay-credit { border-color: #b8d8c4; background: #f3fbf6; color: #13653a; font-weight: 600; }
.credit-box { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: #fff6d6; border: 2px solid var(--yellow); border-radius: 12px; padding: 1rem 1.25rem; }
.credit-box span { display: block; font-size: .85rem; color: var(--muted); }
.credit-box strong { font: 700 2rem/1 var(--font-head); color: var(--blue-deep); }
.credit-box p { margin: 0; flex: 1; min-width: 220px; }

.fee-banner-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.fee-banner-actions .btn { margin-top: 0; }

/* payments */
.pay-flash { margin: 0; padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }
.pay-flash-ok { background: #f3fbf6; border: 2px solid #b8d8c4; color: #13653a; }
.pay-flash-info { background: var(--blue-tint); border: 2px solid #b9cbf1; color: var(--blue-deep); }
.pay-flash-error { background: #fdecec; border: 2px solid #f3c4c4; color: #7a1b1b; }
.pay-testmode { margin: 0; font-size: .88rem; color: #8a5a00; background: #fff6d6; border-radius: 8px; padding: .5rem .8rem; }
.grow-pay { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }
.grow-pay select { padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); }
.pay-table-wrap { position: relative; }

.bid-cart-btn { display: block; width: 100%; margin-top: .45rem; border: 1.5px dashed var(--line); background: transparent; color: var(--blue); font: 600 .85rem var(--font-body); padding: .5rem; border-radius: 8px; cursor: pointer; }
.bid-cart-btn:hover { border-color: var(--blue); background: var(--blue-tint); }

/* ---------- Seller panel on the seller's own store page (Nov 2026) ---------- */
.seller-panel { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.25rem 0 1.4rem; }
.seller-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.seller-panel h2 { margin: 0; font: 700 1.3rem/1.2 var(--font-head); color: var(--blue-deep); }
.seller-switch { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.seller-switch select { padding: .5rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.seller-ok { margin: 0 0 .9rem; padding: .7rem 1rem; border-radius: 10px; background: #e7f7ee; color: #14532d; font-weight: 600; }
.seller-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.seller-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center;
  min-height: 72px; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--blue-tint); color: var(--ink); text-decoration: none; }
.seller-tile b { grid-row: 1 / 3; font-size: 1.6rem; line-height: 1; }
.seller-tile span { font-weight: 700; color: var(--blue-deep); line-height: 1.2; }
.seller-tile small { color: var(--muted); font-size: .82rem; line-height: 1.25; }
.seller-tile:hover, .seller-tile:focus-visible { border-color: var(--blue); background: #dfe9fd; outline: none; }
.seller-tile.is-main { background: var(--yellow); border-color: var(--yellow); }
.seller-tile.is-main small { color: var(--blue-deep); }
.seller-count { position: absolute; top: -.45rem; right: -.45rem; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px;
  background: #d92d20; color: #fff; font: 700 .85rem/1.6rem var(--font-body); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--white); }
@media (max-width: 560px) {
  .seller-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .seller-tile { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: .75rem .5rem; }
  .seller-tile b { grid-row: auto; margin-bottom: .25rem; }
  .seller-tile small { display: none; }
}
.seller-empty { padding: 1.4rem; border: 2px dashed var(--line); border-radius: 14px; background: var(--white); text-align: center; }
.owner-actions { display: flex; gap: .5rem; margin: .35rem 0 .6rem; }
.owner-actions .btn { flex: 1; padding: .5rem .6rem; font-size: .92rem; justify-content: center; text-align: center; }
.owner-actions .owner-del { color: #a32020; border-color: #f0c2c2; }
.stock-note { margin: .1rem 0 .4rem; font-weight: 600; font-size: .9rem; color: var(--blue); }
.stock-note.is-low { color: #b54708; }
.stock-note.is-out { color: #a32020; }
.sold-out { margin: .4rem 0; padding: .65rem; border-radius: 10px; background: #f2f4f7; color: #475467; font-weight: 700; text-align: center; }

/* ---------- My products (seller's own store) ---------- */
.my-products { margin-top: 1.4rem; }
.my-products-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.my-products-head h2 span { color: var(--muted); font-weight: 500; }
.my-find { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: .7rem; }
.my-empty { padding: 1rem; border: 2px dashed var(--line); border-radius: 12px; text-align: center; margin: 0; }
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; max-height: 34rem; overflow-y: auto; }
.my-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: .8rem; align-items: center;
  padding: .6rem .75rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); }
.my-row[hidden] { display: none; }
.my-row img, .my-noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--blue-tint); display: grid; place-items: center; font-size: 1.6rem; }
.my-info { display: grid; gap: .15rem; min-width: 0; }
.my-info strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-price { color: var(--blue); font-weight: 600; font-size: .92rem; }
.my-stock { display: grid; gap: .3rem; justify-items: center; }
.my-stock-label { font-weight: 700; font-size: .9rem; color: var(--blue-deep); }
.my-stock-label.is-out { color: #a32020; }
.my-stock-btns { display: flex; gap: .3rem; }
.my-stock-btns button { min-height: 38px; padding: 0 .7rem; border: 1.5px solid var(--line); border-radius: 9px; background: var(--blue-tint); color: var(--blue-deep); font-weight: 700; cursor: pointer; }
.my-stock-btns .my-minus { width: 38px; padding: 0; font-size: 1.2rem; }
.my-stock-btns button:disabled { opacity: .4; cursor: default; }
.my-stock-btns .my-plus:hover { background: var(--yellow); border-color: var(--yellow); }
.my-actions { display: flex; gap: .4rem; }
.my-actions .btn { padding: .5rem .75rem; font-size: .92rem; white-space: nowrap; }
.my-actions .my-del { color: #a32020; border-color: #f0c2c2; }
.my-ask, .my-delask, .my-msg { grid-column: 1 / -1; margin: 0; }
.my-ask { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .7rem; border-radius: 10px; background: #fff6d6; }
.my-ask label { font-weight: 600; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.my-ask input { width: 7rem; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; font: 600 1.05rem var(--font-body); }
.my-delask { padding: .7rem; border-radius: 10px; background: #fdecec; color: #5c1414; }
.my-delask p { margin: 0 0 .5rem; }
.my-delask .my-delyes { background: #b42318; color: #fff; border: 0; }
.my-msg { font-weight: 600; color: #14532d; }
.my-msg.is-err { color: #a32020; }
@media (max-width: 700px) {
  .my-row { grid-template-columns: 56px minmax(0, 1fr); }
  .my-row img, .my-noimg { width: 56px; height: 56px; }
  .my-stock { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: start; align-items: center; }
  .my-actions { grid-column: 1 / -1; }
  .my-actions .btn { flex: 1; text-align: center; justify-content: center; }
  .my-list { max-height: none; }
}


/* My products: tap the picture to see all photos */
.my-pic { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: none; cursor: zoom-in; }
.my-pic img { display: block; }
.my-pic:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.my-pic-n { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(15, 23, 42, .72); color: #fff; font: 700 .72rem/1.2 var(--font-body); text-align: center; }
@media (max-width: 700px) { .my-pic { width: 56px; height: 56px; } }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover, .product-title a:focus-visible { text-decoration: underline; }
.sold-week { margin: .1rem 0 .35rem; font-size: .85rem; font-weight: 700; color: #c2410c; }
.store-paused { margin: 1rem 0; background: #fff4d6; border: 1px solid #f0c75e; color: #5a3d00; }
