/* ============================================================
   WARZANV — store components (shop grid · home slideshow · gumroad modal)
   ============================================================ */

/* ---------- category cards (shared home + shop) ---------- */
.cats__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: 3.2rem;
  perspective: 1400px;
}
@media (max-width: 980px) { .cat { flex-basis: 100%; max-width: 460px; } }
.cat {
  position: relative;
  flex: 1 1 340px;
  max-width: 440px;
  padding: 2.6rem 2.2rem;
  display: flex; flex-direction: column; align-items: flex-start;
  overflow: hidden;
  min-height: 300px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s;
}
.cat:hover { border-color: rgba(255, 180, 61, 0.45); }
.cat__icon {
  width: 64px; height: 64px;
  margin-bottom: 1.6rem;
  color: var(--primary-soft);
  filter: drop-shadow(0 0 14px rgba(255, 138, 30, 0.55));
  animation: catFloat 5s ease-in-out infinite;
}
.cat:nth-child(2) .cat__icon { animation-delay: -1.6s; }
.cat:nth-child(3) .cat__icon { animation-delay: -3.2s; }
@keyframes catFloat { 50% { transform: translateY(-9px) rotate(4deg); } }
.cat h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}
.cat p { color: var(--muted); font-size: 0.94rem; flex: 1; margin-bottom: 1.4rem; }
.cat__count {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.cat::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(480px circle at var(--gx, 50%) -20%, rgba(255, 138, 30, 0.14), transparent 60%);
  pointer-events: none;
}

/* ---------- product cards ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: 2.6rem;
  perspective: 1400px;
}
.prod {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 22px;
  text-align: left;
  padding: 0;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  font-family: inherit;
  color: inherit;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.prod:hover {
  border-color: rgba(255, 180, 61, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(226, 100, 10, 0.22);
}
.prod__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.prod__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.9s var(--ease-out);
}
.prod:hover .prod__media img { transform: scale(1.11); }
.prod__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 9, 3, 0.9));
}
/* hover pitch overlay (full-width text that rises + fades in from the bottom) */
.prod__reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;   /* one full-width column → text wraps normally */
  align-content: end;           /* anchor content to the bottom */
  gap: 0.55rem;
  padding: 1.15rem 1.45rem 1.25rem;
  background: linear-gradient(
    to top,
    rgba(12, 7, 2, 0.97) 0%,
    rgba(12, 7, 2, 0.9) 28%,
    rgba(12, 7, 2, 0.64) 54%,
    rgba(12, 7, 2, 0.26) 76%,
    rgba(12, 7, 2, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.prod:hover .prod__reveal,
.prod:focus-visible .prod__reveal { opacity: 1; }
.prod__reveal-line {
  justify-self: start;
  width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 210, 74, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out) 0.08s;
}
.prod:hover .prod__reveal-line,
.prod:focus-visible .prod__reveal-line { transform: scaleX(1); }
.prod__reveal-text {
  width: 100%;
  color: #fff3e6;
  font-size: 0.85rem;
  line-height: 1.5;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out) 0.05s, opacity 0.5s var(--ease-out) 0.05s;
}
.prod:hover .prod__reveal-text,
.prod:focus-visible .prod__reveal-text { transform: translateY(0); opacity: 1; }
@media (max-width: 600px) { .prod__reveal-text { font-size: 0.86rem; } }
.prod__badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(12, 7, 2, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 210, 74, 0.4);
  border-radius: 999px;
  padding: 0.34rem 0.95rem;
}
.prod__body { display: block; padding: 1.5rem 1.7rem 1.8rem; }
.prod__cat {
  font-size: 0.64rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: 0.5rem;
}
.prod__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}
.prod__tag { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.3rem; }
.prod__cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--lilac);
}
.prod__cta::after {
  content: "→";
  transition: transform 0.35s var(--ease-out);
}
.prod:hover .prod__cta::after { transform: translateX(6px); }
.prod:hover .prod__cta { color: var(--gold); }

/* shop category section headers */
.shop-cat-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  margin-top: 4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 170, 80, 0.14);
}
.shop-cat-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: 0.06em;
}
.shop-cat-head span { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.1em; }
.shop-cat-empty {
  margin-top: 1.6rem;
  color: var(--faint);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------- home slideshow ---------- */
.pshow {
  position: relative;
  margin: 3.4rem auto 0;
  max-width: 760px;
}
.pshow__track {
  display: flex;
  transition: transform 0.8s var(--ease-out);
}
.pshow__slide {
  flex: 0 0 100%;
  padding: 0 0.2rem;
}
.pshow__viewport { overflow: hidden; border-radius: 24px; }
.pshow .prod { width: 100%; }
.pshow__dots {
  display: flex; justify-content: center; gap: 0.6rem;
  margin-top: 1.4rem;
}
.pshow__dots button {
  width: 26px; height: 4px;
  border: none; border-radius: 99px;
  background: rgba(255, 170, 80, 0.22);
  cursor: pointer;
  transition: background 0.4s, width 0.4s;
  padding: 0;
}
.pshow__dots button.is-on {
  width: 44px;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary-soft));
  box-shadow: 0 0 12px rgba(255, 138, 30, 0.7);
}
.pshow__orbitline {
  position: absolute; inset: -22px;
  border: 1px solid rgba(255, 138, 30, 0.14);
  border-radius: 34px;
  pointer-events: none;
}
.pshow__orbitline i {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--primary-soft);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 180, 61, 0.95);
  offset-path: border-box;
  animation: pshowOrbit 14s linear infinite;
}
.pshow__orbitline i:nth-child(2) { animation-delay: -7s; }
@keyframes pshowOrbit { to { offset-distance: 100%; } }

/* ---------- gumroad modal ---------- */
.gum-modal {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 4, 1, 0.85);
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
  padding: 1.2rem;
}
.gum-modal.is-open { opacity: 1; pointer-events: all; }
.gum-modal__box {
  position: relative;
  width: min(960px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px;
  background: #150c04;
  border: 1px solid rgba(255, 180, 61, 0.35);
  box-shadow: 0 0 90px rgba(226, 100, 10, 0.35);
  padding: 3.2rem 1.4rem 1.4rem;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.45s var(--ease-out);
}
.gum-modal.is-open .gum-modal__box { transform: scale(1) translateY(0); }
.gum-modal__close {
  position: absolute; top: 0.8rem; right: 1.1rem;
  background: none; border: none;
  color: var(--lilac); font-size: 1.9rem; line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.gum-modal__ext {
  position: absolute; top: 1.25rem; left: 1.4rem;
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.gum-modal__ext:hover { color: var(--gold); }
.gum-modal__holder { min-height: 320px; }
.gum-modal__holder .gumroad-product-embed a { color: var(--muted); }
.gum-modal__loading {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 4rem 0;
  color: var(--muted);
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.gum-modal__loading::before {
  content: "";
  width: 38px; height: 38px;
  border: 2px solid rgba(255, 138, 30, 0.25);
  border-top-color: var(--primary-soft);
  border-radius: 50%;
  animation: gumSpin 0.9s linear infinite;
}
@keyframes gumSpin { to { transform: rotate(360deg); } }
