/* === Shop (Printify merch storefront) === */

.shop-page {
  max-width: var(--rc-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.shop-header { margin-bottom: 1.75rem; }
.shop-title {
  font-size: 1.5rem; font-weight: 700; color: var(--rc-text-bright);
  letter-spacing: 0.01em; margin-bottom: 0.4rem;
}
.shop-sub { font-size: 0.9rem; color: var(--rc-text-dim); line-height: 1.55; max-width: 46rem; }

/* --- Grid --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.shop-card {
  display: flex; flex-direction: column;
  background: var(--rc-bg-card); border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius-md); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color var(--rc-ease), transform var(--rc-ease);
}
.shop-card:hover { border-color: var(--rc-border-ui); transform: translateY(-2px); }
.shop-card__img {
  aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block;
  background: var(--rc-bg-panel);
}
.shop-card__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.shop-card__title { font-size: 0.95rem; font-weight: 600; color: var(--rc-text-bright); line-height: 1.3; }
.shop-card__price { font-size: 0.85rem; color: var(--rc-accent); font-family: var(--rc-font-mono); }
.shop-card__swatches { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.35rem; }
.shop-swatch {
  width: 0.95rem; height: 0.95rem; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform var(--rc-ease);
}
.shop-swatch:hover { transform: scale(1.15); }
.shop-card__swatch-count { font-size: 0.72rem; color: var(--rc-text-dim); margin-left: 0.15rem; }

.shop-empty, .shop-loading {
  text-align: center; color: var(--rc-text-dim); font-size: 0.9rem;
  padding: 3rem 1rem;
}

/* Coming-soon note + subscribe (preview mode) -- sits under the greyed buy
   button on the product page. */
.shop-soon {
  margin: 1rem 0 0; padding: 1rem 1.1rem;
  background: var(--rc-bg-card); border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius-sm);
}
.shop-soon__msg {
  font-family: var(--rc-font-mono); font-size: 0.85rem; color: var(--rc-text-bright);
  line-height: 1.5; margin-bottom: 0.85rem;
}
.shop-soon__form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.shop-soon__input {
  flex: 1 1 15rem; min-width: 0; padding: 0.65rem 0.85rem;
  background: var(--rc-bg-panel); border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius-sm); color: var(--rc-text-bright);
  font-family: var(--rc-font); font-size: 0.9rem; outline: none;
}
.shop-soon__input:focus { border-color: var(--rc-accent); }
.shop-soon__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.shop-soon__btn {
  padding: 0.65rem 1.25rem; border: none; cursor: pointer; white-space: nowrap;
  background: var(--rc-accent); color: var(--rc-bg-dark);
  border-radius: var(--rc-radius-sm); font-weight: 600; font-size: 0.9rem;
}
.shop-soon__btn:hover { opacity: 0.88; }
.shop-soon__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.shop-soon__status { margin-top: 1rem; font-size: 0.85rem; min-height: 1.2rem; }
.shop-soon__status--ok { color: var(--rc-accent); }
.shop-soon__status--err { color: var(--rc-red); }

/* --- Product detail --- */
.product { max-width: var(--rc-max-width); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.product__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
@media (max-width: 780px) { .product__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.product__cover {
  width: 100%; border-radius: var(--rc-radius-md); border: 1px solid var(--rc-border);
  background: var(--rc-bg-panel); display: block; aspect-ratio: 1 / 1; object-fit: cover;
}
.product__thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.product__thumb {
  width: 62px; height: 62px; padding: 0; cursor: pointer; overflow: hidden;
  border: 1px solid var(--rc-border); border-radius: var(--rc-radius-sm); background: var(--rc-bg-panel);
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__thumb--active { border-color: var(--rc-accent); }

.product__title { font-size: 1.4rem; font-weight: 700; color: var(--rc-text-bright); margin-bottom: 0.5rem; }
.product__price { font-size: 1.05rem; color: var(--rc-accent); font-family: var(--rc-font-mono); margin-bottom: 1.25rem; }

.product__opt-group { margin-bottom: 1.1rem; }
.product__opt-label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--rc-text-dim); margin-bottom: 0.45rem;
}
.product__opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.product__opt {
  min-width: 2.4rem; padding: 0.4rem 0.75rem; cursor: pointer;
  background: var(--rc-bg-card); color: var(--rc-text-bright);
  border: 1px solid var(--rc-border); border-radius: var(--rc-radius-sm);
  font-family: var(--rc-font); font-size: 0.85rem;
  transition: border-color var(--rc-ease), background var(--rc-ease);
}
.product__opt:hover { border-color: var(--rc-border-ui); }
.product__opt--active { border-color: var(--rc-accent); background: var(--rc-accent-subtle); color: var(--rc-text-bright); }
.product__opt--out { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* Color swatches (each color is its own SKU; hues track the compass tiers). */
.product__swatches { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.product__swatch {
  width: 1.9rem; height: 1.9rem; padding: 0; cursor: pointer; border-radius: 50%;
  border: 2px solid var(--rc-border); background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
  transition: transform var(--rc-ease), border-color var(--rc-ease);
}
.product__swatch:hover { transform: scale(1.08); }
.product__swatch--active { border-color: var(--rc-accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--rc-accent-subtle); }
.product__swatch-name { font-size: 0.8rem; color: var(--rc-text); margin-left: 0.4rem; }

/* Tier picker (the "Feelin'" tee): each garment color is a compass charge tier.
   Chips echo the shirt's knockout label box, but the word is the tier color
   (JetBrains Mono), not white. */
.product__tiers { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.product__tier {
  padding: 0.4rem 0.85rem; cursor: pointer;
  font-family: var(--rc-font-mono); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1.5px solid; border-radius: var(--rc-radius-sm);
  /* background + color + border-color are set inline (solid tier hue, dark
     knockout text) */
  transition: transform var(--rc-ease), box-shadow var(--rc-ease), filter var(--rc-ease);
}
.product__tier:hover { transform: translateY(-1px); filter: brightness(1.08); }
.product__tier--active { box-shadow: 0 0 0 2px var(--rc-bg-panel), 0 0 0 4px var(--rc-accent); }
.product__tier-hint { display: block; margin-top: 0.5rem; font-size: 0.78rem; color: var(--rc-text-dim); }

.product__buy {
  width: 100%; margin-top: 0.5rem; padding: 0.8rem 1.5rem;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em;
  background: var(--rc-accent); color: var(--rc-bg-dark);
  border: none; border-radius: var(--rc-radius-sm); cursor: pointer;
}
.product__buy:hover { opacity: 0.88; }
.product__buy:disabled { opacity: 0.4; cursor: not-allowed; }

.product__desc { margin-top: 1.5rem; font-size: 0.9rem; color: var(--rc-text); line-height: 1.65; white-space: pre-line; }
.product__disclaimer { margin-top: 1.25rem; font-size: 0.78rem; color: var(--rc-text-dim); line-height: 1.5; }
.product__back { display: inline-block; margin-top: 1.75rem; font-size: 0.85rem; color: var(--rc-accent); text-decoration: none; }
.product__back:hover { text-decoration: underline; }

/* --- Cart button + drawer --- */
.shop-cart-btn {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; border: none; cursor: pointer;
  background: var(--rc-accent); color: var(--rc-bg-dark);
  border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.shop-cart-btn__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem;
  background: var(--rc-bg-dark); color: var(--rc-accent);
  border-radius: 999px; font-size: 0.72rem; font-family: var(--rc-font-mono);
}

.shop-drawer-scrim {
  position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity var(--rc-ease);
}
.shop-drawer-scrim--open { opacity: 1; pointer-events: auto; }
.shop-drawer {
  position: fixed; top: 0; right: 0; z-index: 1101; height: 100%;
  width: min(400px, 92vw);
  /* Distinct shade from the site header (which is --rc-bg-panel) so the drawer
     reads as a separate surface. */
  background: var(--rc-bg-card);
  border-left: 1px solid var(--rc-border);
  box-shadow: -12px 0 32px -12px rgba(0, 0, 0, 0.6);
  transform: translateX(100%); transition: transform var(--rc-ease-medium);
  display: flex; flex-direction: column;
}
.shop-drawer--open { transform: translateX(0); }
.shop-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--rc-border);
}
.shop-drawer__title { font-size: 1rem; font-weight: 700; color: var(--rc-text-bright); }
.shop-drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex-shrink: 0;
  background: var(--rc-bg-panel); border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius-sm); color: var(--rc-text-bright);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: border-color var(--rc-ease), color var(--rc-ease);
}
.shop-drawer__close:hover { border-color: var(--rc-border-ui); color: var(--rc-accent); }
.shop-drawer__items { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }
.shop-drawer__empty { color: var(--rc-text-dim); font-size: 0.9rem; text-align: center; padding: 2.5rem 0; }

.cart-line { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rc-divider); }
.cart-line__img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--rc-radius-sm); background: var(--rc-bg-card); flex-shrink: 0; }
.cart-line__mid { flex: 1; min-width: 0; }
.cart-line__title { font-size: 0.85rem; font-weight: 600; color: var(--rc-text-bright); line-height: 1.3; }
.cart-line__variant { font-size: 0.75rem; color: var(--rc-text-dim); margin-top: 0.15rem; }
.cart-line__qty { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }
.cart-line__qbtn {
  width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rc-bg-card); color: var(--rc-text-bright);
  border: 1px solid var(--rc-border); border-radius: var(--rc-radius-xs); cursor: pointer; font-size: 0.9rem;
}
.cart-line__qnum { font-size: 0.82rem; font-family: var(--rc-font-mono); min-width: 1.2rem; text-align: center; }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line__price { font-size: 0.82rem; color: var(--rc-accent); font-family: var(--rc-font-mono); }
.cart-line__remove { background: none; border: none; color: var(--rc-text-dim); font-size: 0.72rem; cursor: pointer; }
.cart-line__remove:hover { color: var(--rc-red); }

.shop-drawer__foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--rc-border); }
.shop-drawer__row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--rc-text); margin-bottom: 0.5rem; }
.shop-drawer__row strong { color: var(--rc-text-bright); }
.shop-drawer__note { font-size: 0.74rem; color: var(--rc-text-dim); margin-bottom: 0.75rem; }
.shop-checkout-btn {
  width: 100%; padding: 0.8rem; border: none; cursor: pointer;
  background: var(--rc-accent); color: var(--rc-bg-dark);
  border-radius: var(--rc-radius-sm); font-weight: 600; font-size: 0.92rem;
}
.shop-checkout-btn:hover { opacity: 0.88; }
.shop-checkout-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Checkout + thank-you --- */
.checkout-page { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.checkout-title { font-size: 1.3rem; font-weight: 700; color: var(--rc-text-bright); margin-bottom: 1.25rem; }
.checkout-status { font-size: 0.9rem; color: var(--rc-text-dim); }
.checkout-error { font-size: 0.9rem; color: var(--rc-red); margin-top: 0.75rem; }
#shop-embedded { min-height: 320px; }

.thanks-page { max-width: 620px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.thanks-icon { font-size: 2.5rem; color: var(--rc-accent); margin-bottom: 0.75rem; }
.thanks-title { font-size: 1.4rem; font-weight: 700; color: var(--rc-text-bright); margin-bottom: 0.5rem; }
.thanks-body { font-size: 0.95rem; color: var(--rc-text); line-height: 1.6; margin-bottom: 1.5rem; }
.thanks-link { color: var(--rc-accent); text-decoration: none; font-weight: 600; }
.thanks-link:hover { text-decoration: underline; }
