/* /containers and /containers/{slug} (pages/containers.js, owner 10 Nov 2026). Site tokens only, so dark mode follows.
   Nested corners: inner radius = outer radius − padding (cards are 16px; the picture inside a 12px-padded card is 4px). */
.ct-store { grid-template-columns: 290px minmax(0, 1fr); }
.ct-setup { padding: 16px !important; }
.ct-setup > summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 16px; }
.ct-setup > summary::-webkit-details-marker { display: none; }
.ct-f { margin-top: 16px; }
.ct-l { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.ct-setup .input { width: 100%; }
.ct-row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ct-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-seg button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit; font: inherit; font-size: 13.5px; cursor: pointer; }
.ct-seg button:hover:not(:disabled):not([aria-pressed="true"]) { border-color: hsl(var(--field-border)); }
.ct-seg button[aria-pressed="true"] { background: hsl(var(--foreground)); border-color: hsl(var(--foreground)); color: hsl(var(--background)); }
.ct-seg button:disabled { opacity: .45; cursor: not-allowed; }
.ct-seg .ct-n { opacity: .6; font-variant-numeric: tabular-nums; }
.ct-qty, #ctSizes { margin-top: 8px; }
.ct-need { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--gray-50); color: hsl(var(--muted-foreground)); }
.ct-need b { color: hsl(var(--foreground)); }
#ctReset { margin-top: 14px; }

.ct-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ct-bar p { margin: 0; }
.ct-sort .input { min-width: 220px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ct-card { --r: 16px; --p: 12px; padding: var(--p) !important; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.ct-card:hover { box-shadow: 0 6px 24px rgb(23 24 28 / .1) !important; transform: translateY(-1px); }
.ct-card:focus-visible { outline: 2px solid var(--cta-edge); outline-offset: 2px; }
.ct-card.is-partner { background: linear-gradient(var(--cta-soft), hsl(var(--card)) 46%); }
.ct-pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: calc(var(--r) - var(--p)); background: var(--gray-50); overflow: hidden; color: hsl(var(--foreground)); }
.ct-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }   /* photos are framed to 16:10 when they are added (trimmed, even margin) */
/* under a photo: the length, with a bar drawn to the same scale on every card (never over the photo) */
.ct-len { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.ct-len i { display: block; width: var(--w); height: 6px; border-radius: 2px; background: currentColor; opacity: .55; }
.ct-draw { width: 94%; height: auto; margin-top: 12px; }
.ct-dimbg { fill: var(--gray-50); }
.ct-cool { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 600; background: hsl(var(--card)); border-radius: 6px; padding: 2px 8px; }
.ct-c-air { color: #475569; } .ct-c-hydro { color: #1d4ed8; } .ct-c-immersion { color: #0f766e; }
:root[data-theme="dark"] .ct-c-air { color: #cbd5e1; } :root[data-theme="dark"] .ct-c-hydro { color: #93c5fd; } :root[data-theme="dark"] .ct-c-immersion { color: #5eead4; }
.ct-maker { font-size: 13px; color: hsl(var(--muted-foreground)); }
.ct-name { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 1px 0 0; }
.ct-name a { color: inherit; text-decoration: none; }
.ct-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.ct-specs div { display: flex; flex-direction: column; min-width: 0; }
.ct-specs dt { color: hsl(var(--muted-foreground)); font-size: 12px; }
.ct-specs dd { margin: 0; font-weight: 600; }
.ct-fit { border-radius: 8px; padding: 9px 11px; font-size: 13px; line-height: 1.4; background: var(--gray-50); }
.ct-fit.ct-good b { color: var(--pos); } .ct-fit.ct-close b { color: var(--warn); } .ct-fit.ct-part b { color: hsl(var(--muted-foreground)); }
.ct-fit ul { margin: 4px 0 0; padding-left: 16px; color: hsl(var(--muted-foreground)); }
.ct-fit .ct-n1 { display: none; }
.ct-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid hsl(var(--border)); }
.ct-t { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.ct-t small { font-size: 13px; font-weight: 400; color: hsl(var(--muted-foreground)); }
.ct-t.ct-por { font-size: 18px; }
.ct-pk, .ct-lead { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.ct-lead { text-align: right; }
.ct-lead span { display: block; }
.ct-lead .pos, .ct-page .pos { color: var(--pos); }
.ct-seller { margin-top: -4px; }
.ct-seller.ct-multi { color: hsl(var(--foreground)); }
.ct-seller.ct-multi b { color: var(--cta-text); }
.ct-ns { position: absolute; right: 8px; top: 8px; font-size: 12px; font-weight: 600; background: var(--cta-bg); color: var(--cta-fg); border-radius: 6px; padding: 2px 8px; }
.ct-from { font-size: 13px; font-weight: 400; color: hsl(var(--muted-foreground)); }
.ct-cmp { display: block; margin: 10px auto 0; font-weight: 600; }
.ct-others { scroll-margin-top: 16px; margin-top: 22px; }
.ct-page .neg { color: var(--neg); }

/* the pop-up */
.ct-dlg { width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 24px 64px rgb(0 0 0 / .25); overflow: auto; }
.ct-dlg::backdrop { background: rgb(23 24 28 / .45); }
.ct-dlg[open] { animation: ct-up .2s cubic-bezier(.2, .7, .2, 1); }
@keyframes ct-up { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .ct-dlg[open] { animation: none; } .ct-card { transition: none; } }
.ct-dlg-in { padding: 20px 24px 24px; }
.ct-dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ct-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }

/* the product (page and pop-up) */
.ct-page { --r: 16px; }
.ct-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: 8px; }
.ct-gal { display: grid; gap: 8px; align-content: start; }
.ct-photo, .ct-scale { border-radius: 12px; background: var(--gray-50); display: grid; place-items: center; overflow: hidden; color: hsl(var(--foreground)); }
/* sellers' photos come in any shape (square, tall, banners): one fixed frame, the whole photo inside it */
.ct-photo { aspect-ratio: 16 / 10; background: #fff; border: 1px solid hsl(var(--border)); }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-scale { aspect-ratio: 16 / 8; }
/* under a photo: a slim strip with the scale drawing, for the size */
.ct-photo + .ct-scale { aspect-ratio: auto; padding: 6px 0 2px; }
.ct-photo + .ct-scale .ct-draw { width: 58%; margin-top: 4px; }
.ct-title { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 2px 0 0; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ct-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.ct-big > div { border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 10px 12px; }
.ct-big > div > span { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); }
.ct-big b, .ct-big b span { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.ct-buy { --p: 14px; border: 1px solid hsl(var(--border)); border-radius: 12px; padding: var(--p); margin-top: 12px; }
.ct-bt { font-size: 26px; font-weight: 600; margin: 4px 0 2px; }
.ct-go { display: flex; justify-content: center; width: 100%; margin-top: 12px; border-radius: calc(12px - 4px) !important; }
.ct-note { margin-top: 6px; text-align: center; }
.ct-fill { margin-top: 22px; border-radius: 12px; background: var(--gray-50); padding: 16px; }
.ct-fill h2 { font-size: 15px; margin: 0; }
.ct-fill-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 8px; }
.ct-fill-rows > div { background: hsl(var(--card)); border-radius: calc(12px - 4px); padding: 10px; }
.ct-fill-rows > div > span { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); }
.ct-fill-rows b { font-size: 17px; }
.ct-fill p { margin: 0; }
.ct-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 24px; }
.ct-secs h2, .ct-others h2 { font-size: 15px; margin: 0 0 6px; }
.ct-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ct-tbl th, .ct-tbl td { padding: 7px 0; border-bottom: 1px solid hsl(var(--border)); text-align: left; vertical-align: top; }
.ct-tbl th[scope="row"] { color: hsl(var(--muted-foreground)); font-weight: 400; width: 48%; padding-right: 12px; }
.ct-otbl th, .ct-otbl td { padding-right: 12px; }
.ct-desc { margin-top: 20px; max-width: 760px; }
.ct-others { margin-top: 24px; }

@media (max-width: 900px) {
  .ct-store { grid-template-columns: minmax(0, 1fr); }
  .ct-setup:not([open]) > summary { margin: 0; }
  .ct-setup > summary { cursor: pointer; min-height: 30px; align-items: center; }
  .ct-head, .ct-secs { grid-template-columns: minmax(0, 1fr); }
  .ct-fill-rows { grid-template-columns: 1fr 1fr; }
  .ct-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .ct-dlg-in { padding: 12px 16px 24px; }
  .ct-buy { position: sticky; bottom: 0; background: hsl(var(--card)); }
}
/* phones: two products per row (owner 10 Nov), a compact card; the details stay in the pop-up */
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ct-card { --p: 8px; gap: 8px; }
  .ct-card:hover { transform: none; }
  .ct-len { font-size: 11px; gap: 4px; }
  .ct-len i { width: calc(var(--w) * .45); height: 4px; }
  .ct-cool { left: 6px; top: 6px; font-size: 11px; padding: 1px 6px; }
  .ct-maker { font-size: 12px; }
  .ct-name { font-size: 15px; line-height: 1.25; }
  .ct-specs { grid-template-columns: 1fr; gap: 4px; font-size: 12.5px; }
  .ct-specs div { flex-direction: row; justify-content: space-between; gap: 6px; }
  .ct-specs div:nth-child(n+4) { display: none; }
  .ct-card .ct-fit { padding: 6px 8px; font-size: 12px; }
  .ct-card .ct-fit .ct-fh, .ct-card .ct-fit ul { display: none; }
  .ct-card .ct-fit .ct-n1 { display: block; color: hsl(var(--muted-foreground)); margin-top: 2px; }
  .ct-price { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; }
  .ct-t { font-size: 17px; } .ct-t.ct-por { font-size: 15px; } .ct-t small { font-size: 12px; }
  .ct-lead { text-align: left; } .ct-lead span { display: inline; }
  .ct-seller { display: none; }
  .ct-seller.ct-multi { display: block; margin-top: 0; }
  .ct-ns { right: 6px; top: 6px; font-size: 11px; padding: 1px 6px; }
  .ct-big b { font-size: 17px; }
  .ct-sort .input { min-width: 0; }
}
