/* =============================================
   PabloTCG — Modern Orange & White
   Sharp. Bold. TCG Energy.
   ============================================= */

:root {
    --orange:       #FF5500;
    --orange-hi:    #FF7733;
    --orange-lo:    #CC4400;
    --orange-tint:  #FFF3EE;
    --orange-mid:   rgba(255,85,0,0.12);
    --white:        #FFFFFF;
    --surface:      #FAFAFA;
    --border:       #EBEBEB;
    --dark:         #0F0F0F;
    --text:         #1A1A1A;
    --muted:        #888;
    --card-shadow:  0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --card-hover:   0 4px 8px rgba(0,0,0,0.08), 0 16px 40px rgba(255,85,0,0.18);
    --radius:       10px;
    --radius-lg:    16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* GRID BACKGROUND */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,85,0,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,85,0,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
}
.sq { display: none; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1320px; margin: 0 auto; padding: 0 2rem;
    height: 64px; display: flex; align-items: center; justify-content: center;
}
.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.1rem; letter-spacing: 0.08em; user-select: none; line-height: 1;
}
.logo-pablo { color: var(--dark); }
.logo-tcg {
    color: var(--orange);
    position: relative;
}
.logo-tcg::after {
    content: ''; position: absolute;
    bottom: 0px; left: 0; right: 0;
    height: 3px; background: var(--orange); border-radius: 2px;
}

/* CATEGORY NAV */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 64px; z-index: 190;
}
.nav-inner {
    max-width: 1320px; margin: 0 auto; padding: 0.65rem 2rem;
    display: flex; gap: 0.4rem; overflow-x: auto; align-items: center;
    scrollbar-width: none; -ms-overflow-style: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.cat-btn {
    display: inline-block; padding: 0.42rem 1.1rem; border-radius: 99px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.84rem;
    white-space: nowrap; text-decoration: none;
    color: var(--muted); background: transparent;
    border: 1.5px solid var(--border);
    transition: all 0.18s ease;
}
.cat-btn:hover {
    color: var(--orange); border-color: var(--orange); background: var(--orange-tint);
}
.cat-btn.active {
    color: var(--white); background: var(--orange); border-color: var(--orange);
    box-shadow: 0 2px 12px rgba(255,85,0,0.3);
}

/* SOCIALS BAR */
.socials-bar { background: var(--dark); position: relative; z-index: 1; }
.socials-inner {
    max-width: 1320px; margin: 0 auto; padding: 0.5rem 2rem;
    display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
}
.follow-label {
    color: rgba(255,255,255,0.3); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em; margin-right: 0.6rem;
}
.social-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: rgba(255,255,255,0.65); text-decoration: none;
    font-size: 0.78rem; font-weight: 500;
    padding: 0.28rem 0.65rem; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.18s;
}
.social-link:hover {
    color: var(--white);
    background: rgba(255,85,0,0.22);
    border-color: rgba(255,85,0,0.4);
    transform: translateY(-1px);
}

/* MAIN */
.main-content { position: relative; z-index: 1; padding: 2.5rem 0 5rem; flex: 1; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }

.section-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem; color: var(--dark); letter-spacing: 0.06em; line-height: 1;
    white-space: nowrap;
}
.title-line {
    flex: 1; height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* PRODUCTS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

.product-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: cardIn 0.4s ease backwards;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
    border-color: rgba(255,85,0,0.18);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(1)  { animation-delay: 0.05s; }
.product-card:nth-child(2)  { animation-delay: 0.10s; }
.product-card:nth-child(3)  { animation-delay: 0.15s; }
.product-card:nth-child(4)  { animation-delay: 0.20s; }
.product-card:nth-child(5)  { animation-delay: 0.25s; }
.product-card:nth-child(n+6){ animation-delay: 0.30s; }

.product-image-wrap {
    position: relative; width: 100%; height: 220px;
    background: linear-gradient(145deg, var(--orange-tint), #FFE8D8);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.product-image-wrap img {
    width: 100%; height: 100%; object-fit: contain; padding: 18px;
    transition: transform 0.35s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.product-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
    background: linear-gradient(to top, rgba(255,85,0,0.05), transparent);
    pointer-events: none;
}

.product-info { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }

.product-name {
    font-weight: 700; font-size: 0.93rem; color: var(--dark);
    margin-bottom: 0.3rem; line-height: 1.35;
}
.product-desc {
    font-size: 0.79rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.8rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    margin-top: auto;
}
.product-price {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.55rem; color: var(--orange); letter-spacing: 0.03em; line-height: 1;
}
.in-stock {
    font-size: 0.67rem; font-weight: 700;
    padding: 0.2rem 0.5rem; border-radius: 99px;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: #DCFCE7; color: #15803D;
}

/* SOLD OUT CARDS */
.product-card.sold-out {
    pointer-events: none;
    cursor: default;
}
.product-card.sold-out:hover {
    transform: none;
    box-shadow: var(--card-shadow);
    border-color: var(--border);
}
.product-card.sold-out .product-image-wrap img,
.product-card.sold-out .product-placeholder {
    filter: grayscale(1) opacity(0.5);
}
.product-card.sold-out .product-name,
.product-card.sold-out .product-desc,
.product-card.sold-out .product-price {
    opacity: 0.45;
}
.sold-out-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.18);
    z-index: 2;
}
.sold-out-overlay span {
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
}

/* EMPTY */
.empty-state { text-align: center; padding: 6rem 2rem; color: var(--muted); }
.empty-icon {
    font-size: 3.5rem; margin-bottom: 1rem; display: block;
    animation: bounce 2.5s ease infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.38); z-index: 1; }
.footer-inner {
    max-width: 1320px; margin: 0 auto; padding: 1.1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.81rem;
}
.footer-inner strong { color: var(--orange); font-weight: 700; }
.admin-link {
    color: rgba(255,255,255,0.18); text-decoration: none;
    font-size: 0.7rem; letter-spacing: 0.04em; transition: color 0.2s;
}
.admin-link:hover { color: var(--orange); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-inner { padding: 0 1rem; height: 56px; }
    .logo { font-size: 1.75rem; }
    .category-nav { top: 56px; }
    .nav-inner { padding: 0.5rem 1rem; }
    .container { padding: 0 1rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
    .product-image-wrap { height: 160px; }
    .section-title { font-size: 1.75rem; }
    .socials-inner { padding: 0.5rem 1rem; }
    .main-content { padding: 1.5rem 0 3.5rem; }
    .footer-inner { padding: 1rem; }
}
@media (max-width: 420px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .product-price { font-size: 1.3rem; }
    .product-image-wrap { height: 140px; }
}


/* LIVE BANNER */
.live-banner {
    position: relative;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    z-index: 10;
    overflow: hidden;
}
.live-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.04) 10px,
        rgba(255,255,255,0.04) 20px
    );
}
.live-banner-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}
.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.live-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: livepulse 1.2s ease infinite;
    flex-shrink: 0;
}
@keyframes livepulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}
.live-platforms {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}
.live-platform-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.live-platform-link:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}
.live-platform-link svg { flex-shrink: 0; }
.live-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .live-banner-inner { padding: 1rem; gap: 0.85rem; }
    .live-title { font-size: 1rem; }
    .live-platform-link { font-size: 0.9rem; padding: 0.45rem 0.9rem; }
}



/* CATEGORY SECTIONS */
.cat-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px; /* fallback voor browsers zonder JS */
}
.cat-section:last-child {
    margin-bottom: 2rem;
}


/* UITVERKOCHT SECTIE */
.sold-out-section .section-title { color: var(--muted); opacity: 0.6; }
.sold-out-section .title-line { background: #ccc; }

.sold-out-cat-tag {
    font-size: 0.62rem; font-weight: 700;
    padding: 0.18rem 0.5rem; border-radius: 99px;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: #f3f4f6; color: #9ca3af;
    white-space: nowrap;
}

.cat-btn-soldout {
    opacity: 0.55;
}
.cat-btn-soldout.active,
.cat-btn-soldout:hover {
    opacity: 1;
}

/* =============================================
   DARK MODE
   ============================================= */
[data-theme="dark"] {
    --white:        #141414;
    --surface:      #1a1a1a;
    --border:       #2a2a2a;
    --dark:         #f0f0f0;
    --text:         #e8e8e8;
    --muted:        #888;
    --orange-tint:  #1f1208;
    --card-shadow:  0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.3);
    --card-hover:   0 4px 8px rgba(0,0,0,0.4), 0 16px 40px rgba(255,85,0,0.22);
}
[data-theme="dark"] body {
    background: #141414;
    color: var(--text);
}
[data-theme="dark"] .bg-pattern {
    background-image:
        linear-gradient(rgba(255,85,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,85,0,0.04) 1px, transparent 1px);
}
[data-theme="dark"] .site-header {
    background: rgba(20,20,20,0.92);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .category-nav {
    background: #141414;
    border-bottom-color: var(--border);
}
[data-theme="dark"] .product-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
[data-theme="dark"] .product-image-wrap {
    background: linear-gradient(145deg, #1f1208, #2a1a0a);
}
[data-theme="dark"] .product-name { color: #e8e8e8; }
[data-theme="dark"] .section-title { color: #e8e8e8; }
[data-theme="dark"] .site-footer { background: #0a0a0a; }
[data-theme="dark"] .footer-inner { border-top-color: #222; }
[data-theme="dark"] .in-stock { background: #0f2e1a; color: #4ade80; }
[data-theme="dark"] .sold-out-cat-tag { background: #2a2a2a; color: #666; }
[data-theme="dark"] .cat-btn {
    color: #888;
    border-color: #2a2a2a;
    background: transparent;
}
[data-theme="dark"] .cat-btn:hover {
    color: var(--orange);
    border-color: var(--orange);
    background: #1f1208;
}

/* DARK MODE TOGGLE BUTTON */
.darkmode-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--text);
}
.darkmode-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* =============================================
   SALE BADGE
   ============================================= */
.product-image-wrap { position: relative; }

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: var(--orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255,85,0,0.4);
    animation: salePulse 2s ease infinite;
}
@keyframes salePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255,85,0,0.4); }
    50%       { box-shadow: 0 2px 16px rgba(255,85,0,0.7); }
}
.price-old {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 0.35rem;
    font-weight: 500;
}
.product-price.sale-price {
    color: var(--orange);
}
