/* Copied from incircart-site/profile/profile.css (cards, headings, grid) per owner 2026-11-03: "just copy the incircart code". Scoped vars below; change the card in Incircart first, then re-copy. */
#deviceCatalogueRoot { --card:#fff; --border:#e0dfdc; --text:#1d2226; --muted:#666; --accent:#0a66c2; --accent-hover:#004182; }

/* Incircart cards: ONE stylesheet for every product card, category heading and grid, used by home.html, product.html and index.html (seller profile).
   Never restyle a card inside a single page: change it here so every page stays in step (owner rule 2026-10-10).
   STANDING RULE: at every width, Add to Cart / Request overlays the lower-right of the photo and More Info follows the final feature.
   See docs/New Agent/New AI/INCIRCART_BUTTON_AND_CARD_RULES.md. */
.cat {padding: 6px 0 22px; scroll-margin-top: calc(var(--hdrh, 64px) + 6px);}
.cat-head {display: flex; align-items: center; gap: 12px; margin: 10px 0 16px;}
.cat-head::before {content: ""; width: 6px; height: 30px; border-radius: 3px; background: var(--accent); flex: none;}
.cat-head h2 {margin: 0; font-size: 22px; font-weight: 700;}
.cat-count {min-width: 28px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(10,102,194,.10); color: var(--muted); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;}
.pgrid {display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px;}
.pcard {container-type: inline-size; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); cursor: pointer; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column;}
.pcard:hover {box-shadow: 0 6px 18px rgba(0,0,0,.10); transform: translateY(-2px);}
.pcard.hidden {display: none;}
.pimg {aspect-ratio: 5 / 4; overflow: hidden; background: #f3f2ef;}
.pimg img {width: 100%; height: 100%; object-fit: cover; display: block;}
.pimg {position: relative;}
.pimg::after {content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; pointer-events: none; background: linear-gradient(to top, rgba(12,38,78,.34) 0%, rgba(12,38,78,.13) 40%, rgba(12,38,78,0) 100%);}
.pbody {padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1;}
.pname {font-size: 16px; font-weight: 600; line-height: 1.35;}
.pprice {margin-top: 8px; font-size: 20px; font-weight: 800;}
.pprice s {color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px;}
.hl {list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px;}
.hl li {display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #4a5560; line-height: 1.3;}
.hl .tick {width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 6px; background: #e3f4e8; border: 1px solid #a9d8b8; fill: none; stroke: #1a7f37; stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round;}
.prate {margin-top: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px;}
.prate .star {color: #f5a623; font-size: 15px;}
.prate small {color: var(--muted); font-weight: 600; font-size: 13px;}
.more-row {margin-top: 16px; text-align: center;}
@media (max-width: 560px) {
  .pgrid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;}
  .pbody {padding: 10px 12px 12px;}
  .pname {font-size: 14px;}
  .pprice {font-size: 15px;}
}
.pname {display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; text-overflow: ellipsis; -webkit-box-orient: vertical; overflow: hidden;}
.hl li {min-width: 0; align-items: flex-start;}
.hl li span {line-height: 1.3; padding-top: 1px;}
.pmeta {display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px;}
.pmeta .pprice {margin-top: 0; font-size: 19px;}
.pmeta .prate {margin-top: 0;}
@media (max-width: 560px) {
  .pmeta {flex-wrap: wrap; row-gap: 2px;}
}
.pmeta {margin-top: auto; padding-top: 12px;}
.pmeta .pprice {white-space: nowrap;}
.pmeta .prate {white-space: nowrap; flex: none;}

/* ---- card hierarchy and calm type (owner reference, 2026-10-10): price, then name, then rating, a thin divider, quiet highlights, calm buttons ---- */
.pbody { padding: 18px 18px 18px; }
.pbody .pprice { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.pbody .pprice s { margin: 0; font-size: 12.5px; font-weight: 400; color: #9aa1a9; }
.pbody .pname { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.35; min-height: calc(2 * 1.35em); color: var(--text); }
.pbody .prate { margin-top: 6px; font-size: 12.5px; font-weight: 500; color: #4a5560; }
.pbody .prate small { font-size: 12.5px; font-weight: 400; color: #8b939c; } .pbody .prate .star { font-size: 13px; }
.pbody .hl { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #edeff2; gap: 9px; }
.pbody .hl li { font-size: 12.5px; font-weight: 400; color: #5b6570; line-height: 1.35; gap: 8px; }
.pbody .hl .tick { width: 18px; height: 18px; padding: 3px; border-radius: 6px; stroke-width: 2.4; }
@media (max-width: 560px) { .pbody { padding: 14px; } .pbody .pprice { font-size: 18px; } .pbody .pname { font-size: 14px; } }

/* ---- slightly wider cards, smaller buttons (owner, 2026-10-10 late) ---- */
.pgrid { gap: 20px; }

/* rating sits on the price row, on the right (owner, 2026-10-10) */
.ptop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pbody .ptop .pprice { flex-wrap: nowrap; min-width: 0; }
.pbody .ptop .prate { margin-top: 0; white-space: nowrap; flex: none; }
/* owner 2026-10-16: the rating always sits on the price line, to the right, at every width (it used to drop under the price on narrow cards) */
.ptop { flex-wrap: nowrap; }

/* the card must not depend on any page-level reset: same font and line height wherever it is shown (seller profile had Arial buttons) */
.pcard, .pcard button { font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.pcard button { line-height: 1.5; letter-spacing: normal; text-transform: none; -webkit-appearance: none; appearance: none; margin: 0; }

/* ======== COMPACT CARD ACTIONS: shared structure at every width ========
   Add to Cart / Request overlays the lower-right of the image. More Info sits beside
   the final feature. The desktop version scales this existing phone structure up; it
   does not restore the old button row. */
.hl li.hl-empty .tick, .hl li.hl-empty .hl-text { visibility: hidden; }
.hl-more { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 26px; padding: 0 10px 0 9px; background: transparent; color: var(--accent); border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--accent); font-family: inherit; font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: normal; flex: none; margin-left: 2px; cursor: pointer; }
.hl-more:active { background: rgba(10,102,194,.08); transform: scale(.96); }
.hl-more svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hl-more span { padding-top: 0 !important; }
/* owner 2026-10-16: the rating sits ON the photo, bottom-left, opposite Add to Cart, at every width (it no longer shares the price line, where it collided with the old price) */
.prate.onimg { display: inline-flex; align-items: center; gap: 4px; position: absolute; left: 10px; bottom: 10px; z-index: 3; margin: 0; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 1px 4px rgba(20,30,50,.22); font-size: 9px; font-weight: 700; color: #2b333b; line-height: 1; white-space: nowrap; }
.prate.onimg small { font-size: 9px; font-weight: 500; color: #6b737c; }
.prate.onimg .star { font-size: 9px; color: #f5a623; }
.prate.inbody { display: none !important; }
.img-addbtn { display: flex; align-items: center; justify-content: center; gap: 5px; position: absolute; right: 10px; bottom: 10px; height: 32px; padding: 0 13px; background: rgba(10,102,194,.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; border: 0; border-radius: 999px; font-family: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; z-index: 3; box-shadow: 0 1px 4px rgba(10,102,194,.3); transition: background .15s, transform .1s; }
.img-addbtn:active { transform: scale(.96); }
.img-addbtn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.img-addbtn .chk { display: none; stroke-width: 2.2; stroke-linecap: butt; stroke-linejoin: miter; }
.img-addbtn.in { background: var(--accent-hover); }
.img-addbtn.in .chk { display: block; }
.img-addbtn.in svg:not(.chk) { display: none; }
@media (min-width: 561px) {
  /* owner 2026-10-16: every card in a row has the same height; the name reserves two lines (clamped to two) and the highlights are always two rows, so rows line up */
  .pgrid { align-items: stretch; }
  .pcard { align-self: stretch; }
  .pbody { flex: 1 1 auto; }
  .pbody .pname { min-height: calc(2 * 1.35em); }
  .pbody .hl { margin-top: 10px; padding-top: 10px; gap: 6px; }
  .pbody .hl li { align-items: center; }
  /* owner 2026-10-16: a highlight never takes a second line on ANY width: it stays on one line and ends in dots (same rule as phones) */
  .pbody .hl li .hl-text { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 560px) {
  .pgrid { gap: 8px; }
  .pcard { border-radius: 12px; }
  .prate.onimg { display: inline-flex !important; left: 7px; bottom: 7px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 8.5px; gap: 2px; }
  .prate.onimg small, .prate.onimg .star { font-size: 8.5px; }
  .ptop { display: flex !important; align-items: baseline !important; justify-content: space-between !important; gap: 4px !important; flex-wrap: nowrap !important; }
  .pbody .ptop .pprice { font-size: 15.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
  .pbody .ptop .pprice s { font-size: 11px; margin-left: 3px; }
  .pbody { padding: 10px 10px 12px; }
  .pbody .pname { margin-top: 5px; font-size: 12.5px; line-height: 1.3; min-height: calc(2 * 1.3em); }
  .pbody .hl { padding-top: 8px; gap: 3.3px; }
  .pbody .hl li { font-size: 11px; gap: 5px; line-height: 1.3; display: flex; align-items: center; min-width: 0; }
  .pbody .hl li .hl-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
  .pbody .hl li .hl-more { gap: 4px; height: 21px; padding: 0 9px 0 8px; border-radius: 999px; font-size: 10.5px; }
  .pbody .hl li .hl-more { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .pbody .hl li .hl-more:active { background: rgba(10,102,194,.08); }
  .pbody .hl li .hl-more svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .pbody .hl { margin-top: 4px; }
  .pbody .hl .tick { width: 14px; height: 14px; padding: 2px; border-radius: 4px; stroke-width: 2.6; flex: none; }
  .img-addbtn { display: flex; align-items: center; justify-content: center; gap: 4px; position: absolute; right: 7px; bottom: 7px; left: auto; height: 28px; padding: 0 10px; background: rgba(10,102,194,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; border: 0; border-radius: 999px; font-family: inherit; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer; z-index: 3; box-shadow: 0 1px 4px rgba(10,102,194,.3); transition: background .15s, transform .1s; }
  .img-addbtn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
}
/* owner 2026-10-17: More Info is slim: regular-weight text, thin icon lines and a hairline outline (size and shape unchanged) */
.pbody .hl li .hl-more { font-weight: 500; box-shadow: inset 0 0 0 .75px var(--accent); }
.pbody .hl li .hl-more svg { stroke-width: 1.7; }


297:.so { position: absolute; left: 10px; top: 10px; background: rgba(29,29,31,.88); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2; }
359:@container (max-width: 200px) { .hl-more .mi-info { display: none; } }
.so { position: absolute; left: 10px; top: 10px; background: rgba(29,29,31,.88); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2; }
@container (max-width: 200px) { .hl-more .mi-info { display: none; } }

/* UK-import mark on the photo (owner, 2026-11-03): flag + "UK" and, when the product is marked Genuine, the blue verified check */
#deviceCatalogueRoot .ukpill{position:absolute;left:8px;top:8px;z-index:3;display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px 0 5px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(20,30,50,.22);font-size:10px;font-weight:700;color:#1d2226;line-height:1}
#deviceCatalogueRoot .ukpill svg{width:15px;height:10px;border-radius:2px;display:block;box-shadow:0 0 0 .5px rgba(0,0,0,.25)}
#deviceCatalogueRoot .ukpill img{width:15px;height:15px;display:block;margin-left:-1px;position:static;object-fit:contain}
@media(max-width:560px){#deviceCatalogueRoot .ukpill{left:6px;top:6px;height:18px;font-size:9px}}
