/* sl23.co/shop — on top of style.css (its --violet / --black / --grey). */

.nav-form { display: inline; margin-left: 1.5rem; }
.nav-form button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--black); font-weight: 600;
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em;
}
.nav-form button:hover { color: var(--violet); }

.shop-main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.shop-main h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.01em; }
.shop-main h2 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin: 1.5rem 0 0.4rem; color: #555;
}

/* Login */
.shop-login { max-width: 360px; margin: 4rem auto; }
.shop-login p { margin: 0.5rem 0 1.5rem; color: #555; }
.shop-login label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.shop-login input[type=password] {
  width: 100%; padding: 0.7rem 0.8rem; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 6px; margin-bottom: 1rem;
}
.shop-error { color: #b00020; margin: -0.5rem 0 1rem !important; }

/* Search bar */
.shop-bar { margin-bottom: 1.5rem; }
.shop-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.shop-filter input[type=search] {
  flex: 1 1 220px; min-width: 0; padding: 0.6rem 0.8rem; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 6px;
}
.shop-filter select {
  padding: 0.6rem; font-size: 0.95rem; border: 1px solid #ccc;
  border-radius: 6px; background: var(--white);
}
.shop-filter .btn { padding: 0.6rem 1.1rem; }
.shop-count { margin-top: 0.6rem; color: #555; font-size: 0.95rem; }

/* Grid */
.shop-grid {
  list-style: none; display: grid; gap: 1.25rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px)  { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.shop-card { display: block; text-decoration: none; color: var(--black); }
.shop-card-img {
  display: block; aspect-ratio: 1; background: var(--grey);
  border-radius: 8px; overflow: hidden;
}
.shop-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.35;
}
.shop-card-price { display: block; font-weight: 700; margin-top: 0.2rem; }
.shop-card:hover .shop-card-title { color: var(--violet); }

.shop-pages {
  display: flex; justify-content: center; align-items: center; gap: 1.5rem;
  margin-top: 2.5rem; font-weight: 600;
}
.shop-pages a { text-decoration: none; }
.shop-empty { text-align: center; margin: 4rem auto; color: #555; }
.shop-empty h1 { color: var(--black); margin-bottom: 0.5rem; }
.shop-empty .btn { margin-top: 1rem; display: inline-block; }

/* Item page */
.shop-back { margin-bottom: 1rem; }
.shop-back a { text-decoration: none; font-weight: 600; }
.shop-item { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .shop-item { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
.shop-gallery-main {
  background: var(--grey); border-radius: 10px; overflow: hidden;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.shop-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.shop-thumbs {
  list-style: none; display: flex; gap: 0.5rem; margin-top: 0.6rem;
  overflow-x: auto; padding-bottom: 0.25rem;
}
.shop-thumb {
  min-width: 40px; height: 40px; flex: 0 0 auto; padding: 0 0.6rem; cursor: pointer;
  border: 2px solid transparent; border-radius: 6px; background: var(--grey);
  font: inherit; font-weight: 700; color: var(--black);
}
.shop-thumb:hover { color: var(--violet); }
.shop-thumb.is-active { border-color: var(--violet); color: var(--violet); }
.shop-gallery-main img { transition: opacity 0.15s; }
.shop-gallery-main img.is-loading { opacity: 0.4; }

.shop-price { font-size: 1.6rem; font-weight: 800; margin-top: 0.5rem; }
.shop-qty { color: #555; }
.shop-soon {
  margin-top: 1rem; padding: 0.7rem 0.9rem; background: var(--grey);
  border-radius: 6px; font-size: 0.92rem; color: #444;
}
.shop-text { white-space: pre-line; }
.shop-id { margin-top: 2rem; color: #555; font-size: 0.85rem; }   /* #888 failed contrast */

@media (max-width: 600px) {
  .site-header { padding: 0.75rem 1rem; }
  .site-header nav a, .nav-form { margin-left: 1rem; }
  .shop-main h1 { font-size: 1.4rem; }
}

/* Round two: shop.sl23.co — categories, shipping box, footer, terms */
.brand small { font-weight: 600; font-size: 0.8rem; color: var(--violet); letter-spacing: 0.1em; text-transform: uppercase; }
.shop-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 220px minmax(0, 1fr); } }
.shop-cats-menu summary {
  cursor: pointer; font-weight: 700; padding: 0.6rem 0.8rem;
  background: var(--grey); border-radius: 6px; list-style-position: inside;
}
.shop-cats-menu ul { list-style: none; margin-top: 0.5rem; }
.shop-cats-menu li a {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.3rem 0.5rem; border-radius: 4px; text-decoration: none; color: var(--black); font-size: 0.92rem;
}
.shop-cats-menu li.depth-1 a { padding-left: 1.3rem; font-size: 0.88rem; }
.shop-cats-menu li.depth-2 a { padding-left: 2.1rem; font-size: 0.85rem; }
.shop-cats-menu li a:hover { color: var(--violet); }
.shop-cats-menu li a.is-active { background: var(--grey); color: var(--violet); font-weight: 700; }
.shop-cat-count { color: #666; font-weight: 400; }
@media (min-width: 1000px) {
  .shop-cats-menu summary { display: none; }
  .shop-cats-menu ul { margin-top: 0; position: sticky; top: 90px; }
}
.shop-ship { margin-top: 1.25rem; }
.shop-ship label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.shop-ship-row { display: flex; gap: 0.5rem; }
.shop-ship-row input {
  width: 8.5rem; padding: 0.6rem 0.7rem; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 6px;
}
.shop-ship-row .btn { padding: 0.6rem 1rem; }
.shop-ship-out { margin-top: 0.5rem; min-height: 1.4em; }
.shop-ship-note { font-size: 0.8rem; color: #777; }
.shop-footer { border-top: 1px solid #eee; padding: 1.25rem 1rem 2rem; text-align: center; font-size: 0.85rem; color: #666; }
.shop-terms { max-width: 760px; }
.shop-terms h2 { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--black); margin-top: 1.75rem; }
.shop-terms p, .shop-terms li { margin-top: 0.5rem; }
.shop-terms ul { padding-left: 1.25rem; }
.shop-draft { background: #fff4d6; border: 1px solid #f0d58a; border-radius: 6px; padding: 0.7rem 0.9rem; margin: 1rem 0; font-size: 0.92rem; }

/* Cart (2026-11-18) */
.nav-cart-count {
  display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.15em;
  border-radius: 999px; background: var(--violet); color: var(--white);
  font-size: 0.75rem; line-height: 1.4em; text-align: center;
}
.shop-add { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.shop-add-qty { font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.shop-add-qty select, .cart-controls select { padding: 0.45rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; background: var(--white); }
.shop-add-btn { padding: 0.75rem 1.6rem; font-size: 1rem; }
.shop-cart { max-width: 860px; }
.shop-notice { background: #fff4d6; border: 1px solid #f0d58a; border-radius: 6px; padding: 0.7rem 0.9rem; margin: 1rem 0; }
.cart-lines { list-style: none; margin-top: 1.25rem; border-top: 1px solid #eee; }
.cart-line {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1rem;
  align-items: start; padding: 1rem 0; border-bottom: 1px solid #eee;
}
.cart-img { display: block; width: 84px; height: 84px; background: var(--grey); border-radius: 6px; overflow: hidden; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-title { color: var(--black); text-decoration: none; font-weight: 600; line-height: 1.35; }
.cart-title:hover { color: var(--violet); }
.cart-controls { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; font-size: 0.9rem; }
.cart-controls label { display: flex; align-items: center; gap: 0.4rem; }
.cart-remove { background: none; border: 0; padding: 0; color: #b00020; cursor: pointer; font: inherit; text-decoration: underline; }
.cart-price { font-weight: 700; text-align: right; white-space: nowrap; }
.cart-price small { display: block; font-weight: 400; color: #777; font-size: 0.8rem; }
.cart-summary { margin: 1.5rem 0 0 auto; max-width: 420px; }
.cart-row { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.cart-total { border-top: 1px solid #ddd; margin-top: 0.4rem; padding-top: 0.7rem; font-size: 1.2rem; font-weight: 800; }
.cart-ship-lines { list-style: none; font-size: 0.85rem; color: #555; }
.cart-ship-lines li { padding: 0.15rem 0; }
@media (max-width: 600px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-img { width: 64px; height: 64px; }
  .cart-price { grid-column: 2; text-align: left; }
  .cart-summary { max-width: none; }
}

/* Checkout (2026-11-18) */
#cart-checkout { margin-top: 1rem; }
.cart-checkout-btn { width: 100%; padding: 0.85rem 1rem; font-size: 1.05rem; }
.cart-checkout-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Checkout page (embedded Stripe form) */
.shop-checkout { max-width: 640px; margin: 0 auto; }
#checkout-form { margin-top: 1rem; min-height: 200px; }
a.cart-checkout-btn { display: block; text-align: center; text-decoration: none; margin-top: 0.75rem; }

/* Checkout order box — the total first and big ("make it obvious") */
.co-summary { border: 2px solid var(--black); border-radius: 10px; padding: 1rem 1.1rem; margin: 1rem 0 1.25rem; }
.co-total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.15rem; }
.co-total { font-size: 1.9rem; color: var(--violet); }
.co-items { list-style: none; margin: 0.75rem 0 0.5rem; padding-top: 0.6rem; border-top: 1px solid #eee; font-size: 0.92rem; }
.co-items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; }
.co-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.co-row { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 0.15rem 0; }
.co-hint { font-size: 0.8rem; color: #777; margin-top: 0.4rem; min-height: 1em; }

/* Ship or pick up, chosen before Stripe's form (#337 Phase 1, 2026-12-01). */
.co-method { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0.5rem 0 1.25rem; }
.co-method-opt { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.9rem;
  border: 2px solid #ddd; border-radius: 10px; text-decoration: none; color: var(--black); }
.co-method-opt small { color: #777; font-size: 0.8rem; }
.co-method-opt:hover { border-color: var(--violet); }
.co-method-opt.is-on { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.co-method-opt:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (max-width: 420px) { .co-method { grid-template-columns: 1fr; } }

/* Photo zoom, in place (2026-11-18: "one click to zoom, not to open in a
   modal"; "hand to drag around"). shop.js sets the size and offset. */
.shop-gallery-main { position: relative; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.shop-gallery-main:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.shop-gallery-main img { -webkit-user-drag: none; }
.shop-gallery-main.is-zoomed { cursor: grab; touch-action: none; }
.shop-gallery-main.is-zoomed.is-dragging { cursor: grabbing; }
.shop-gallery-main.is-zoomed img {
  position: absolute; left: 0; top: 0; max-width: none; max-height: none;
  transition: none; will-change: transform;
}
.shop-zoom-hint {
  position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 999px; pointer-events: none; z-index: 2;
}
.shop-sold-tag {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 2; pointer-events: none;
  background: var(--black); color: var(--white); font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 4px;
}
.shop-soldout { font-size: 1.25rem; font-weight: 700; margin: 0.75rem 0 1rem; color: #444; }
.shop-item.is-sold .shop-gallery-main img { filter: grayscale(0.25); }

/* Categories: phones get the folding menu, desktop the list (2026-11-18 fix —
   the folded menu showed nothing on desktop). */
.shop-cats-list { display: none; }
.shop-cats-list ul, .shop-cats-menu ul { list-style: none; }
.shop-cats-list li a {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.3rem 0.5rem; border-radius: 4px; text-decoration: none; color: var(--black); font-size: 0.92rem;
}
.shop-cats-list li.depth-1 a { padding-left: 1.3rem; font-size: 0.88rem; }
.shop-cats-list li.depth-2 a { padding-left: 2.1rem; font-size: 0.85rem; }
.shop-cats-list li a:hover { color: var(--violet); }
.shop-cats-list li a.is-active { background: var(--grey); color: var(--violet); font-weight: 700; }
.shop-cats-title { font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.12em; color: #555; margin: 0 0 0.4rem 0.5rem !important; }
@media (min-width: 1000px) {
  .shop-cats-menu { display: none; }
  .shop-cats-list { display: block; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
}

/* Front page (2026-11-18: "featured items carosel, etc. Something that
   makes people interested that I can edit in a CMS.") — edited in
   ListingApp → Settings → Storefront → Shop front page. */
.sf-announce {
  background: var(--black); color: var(--white); text-align: center;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.5rem 1rem;
}
.sf-hero {
  display: grid; gap: 1.5rem; align-items: center; grid-template-columns: minmax(0, 1fr);
  background: var(--grey); border-radius: 16px; padding: 2rem 1.25rem; margin-bottom: 2.25rem;
  overflow: hidden;
}
@media (min-width: 800px) {
  .sf-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); padding: 3rem 2.75rem; }
}
.sf-kicker {
  color: var(--violet); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.shop-main .sf-hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.sf-hero-sub { margin-top: 0.9rem; font-size: 1.08rem; line-height: 1.5; color: #444; max-width: 36rem; }
.sf-hero-btn { display: inline-block; margin-top: 1.4rem; padding: 0.8rem 1.6rem; text-decoration: none; }
.sf-hero-art { position: relative; height: 260px; }
@media (min-width: 800px) { .sf-hero-art { height: 320px; } }
.sf-hero-pic {
  position: absolute; width: 56%; aspect-ratio: 1; background: var(--white);
  border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  transition: transform 0.25s;
}
.sf-hero-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sf-hero-pic-1 { left: 0; top: 8%; transform: rotate(-5deg); z-index: 1; }
.sf-hero-pic-2 { left: 44%; top: 0; transform: rotate(4deg); z-index: 2; }
.sf-hero-pic-3 { left: 24%; top: 34%; transform: rotate(-1deg); z-index: 3; width: 50%; }
.sf-hero-pic:hover { transform: rotate(0) scale(1.03); z-index: 4; }
@media (max-width: 799px) {
  .sf-hero-art { max-width: 380px; width: 100%; margin: 0 auto; height: 230px; }
}

.sf-strip { margin-bottom: 2.25rem; }
.sf-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.shop-main .sf-strip-head h2 {
  margin: 0; font-size: 1.35rem; text-transform: none; letter-spacing: -0.01em; color: var(--black); font-weight: 800;
}
.sf-see-all { font-weight: 700; text-decoration: none; white-space: nowrap; }
.sf-arrows { display: flex; gap: 0.4rem; }
.sf-arrows button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ddd; background: var(--white);
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--black);
}
.sf-arrows button:hover:not(:disabled) { border-color: var(--violet); color: var(--violet); }
.sf-arrows button:disabled { opacity: 0.3; cursor: default; }
.sf-track {
  list-style: none; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: 0; padding-bottom: 0.5rem; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.sf-card { flex: 0 0 min(44vw, 190px); scroll-snap-align: start; }
.sf-featured .sf-card { flex-basis: min(68vw, 270px); }
.sf-card a { display: block; text-decoration: none; color: var(--black); }
.sf-card-img {
  display: block; aspect-ratio: 1; background: var(--grey); border-radius: 10px; overflow: hidden;
}
.sf-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.25s; }
.sf-card a:hover .sf-card-img img { transform: scale(1.04); }
.sf-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.35;
}
.sf-card a:hover .sf-card-title { color: var(--violet); }
.sf-card-price { display: block; font-weight: 700; margin-top: 0.2rem; }
.sf-featured .sf-card-title { font-size: 1rem; }
.sf-featured .sf-card-price { font-size: 1.05rem; }
.shop-main .sf-all-title {
  margin: 0; font-size: 1.35rem; text-transform: none; letter-spacing: -0.01em; color: var(--black); font-weight: 800;
}
#all { scroll-margin-top: 1rem; border-top: 1px solid #eee; padding-top: 1.75rem; }
.shop-layout:not(#all) { border-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .sf-hero-pic, .sf-card-img img { transition: none; }
}

/* Left / right through the photos (2026-11-18: "on hover, how about a click
   to go left and right through the images?"). Shown on hover with a mouse,
   always on touch screens. */
.shop-step {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--black); font-size: 1.7rem; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18); opacity: 0; transition: opacity 0.15s;
}
.shop-step:hover { color: var(--violet); }
.shop-step:focus-visible { opacity: 1; outline: 3px solid var(--violet); }
.shop-step-prev { left: 0.6rem; }
.shop-step-next { right: 0.6rem; }
.shop-step-count {
  position: absolute; left: 50%; bottom: 0.6rem; transform: translateX(-50%); z-index: 2;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 0.78rem; padding: 0.2rem 0.6rem;
  border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity 0.15s;
}
.shop-gallery-main:hover .shop-step, .shop-gallery-main:hover .shop-step-count { opacity: 1; }
@media (hover: none) { .shop-step, .shop-step-count { opacity: 1; } }
.shop-gallery-main.is-dragging .shop-step { opacity: 0; }

/* Pickup QR code (2026-11-18: "Just provide pickup QR code through the app.") */
.pickup-code { margin: 1.5rem auto; max-width: 340px; padding: 1.25rem; border: 2px solid var(--black); border-radius: 14px; background: var(--white); }
.shop-main .pickup-code h2 { margin: 0 0 0.4rem; font-size: 1.1rem; text-transform: none; letter-spacing: 0; color: var(--black); }
.pickup-code img { display: block; margin: 0.75rem auto; width: 240px; height: 240px; image-rendering: pixelated; }
.pickup-items { list-style: none; font-size: 0.9rem; color: #444; margin: 0.25rem 0 0.5rem; }
.pickup-keep { font-size: 0.82rem; color: #666; }
.pickup-done { font-weight: 700; color: #1a7f37; }

.shop-updated { color: #666; font-size: 0.9rem; margin: 0.25rem 0 1.25rem; }

/* Buyer fixes (2026-11-18 audit) */
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.5rem 0.9rem;
  border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }
.shop-main:focus { outline: none; }
.site-header nav { display: flex; align-items: center; }
.site-header nav a.nav-search { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-search svg { flex: 0 0 auto; }
@media (max-width: 600px) {
  .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header nav a.nav-search { padding: 0.4rem; margin-left: 0.5rem; }
}
#search { scroll-margin-top: 90px; }
.shop-ship-line { margin-top: 0.9rem; font-size: 0.88rem; color: #555; line-height: 1.5; }
.cart-summary .shop-ship-line { margin-top: 0.5rem; }
.btn-ghost { background: transparent; color: var(--violet); }
.shop-soldout-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.shop-soldout-links .btn { padding: 0.75rem 1.4rem; }
.shop-order-ref { font-size: 1.1rem; color: var(--black); margin: 0.25rem 0 0.75rem; letter-spacing: 0.04em; }
.shop-retry-note { font-size: 0.92rem; }
.sf-arrows .sf-pause { font-size: 0.7rem; letter-spacing: -0.1em; }
.sf-arrows .sf-pause[aria-pressed="true"] { font-size: 0.95rem; letter-spacing: 0; }

/* A sale (ListingApp → Catalog → Shop): the full price struck through beside
   the sale price. */
.shop-was { font-weight: 400; font-size: 0.85em; color: #8a8a8a; margin-left: 0.35em; }

/* Quick add — a green dot with a black + at a card photo's top right,
   shown on hover (always on touch screens, which have no hover). */
.shop-grid li, .sf-card { position: relative; }
.quick-add {
  position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0;
  opacity: 0; transition: opacity 0.15s;
}
.shop-grid li:hover .quick-add, .sf-card:hover .quick-add,
.quick-add:focus-within, .quick-add:focus-visible, .quick-add.is-in { opacity: 1; }
@media (hover: none) { .quick-add { opacity: 1; } }
.quick-add button, a.quick-add {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: #34c759; color: #000; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform 0.15s, background 0.15s;
}
.quick-add button:hover { transform: scale(1.12); background: #2db84f; }
.quick-add button:disabled { cursor: progress; opacity: 0.7; }
.quick-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* The listing video: the second gallery button, playing inside the photo
   frame (2026-11-23). Zoom's cursor and hint are off while it shows. */
.shop-main-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.shop-main-video[hidden], .shop-gallery-main img[hidden] { display: none; }
.shop-gallery-main.is-video { cursor: default; }
.shop-gallery-main.is-video .shop-zoom-hint { display: none; }
.shop-thumb-video { display: inline-flex; align-items: center; justify-content: center; }
.shop-thumb-play { font-size: 0.85em; line-height: 1; }
/* The player's own controls run along the bottom: the count moves up. */
.shop-gallery-main.is-video .shop-step-count { bottom: auto; top: 0.6rem; }

/* #332: the similar-items row under an item page. */
.shop-similar { margin-top: 2.5rem; }
.shop-soldout-similar { margin-top: 0.6rem; font-weight: 700; }

/* #329: the buyer's order page and Your orders. */
.shop-order { max-width: 760px; margin: 0 auto; }
.shop-order h1 { margin-bottom: 0.25rem; }
.shop-order-meta { color: #555; margin-bottom: 1.2rem; }
.shop-order-status { font-weight: 700; color: var(--black); }
.shop-order-status.is-delivered, .shop-order-status.is-picked_up { color: #1a7f37; }
.shop-order-status.is-cancelled, .shop-order-status.is-refunded { color: #9a3412; }
.shop-order-box { border: 1px solid #e5e5e5; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.1rem; background: var(--white); }
.shop-main .shop-order-box h2 { font-size: 1.1rem; margin: 0 0 0.6rem; text-transform: none; letter-spacing: 0; color: var(--black); }
.shop-order-list { list-style: none; padding: 0; margin: 0; }
.shop-order-items { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.shop-order-items li { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid #f0f0f0; }
.shop-order-items img, .shop-order-noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: 0 0 64px; background: #f3f3f3; }
.shop-order-title { flex: 1; }
.shop-order-title small { display: block; color: #777; }
.shop-order-price { font-weight: 700; white-space: nowrap; }
.shop-order-totals { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; margin: 0 0 0.6rem; }
.shop-order-totals dd { margin: 0; text-align: right; }
.shop-order-qr { display: block; margin: 0.5rem 0; image-rendering: pixelated; }
.shop-order-note { padding: 0.6rem 0.8rem; border-radius: 8px; margin: 0 0 1rem; }
.shop-order-note.is-ok { background: #e8f5ec; color: #14532d; }
.shop-order-note.is-error { background: #fdecec; color: #7f1d1d; }
.shop-order-return { border-left: 3px solid #ddd; padding: 0.2rem 0 0.2rem 0.8rem; margin-bottom: 0.9rem; }
.shop-order-return.is-approved { border-color: #1a7f37; }
.shop-order-return.is-requested { border-color: var(--violet); }
.shop-order-return p { margin: 0.2rem 0; }
.shop-order-decline { font-style: italic; }
.shop-order-small { font-size: 0.9rem; color: #555; }
.shop-order-start summary { cursor: pointer; font-weight: 700; margin-bottom: 0.6rem; }
.shop-order-start fieldset { border: 0; padding: 0; margin: 0 0 0.9rem; }
.shop-order-start legend { font-weight: 700; margin-bottom: 0.3rem; }
.shop-check { display: block; padding: 0.2rem 0; }
.shop-order-start textarea, .shop-orders-form input[type=email] { width: 100%; max-width: 520px; display: block; margin: 0.3rem 0 0.8rem; padding: 0.5rem; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.shop-order-start input[type=file] { display: block; margin: 0.3rem 0 0.9rem; }
.shop-orders-form { text-align: left; max-width: 520px; margin: 1rem auto 0; }

/* Checkout: the items being bought, above Stripe's form (2026-11-30) */
.co-heading { font-size: 1.1rem; margin-top: 1rem; }
.co-lines { margin-top: 0.5rem; }
.co-lines .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 0.7rem 0; }
.co-lines .cart-img { width: 64px; height: 64px; }
.co-lines .co-line-plain { grid-template-columns: minmax(0, 1fr) auto; }
.shop-checkout .cart-summary { margin-top: 0.75rem; max-width: none; }
@media (max-width: 600px) { .co-lines .cart-price { grid-column: auto; text-align: right; } }

/* ── Admin view (#338): saved carts and in-person payment ── */
.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  background: #1c1530; color: #fff; padding: 0.5rem 1rem; font-size: 0.9rem;
}
.admin-bar a { color: #fff; font-weight: 600; }
.admin-bar form { margin-left: auto; }
.admin-bar button { background: none; border: 1px solid #fff6; color: #fff; border-radius: 4px; padding: 0.2rem 0.6rem; cursor: pointer; }
.admin-page { max-width: 760px; margin: 0 auto; }
.admin-back { margin: 0 0 0.5rem; }
.admin-hint { color: #666; font-size: 0.9rem; }
.admin-ok { background: #e7f6ea; border-color: #a6d8b0; }
.admin-new { margin: 1rem 0 1.5rem; }
.admin-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0; }
.admin-page input[type=text] { padding: 0.6rem 0.7rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; }
.admin-page input[readonly] { background: #f3f3f3; color: #777; }
.admin-row input[type=text] { flex: 1 1 14rem; }
.admin-list { list-style: none; padding: 0; margin: 0.5rem 0; border-top: 1px solid #eee; }
.admin-list li { border-bottom: 1px solid #eee; }
.admin-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.2rem; color: inherit; text-decoration: none; }
.admin-list span { color: #555; }
.admin-name { display: block; font-weight: 600; margin: 0.5rem 0 1rem; }
.admin-name input { display: block; width: 100%; margin-top: 0.3rem; }
.admin-line .cart-info small { display: block; color: #666; }
.admin-line .cart-price { text-align: right; }
.admin-line .cart-price small { display: block; color: #666; margin-top: 0.3rem; }
.admin-price input { width: 6.5rem; text-align: right; }
.admin-remove { display: inline-block; font-size: 0.85rem; color: #666; margin-top: 0.3rem; }
.admin-gone { opacity: 0.6; }
.admin-allin { display: block; font-weight: 600; }
.admin-allin input { display: block; width: 100%; margin-top: 0.3rem; font-size: 1.2rem; }
.admin-pay { margin: 2rem 0 1rem; padding-top: 1rem; border-top: 2px solid #eee; }
.admin-pay.is-stale { opacity: 0.5; }
.admin-pay.is-stale a { pointer-events: none; }
.admin-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.6rem; }
.admin-pay-grid form, .admin-pay-grid .btn, .admin-pay-grid button { width: 100%; }
.admin-pay-grid .btn { text-align: center; }
.admin-delete { margin-top: 2rem; }
.admin-paid { font-size: 1.1rem; font-weight: 600; color: #1b6b2c; }
.admin-big { font-size: 2.6rem; font-weight: 700; margin: 0.5rem 0 1rem; }
.admin-steps { padding-left: 1.3rem; line-height: 1.7; }
.admin-charge { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; }
.admin-qr { text-align: center; }
.admin-qr-img { width: min(80vw, 340px); height: auto; image-rendering: pixelated; }
.admin-link { width: 100%; font-size: 0.8rem !important; }
.admin-allin-line { display: block; font-size: 0.85rem; color: #555; margin-top: 0.25rem; }
.admin-add input[type=text] { flex: 1 1 8rem; max-width: 14rem; }
.admin-receipt { margin-top: 1.5rem; }
.admin-receipt input[type=email] { flex: 1 1 14rem; padding: 0.6rem 0.7rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; }
.admin-line .cart-price small { display: block; color: #666; }

/* Saved carts, 2026-12-01: delete from the list, sold warnings, search, notes,
   a real delete button, Tap to Pay on phones/tablets only. */
.admin-list-row { display: flex; align-items: center; gap: 0.5rem; }
.admin-list-row > a { flex: 1 1 auto; }
.admin-list-row form { flex: 0 0 auto; }
.admin-list-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.admin-list-notes { color: #666; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28rem; }
.admin-warn-chip { align-self: flex-start; background: #fff4e0; color: #8a5300; border: 1px solid #f0c987; border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.78rem; }
.admin-warn { background: #fff8eb; border: 1px solid #f0c987; border-radius: 8px; padding: 0.8rem 1rem; margin: 0.75rem 0 1rem; }
.admin-warn ul { margin: 0.4rem 0 0.6rem; padding-left: 1.2rem; }
.admin-danger { background: #fff; color: #b42318; border: 2px solid #b42318; border-radius: 0; padding: 0.7rem 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; cursor: pointer; }
.admin-danger:hover { background: #b42318; color: #fff; }
.admin-danger-sm, .admin-btn-sm { padding: 0.4rem 0.8rem !important; font-size: 0.75rem !important; letter-spacing: 0.06em; }
.admin-page textarea { display: block; width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.7rem; font: inherit; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; resize: vertical; }
.admin-notes-read { white-space: pre-wrap; background: #f7f7f7; border-radius: 6px; padding: 0.6rem 0.8rem; color: #444; }
.admin-discount span:last-child { color: #1b6b2c; }
.admin-search { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 2px solid #eee; scroll-margin-top: 90px; }
.admin-search input[type=search] { flex: 1 1 14rem; padding: 0.6rem 0.7rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; }
.admin-results { list-style: none; padding: 0; margin: 0.5rem 0; }
.admin-results li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.admin-results .cart-img { flex: 0 0 56px; width: 56px; height: 56px; }
.admin-results .cart-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.admin-result-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-result-info small { color: #666; }
.admin-to-cart { margin-top: 0.75rem; font-size: 0.9rem; }
.admin-to-cart select { padding: 0.45rem 0.5rem; font-size: 0.95rem; border: 1px solid #ccc; border-radius: 6px; max-width: 14rem; }
@media (hover: hover) and (pointer: fine) { .admin-tap-only { display: none !important; } }

/* Shared carts / agreed prices (2026-12-01). */
.shop-discount span:last-child { color: #1b6b2c; font-weight: 600; }
.shop-discount small { display: block; color: #666; font-weight: 400; font-size: 0.8rem; }
.shop-share { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #eee; }
.shop-share-note { font-size: 0.92rem; color: #444; margin: 0 0 0.5rem; }
.shop-share-link { width: 100%; padding: 0.55rem 0.6rem; font-size: 0.85rem; border: 1px solid #ccc; border-radius: 6px; background: #fafafa; }
.shop-share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.btn-ghost-line { background: transparent; color: var(--violet); padding: 0.55rem 1.1rem; font-size: 0.78rem; }
.btn-ghost-line:hover { background: var(--violet); color: #fff; }
.admin-shared-note { background: #f3f0ff; border: 1px solid #d8cffc; border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.92rem; }

/* Shared cart: the optional "Send it to us" form (2026-12-01). */
.shop-share-send { margin-top: 0.4rem; }
.shop-share-send summary { cursor: pointer; font-weight: 600; color: var(--violet); }
.shop-share-form { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.shop-share-form label { display: grid; gap: 0.2rem; font-size: 0.9rem; }
.shop-share-form small { color: #777; font-weight: 400; }
.shop-share-form input, .shop-share-form textarea { padding: 0.5rem 0.6rem; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.shop-share-copy { display: flex; gap: 0.5rem; align-items: center; margin: 0.4rem 0 0.6rem; }
.shop-share-copy .shop-share-link { flex: 1; min-width: 0; }
.admin-shopper-note { margin: 0.4rem 0 1rem; padding: 0.5rem 0.8rem; border-left: 3px solid var(--violet); white-space: pre-wrap; }
.shop-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Saved-cart money panel (2026-12-01) */
.admin-calc { margin: 1rem 0; padding: 0.8rem 1rem; border: 1px solid #ddd; border-radius: 10px; background: #fafafa; }
.admin-calc h3 { font-size: 0.95rem; margin: 0.4rem 0 0.3rem; }
.admin-calc h3 small { font-weight: 400; color: #777; }
.admin-keep { display: block; color: #555; margin-top: 0.15rem; }
