/* Vuurwerktekoop: webshop-opmaak (productkaarten, filters, categorieen, nieuwe homepage)
   HTML & PHP by Ferhat Remory (ferhat.io) */

:root { --glow: rgba(255, 138, 43, 0.28); --stage: radial-gradient(70% 60% at 50% 62%, rgba(255, 138, 43, 0.16), rgba(255, 61, 46, 0.05) 55%, transparent 75%); --ok: #36c36b; --warn: #ffb02e; }
:root[data-theme="light"] { --glow: rgba(224, 48, 31, 0.2); --stage: radial-gradient(70% 60% at 50% 62%, rgba(255, 138, 43, 0.18), rgba(255, 61, 46, 0.05) 55%, transparent 75%); --ok: #1c9a4f; --warn: #b36b00; }
.vw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Homepage hero: lager, met producten ernaast ----- */
.vw-hero { position: relative; display: flex; align-items: center; min-height: clamp(380px, 46vh, 470px); padding: var(--nav-h) 0 56px; overflow: hidden; background: var(--bg-alt); }
.vw-hero .w-hero__track { position: absolute; inset: 0; }
.vw-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,6,0.9) 0%, rgba(5,5,6,0.62) 52%, rgba(5,5,6,0.35) 100%), linear-gradient(180deg, rgba(5,5,6,0.25) 0%, rgba(5,5,6,0.85) 100%); }
.vw-hero--plain .vw-hero__scrim { background: radial-gradient(60% 90% at 78% 40%, rgba(255, 138, 43, 0.22), transparent 70%), linear-gradient(160deg, #17171b 0%, #0b0b0c 100%); }
.vw-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px; width: 100%; }
.vw-hero__text h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #fff; margin: 0 0 22px; }
.vw-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.vw-show { position: relative; height: 320px; }
.vw-show__item { position: absolute; display: block; transition: transform 0.35s ease; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55)); }
.vw-show__item img { width: 100%; height: 100%; object-fit: contain; }
.vw-show__item:hover { transform: translateY(-8px) rotate(0deg) !important; }
.vw-show__item--0 { left: 30%; top: 2%; width: 40%; height: 92%; z-index: 3; }
.vw-show__item--1 { left: 0; top: 18%; width: 34%; height: 72%; transform: rotate(-9deg); z-index: 2; }
.vw-show__item--2 { right: 0; top: 14%; width: 34%; height: 74%; transform: rotate(8deg); z-index: 2; }
.vw-show__tag { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(11, 11, 12, 0.86); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ----- Info: melding en voordelen ----- */
.vw-info { position: relative; z-index: 3; margin-top: -30px; }
.vw-notice { padding: 13px 20px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 61, 46, 0.16), rgba(255, 138, 43, 0.1)); border: 1px solid rgba(255, 138, 43, 0.35); color: var(--text); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; text-align: center; margin-bottom: 14px; backdrop-filter: blur(8px); }
.vw-usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vw-usp { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.vw-usp strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--text); }
.vw-usp span:not(.vw-usp__icon) { display: block; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.vw-usp__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-gradient); color: #fff; }

/* ----- Secties ----- */
.vw-section { padding: 56px 0 24px; }
.vw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.vw-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.vw-head a { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: var(--accent-2); white-space: nowrap; }
.vw-head a:hover { color: var(--accent); }

/* Categoriekaarten met productfoto */
.vw-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vw-cat { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.vw-cat::before { content: ''; position: absolute; inset: 0; background: var(--stage); opacity: 0.9; transition: opacity 0.3s ease; }
.vw-cat img { position: absolute; left: 50%; top: 44%; width: 62%; height: 62%; transform: translate(-50%, -50%); object-fit: contain; transition: transform 0.4s ease; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.4)); }
.vw-cat:hover { transform: translateY(-5px); border-color: rgba(255, 138, 43, 0.5); box-shadow: 0 22px 40px -22px var(--glow); }
.vw-cat:hover img { transform: translate(-50%, -52%) scale(1.07); }
.vw-cat__label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 14px 18px 16px; background: linear-gradient(180deg, transparent, var(--surface) 70%); }
.vw-cat__label strong { font-family: 'Space Grotesk', sans-serif; font-size: 17px; color: var(--text); }
.vw-cat__label em { font-style: normal; font-size: 12.5px; color: var(--text-muted); }

.vw-cat--all { background: var(--accent-gradient); border-color: transparent; }
.vw-cat--all::before { display: none; }
.vw-cat--all:hover { border-color: transparent; box-shadow: 0 22px 40px -18px rgba(255, 61, 46, 0.7); }
.vw-cat__all-icon { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; transition: transform 0.3s ease; }
.vw-cat--all:hover .vw-cat__all-icon { transform: translate(-40%, -50%); }
.vw-cat--all .vw-cat__label { background: none; }
.vw-cat--all .vw-cat__label strong, .vw-cat--all .vw-cat__label em { color: #fff; }

/* ----- Productkaarten ----- */
.vw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vw-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.vw-card:hover { transform: translateY(-5px); border-color: rgba(255, 138, 43, 0.5); box-shadow: 0 24px 44px -24px var(--glow); }
.vw-card[hidden] { display: none; }
.vw-card__stage { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--stage); }
.vw-card__stage img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 22px 20px; object-fit: contain; transition: transform 0.4s ease; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.38)); }
.vw-card:hover .vw-card__stage img { transform: scale(1.06); }
.vw-badge { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(11, 11, 12, 0.78); border: 1px solid rgba(255, 255, 255, 0.14); color: #f5f5f6; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11.5px; backdrop-filter: blur(6px); }
.vw-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(54, 195, 107, 0.2); }
.vw-badge--out::before { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 176, 46, 0.2); }
.vw-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 4px 18px 18px; }
.vw-card__name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.vw-card__name:hover { color: var(--accent-2); }
.vw-card__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.vw-card__price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: var(--text); }
.vw-card__form { margin: 0; }
.vw-add { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent-gradient); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 8px 20px -10px rgba(255, 61, 46, 0.8); }
.vw-add:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255, 61, 46, 0.9); }
.vw-add--ghost { background: var(--ghost-bg); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.vw-add--ghost:hover { background: var(--ghost-bg-hover); box-shadow: none; }

/* ----- Gereedschapsbalk ----- */
.vw-tools { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; align-items: center; gap: 14px 18px; padding: 14px 16px; margin-bottom: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.vw-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }
.vw-search:focus-within { border-color: var(--accent-2); }
.vw-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.vw-chips { grid-column: 1 / -1; order: 3; display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.vw-chips::-webkit-scrollbar { display: none; }
.vw-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.vw-chip em { font-style: normal; font-weight: 500; font-size: 11.5px; opacity: 0.7; }
.vw-chip:hover { color: var(--text); border-color: rgba(255, 138, 43, 0.5); }
.vw-chip.is-active { color: #fff; background: var(--accent-gradient); border-color: transparent; }
.vw-tools__right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.vw-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; white-space: nowrap; }
.vw-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.vw-sort select { height: 44px; padding: 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 13.5px; }
.vw-empty { padding: 48px 0; text-align: center; color: var(--text-muted); }

/* ----- Afsluitende band en melding ----- */
.vw-band { margin-top: 36px; padding: 52px 0; background: radial-gradient(60% 120% at 80% 50%, rgba(255, 138, 43, 0.2), transparent 70%), var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vw-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.vw-band h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.vw-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(54, 195, 107, 0.45); color: var(--text); font-size: 14px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6); animation: vw-toast 5s ease forwards; }
.vw-toast a { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
@keyframes vw-toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 8%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 12px); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .vw-card, .vw-cat, .vw-card__stage img, .vw-cat img, .vw-show__item { transition: none; } .vw-toast { animation-duration: 0.01s; animation-delay: 5s; } }

/* ----- Responsief ----- */
@media (max-width: 1100px) { .vw-grid { grid-template-columns: repeat(3, 1fr); } .vw-cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
	.vw-hero__grid { grid-template-columns: 1fr; }
	.vw-show { display: none; }
	.vw-hero { min-height: 0; padding-bottom: 60px; }
	.vw-usps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.vw-hero__cta { flex-wrap: nowrap; }
	.vw-hero__cta .btn { padding: 12px 18px; font-size: 14px; }
	.vw-notice { font-size: 11.5px; padding: 11px 14px; }
	.vw-usps { gap: 10px; }
	.vw-usp { padding: 12px 14px; gap: 12px; }
	.vw-usp__icon { width: 38px; height: 38px; }
	.vw-usp span:not(.vw-usp__icon) { font-size: 12.5px; }
	.vw-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.vw-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.vw-card__body { padding: 2px 12px 14px; }
	.vw-card__buy { flex-wrap: wrap; }
	.vw-add { padding: 9px 12px; }
	.vw-add span { display: none; }
	.vw-add--ghost span { display: inline; }
	.vw-card__price { font-size: 18px; }
	.vw-tools { grid-template-columns: 1fr; }
	.vw-tools__right { justify-content: space-between; }
	.vw-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
	.vw-chips::-webkit-scrollbar { display: none; }
}


/* Smalle schermen: niets mag buiten de kaart of het scherm vallen */
body.vw2 { overflow-x: clip; }
.vw-tools { min-width: 0; max-width: 100%; }
.vw-tools > * { min-width: 0; }
.vw-search input { width: 100%; min-width: 0; font-size: 16px; }
.vw-sort { display: block; min-width: 0; }
.vw-sort select { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; font-size: 16px; }
@media (max-width: 700px) {
	.vw-tools__right { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; justify-content: stretch; }
	.vw-chips { max-width: 100%; }
	.vw-card__stage img { padding: 16px 12px; }
	.vw-card__name { font-size: 14.5px; }
}
@media (max-width: 380px) { .vw-container-fix, .vw2 .container { padding-left: 16px; padding-right: 16px; } .vw-grid { gap: 10px; } }
@media (max-width: 700px) { .vw-cat img { top: 38%; width: 66%; height: 50%; } .vw-cat__label { padding: 10px 14px 12px; } .vw-cat__label strong { font-size: 15px; } .vw-cat__all-icon { width: 52px; height: 52px; top: 38%; } }

.vw-toast--error { border-color: rgba(255, 61, 46, 0.55); animation-duration: 7s; }
