:root {
    --primary-color: #0070d2;
    --secondary-color: #f3f3f3;
    --font-color: #333;
    --border-color: #ddd;
    --danger-color: #c23934;
    --warning-color: #ffb75d;
    --success-color: #04844b;
}
html {
    scrollbar-gutter: stable;
}

body {
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: var(--font-color);
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #ffffff; 
    padding: 10px 0;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;      
    top: 0;               
    left: 0;
    width: 100%;
    padding-right: calc(100vw - 100%);
    box-sizing: content-box;
    
    z-index: 1000;       
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}
.header-right {
    display: flex;
    align-items: center;
    gap: 25px; 
}

.header-search-form {
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.header-search-form input[type="search"] {
    border: none;
    padding: 10px 15px;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.header-search-form button {
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}

.header-search-form button:hover {
    background-color: #005bb5;
}
.header-logo {
    height: 50px; 
    width: auto; 
}
footer {
	background-color: #2FB39E; 
    text-align: center;
    color: #f8f9fa; 
	font-weight: bold;
}

main {
    padding-top: 100px; 
	flex-grow: 1;
}

main:has(.login-container) {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--font-color);
}
.btn-sm {
    font-size: 12px;
	color: white;
    font-size: 12px;
    padding: 12px 24px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 12px 24px;
}
.btn-primary:hover {
    background-color: #005bb5; 
}
.action-buttons {
    display: flex;
    align-items: center; 
    gap: 8px; 
}
.btn-secondary { 
	background-color: #e3dfdf; 
}
.btn-secondary:hover {
	background-color: #d3d4d5;
}
.btn-danger {
    background-color: var(--danger-color);
    color: white;
	
}
.btn-danger:hover {
    background-color: #a52823; 
}
.btn:disabled { background-color: #e0e0e0; cursor: not-allowed; }

.login-container { 
	text-align: center; 
	margin-top: 0px; 
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.stock-indicator {
    width: 100%;
    height: 5px;
    margin-bottom: 10px;
}
.product-card strong { font-size: 18px; margin-bottom: 5px; }
.product-card p { font-size: 14px; color: #666; flex-grow: 1; }
.product-card input[type="number"] { width: 60px; padding: 5px; margin-right: 10px; }

.cart-summary {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
}

.checkout-layout { display: flex; gap: 30px; }
.order-summary { flex: 1; }
.address-form { flex: 2; }
.order-summary ul { list-style: none; padding: 0; }
.order-summary li { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #eee; }
.address-form textarea { width: 100%; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 15px; }
.form-check { margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; background-color: white; }
th, td { padding: 12px; border: 1px solid #ddd; text-align: left; }
th { background-color: #f2f2f2; }
.role-form { display: flex; gap: 10px; align-items: center; }
.role-form select { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.admin-menu {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.admin-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}
.admin-menu-item:hover {
    background-color: #f1f1f1;
}
.admin-menu-item i {
    font-size: 36px;
    margin-bottom: 15px;
}

.product-card .product-name {
    font-size: 12px;
    color: #888;
    margin-top: 0;
    flex-grow: 1;
}

.product-image {
    width: 100%;
    height: 160px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa; 
    border: 1px solid #e9ecef;
    border-radius: 4px;
    position: relative; 
}

.product-image .clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-image .clickable-image:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.image-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none; 
}


.modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

.modal-prev,
.modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px; 
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.modal-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.modal-prev {
    left: 0;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.placeholder-icon {
    font-size: 4em; 
    color: #ced4da; 
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--font-color);
    transition: box-shadow 0.2s;
    text-align: center;
}
.category-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.category-card i {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.header-bar h2 a { color: var(--primary-color); text-decoration: none; }
.header-bar h2 a:hover { text-decoration: underline; }

#shopping-cart-widget {
    position: relative;
    top: 50%;
    right: 20px;
}
.cart-icon-container {
    position: relative;
    cursor: pointer;
    padding: 10px;
}
.cart-icon-container i {
    font-size: 24px;
    color: var(--font-color); 
}
.cart-item-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
#cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 15px;
	color: var(--font-color);
}
#cart-dropdown.active {
    display: block;
}
#cart-dropdown-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}
#cart-dropdown-items .cart-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}
#cart-dropdown-items .cart-item:last-child {
    border-bottom: none;
}
#cart-dropdown-items .cart-item-name {
    font-weight: bold;
    font-size: 14px;
    flex-grow: 1;
    margin-right: 10px;
}
#cart-checkout-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.hidden {
    display: none !important;
}

.address-form .form-group {
    margin-bottom: 15px;
}
.address-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.address-form input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-group-inline {
    display: flex;
    gap: 20px;
}
.form-group-inline .form-group {
    flex: 1;
}
.alert.alert-success {
    padding: 15px;
    background-color: var(--success-color);
    color: white;
    border-radius: 4px;
    margin-bottom: 20px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    white-space: nowrap; 
}
.status-Nieuw { background-color: #007bff; } 
.status-Deellevering { background-color: var(--warning-color); color: #333; }
.status-Wacht-op-voorraad {  background-color: #6f42c1; }
.status-Backorder { background-color: var(--danger-color); } 
.status-Verwerkt { background-color: #009754; } 
.status-Completed { background-color: #009754; }
.status-Verwerkte-Backorder { background-color: #6c757d; } 
.status-Geannuleerd { background-color: #fffF00; color: #333; }
.status-Pending { background-color: var(--warning-color); color: #333; }
.status-RMA-Open { background-color: #6f42c1; } 
.status-RMA-Verwerkt { background-color: var(--success-color); } 
.status-Wacht-op-consolidatie {background-color: var(--warning-color);  color: #333;} 
  



.order-details-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.order-summary { flex: 2; }
.address-details { flex: 1; }
.address-box {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 5px;
}
.address-box hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}
.comment-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.comment-box h4 {
    margin-top: 0;
}

.tab-nav {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}
.tab-link {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}
.tab-link:hover { background-color: #ddd; }
.tab-link.active {
    background-color: #fff;
    border-bottom: 2px solid var(--primary-color);
}
.tab-content { display: none; }


.section-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #eee;
}
.complete-order-form {
    background-color: #f9f9f9;
    padding: 0px;
    border-radius: 5px;
}
.complete-order-form .form-group {
    margin-bottom: 15px;
}
.info-box {
    background-color: #f8f9fa;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.info-box p {
    margin: 0 0 10px 0;
}
.info-box p:last-child {
    margin-bottom: 0;
}

.info-box .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.info-box select,
.info-box input[type="url"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.subtle-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}
#backorder-form {
    overflow: hidden;
}
#backorder-form button[type="submit"] {
    width: auto;
    float: right;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.address-details h3 {
    margin-bottom: 10px;
}
.order-meta-box {
    margin-top: 20px; 
    background-color: #f8f9fa; 
    border: 1px solid var(--border-color); 
    border-radius: 5px; 
    padding: 15px; 
    margin-bottom: 15px;
}

.shipment-item { 
    background-color: #f8f9fa; 
    border: 1px solid var(--border-color); 
    border-radius: 5px; 
    padding: 15px; 
    margin-bottom: 15px; 
}
.shipment-item p {
    margin: 5px 0 0 0;
}
.shipment-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}
.shipment-item a:hover {
    text-decoration: underline;
}

.address-form .form-control {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box; 
}


.address-form select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}


.address-form textarea#order_comment {
    resize: none;
}

.cart-item {
    position: relative;
    padding-right: 25px; 
}

.cart-remove-btn {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.cart-remove-btn:hover {
    color: #a52823;
}

#checkout-cart-table {
    border: 1px solid var(--border-color);
}

.quantity-input-checkout {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}


.cart-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.cart-item-info {
    flex-grow: 1; 
    margin-right: 10px;
    font-size: 14px;
}
.cart-remove-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    flex-shrink: 0; 
}
.cart-remove-btn:hover {
    color: #a52823;
}

#checkout-cart-table {
    border: 1px solid var(--border-color);
}
.quantity-input-checkout {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.empty-cart-message h3 {
    margin-top: 0;
}
.alert-info {
    background-color: #cbcbcb;
    border: 2px solid #000000;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px; 
    text-align: center;
    font-weight: 600;
    font-size: 16px;
	color: black;
}

.mobile-nav {
    display: none; 
}
		body.revision-layout main,
		body.portal-layout main,
        body.warehouse-layout main,
        body.dashboard-layout main,
        body.admin-layout main {
			padding-top: 140px; 
		}

		body.revision-layout.no-search-cart main,
		body.portal-layout.no-search-cart main,
        body.warehouse-layout.no-search-cart main,
        body.dashboard-layout.no-search-cart main,
        body.admin-layout.no-search-cart main {
			padding-top: 140px;
		}

@media (max-width: 768px) {
	header {
		padding: 0px;
	}
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-bar {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 15px; 
    }
    
    .header-bar > div {
        display: flex;
        flex-direction: column; 
        width: 100%;    
        gap: 10px;  
    }
    
    .header-bar > div > .btn,
    .header-bar > .btn {
        width: 100%;        
        box-sizing: border-box; 
        text-align: center; 
        padding: 12px 10px; 
        font-size: 14px; 
		margin-bottom: 0px;
    }
	
	.header-bar h2{
		margin-bottom: 0px;
		margin-top: 5px;
	}
	
	.header-bar h2.breadcrumbs {
		font-size: 14px;
		font-weight: normal;
		margin: 0px 0px 0px 0px;
	}
	
	.header-bar h2 a {
		color: black;
	}
	
	.header-bar h2 a:hover { 
	text-decoration: underline; 
	}
	
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .header-search-form {
        flex-grow: 1;
    }
	body {
        padding-bottom: 80px;
    }
	body.login-page-body header {
		position: relative;
	}
	body.login-page-body {
        padding-bottom: 0px;
    }
    body.login-page-body main {
        padding-top: 0;
    }
    main {
        padding-top: 148px; 
    }
    #shopping-cart-widget {
        position: static;
    }
    #cart-dropdown {
        right: 0;
        left: auto;
    }
	
	body.revision-layout main,
		body.portal-layout main,
        body.warehouse-layout main,
        body.dashboard-layout main,
        body.admin-layout main {
			padding-top: 140px;
		}
	
	body.revision-layout.no-search-cart main,
		body.portal-layout.no-search-cart main,
        body.warehouse-layout.no-search-cart main,
        body.dashboard-layout.no-search-cart main,
        body.admin-layout.no-search-cart main {
			padding-top: 90px;
		}
		
	.mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: stretch; 
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px; 
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
        z-index: 999;
		padding-bottom: 20px;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 6px 4px;
        text-decoration: none;
        color: #555;
        font-size: 11px;
        line-height: 1.4;
        text-align: center;
        background: none;
        border: none;
        cursor: pointer;
        position: relative; 
    }

    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
        color: var(--font-color);
    }
    
    .mobile-nav-item .cart-item-count {
        position: absolute;
        top: 4px;
        right: calc(50% - 20px); 
        background-color: var(--danger-color);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 11px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        line-height: 1;
    }
	
	#shopping-cart-widget {
        display: none;
    }
	
	.desktop-only {
        display: none !important;
    }
	
}
