/* Shop / Tebex — clean catalog + cart drawer */
.shop-page .shop-hero {
  min-height: 32vh;
}
.shop-section {
  padding-bottom: 64px;
}
.shop-status {
  min-height: 0;
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.shop-status:empty { display: none; }
.shop-status[data-kind="err"] { color: #ff8b8b; }
.shop-status[data-kind="ok"] { color: var(--ok); }

.shop-setup {
  margin: 0 0 24px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.shop-setup h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
}
.shop-setup p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 58ch;
}
.shop-setup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.shop-setup input {
  flex: 1;
  min-width: min(100%, 260px);
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.shop-setup input:focus { border-color: var(--accent); }
.shop-setup a { color: var(--accent-strong); font-weight: 600; }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 22px;
}
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  flex: 1;
}
.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shop-sort select {
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  outline: none;
}
.shop-sort select:focus { border-color: var(--accent); }
.shop-tabs button {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}
.shop-tabs button:hover { color: var(--text); border-color: var(--border-strong); }
.shop-tabs button.is-on {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  border-color: transparent;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.3s var(--ease);
}
.shop-card:hover {
  border-color: rgba(76, 157, 255, 0.4);
  transform: translateY(-3px);
}
.shop-card-open {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.shop-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  background: #0a0e16;
}
.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.55s var(--ease), filter 0.4s ease;
}
.shop-card-shine {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 50%, transparent 62%);
  transform: translateX(-55%);
  pointer-events: none;
}
.shop-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.08), rgba(5, 8, 14, 0.55));
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}
.shop-card-overlay em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(47, 140, 240, 0.28);
  backdrop-filter: blur(8px);
  transform: translateY(8px);
  transition: transform 0.28s var(--ease);
}
.shop-card:hover .shop-card-media img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.shop-card:hover .shop-card-shine {
  animation: shop-shine 0.9s var(--ease);
}
.shop-card:hover .shop-card-overlay { opacity: 1; }
.shop-card:hover .shop-card-overlay em { transform: none; }
@keyframes shop-shine {
  from { transform: translateX(-55%); }
  to { transform: translateX(55%); }
}
.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 8px;
}
.shop-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.shop-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.shop-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--border);
}
.shop-card-foot strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}
.shop-card-foot .btn {
  height: 40px;
  padding: 0 14px;
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.shop-empty h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--text);
  font-size: 1.4rem;
}
.shop-empty p {
  margin: 0 auto;
  max-width: 40ch;
  line-height: 1.65;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}
.cart-drawer.is-open {
  pointer-events: auto;
}
.cart-drawer[hidden] { display: none !important; }
.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 7, 12, 0.62);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.cart-drawer.is-open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav) + 20px) 22px 22px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(104%);
  transition: transform 0.35s var(--ease);
}
.cart-drawer.is-open .cart-drawer-panel { transform: none; }

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cart-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
}
.cart-head h2 span { color: var(--accent-strong); }
.cart-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}
.cart-empty {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.cart-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: auto;
}
.cart-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.cart-line-media {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0e16;
}
.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-line-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-line-info strong {
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-line-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.cart-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cart-line-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}
.cart-line-qty em {
  min-width: 1.1em;
  text-align: center;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-line-remove {
  border: 0;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
}
.cart-line-remove:hover { color: #ff8b8b; }
.cart-vars {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(76, 157, 255, 0.28);
  background: rgba(47, 140, 240, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-vars label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.cart-vars input {
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.cart-vars input:focus { border-color: var(--accent); }
.cart-vars-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cart-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cart-total span { color: var(--text-muted); font-size: 0.9rem; }
.cart-total strong {
  font-family: var(--display);
  font-size: 1.3rem;
}
.cart-foot .btn {
  width: 100%;
  justify-content: center;
}
.cart-foot .btn-text { align-self: center; }

.pkg-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
}
.pkg-modal[hidden] { display: none; }
.pkg-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 7, 12, 0.72);
  cursor: pointer;
}
.pkg-modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.75);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.pkg-modal.is-open .pkg-modal-panel {
  transform: none;
  opacity: 1;
}
.pkg-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}
.pkg-modal-media {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(ellipse at center, rgba(47, 140, 240, 0.12), transparent 70%),
    #080c14;
}
.pkg-modal-media img {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
}
.pkg-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 24px;
}
.pkg-modal-body h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}
.pkg-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.pkg-modal-desc p { margin: 0 0 12px; }
.pkg-modal-desc ul,
.pkg-modal-desc ol {
  margin: 0 0 14px;
  padding: 0 0 0 1.2em;
}
.pkg-modal-desc li { margin: 0 0 6px; }
.pkg-modal-desc strong { color: var(--text); }
.pkg-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pkg-modal-foot strong {
  font-family: var(--display);
  font-size: 1.3rem;
}

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-modal-panel { grid-template-columns: 1fr; }
  .pkg-modal-media { min-height: 200px; padding: 18px; }
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* Lege zijkanten opvullen met een vervaagde versie van de productafbeelding */
.shop-card-bg {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.9) saturate(1.35);
  transform: scale(1.1);
  z-index: 0;
}
.shop-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 14, 22, 0.35) 100%);
  pointer-events: none;
}
.shop-card-media img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}
.shop-card:hover .shop-card-media img { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)) brightness(1.08); }
.shop-card-shine, .shop-card-overlay { z-index: 2; }

/* Productafbeeldingen zijn vierkant: laat ze het hele vak vullen */
.shop-card-media { aspect-ratio: 1 / 1; padding: 0; }
.shop-card-media img { object-fit: cover; filter: none; }
.shop-card:hover .shop-card-media img { filter: brightness(1.08); }

/* Login-popup (FiveM / cfx.re) vóór toevoegen aan winkelwagen */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.login-modal[hidden] { display: none; }
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.login-modal.is-open .login-modal-backdrop { opacity: 1; }
.login-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 32px 30px 26px;
  text-align: left;
  background:
    radial-gradient(ellipse at top left, var(--accent-soft), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(47, 140, 240, 0.06);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.login-modal.is-open .login-modal-panel {
  transform: none;
  opacity: 1;
}
.login-modal-close { top: 14px; right: 14px; }
.login-modal-close:hover { border-color: var(--accent); color: var(--accent-strong); }
.login-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 140, 240, 0.3);
  color: var(--accent-strong);
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.login-modal-icon svg { width: 24px; height: 24px; }
.login-modal-product {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.login-modal-panel h2 {
  margin: 0 0 10px;
  padding-right: 40px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}
.login-modal-text {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.login-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.login-modal-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ok);
}
.login-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.login-modal-actions .btn[aria-busy="true"] { filter: saturate(0.6); cursor: progress; }
@media (max-width: 520px) {
  .login-modal { padding: 16px; }
  .login-modal-panel { padding: 26px 20px 20px; }
  .login-modal-actions { flex-direction: column-reverse; }
  .login-modal-actions .btn,
  .login-modal-actions .btn-secondary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .login-modal-panel, .login-modal-backdrop { transition: none; }
}
