:root {
    --primary-color: #6c5ce7;
    --accent-color: #ff7675;
    --bg-dark: #2c3e50; 
    --card-bg: #1a1a1a;
    --white: #ffffff;
    --btn-gradient: linear-gradient(135deg, #6c5ce7, #8e82ff);
}

/* --- BASIS --- */
body {
    background-color: var(--bg-dark);
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: var(--white);
}

header { 
    background: linear-gradient(135deg, var(--primary-color), #a29bfe); 
    color: white; 
    padding: 2rem 1rem; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.shop-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
    max-width: 1100px; 
    margin: 3rem auto; 
    padding: 1rem; 
}

/* --- PRODUCTKAART --- */
.card { 
    background: var(--card-bg); 
    border-radius: 15px; 
    overflow: hidden; 
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card:hover { 
    transform: translateY(-8px); 
}

/* --- DE FOTO (POLAROID LOOK) --- */
.product-image {
    background-color: white !important; 
    padding: 10px !important;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    height: 220px !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 15px;
}

.product-image img {
    width: auto !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important; 
    display: block !important;
}

/* --- TEKST INFO KAARTEN --- */
.card-info {
    text-align: center;
    padding: 10px 5px;
}

.card-info h3 {
    color: #ffeb3b !important; 
    margin: 10px 0;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.card-info p {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.4;
    margin-bottom: 15px;
    height: 3em; 
}

.price {
    display: block;
    font-weight: bold;
    font-size: 1.4rem;
    color: #00d2d3; 
    margin: 10px 0;
}

/* --- KNOPPEN --- */
.btn-open { 
    background: var(--btn-gradient) !important;
    color: white !important; 
    border: none !important; 
    padding: 12px 20px !important; 
    border-radius: 50px !important; 
    cursor: pointer; 
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transition: 0.3s;
}

/* --- MODAL (POPUP) --- */
/* --- MODAL (POPUP) VOLLEDIGE FIX --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 9999; /* Zorg dat hij overal bovenop staat */
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); 
    justify-content: center; 
    align-items: center;
    padding: 10px; 
}

.modal-content { 
    background: #fff !important; 
    color: #333 !important;
    width: 100%;
    max-width: 500px; 
    max-height: 85vh; 
    border-radius: 20px; 
    overflow-y: auto !important; 
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    display: block !important; /* Forceer blok-weergave */
}

/* DE BELANGRIJKSTE FIX VOOR DE TEKST */
#modalDescription, 
.modal-details, 
.modal-content div {
    padding: 25px 35px !important; /* Forceer ruimte links en rechts */
    box-sizing: border-box !important; /* Zorg dat padding de breedte niet kapot maakt */
    text-align: left;
}

.modal-content img { 
    width: 100% !important; 
    height: auto !important;
    max-height: 280px; 
    object-fit: contain; 
    background: #f1f1f1; 
    display: block;
    margin: 0 auto;
}

/* Titels in de popup */
.modal-content h2, 
.modal-content h3 {
    margin-top: 0 !important;
    padding-bottom: 10px;
    color: #1a1a1a;
}

/* Sluitknop aanpassen voor betere zichtbaarheid */
.close-button { 
    position: sticky; 
    top: 10px; 
    right: 15px; 
    float: right;
    color: #333; 
    font-size: 32px; 
    font-weight: bold;
    cursor: pointer; 
    z-index: 10000;
    background: white;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#paypal-button-container {
    margin: 20px 0;
    width: 100%;
}