/* Casa Colombia — merch shop (/shop, /product, /cart, /order-complete).
 *
 * Loaded ONLY by the shop pages, after main.css. The site header and footer are
 * the shared ones; everything between them follows a minimal, airy store look:
 * white page, product art on very light gray tiles, centered name + price.
 *
 * ⚠️ /styles/* is cached immutable for a YEAR (see _headers). Any edit to this
 * file must bump its ?v= stamp on every shop page.
 */

.shop-body {
  --shop-ink: #171A20;
  --shop-body: #393C41;
  --shop-muted: #5C5E62;
  --shop-tile: #F4F4F4;
  --shop-line: #E5E5E5;
  --shop-cta: var(--red);
  --shop-cta-dk: var(--red-dark);
  background: #fff;
  color: var(--shop-body);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shop-body :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Navy on the navy hero photo or the dark coffee footer is ~1.1–1.5:1 — invisible.
   Dark surfaces get a white ring (same specificity, so this must stay after). */
.shop-body .shop-hero :focus-visible, .shop-body .site-footer :focus-visible { outline-color: #fff; }

/* Store type is set in Inter, not the site's Playfair display face. */
.shop-main h1, .shop-main h2, .shop-main h3 {
  font-family: var(--sans); color: var(--shop-ink); font-weight: 500; letter-spacing: -0.01em;
}

/* ── Header: white, plus a cart button ─────────────────────────────────────── */
.shop-body .site-header { background: rgba(255, 255, 255, 0.95); border-bottom-color: #EDEDED; }
.shop-body .site-header .brand { margin-right: auto; }
.shop-body .site-header nav { order: 1; }
.shop-body .site-header .cart-btn { order: 2; }
.shop-body .site-header .nav-toggle { order: 3; }
@media (max-width: 880px) {
  .shop-body .site-header nav { background: #fff; }
  .shop-body .site-header .row { gap: .5rem; }
}

.cart-btn {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 50%;
  color: var(--coffee); cursor: pointer;
  transition: background .15s ease;
}
.cart-btn:hover { background: rgba(0, 0, 0, 0.05); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff;
  font: 600 11px/19px var(--sans); text-align: center;
}
.cart-count[hidden] { display: none; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.shop-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem;
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  border: 0; border-radius: 4px; cursor: pointer; text-decoration: none;
  background: var(--shop-cta); color: #fff;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.shop-btn:hover { background: var(--shop-cta-dk); color: #fff; }
.shop-btn[disabled] { opacity: .6; cursor: progress; }
.shop-btn-block { display: flex; width: 100%; }
.shop-btn-light { background: rgba(255, 255, 255, 0.92); color: var(--shop-ink); }
.shop-btn-light:hover { background: #fff; color: var(--shop-ink); }
.shop-btn-quiet { background: var(--shop-tile); color: var(--shop-ink); }
.shop-btn-quiet:hover { background: #E9E9E9; color: var(--shop-ink); }
.shop-link { color: var(--shop-ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.shop-link:hover { color: var(--red); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.shop-hero {
  position: relative; overflow: hidden;
  min-height: clamp(400px, 62vh, 620px);
  display: flex; align-items: flex-end; justify-content: center;
  color: #fff; text-align: center; background: #1A3D6E;
}
.shop-hero > picture { position: absolute; inset: 0; }
/* The photo sits in a <picture> for its phone crop (tools/build-hero-phone.py);
   the bare-img forms stay so the hero keeps working if that wrapper is removed. */
.shop-hero > img, .shop-hero > picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* The same slow drift the photo heroes have (main.css .hero-slides). One
     photo here, so it breathes in and out instead of dissolving to the next. */
  will-change: transform;
}
.shop-hero.motion-ready > img, .shop-hero.motion-ready > picture > img { animation: shop-hero-drift 30s ease-in-out infinite alternate; }
.shop-hero.motion-paused > img, .shop-hero.motion-suspended > img,
.shop-hero.motion-paused > picture > img, .shop-hero.motion-suspended > picture > img { animation-play-state: paused; }
@keyframes shop-hero-drift { from { transform: scale(1); } to { transform: scale(1.12) translate(-1%, -1%); } }
.shop-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.08) 0%, rgba(10, 20, 40, 0.42) 45%, rgba(10, 20, 40, 0.82) 100%);
}
.shop-hero-inner { position: relative; z-index: 1; padding: 0 var(--pad-x) clamp(3.5rem, 6vw, 4rem); max-width: 960px; }
.shop-hero .eyebrow { color: #FFE9B0; margin-bottom: .75rem; letter-spacing: 4px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.shop-hero h1 { color: #fff; font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.05; margin: 0 0 .75rem; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.shop-hero p { color: rgba(255,255,255,.94); font-size: 1.05rem; margin: 0 auto 1.75rem; max-width: 46ch; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.shop-hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.shop-hero-actions .shop-btn { min-width: 200px; }

/* ── Category sub-nav ──────────────────────────────────────────────────────── */
.shop-subnav {
  position: sticky; top: var(--hdr-h, 86px); z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #EDEDED;
}
.shop-subnav-inner {
  display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
  padding: .55rem var(--pad-x);
  /* The buttons arrive with the catalog; reserve their row so the grid below
     doesn't jump down when they render (CLS). */
  min-height: calc(36.4px + 1.1rem);
}
.shop-subnav-inner::-webkit-scrollbar { display: none; }
.shop-subnav-inner > :first-child { margin-left: auto; }
.shop-subnav-inner > :last-child { margin-right: auto; }
.shop-subnav button {
  flex: none; position: relative;
  font: 500 14px/1 var(--sans); color: var(--shop-ink);
  background: none; border: 0; border-radius: 4px;
  padding: .7rem 1rem; cursor: pointer; white-space: nowrap;
  transition: background .15s ease;
}
.shop-subnav button:hover { background: rgba(0, 0, 0, 0.05); }
.shop-subnav button[aria-pressed="true"] { background: rgba(0, 0, 0, 0.06); font-weight: 600; }

/* ── Grid ──────────────────────────────────────────────────────────────────── */
/* Shop content shares the site header/footer's edges (--container), so the
   logo, the grid, the breadcrumb and the cart all line up at every width. */
.shop-section { max-width: var(--container); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) var(--pad-x) clamp(3.5rem, 7vw, 5.5rem); }
.shop-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.shop-grid-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0; }
.shop-grid-head .count { font-size: 14px; color: var(--shop-muted); }
.shop-note {
  margin: 0 0 1.5rem; padding: .6rem .9rem; border-radius: 4px;
  background: #FFF7E8; color: #6B4A10; font-size: 13px; line-height: 1.45;
}
/* Four across, then two: the lineup is three products plus the gift card, so a
   three-column middle band would always strand one tile on its own row. */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .75rem; } }
/* "You may also like" with three picks: one full row on desktop; on two-column
   widths show the two merch picks and drop the link-out third. */
.shop-grid[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .shop-grid[data-n="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid[data-n="3"] > :nth-child(3) { display: none; }
}
.shop-all { text-align: center; margin-top: 2.5rem; }

.tile { position: relative; min-width: 0; }
.tile-media { position: relative; aspect-ratio: 1 / 1; background: var(--shop-tile); overflow: hidden; }
.tile-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 5%;
  transition: opacity .35s ease, transform .5s ease;
}
.tile-media img.alt { opacity: 0; }
@media (hover: hover) {
  .tile:hover .tile-media img.main.has-alt { opacity: 0; }
  .tile:hover .tile-media img.alt { opacity: 1; }
  .tile:hover .tile-media img.main:not(.has-alt) { transform: scale(1.03); }
}
.tile-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--shop-ink); background: #fff; padding: .4rem .55rem; border-radius: 2px;
}
.tile-name { font-size: 15px; line-height: 1.35; font-weight: 500; text-align: center; margin: .95rem 0 .2rem; }
.tile-link { color: var(--shop-ink); }
.tile-link:hover { color: var(--shop-ink); }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-link:focus-visible { outline: none; }
.tile-link:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 4px; }
.tile-price { text-align: center; font-size: 14px; color: var(--shop-muted); margin: 0; }
.tile-ext { font-size: 12px; }
.tile-add {
  position: absolute; right: 10px; z-index: 2;
  /* sits on the bottom-right corner of the square image: the tile's width IS the
     image height, so the offset is expressed in container-width units. */
  top: calc(100cqw - 54px);
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #fff; color: var(--shop-ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tile { container-type: inline-size; }
.tile-add:hover { background: var(--shop-ink); color: #fff; }
.tile-add svg { width: 20px; height: 20px; }
.tile-add.added { background: #1F7A3A; color: #fff; }

.tile-skel .tile-media { animation: shop-pulse 1.4s ease-in-out infinite; }
.tile-skel .tile-name, .tile-skel .tile-price { height: 12px; background: var(--shop-tile); margin: .95rem auto .4rem; width: 60%; border-radius: 2px; }
.tile-skel .tile-price { width: 30%; margin-top: 0; }
@keyframes shop-pulse { 50% { opacity: .55; } }

.shop-error { text-align: center; padding: 3rem 1rem; color: var(--shop-body); }
.shop-error a { color: var(--red); font-weight: 600; }

/* ── Product detail ────────────────────────────────────────────────────────── */
.crumbs { max-width: var(--container); margin: 0 auto; padding: 1.25rem var(--pad-x) 0; font-size: 13px; color: var(--shop-muted); }
.crumbs a { color: var(--shop-muted); }
.crumbs a:hover { color: var(--shop-ink); }
.crumbs span[aria-hidden] { margin: 0 .4rem; }

.pdp {
  max-width: var(--container); margin: 0 auto; padding: 1.25rem var(--pad-x) 3rem;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.pdp-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; position: sticky; top: calc(var(--hdr-h, 86px) + 1rem); }
.pdp-thumbs { display: flex; flex-direction: column; gap: .6rem; }
/* A one-photo product hides its thumbnail strip (display:flex above would
   otherwise beat the [hidden] attribute); the main image takes the full row. */
.pdp-thumbs[hidden] { display: none; }
.pdp-thumbs[hidden] + .pdp-main { grid-column: 1 / -1; }
.pdp-thumbs button {
  width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 2px;
  background: var(--shop-tile); cursor: pointer; flex: none;
}
.pdp-thumbs button[aria-current="true"] { border-color: var(--shop-ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pdp-main { position: relative; aspect-ratio: 1 / 1; background: var(--shop-tile); }
.pdp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5%; }

.pdp-info { padding-top: .25rem; min-width: 0; }
/* Only product.html's static skeleton carries aria-hidden: hold the space the
   rendered info column will take, so "You may also like" and the footer don't
   paint in the first screen and then jump ~1000px (CLS). */
.pdp-info[aria-hidden="true"] { min-height: 100vh; }
.pdp-badge { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.pdp-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; margin: 0 0 .4rem; }
.pdp-price { font-size: 1.1rem; color: var(--shop-ink); margin: 0 0 1.75rem; }
.pdp-placeholder { font-size: 12px; color: #8A6A1E; margin: -1.25rem 0 1.5rem; }

.opt { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.opt legend { padding: 0; font: 500 14px/1.4 var(--sans); color: var(--shop-ink); margin-bottom: .65rem; }
.opt legend .sel { color: var(--shop-muted); font-weight: 400; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  min-width: 56px; height: 44px; padding: 0 .95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid #D0D1D2; border-radius: 4px; background: #fff;
  font: 500 14px/1 var(--sans); color: var(--shop-ink); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pill:hover:not(:disabled) { border-color: var(--shop-ink); }
.pill[aria-pressed="true"] { border-color: var(--shop-ink); box-shadow: inset 0 0 0 1px var(--shop-ink); }
.pill:disabled {
  color: #A9AAAB; border-color: #E6E6E6; cursor: not-allowed;
  background: #FAFAFA linear-gradient(to top right, transparent calc(50% - 1px), #D4D4D4 50%, transparent calc(50% + 1px));
}
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); flex: none; }
.opt.invalid .pill:not(:disabled) { border-color: var(--red); }

.qty-row { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem; }
.qty-row .label { font: 500 14px var(--sans); color: var(--shop-ink); }
.qty {
  display: inline-flex; align-items: center; height: 44px;
  border: 1px solid #D0D1D2; border-radius: 4px; background: #fff;
}
.qty button {
  width: 44px; height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 20px/1 var(--sans); color: var(--shop-ink); border-radius: 4px;
}
.qty button:disabled { color: #C4C4C4; cursor: default; }
.qty output { min-width: 2.25rem; text-align: center; font: 500 15px var(--sans); color: var(--shop-ink); }
.qty.sm { height: 34px; }
.qty.sm button { width: 34px; font-size: 17px; }
.qty.sm output { min-width: 1.75rem; font-size: 14px; }

.pdp-msg { min-height: 1.3em; margin: .65rem 0 0; font-size: 14px; color: var(--red); }
.pdp-desc { margin: 1.5rem 0 1.25rem; font-size: 15px; line-height: 1.65; color: var(--shop-body); }
.pdp-ship { font-size: 13px; color: var(--shop-muted); margin: .9rem 0 0; }

.acc { border-top: 1px solid var(--shop-line); }
.acc:last-of-type { border-bottom: 1px solid var(--shop-line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; font: 500 15px var(--sans); color: var(--shop-ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; font-weight: 300; line-height: 1; }
.acc[open] summary::after { content: "–"; }
.acc ul, .acc p { margin: 0 0 1.1rem; font-size: 14px; color: var(--shop-body); }
.acc ul { padding-left: 1.1rem; }
.acc li { margin: .25rem 0; }

.pdp-more { border-top: 1px solid #EFEFEF; }

.pdp-sticky {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: #fff; border-top: 1px solid var(--shop-line);
  padding: .65rem var(--pad-x) calc(.65rem + env(safe-area-inset-bottom));
  align-items: center; gap: .9rem;
  transform: translateY(110%); transition: transform .22s ease;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.pdp-sticky .meta { min-width: 0; flex: 1; }
.pdp-sticky .meta strong { display: block; font: 500 14px/1.3 var(--sans); color: var(--shop-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky .meta span { font-size: 13px; color: var(--shop-muted); }
.pdp-sticky .shop-btn { flex: none; min-width: 150px; }
.pdp-sticky.show { transform: none; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); padding-top: .75rem; gap: 1.5rem; }
  .pdp-gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .pdp-thumbs { order: 2; flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .pdp-thumbs button { width: 64px; height: 64px; }
  .pdp-sticky { display: flex; }
  .shop-body.has-sticky .site-footer { padding-bottom: 6rem; }
}

/* ── Cart drawer ───────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(440px, 100%); background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.14);
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
}
.cart-drawer.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--shop-line); }
.cd-head h2 { font: 500 1.2rem/1.2 var(--sans); color: var(--shop-ink); margin: 0; }
.cd-close {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--shop-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.cd-close:hover { background: rgba(0, 0, 0, 0.05); }
.cd-close svg { width: 20px; height: 20px; }
.cd-body { flex: 1; overflow-y: auto; padding: 0 1.5rem; overscroll-behavior: contain; }
.cd-foot { border-top: 1px solid var(--shop-line); padding: 1.1rem 1.5rem calc(1.1rem + env(safe-area-inset-bottom)); }
.cd-empty { text-align: center; padding: 3.5rem 0; }
.cd-empty p { color: var(--shop-muted); margin-bottom: 1.25rem; }

.subtotal { display: flex; justify-content: space-between; font: 500 16px var(--sans); color: var(--shop-ink); margin-bottom: .25rem; }
.subtotal-note { font-size: 13px; color: var(--shop-muted); margin: 0 0 1rem; }
.cd-view { display: block; text-align: center; margin-top: .9rem; }

.ci { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--shop-line); }
.ci:last-child { border-bottom: 0; }
.ci-img { display: block; width: 84px; height: 84px; background: var(--shop-tile); }
.ci-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
/* inline-block: an inline name can't tighten the 28px line box it inherits from
   body (17px × 1.65), so a two-line name read as double-spaced. */
.ci-name { display: inline-block; font: 500 15px/1.35 var(--sans); color: var(--shop-ink); }
.ci-name:hover { color: var(--red); }
.ci-var { font-size: 13px; color: var(--shop-muted); margin: .15rem 0 .6rem; }
.ci-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ci-remove { background: none; border: 0; padding: .25rem 0; font-size: 13px; color: var(--shop-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ci-remove:hover { color: var(--red); }
.ci-price { font: 500 15px var(--sans); color: var(--shop-ink); text-align: right; white-space: nowrap; }
.ci-note { font-size: 12px; color: var(--shop-muted); margin: .4rem 0 0; }

.co-msg {
  margin: .85rem 0 0; padding: .85rem 1rem; border-radius: 4px;
  background: #FFF4E5; color: #5E3D05; font-size: 14px; line-height: 1.5;
}
.co-msg a { color: var(--red-dark); font-weight: 600; white-space: nowrap; }
.co-msg[hidden] { display: none; }

/* ── Cart page ─────────────────────────────────────────────────────────────── */
.cart-page {
  /* min-height: "Loading your cart…" must not leave the footer in the first
     screen, only to shove it off-screen when the lines render (CLS). */
  min-height: calc(100vh - var(--hdr-h, 86px));
  max-width: var(--container); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) var(--pad-x) clamp(3.5rem, 7vw, 5rem); }
.cart-page h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 1.5rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.cart-lines { border-top: 1px solid var(--shop-line); }
.cart-lines .ci { grid-template-columns: 120px minmax(0, 1fr) auto; }
.cart-lines .ci-img { width: 120px; height: 120px; }
.cart-summary { background: #F7F7F7; border-radius: 4px; padding: 1.5rem; position: sticky; top: calc(var(--hdr-h, 86px) + 1rem); }
.cart-summary h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 14px; margin: .45rem 0; color: var(--shop-body); }
.cart-summary .row.total { font: 600 16px var(--sans); color: var(--shop-ink); border-top: 1px solid #E2E2E2; padding-top: .9rem; margin-top: .9rem; }
.cart-summary .shop-btn { margin-top: 1.1rem; }
.cart-summary .fine { font-size: 12px; color: var(--shop-muted); margin: .9rem 0 0; }
.cart-empty { text-align: center; padding: 3rem 1rem 4rem; border-top: 1px solid var(--shop-line); }
.cart-empty p { color: var(--shop-muted); margin-bottom: 1.5rem; }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
  .cart-lines .ci { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .cart-lines .ci-img { width: 88px; height: 88px; }
}

/* ── Thank-you page ────────────────────────────────────────────────────────── */
.thanks { max-width: 640px; margin: 0 auto; padding: clamp(3.5rem, 9vw, 6rem) var(--pad-x); text-align: center; }
.thanks .check {
  width: 64px; height: 64px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: #E8F4EC; color: #1F7A3A; display: flex; align-items: center; justify-content: center;
}
.thanks .check svg { width: 30px; height: 30px; }
.thanks h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.thanks p { font-size: 16px; color: var(--shop-body); }
.thanks .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ── Image fit ─────────────────────────────────────────────────────────────
   Catalog images carry fit "contain" (default: a transparent cut-out floating on
   the gray tile — the cut-out already has its margin baked in) or "cover" (a
   full-bleed scene/on-model photo that fills the tile edge to edge). */
.tile-media img.fit-cover, .pdp-main img.fit-cover, .pdp-thumbs img.fit-cover, .ci-img img.fit-cover {
  object-fit: cover; padding: 0;
}

/* ── Pickup-only ───────────────────────────────────────────────────────────── */
.ci-tag {
  display: inline-block; margin: .45rem 0 0; padding: .2rem .45rem; border-radius: 2px;
  font: 600 11px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--shop-ink); background: var(--shop-tile);
}
.pickup-note {
  margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 4px;
  background: #EEF3FA; color: #1F3554; font-size: 13px; line-height: 1.5;
}
.cart-summary .pickup-note { margin: 1rem 0 0; }

/* ── Motion ────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-drawer, .cart-overlay, .pdp-sticky, .tile-media img, .shop-btn, .pill { transition: none !important; }
  .tile-skel .tile-media, .shop-hero.motion-ready > img { animation: none; }
}

/* "Shop Now" jumps to #products: land below the sticky header + category bar. */
#products { scroll-margin-top: calc(var(--hdr-h, 86px) + 56px); }

/* The cart button needs ~45px more than other pages' headers. main.css already
   tightens the 881–1080px band; the shop pages squeeze a little more. */
@media (min-width: 881px) and (max-width: 1000px) {
  .shop-body .site-header .row { gap: .6rem; }
  .shop-body .site-header nav { gap: .8rem; }
}

/* Phones narrower than ~348px: the extra cart button squeezed "Casa Colombia"
   onto two lines (a 123px header vs 86px on every other page). Tighten the
   brand only in the band where that happens; below ~305px every page wraps
   anyway, and tightening there would push the text into the cart's tap target. */
@media (min-width: 305px) and (max-width: 347.98px) {
  .shop-body .site-header .brand { gap: .5rem; }
  .shop-body .site-header .brand img { height: 46px; }
  .shop-body .site-header .brand-text { white-space: nowrap; font-size: 1.2rem; }
}

/* Wide screens: park the cart button in the header's right gutter so the nav
   keeps the exact position it has on every other page (no 68px jump when you
   click Shop). Below 1380px there's no gutter wide enough; the shift remains. */
@media (min-width: 1380px) {
  .shop-body .site-header .row { position: relative; }
  .shop-body .site-header .cart-btn { position: absolute; right: -52px; top: 50%; transform: translateY(-50%); }
}
