/* === Reset & Basis === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baloo 2', cursive, sans-serif;
    background: #fff5f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Regenboog balk === */
.rainbow-bar {
    height: 8px;
    background: linear-gradient(90deg, 
        #ff6b6b, #ffa502, #ffd43b, #51cf66, #339af0, #845ef7, #f06595
    );
}

/* === Header === */
header {
    background: linear-gradient(135deg, #ff9ff3 0%, #feca57 50%, #48dbfb 100%);
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: sparkle 8s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(180deg); }
}

header h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 3px 3px 0 #e056a0, 
                 -1px -1px 0 #e056a0,
                 1px -1px 0 #e056a0,
                 -1px 1px 0 #e056a0;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
}

/* === Info Banner === */
.info-banner {
    background: linear-gradient(135deg, #dff9fb, #c7ecee);
    border: 3px dashed #22a6b3;
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 700px;
    text-align: center;
    font-size: 1.1rem;
    animation: bounce-in 0.6s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* === Producten Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* === Product Kaart === */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    animation: card-appear 0.5s ease backwards;
}

.product-card:nth-child(1) { border-color: #ff6b6b; }
.product-card:nth-child(2) { border-color: #ffa502; }
.product-card:nth-child(3) { border-color: #2ed573; }
.product-card:nth-child(4) { border-color: #1e90ff; }
.product-card:nth-child(5) { border-color: #a55eea; }
.product-card:nth-child(6) { border-color: #f06595; }
.product-card:nth-child(n+7) { border-color: #feca57; }

.product-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@keyframes card-appear {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-image-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    font-size: 4rem;
}

.product-info {
    padding: 1.2rem;
    text-align: center;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 0.3rem;
}

.product-description {
    font-size: 0.95rem;
    color: #636e72;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #e056a0;
    margin-bottom: 0.8rem;
}

.order-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(243, 104, 224, 0.3);
}

.order-button:hover {
    background: linear-gradient(135deg, #f368e0, #e056a0);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(243, 104, 224, 0.5);
}

/* === Leeg bericht === */
.empty-message {
    text-align: center;
    padding: 3rem;
    font-size: 1.5rem;
    color: #636e72;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    margin-top: auto;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
    position: relative;
}

.admin-link {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
}

/* ===========================
   ADMIN PAGINA STYLES
   =========================== */

.admin-header {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    text-align: center;
    padding: 1.5rem;
}

.admin-header h1 {
    color: #fff;
    font-size: 2rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.admin-container {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.admin-nav {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-nav a {
    color: #6c5ce7;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-nav a:hover {
    text-decoration: underline;
}

/* === Formulier === */
.product-form {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #a29bfe;
    margin-bottom: 2rem;
}

.product-form h2 {
    text-align: center;
    color: #6c5ce7;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #2d3436;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a29bfe;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.image-preview {
    margin-top: 0.5rem;
    max-width: 200px;
    max-height: 150px;
    border-radius: 10px;
    display: none;
}

.form-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,184,148,0.3);
}

.btn-save:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,184,148,0.5);
}

.btn-cancel {
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    color: #2d3436;
}

.btn-cancel:hover {
    transform: scale(1.05);
}

/* === Admin Producten Lijst === */
.admin-products h2 {
    text-align: center;
    color: #6c5ce7;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.admin-product-item {
    background: #fff;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 5px solid #a29bfe;
}

.admin-product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
}

.admin-product-thumb-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.admin-product-details {
    flex-grow: 1;
}

.admin-product-details strong {
    font-size: 1.1rem;
    color: #2d3436;
}

.admin-product-details .price {
    color: #e056a0;
    font-weight: 700;
}

.admin-product-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-edit {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: none;
    font-family: 'Baloo 2', cursive;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-edit:hover { transform: scale(1.05); }

.btn-delete {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: none;
    font-family: 'Baloo 2', cursive;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-delete:hover { transform: scale(1.05); }

.admin-empty {
    text-align: center;
    padding: 2rem;
    color: #636e72;
    font-size: 1.2rem;
}

/* === Email instellingen === */
.email-settings {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #fdcb6e;
    margin-bottom: 2rem;
}

.email-settings h2 {
    text-align: center;
    color: #e17055;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* === Download sectie === */
.download-section {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #55efc4;
    margin-bottom: 2rem;
    text-align: center;
}

.download-section h2 {
    color: #00b894;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.download-section p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #636e72;
}

.btn-download {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,184,148,0.3);
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,184,148,0.5);
}

/* === Responsive === */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .admin-product-item {
        flex-direction: column;
        text-align: center;
    }

    .admin-product-actions {
        justify-content: center;
    }

    .info-banner {
        margin: 1rem;
        font-size: 1rem;
    }
}
