/* CoquiWeb Shop — storefront styles.
 *
 * Deliberately plain. This file is the baseline every client shop starts from;
 * each host page then overrides to match its own design (the pattern the
 * booking widget settled on: tune the shared file for general polish, put
 * business-specific type and color on the host page).
 *
 * THEMING GOTCHA, learned the hard way on coqui-booking: do NOT declare these
 * custom properties on .cqs-* rules. Declaring them here wins over the host
 * page's :root and silently blocks theming. Every use below is var(--x,
 * fallback) with no declaration anywhere.
 */

.cqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--cqs-gap, 28px);
}

.cqs-card { display: flex; flex-direction: column; min-width: 0; }

.cqs-shot {
  position: relative;
  /* Overridable because clients photograph differently and object-fit:cover
     silently CROPS whatever doesn't match. Garabatos shoots 1:1, so the 4/5
     default clipped ~10% off each side — which cut into both hoops of the
     Heart(Break) pair, where the subject spans the full frame. Default stays
     4/5 so existing shops are untouched; a host site overrides it in its own
     stylesheet, which loads after this one. */
  aspect-ratio: var(--cqs-shot-ratio, 4 / 5);
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: var(--cqs-radius, 16px);
  border: var(--cqs-border, 1px solid rgba(0, 0, 0, .14));
  background: var(--cqs-shot-bg, rgba(0, 0, 0, .03));
}
.cqs-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cqs-noimg {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cqs-muted, #6b6b6b);
}

.cqs-sold {
  position: absolute; top: 10px; left: 10px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--cqs-ink, #17150f); color: var(--cqs-paper, #fff);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.cqs-name { margin: 0; font-size: 19px; line-height: 1.15; }
.cqs-desc { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--cqs-muted, #5b564a); }

.cqs-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px;
}
.cqs-price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.cqs-btn {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 11px 20px; border-radius: var(--cqs-btn-radius, 999px);
  border: 2px solid var(--cqs-accent-deep, var(--cqs-accent, #0f766e));
  background: var(--cqs-accent, #0f766e);
  color: var(--cqs-accent-ink, #fff);
  transition: transform .16s ease, opacity .16s ease;
}
.cqs-btn:hover:not(:disabled) { transform: translateY(-2px); }
.cqs-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- cart drawer ---------- */
.cqs-drawer { position: fixed; inset: 0; z-index: 9000; }
.cqs-drawer[hidden] { display: none; }
.cqs-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }

.cqs-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(410px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  overflow-y: auto;
  background: var(--cqs-paper, #fff);
  color: var(--cqs-ink, #17150f);
  box-shadow: -14px 0 40px rgba(0, 0, 0, .16);
}

.cqs-head { display: flex; align-items: center; justify-content: space-between; }
.cqs-title { margin: 0; font-size: 22px; }
.cqs-x {
  font: inherit; font-size: 26px; line-height: 1;
  width: 40px; height: 40px; cursor: pointer;
  border: none; background: none; color: inherit; border-radius: 999px;
}
.cqs-x:hover { background: rgba(0, 0, 0, .06); }

.cqs-empty, .cqs-msg { margin: 0; color: var(--cqs-muted, #5b564a); font-size: 15px; }
.cqs-msg {
  padding: 11px 13px; border-radius: 10px;
  background: var(--cqs-note-bg, rgba(0, 0, 0, .05));
}

.cqs-lines { display: flex; flex-direction: column; }
.cqs-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--cqs-line, rgba(0, 0, 0, .1));
}
.cqs-lname { font-size: 15.5px; }
.cqs-lprice { font-weight: 700; font-variant-numeric: tabular-nums; }
.cqs-lqty { font-size: 13px; color: var(--cqs-muted, #5b564a); }
.cqs-rm {
  grid-column: 1 / -1; justify-self: start;
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 0; border: none; background: none;
  color: var(--cqs-muted, #5b564a); text-decoration: underline;
}
.cqs-rm:hover { color: var(--cqs-ink, #17150f); }

.cqs-total {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 17px; margin-top: 4px;
}
.cqs-total strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.cqs-note { margin: 0; font-size: 13.5px; color: var(--cqs-muted, #5b564a); }
.cqs-go { width: 100%; justify-content: center; }

body.cqs-locked { overflow: hidden; }

.cqs-btn:focus-visible, .cqs-x:focus-visible, .cqs-rm:focus-visible {
  outline: 3px solid var(--cqs-accent-deep, var(--cqs-accent, #0f766e));
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cqs-btn { transition: none; }
}
