/* ================= BASIS ================= */
html, body{
    height:100%;
}

body{
    margin:0;
    font-family:'Quicksand', sans-serif;
    background:#F5F1E8;
    color:#1E1E1E;
}

.container{
    width:90%;
    max-width:1100px;
    margin:auto;
}


.btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 25px;
    background:#6B4E3D;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
}

/* ================= FRONTEND ================= */

.topbar{
    background:#C9A27E;
    padding:15px 0;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{ height:60px; }

.nav a{
    margin-left:20px;
    text-decoration:none;
    color:#1E1E1E;
    font-weight:600;
}

.hero{
    background:url('/assets/bg.jpg') center/cover no-repeat;
    padding:120px 20px;
    text-align:center;
}

.hero h1{
    font-family:'Patrick Hand', cursive;
    font-size:48px;
}

.categories{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin:60px auto;
}

.cat{
    background:#fff;
    padding:40px;
    text-align:center;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    font-weight:600;
}

.about{
    background:#C9A27E;
    padding:60px 20px;
    text-align:center;
}

.footer{
    background:#6B4E3D;
    color:#fff;
    text-align:center;
    padding:20px;
}

/* ================= SHOP ================= */

.shop{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:40px;
    margin:60px auto;
}

.products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:25px;
}

.product-card{
    background:#fff;
    padding:15px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    text-align:center;
}

/* ================= PRODUCT PAGE ================= */

.product-layout{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:60px;
    margin:80px auto;
    align-items:start;
}




/* ================= SETTINGS PAGE ================= */

.settings-card{
    background:#fff;
    padding:40px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    max-width:700px;
}

.form-group{
    margin-bottom:25px;
    display:flex;
    flex-direction:column;
}

/* ================= ADMIN LAYOUT ================= */

html, body{ height:100%; }

/* Topbar */
.admin-topbar{
    height:70px;
    background:#C9A27E;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 30px;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:15px;
}

/* Wrapper: sidebar + content */
.admin-wrapper{
    display:grid;
    grid-template-columns:240px 1fr;
    min-height:calc(100vh - 70px);
width 100%;
}

/* Sidebar */
.admin-sidebar{
    background:#4E382B;
    color:#fff;
    padding:30px 20px;
}

.admin-sidebar h2{
    margin-top:0;
    margin-bottom:25px;
    font-family:'Patrick Hand', cursive;
}

.admin-sidebar a{
    display:block;
    color:#fff;
    text-decoration:none;
    margin-bottom:10px;
    font-weight:600;
    padding:10px 12px;
    border-radius:8px;
}

.admin-sidebar a:hover{
    background:rgba(255,255,255,0.1);
}

/* Content */
.admin-content{
    background:#F5F1E8;
    padding:40px;
    min-width:0;
}

/* Cards */
.admin-cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-top:30px;
}

.admin-card{
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.big-number{
    font-size:42px;
    font-weight:800;
    color:#6B4E3D;
}

/* Footer */
.admin-footer{
    background:#6B4E3D;
    color:#fff;
    padding:15px 30px;
}

/* Avatar */
.avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
}
/* Settings mooie card */

.settings-card-wide{
    max-width:100%;
    margin-top:30px;
}

.form-row{
    display:flex;
    gap:30px;
    margin-bottom:25px;
}

.form-col{
    flex:1;
    display:flex;
    flex-direction:column;
}

.form-col label{
    font-weight:600;
    margin-bottom:8px;
}

.form-col input{
    padding:12px;
    border-radius:6px;
    border:1px solid #ccc;
    font-size:16px;
}

.maintenance-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#F5F1E8;
    padding:25px;
    border-radius:10px;
    margin-bottom:25px;
}

.maintenance-box h3{
    margin:0 0 5px 0;
}

.maintenance-box p{
    margin:0;
    font-size:14px;
    color:#555;
}
.admin-table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

.admin-table th,
.admin-table td{
    padding:12px;
    border-bottom:1px solid #ddd;
    text-align:left;
}

.admin-table th{
    background:#F5F1E8;
}
/* ========== LOGIN PAGINA ========== */

.login-body{
    background:#F5F1E8;
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.login-wrapper{
    width:100%;
    max-width:420px;
    padding:20px;
}

.login-card{
    background:#fff;
    padding:40px;
    border-radius:12px;
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
    text-align:center;
}

.login-card h1{
    font-family:'Patrick Hand', cursive;
    margin-bottom:25px;
}

.login-card input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:6px;
    border:1px solid #ccc;
    font-size:16px;
}

.login-error{
    background:#ffdede;
    color:#b00020;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
}
.action-btn{
    padding:6px 10px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    margin-right:6px;
    display:inline-block;
}

.btn-edit{
    background:#9CAF88;
    color:#fff;
}

.btn-delete{
    background:#d9534f;
    color:#fff;
}
.product-img{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:8px;
    margin-bottom:15px;
}
.product-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    margin:80px auto;
}


/* Categorie filter kaart */
.filters{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    height:fit-content;
}

.filters h3{
    margin-top:0;
    margin-bottom:20px;
    font-family:'Patrick Hand', cursive;
    font-size:26px;
    color:#6B4E3D;
}

/* Lijst */
.category-list{
    list-style:none;
    padding:0;
    margin:0;
}

.category-list li{
    margin-bottom:10px;
}

/* Links */
.category-list a{
    display:block;
    padding:10px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    color:#6B4E3D;
    background:#F5F1E8;
    transition:all .2s ease;
}

/* Hover */
.category-list a:hover{
    background:#C9A27E;
    color:white;
}

/* Actieve categorie */
.category-list a.active{
    background:#6B4E3D;
    color:white;
}
/* Winkelwagen popup */
.cart-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.cart-modal-content{
    background:white;
    padding:40px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 20px 40px rgba(0,0,0,0.2);
    max-width:400px;
    width:90%;
}

.cart-modal-content h2{
    margin-top:0;
    font-family:'Patrick Hand', cursive;
    color:#6B4E3D;
}

.modal-actions{
    margin-top:25px;
    display:flex;
    gap:15px;
    justify-content:center;
}
.checkout-options{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    margin-top:40px;
}

.checkout-card{
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    text-align:center;
}

.checkout-card h2{
    font-family:'Patrick Hand', cursive;
    color:#6B4E3D;
}
/* Checkout formulier */
.checkout-form{
    background:white;
    padding:40px;
    border-radius:14px;
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
    max-width:800px;
    margin:auto;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full{
    grid-column:1 / -1;
}

.form-group label{
    font-weight:600;
    margin-bottom:6px;
    color:#6B4E3D;
}

.form-group input{
    padding:12px 14px;
    border-radius:8px;
    border:1px solid #ddd;
    font-size:15px;
    transition:all .2s ease;
    background:#F5F1E8;
}

.form-group input:focus{
    outline:none;
    border-color:#C9A27E;
    background:white;
}

/* Overzicht box */
.order-summary{
    margin-top:30px;
    padding:20px;
    background:#F5F1E8;
    border-radius:10px;
}
.status-badge{
    padding:6px 10px;
    border-radius:6px;
    color:white;
    font-size:13px;
    font-weight:600;
}

/* Status selector */
.status-form{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    align-items:center;
    margin-bottom:25px;
}

.status-option{
    position:relative;
    cursor:pointer;
}

.status-option input{
    display:none;
}

.status-option span{
    padding:8px 14px;
    border-radius:20px;
    font-weight:600;
    color:white;
    display:inline-block;
    transition:all .2s ease;
    opacity:0.6;
}

/* Kleuren per status */
.status-option.status-nieuw span{ background:#d9534f; }
.status-option.status-in_behandeling span{ background:#f0ad4e; }
.status-option.status-verzonden span{ background:#5bc0de; }
.status-option.status-afgerond span{ background:#5cb85c; }

/* Actief */
.status-option input:checked + span{
    opacity:1;
    transform:scale(1.08);
    box-shadow:0 6px 15px rgba(0,0,0,0.15);
}
.form-group select{
    padding:12px 14px;
    border-radius:8px;
    border:1px solid #ddd;
    font-size:15px;
    background:#F5F1E8;
}

.form-group select:focus{
    outline:none;
    border-color:#C9A27E;
    background:white;
}

.cart-link{
    position:relative;
    padding-right:18px;
}

.cart-badge{
    position:absolute;
    top:-6px;
    right:-10px;
    background:#d9534f;
    color:white;
    font-size:12px;
    font-weight:bold;
    border-radius:50%;
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.status-badge{
    padding:6px 10px;
    border-radius:6px;
    color:white;
    font-size:13px;
    font-weight:600;
    display:inline-block;
}

/* status kleuren */
.status-badge.status-nieuw{
    background:#d9534f;
}

.status-badge.status-in_behandeling{
    background:#f0ad4e;
}

.status-badge.status-verzonden{
    background:#5bc0de;
}

.status-badge.status-afgerond{
    background:#5cb85c;
}
.builder-toolbar{
    margin-bottom:20px;
    display:flex;
    gap:10px;
}

.builder-canvas{
    background:white;
    min-height:500px;
    padding:20px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.builder-block{
    border:1px dashed #ccc;
    padding:15px;
    margin-bottom:10px;
    cursor:move;
}
.status-niet_betaald{
    background:#d9534f;
}

.status-betaald{
    background:#5cb85c;
}
/* Mooie admin select */
.admin-select{
    flex:1;
    padding:12px 14px;
    border-radius:8px;
    border:1px solid #ccc;
    background:white;
    font-size:15px;
    font-family:'Quicksand', sans-serif;
    appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg fill='%236B4E3D' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:16px;
}

/* Rij met select + knop */
.action-row{
    display:flex;
    gap:15px;
    align-items:center;
    margin-top:10px;
}

/* Kleuren voor betaling */
.select-niet_betaald{
    border:2px solid #d9534f;
    background:#fff5f5;
}

.select-betaald{
    border:2px solid #5cb85c;
    background:#f1fff3;
}

.builder-wrapper{
    display:flex;
    gap:20px;
}

.editor-column{
    flex:3;
}

.shortcode-column{
    flex:1;
    background:#f7f7f7;
    padding:15px;
    border-radius:8px;
    border:1px solid #ddd;
    height:650px;
    overflow:auto;
}

.shortcode-column h3{
    margin-top:0;
}

.sc{
    background:white;
    border:1px solid #ccc;
    padding:8px;
    margin-bottom:8px;
    cursor:pointer;
    border-radius:5px;
    transition:0.2s;
    font-size:14px;
}

.sc:hover{
    background:#e8f4ff;
    border-color:#2196f3;
}
.nice-select{
    width:100%;
    padding:10px 40px 10px 12px;
    font-size:14px;
    border:1px solid #ccc;
    border-radius:6px;
    background:#fff;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    position:relative;
    cursor:pointer;
}

/* custom pijl */
.nice-select{
    background-image: url("data:image/svg+xml;utf8,
    <svg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'>
        <path d='M5.516 7.548l4.484 4.59 4.484-4.59L16 8.936l-6 6.064-6-6.064z'/>
    </svg>");
    background-repeat:no-repeat;
    background-position:right 10px center;
    background-size:16px;
}

.nice-select:focus{
    outline:none;
    border-color:#6b4e3d;
    box-shadow:0 0 0 2px rgba(107,78,61,0.15);
}
.topbar-right{
    display:flex;
    align-items:center;
    gap:12px;
}

.topbar-btn{
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    background:#f3f3f3;
    color:#333;
    border:1px solid #ddd;
    transition:0.2s;
}

.topbar-btn:hover{
    background:#6b4e3d;
    color:#fff;
    border-color:#6b4e3d;
}

.logout-btn{
    background:#ffeaea;
    border-color:#ffb3b3;
    color:#c0392b;
}

.logout-btn:hover{
    background:#c0392b;
    color:#fff;
    border-color:#c0392b;
}

.avatar{
    width:32px;
    height:32px;
    border-radius:50%;
    object-fit:cover;
}

/* Topbar buttons */
.topbar-btn{
    padding:8px 14px;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    background:rgba(255,255,255,0.35);
    color:#1E1E1E;
    border:1px solid rgba(0,0,0,0.08);
    transition:all .2s ease;
    display:inline-flex;
    align-items:center;
    gap:8px;
    line-height:1;
}

.topbar-btn:hover{
    transform:translateY(-1px);
    background:#6B4E3D;
    color:#fff;
    border-color:#6B4E3D;
    box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

.logout-btn{
    background:rgba(217,83,79,0.12);
    border-color:rgba(217,83,79,0.25);
    color:#b00020;
}

.logout-btn:hover{
    background:#d9534f;
    border-color:#d9534f;
    color:#fff;
}
/* FORCE topbar buttons style */
.admin-topbar .topbar-btn{
    padding:8px 14px !important;
    border-radius:8px !important;
    text-decoration:none !important;
    font-size:13px !important;
    font-weight:700 !important;
    background:rgba(255,255,255,0.35) !important;
    color:#1E1E1E !important;
    border:1px solid rgba(0,0,0,0.08) !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    transition:all .2s ease !important;
}

.admin-topbar .topbar-btn:hover{
    background:#6B4E3D !important;
    color:#fff !important;
    border-color:#6B4E3D !important;
}

.admin-topbar .logout-btn{
    background:rgba(217,83,79,0.12) !important;
    border-color:rgba(217,83,79,0.25) !important;
    color:#b00020 !important;
}

.admin-topbar .logout-btn:hover{
    background:#d9534f !important;
    color:#fff !important;
}

.main-image img{
    width:100%;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    margin-bottom:15px;
}

.thumbs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.thumb{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
    border:2px solid transparent;
    transition:0.2s;
}

.thumb:hover{
    border-color:#6B4E3D;
    transform:scale(1.05);
}
/* ===== Quantity input fix ===== */

.qty-wrapper{
    display:flex;
    align-items:center;
    border:2px solid #C9A27E;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    height:44px;
}

.qty-wrapper button{
    width:44px;
    height:44px;
    border:none;
    background:#F5F1E8;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    color:#6B4E3D;
}

.qty-wrapper button:hover{
    background:#6B4E3D;
    color:#fff;
}

/* DIT is de magic fix */
.qty-wrapper input[type=number]{
    width:60px;
    height:44px;
    border:none;
    text-align:center;
    font-size:16px;
    font-weight:700;
    font-family:'Quicksand', sans-serif;
    background:white;

    /* verwijder browser styling */
    -moz-appearance:textfield;
    appearance:textfield;
}

/* Chrome pijltjes weg */
.qty-wrapper input[type=number]::-webkit-outer-spin-button,
.qty-wrapper input[type=number]::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.qty-wrapper input:focus{
    outline:none;
}

/* Knop naast quantity */
.buy-box{
    display:flex;
    gap:20px;
    align-items:center;
    margin-top:25px;
}

.add-cart-btn{
    padding:12px 28px;
    font-size:16px;
}
/* ===== Product pagina afbeelding fix ===== */

/* === FORCE main product image size === */

.product-image{
    justify-self:start;
}

.product-image img{
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
}



/* thumbnails netjes uitlijnen */
.product-image .thumbs{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.product-image .thumbs img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
    border:2px solid #ddd;
    transition:.2s;
}

.product-image .thumbs img:hover{
    border-color:#6B4E3D;
}

/* ===== ADMIN sticky footer fix ===== */

html, body{
    height:100%;
}

.admin-layout{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.admin-wrapper{
    flex:1;
    display:grid;
    grid-template-columns:240px 1fr;
}

.admin-footer{
    margin-top:auto;
}
/* ===== Frontend layout ===== */
body:not(.admin){
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

body:not(.admin) .container{
    flex:1;
}
.price-box{
    margin:18px 0 25px 0;
}

.main-price{
    font-size:34px;
    font-weight:800;
    color:#6B4E3D;
    line-height:1;
}

.price-sub{
    font-size:13px;
    color:#777;
    margin-top:6px;
}

.shipping-sub{
    margin-top:10px;
    font-size:14px;
    color:#555;
}

.shipping-sub.free{
    color:#5cb85c;
    font-weight:700;
}

