
/* ============================================================
   ABJAYOU MARKETPLACE — shared storefront styles (shop- prefix)
   Dark premium theme. Header/footer styles live in their PHP.
   ============================================================ */
:root {
  --s-bg: #000000;
  --s-bg2: #0e0e13;
  --s-surface: #13131a;
  --s-surface2: #181821;
  --s-line: rgba(255, 255, 255, 0.08);
  --s-line2: rgba(255, 255, 255, 0.16);
  --s-text: #f4f1ea;
  --s-text2: rgba(244, 241, 234, 0.62);
  --s-text3: rgba(244, 241, 234, 0.38);
  --s-gold: #f2c200;
  --s-gold2: #f2c200;
  --s-sale: #e07a5f;
  --s-ok: #8fd0a0;
  --s-radius: 16px;
  --s-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Jost', Georgia, sans-serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Shop pages are black end-to-end (header & footer are #000 too).
   body is overridden here because /style.css paints it light. */
body { background: #000000; }

.s-root {
  background: var(--s-bg);
  color: var(--s-text);
  font-family: var(--font-body);
  min-height: 100vh;
}

.s-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Buttons ---- */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s var(--s-ease);
  min-height: 48px;
  white-space: nowrap;
}
.s-btn--ivory { background: var(--s-text); color: #0b0b0e; border-color: var(--s-text); }
.s-btn--ivory:hover { background: transparent; color: var(--s-text); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(244,241,234,.12); }
.s-btn--gold { background: #f2c200; color: #1a1400; border-color: transparent; }
.s-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(216,196,154,.25); }
.s-btn--ghost { background: transparent; color: var(--s-text2); border-color: var(--s-line2); }
.s-btn--ghost:hover { color: var(--s-text); border-color: rgba(244,241,234,.5); transform: translateY(-2px); }
.s-btn--wide { width: 100%; }
.s-btn[disabled], .s-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---- Section headers ---- */
.s-sec { padding: 72px 0; }
.s-sec--tight { padding: 44px 0; }
.s-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.s-sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--s-gold); margin-bottom: 12px;
}
.s-sec-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--s-gold); opacity: 0.6; }
.s-sec-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; color: var(--s-text);
}
.s-sec-title em { font-style: italic; color: var(--s-gold); }
.s-sec-link {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-text2); display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px; border-bottom: 1px solid var(--s-line2); transition: all 0.3s ease;
}
.s-sec-link:hover { color: var(--s-text); gap: 13px; border-color: var(--s-text2); }

/* ---- Breadcrumbs ---- */
.s-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 26px 0 6px; font-size: 0.76rem; color: var(--s-text3); }
.s-crumbs a { color: var(--s-text2); transition: color 0.25s ease; }
.s-crumbs a:hover { color: var(--s-gold); }
.s-crumbs .sep { opacity: 0.5; }
.s-crumbs .here { color: var(--s-text); }

/* ---- Product grid + product card --------------------------------------
   Moved to components/product-card.php — the card is a shared component.
   Its styles (including the .pcard-grid layout) ship inside the component
   and are emitted once per page, wherever the first card renders. ---- */

/* ---- Stars ---- */
.stars { position: relative; display: inline-block; font-size: 0.82rem; line-height: 1; letter-spacing: 2px; }
.stars-base { color: rgba(255, 255, 255, 0.18); }
.stars-fill {
  position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap;
  color: var(--s-gold2); pointer-events: none;
}

/* ---- Chips / tags ---- */
.s-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--s-line); background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem; font-weight: 500; color: var(--s-text2);
  transition: all 0.3s var(--s-ease); cursor: pointer; min-height: 36px;
}
.s-chip:hover { border-color: rgba(244, 241, 234, 0.4); color: var(--s-text); transform: translateY(-2px); }
.s-chip.active { background: var(--s-text); border-color: var(--s-text); color: #0b0b0e; }
.s-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---- Forms ---- */
.s-field { display: flex; flex-direction: column; gap: 8px; }
.s-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--s-text3); }
.s-input, .s-select, .s-textarea {
  width: 100%; padding: 13px 16px; min-height: 48px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--s-line);
  border-radius: 12px; color: var(--s-text);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.s-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.s-input:focus, .s-select:focus, .s-textarea:focus {
  outline: none; border-color: rgba(216, 196, 154, 0.55); background: rgba(255, 255, 255, 0.055);
}
.s-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f4f1ea' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.s-select option { background: #14141a; color: var(--s-text); }

/* ---- Empty state ---- */
.s-empty {
  text-align: center; padding: 72px 24px;
  border: 1px dashed var(--s-line2); border-radius: var(--s-radius);
}
.s-empty h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--s-text); margin-bottom: 10px; }
.s-empty p { color: var(--s-text2); font-size: 0.94rem; margin-bottom: 22px; }

/* ---- Toast ---- */
.abj-toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 3000;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 100px;
  background: #16161d; border: 1px solid var(--s-line2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: var(--s-text); font-size: 0.84rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--s-ease);
}
.abj-toast.show { opacity: 1; transform: translate(-50%, 0); }
.abj-toast .tick {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f2c200; color: #1a1400;
}

/* ---- Reveal on scroll ---- */
.s-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s var(--s-ease); }
.s-reveal.s-in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
/* Product grid + card responsive rules live in components/product-card.php */
@media (max-width: 820px)  { .s-container { padding: 0 20px; } .s-sec { padding: 52px 0; } }

@media (prefers-reduced-motion: reduce) {
  .s-reveal { transition: none; opacity: 1; transform: none; }
  .s-btn, .s-chip { transition: none; }
}
