/* ── Shop Page (shop.html) ───────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────── */
.sp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.sp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sp-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

.sp-hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(9,9,9,0.65) 0%,
      rgba(9,9,9,0.25) 40%,
      rgba(9,9,9,0.7)  100%),
    linear-gradient(135deg, rgba(0,255,65,0.04) 0%, transparent 60%);
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 120px;
}

.sp-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
}
.sp-eyebrow-tag {
  display: inline-block;
  background: rgba(0,255,65,0.1);
  border: 1px solid rgba(0,255,65,0.3);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.sp-eyebrow-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
}

.sp-hero-title {
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.sp-title-word {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.sp-title-word:nth-child(1) { animation-delay: 1.0s; }
.sp-title-word:nth-child(2) { animation-delay: 1.15s; }
.sp-title-accent { color: var(--green); }

.sp-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 1.3s forwards;
}

.sp-hero-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 1.45s forwards;
}
.sp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
}
.sp-pill svg { flex-shrink: 0; stroke: var(--green); }
.sp-pill-sep { color: rgba(255,255,255,0.2); font-size: 1.2rem; }

.sp-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 1.6s forwards;
}
.sp-scroll-btn:hover { color: var(--green); }
.sp-scroll-icon {
  display: flex;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  animation: bounceY 2s ease-in-out 2.5s infinite;
}
.sp-scroll-btn:hover .sp-scroll-icon {
  border-color: var(--green);
  background: rgba(0,255,65,0.08);
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Hero stats bar */
.sp-hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 24px;
  background: rgba(9,9,9,0.65);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  animation: fadeIn 0.6s ease 2s forwards;
}
.sp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sp-stat-n {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}
.sp-stat-l {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sp-stat-div {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Shop section ────────────────────────────────────────────── */
#shop-grid {
  padding: 80px 0 120px;
  background: var(--black);
}

/* Filter bar */
.sp-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.sp-filters .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sp-fc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  transition: background 0.2s;
}
.filter-btn.active .sp-fc {
  background: rgba(9,9,9,0.35);
}

/* Grid */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.sp-card {
  position: relative;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.sp-card:hover {
  border-color: var(--border-green);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,255,65,0.08);
  transform: translateY(-8px);
}

.sp-wide { grid-column: span 2; }

/* Card image */
.sp-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.sp-wide .sp-card-img {
  aspect-ratio: 16 / 7;
}
.sp-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.sp-card:hover .sp-card-img img {
  transform: scale(1.06);
}

/* Badge */
.sp-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  background: var(--green);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(0,255,65,0.4);
}
.sp-badge-alt {
  background: var(--dark);
  color: var(--green);
  border: 1px solid var(--border-green);
  box-shadow: none;
}
.sp-badge-event {
  background: rgba(120,80,255,0.15);
  color: #b48eff;
  border: 1px solid rgba(120,80,255,0.3);
  box-shadow: none;
}

/* Card body — always visible */
.sp-card-body {
  padding: 16px 18px 14px;
}

.sp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sp-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.sp-price {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-light);
}

.sp-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 2px;
}
.sp-card-sub {
  font-size: 0.72rem;
  color: var(--grey);
  margin-bottom: 0;
}

/* Buy buttons — slide up on hover */
.sp-card-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.sp-card:hover .sp-card-btns {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sp-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.sp-btn-dl {
  background: var(--green);
  color: var(--black);
}
.sp-btn-dl::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.sp-btn-dl:hover::after { transform: translateX(100%); }
.sp-btn-dl:hover {
  background: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,255,65,0.4);
}

.sp-btn-print {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.sp-btn-print:hover {
  border-color: var(--border-green);
  color: var(--green);
  transform: translateY(-2px);
}

/* Touch: always show buttons */
@media (hover: none) {
  .sp-card-btns {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .sp-card:active { transform: scale(0.98); }
}

/* Bottom CTA */
.sp-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  padding: 32px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  flex-wrap: wrap;
}
.sp-cta-bar p {
  color: var(--grey-light);
  font-size: 0.95rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-wide { grid-column: span 2; }
  .sp-hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .sp-hero-title { font-size: clamp(3.2rem, 14vw, 5rem); }
  .sp-hero-stats { display: none; }
  .sp-grid { grid-template-columns: 1fr; gap: 16px; }
  .sp-wide { grid-column: span 1; }
  .sp-wide .sp-card-img { aspect-ratio: 4/3; }
  .sp-card-btns {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .sp-cta-bar { flex-direction: column; text-align: center; }
  .sp-filters { gap: 6px; }
}

@media (max-width: 480px) {
  #shop-grid { padding: 48px 0 80px; }
  .sp-hero-content { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 80px; }
  .sp-hero-pills { gap: 10px; }
}

/* ── Light theme overrides ────────────────────────────────────── */
[data-theme="light"] .sp-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .sp-card:hover {
  border-color: rgba(0,180,40,0.35);
}
[data-theme="light"] .sp-card-title { color: #111; }
[data-theme="light"] .sp-card-sub { color: #777; }
[data-theme="light"] .sp-price { color: #555; }
[data-theme="light"] .sp-btn-print {
  border-color: rgba(0,0,0,0.15);
  color: #333;
}
[data-theme="light"] .sp-btn-print:hover { color: var(--green-dim); }
[data-theme="light"] #shop-grid { background: var(--black); }
[data-theme="light"] .sp-cta-bar { background: rgba(0,0,0,0.04); }
[data-theme="light"] .sp-hero-noise {
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.2) 40%,
      rgba(0,0,0,0.65) 100%);
}
