/* ===================================================
   PRODUCTS.CSS — LiftedPress Custom Apparel Catalog
   Design System: Black, White & Gold Premium v4.0
   =================================================== */

/* ── PAGE HERO ── */
.pg-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 0;
}
.pg-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.pg-hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}
.pg-hero__eyebrow i { margin-right: 6px; }
.pg-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.pg-hero__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ── CATEGORY TABS ── */
.cat-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: -1px;
}
.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.cat-tab i { font-size: .85rem; }
.cat-tab:hover { color: var(--text-primary); background: var(--bg-card); }
.cat-tab.active {
  background: var(--bg-primary);
  color: var(--accent-gold);
  border-color: var(--border-gold);
  border-bottom: 1px solid var(--bg-primary);
}

/* ── DTF INFO STRIP ── */
.dtf-strip {
  background: rgba(201,168,76,.07);
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 10px 24px;
  overflow: hidden;
}
.dtf-strip__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.dtf-strip__inner span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-gold);
  padding: 4px 18px;
  border-right: 1px solid rgba(201,168,76,.2);
  white-space: nowrap;
}
.dtf-strip__inner span:last-child { border-right: none; }
.dtf-strip__inner span i { font-size: .8rem; }

/* ── MAIN LAYOUT ── */
.catalog-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  align-items: start;
}

/* ── SIDEBAR ── */
.catalog-sidebar { position: sticky; top: 88px; }
.sidebar-toggle { display: none; }
.sidebar-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.filter-group {
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type { border-bottom: none; }
.filter-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .87rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 0;
  transition: color .15s;
}
.filter-check:hover { color: var(--text-primary); }
.filter-check input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 15px; height: 15px;
  cursor: pointer; flex-shrink: 0;
}
.filter-tag {
  font-style: normal;
  font-size: .72rem;
  color: var(--text-muted);
  margin-left: auto;
}
.filter-badge {
  background: var(--accent-gold);
  color: #0a0a0a;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

/* DTF info box inside sidebar */
.dtf-info-box {
  margin: 16px 20px 20px;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  padding: 16px;
}
.dtf-info-box h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dtf-info-box p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── RESULTS BAR ── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.results-count { font-size: .9rem; color: var(--text-secondary); }
.results-count strong { color: var(--text-primary); }
.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: .85rem;
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.sort-select:focus { border-color: var(--border-gold); }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .25s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 14px 44px rgba(201,168,76,.16);
}
.product-card:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Badge */
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-gold);
  color: #0a0a0a;
}
.card-badge.badge-premium { background: linear-gradient(135deg,#c9a84c,#e8c96b); }
.card-badge.badge-new     { background: var(--accent-teal); color:#fff; }
.card-badge.badge-hot     { background: #e05c3a; color:#fff; }

/* ── GARMENT VISUAL AREA ── */
.card-visual {
  position: relative;
  background: #f8f8f8;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── REAL PHOTO + COLOR OVERLAY SYSTEM ──
   The white ghost-mannequin image sits as the base.
   A colored div using mix-blend-mode: multiply sits on top.
   This tints the white garment to the selected color.
   White/light colors = minimal or no tinting.
   ───────────────────────────────────────── */
.garment-photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.garment-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform .35s ease;
  padding: 8px 8px 0;
}
.product-card:hover .garment-photo { transform: scale(1.03); }

/* The color tint overlay — multiplied over the white garment */
.color-tint-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: background .25s ease;
  /* mix-blend-mode is set inline via JS */
}

/* Design placeholder badge — appears on chest */
.design-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.tshirt-design-overlay  { align-items: flex-start; padding-top: 28%; }
.hat-design-overlay     { align-items: flex-start; padding-top: 22%; }
.bottoms-design-overlay { align-items: flex-start; padding-top: 18%; }

.design-placeholder {
  background: rgba(201,168,76,.18);
  border: 1.5px dashed rgba(201,168,76,.55);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(201,168,76,.85);
  white-space: nowrap;
  backdrop-filter: blur(1px);
}

/* Colour swatch row at bottom of visual */
.card-swatches {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  align-items: center;
}
.swatch-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  flex-shrink: 0;
}
.swatch-dot:hover, .swatch-dot.active {
  transform: scale(1.35);
  border-color: var(--accent-gold);
}
.swatch-more {
  font-size: .6rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 15px; height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CARD BODY ── */
.card-body {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-brand {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 3px;
}
.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
  line-height: 1.25;
}
.card-desc {
  font-size: .83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}
.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.chip {
  font-size: .69rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.chip.chip-dtf {
  background: rgba(201,168,76,.1);
  color: var(--accent-gold);
  border-color: rgba(201,168,76,.25);
}

/* Card footer row */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 8px;
}
.card-price { font-size: .8rem; color: var(--text-muted); }
.card-price strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  line-height: 1.1;
}
.card-cta {
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 16px;
  background: var(--gradient-main);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .2s, box-shadow .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.card-cta:hover {
  opacity: .88;
  box-shadow: 0 4px 18px rgba(201,168,76,.4);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 1.05rem; margin-bottom: 16px; }

/* ── LOAD MORE ── */
.load-more-wrap { text-align: center; margin-top: 40px; }

/* card model tag */
.card-model-tag {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-top: -4px;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(5px);
}
.modal-overlay[hidden] { display: none; }
.modal-box--wide {
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  position: relative;
}
.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .2s, color .2s;
  z-index: 2;
}
.modal-close:hover { background: var(--accent-gold); color: #0a0a0a; }
.modal-inner { padding: 32px; clear: both; }

/* Modal 2-col layout */
.modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Left: visual + swatches */
.modal-visual-col {}
.modal-garment-wrap {
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

/* Modal photo uses same photo-wrap + tint system */
.modal-photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 12px 12px 0;
  position: relative;
  z-index: 1;
}
.modal-garment-wrap .color-tint-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.modal-garment-wrap .design-overlay {
  position: absolute; inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28%;
}

/* Colour picker grid below visual */
.modal-colour-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.modal-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.modal-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  position: relative;
}
.modal-swatch:hover, .modal-swatch.active {
  transform: scale(1.22);
  border-color: var(--accent-gold);
}
.modal-swatch-name {
  font-size: .82rem;
  color: var(--text-secondary);
  min-height: 1.2em;
}

/* Right: info */
.modal-info-col {}
.modal-brand {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 5px;
}
.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1;
}
.modal-model { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.modal-desc {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Spec list */
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.modal-spec dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.modal-spec dd { font-size: .9rem; font-weight: 600; color: var(--text-primary); margin: 0; }

/* DTF badge */
.dtf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--accent-gold);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Perks list */
.modal-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.modal-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .87rem;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.modal-perks li i {
  color: var(--accent-gold);
  font-size: .8rem;
  flex-shrink: 0;
}

/* CTA row */
.modal-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.modal-ctas .btn-primary,
.modal-ctas .btn-outline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: .9rem;
  border-radius: var(--radius);
}
.modal-ctas .btn-primary {
  background: var(--gradient-main);
  color: #0a0a0a;
  font-weight: 700;
  border: none;
}
.modal-ctas .btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.modal-ctas .btn-outline:hover {
  border-color: var(--border-gold);
  color: var(--accent-gold);
}
.modal-price-note {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal-price-note strong { color: var(--accent-gold); }

/* ── SR ONLY ── */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: 1fr; padding: 24px 16px 60px; }
  .catalog-sidebar { position: static; }
  .sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s;
  }
  .sidebar-toggle[aria-expanded="true"] { border-color: var(--border-gold); }
  .sidebar-body { display: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .sidebar-body.open { display: block; }
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pg-hero { padding: 40px 0 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tab { padding: 10px 12px; font-size: .82rem; }
  .modal-inner { padding: 20px; }
  .modal-specs { grid-template-columns: 1fr; }
  .dtf-strip__inner span { padding: 4px 12px; font-size: .75rem; }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}
