/* --- 1. CONFIGURATIE --- */
:root {
    --primary: #111111;
    --accent: #000050; /*#191970;*/
    --accent-hover: #2525a3;
    --accent-grey: #afafaf; /*#A8A8A8;*/
    --accent-gold: #eca100; /*#CCA450;*/
    --accent-gold-hover: #ffbe00;
    --bg-body: #f0ede5; /*#EDECE4;*/
    --bg-mainmenu: #eca100; /*#CCA450;*/
    --bg-light: #fff;
    --text-main: #222;
    --text-muted: #afafaf; /*#A8A8A8;*/
    --border: #afafaf;
    --success: #10b981;
    --container-width: 1440px;
    --focus-ring: 3px solid rgba(37, 99, 235, 0.5);
    --bg-footer: #000050; /*#191970;*/
    --footer-link: #afafaf; /*#A8A8A8;*/
}

/* Fonts Headers */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/eb-garamond-v31-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/eb-garamond-v31-latin-600.woff2') format('woff2');
}

/* Fonts Body */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/fonts/open-sans-v43-all-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/assets/fonts/open-sans-v43-all-600.woff2') format('woff2');
    font-weight: 600; /* Semi-vet gewicht */
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}
a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}
a:hover {
    text-decoration: underline;
}
ul {
    list-style: none;
}
button,
input {
    font: inherit;
}

strong,
b {
    font-weight: bold;
}

h1,
h2,
h3,
h4 {
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.67em;
    color: var(--accent);
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
}
h3 {
    font-size: 1.33em;
}
h4 {
    font-size: 1.25em;
}

p {
    margin-bottom: 1em;
}

#hometext {
	margin-bottom: 2rem;
}

main {
    padding-bottom: 2rem;
}

main article,
.shadowbox {
    padding: 2rem;
    border-radius: 8px;
    background: var(--bg-light);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
main article + article,
main iframe + article {
    margin-top: 1em;
}
main iframe {
    border-radius: 8px;
    background: var(--bg-light);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

main article ul {
    padding-left: 1.5em;
    list-style: disc;
}
main article ol {
    padding-left: 1.5em;
    list-style: number;
}
main article a {
	text-decoration: underline;
	font-weight: bold;
}
main article a:hover {
	text-decoration: none;
}

.greybox {
    padding: 1rem;
    background: #eee;
    margin-bottom: 1em;
}
.greybox a {
    text-decoration: underline;
}

/* --- 3. LAYERS & OVERLAY --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- 4. HEADER --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: var(--bg-body);
}

.header-top {
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    flex-shrink: 0;
    max-width: 40%;
}
.logo img {
    width: 100%;
}

/* Zoekbalk */
.search-wrapper {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}
.search-input {
    width: 100%;
    outline: none;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    font-size: 0.95rem;
}
.search-input:focus {
    background: #fff;
    border-color: var(--accent);
}
.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    width: auto;
    padding: 0;
}

/* Icons & Action Dropdowns */
.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.action-item {
    position: relative;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px; /* Ruimte rondom de klikbare zone */
    border-radius: 50%; /* Maakt de hover rond */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main); /* Standaard kleur */
    transition:
        background 0.2s,
        color 0.2s;
}

.icon-btn:hover,
.action-item.active .icon-btn {
    background: var(--bg-light);
    color: var(--accent);
}

/* Zorgt dat SVG de kleur van de tekst overneemt */
.icon-btn svg,
.search-btn svg,
.menu-toggle svg {
    display: block; /* Verwijdert gekke witruimtes onderaan */
    width: 32px;
    height: 32px;
    pointer-events: none;
}

/* Language specifieke styling */
.lang-btn {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Dropdowns General */
.action-dropdown {
    position: absolute;
    top: 104%;
    right: 0;
    width: 240px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    display: none;
    z-index: 1001;
    cursor: default;
}
.action-item.active .action-dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Links */
.action-dropdown ul li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.action-dropdown ul li a:hover {
    background: var(--bg-light);
    color: var(--accent);
    text-decoration: underline;
}
.action-dropdown ul li a.active-lang {
    font-weight: bold;
    color: var(--accent);
}

/* Cart Specific */
.cart-menu {
    width: 320px;
    padding: 1rem;
}
.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}
.cart-thumb {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
}
.cart-details h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.cart-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cart-total {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.btn-checkout {
    display: block;
    width: 100%;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 600;
}
.btn-checkout:hover {
    background: var(--accent-hover);
}

/* --- 5. NAVIGATIE (VERBETERD) --- */
.header-bottom {
    border-top: 0px solid var(--border);
    background: var(--bg-mainmenu);
    z-index: 1100;
}

.ratesbar {
    background-color: var(--bg-footer);
    color: var(--accent-gold);
    padding: 0.3rem;
}
.ratesbar svg {
    display: inline-block;
    vertical-align: top;
}
.ratesbaritems {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 0px;
    padding: 0px;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.ratesbaritems > span {
    grid-column: span 1;
    text-align: center;
}
.metalrate,
#rate_metal_refresh {
    color: #fff;
}
.metaltitle::after {
    content: ': ';
}
.metalrate::before {
    content: '€ ';
}

/* --- 6. BREADCRUMBS & UTILS (Best Practice) --- */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb ul {
    display: flex;
    gap: 0.5rem;
}
.breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.5;
}
.breadcrumb li:last-child::after {
    content: '';
}
.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.breadcrumb .active {
    font-weight: 600;
    color: var(--text-main);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    transform: translateX(200%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.show {
    transform: translateX(0);
}
.toast-icon {
    color: var(--success);
    font-size: 1.2rem;
}
.toast-title {
}
.toast-content {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* --- 6. RESPONSIVE --- */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    .action-item > .icon-btn {
        padding: 5px;
    }

    .header-top {
        gap: 0.5rem;
    }
    .search-wrapper {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }

    main article,
    .shadowbox {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Mobiel Menu */
    .header-bottom {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 0;
        overflow-y: auto;
        border-top: none;
        z-index: 2000;
    }
    .header-bottom.active {
        right: 0;
    }
    .main-nav > ul {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem;
    }
    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    /* Mobiele Links Styling Reset */
    .main-nav > ul > li > a {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: none;
        justify-content: space-between;
    }
    .main-nav > ul > li > a:hover {
        background: none;
    }
    .main-nav > ul > li > a.current-page {
        color: var(--accent);
        border-left: 4px solid var(--accent);
        padding-left: 10px;
        border-bottom: none;
    }
    .main-nav.container {
        padding: 0;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--bg-light);
        padding-left: 1rem;
    }
    .nav-dropdown.show {
        display: block;
        border-radius: 0;
    }
    .has-submenu > a::after {
        content: '▾';
        transition: transform 0.3s;
    }
    .has-submenu.open > a::after {
        transform: rotate(180deg);
    }

    /* Action Dropdowns Mobile Positioning */
    .action-dropdown {
		position: fixed;
		top: 70px;
		left: 5%;
		width: 90% !important;
    }
    .action-item:last-of-type .action-dropdown {
        right: 0;
    }

    .ratesbaritems {
        font-size: 0.9rem;
        grid-template-columns: 1fr 1fr 1fr 1fr 40px;
        width: auto;
    }
    .ratesbaritems > span {
        text-align: center;
    }
    .ratesbaritems > span:last-child {
        text-align: center;
    }
    .ratesbaritems svg {
        width: 20px;
        height: 20px;
    }
    #rate_metal_refresh {
        display: block;
    }
    .metaltitle::after {
        content: '';
    }
    .metalrate {
        display: block;
    }
    .metalrate::before {
        content: '';
    }
}

/* --- 7. CONTENT & GRID --- */
.hero {
    background: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-title h2 {
    font-size: 1.8rem;
}
.section-title a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
}
.product-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-image {
    aspect-ratio: 1/1;
    background: #eee;
    /*overflow: hidden;*/
    position: relative;
    /*margin-bottom: 1rem;*/
}
/*.card-image img { width: 100%; height: 100%; transition: transform 0.4s ease; }*/
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}
.card-badge-slabbed {
    position: absolute;
    padding: 4px;
    bottom: 10px;
    right: 10px;
    width: 32px;
    display: inline-block;
    line-height: 0;
    color: var(--text-main);
    background: white;
    border-radius: 4px;
}
.card-badge-highquality {
    z-index: 10;
    position: absolute;
    padding: 4px;
    top: 0px;
    right: 0px;
    width: 32px;
    display: inline-block;
    line-height: 0;
    color: var(--text-main);
    border-radius: 4px;
}
.card-badge-love {
    z-index: 10;
    position: absolute;
    padding: 4px;
    bottom: -32px;
    right: 0px;
    width: 32px;
    display: inline-block;
    line-height: 0;
    color: var(--text-main);
    border-radius: 4px;
}

.card-badge-love svg path {
    fill: var(--accent-grey, rgba(0, 0, 0, 0.2));
    transition: fill 0.2s ease;
}
.card-badge-love:hover svg path {
    fill: #ff7675;
}
.card-badge-love.in-wishlist svg path {
    fill: #ff0707;
}

.product-labels {
    margin-bottom: 1rem;
}

.card-badge-highquality-inline {
    vertical-align: top;
    width: 24px;
    height: 24px;
    display: inline-block;
    line-height: 0;
    color: var(--text-main);
}

.card-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.card-variant {
    text-align: right;
    font-size: 0.8rem;
    color: var(--accent);

    margin-bottom: 0.3rem;
    font-weight: bold;
}
.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
.card-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    margin-top: auto;
}

.card-link {
    text-decoration: none !important;
}

.card-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.productdetails {
    margin-bottom: 2rem;
}

.productquestionlink {
	display: block; 
	text-decoration: none; 
	margin-bottom: 1rem;
	white-space: nowrap;
}
.productquestionlink:hover {
	text-decoration: underline; 
}
.productquestionlink > svg {
	vertical-align: top;
    width: 24px;
    height: 24px;
    display: inline-block;
    line-height: 0;
}

.addtrackinglink {
	display: block; 
	text-decoration: none; 
	margin-bottom: 1rem;
	white-space: nowrap;
	color: var(--text-main);
}
.addtrackinglink:hover {
	text-decoration: underline; 
}
.addtrackinglink > svg {
	vertical-align: top;
    width: 24px;
    height: 24px;
    display: inline-block;
    line-height: 0;
}

.addtrackinglink svg path {
    fill: var(--accent-grey, rgba(0, 0, 0, 0.2));
    transition: fill 0.2s ease;
}
.addtrackinglink:hover svg path {
    fill: #ff7675;
}
.addtrackinglink.in-wishlist svg path {
    fill: #ff0707;
}



/*
.btn-cart { width: 100%; padding: 0.7rem; background: var(--primary); color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: background 0.2s; }
.btn-cart:hover { background: var(--accent); }
*/

/* Footer */
footer {
    background: var(--bg-footer);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--accent-gold);
}
.footer-col a {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--footer-link);
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-col a svg {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}
.footer-col a:hover {
    color: white;
}

.footer-rights {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    color: var(--footer-link);
    font-size: 0.9rem;
}

.footer-col img {
    max-width: 100%;
    max-height: 200px;
    opacity: 0.5;
}
.footer-col img:hover {
    opacity: 0.9;
}

.categoryheader {
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}
.categoryheaderimage {
    /*width: 100%;*/
	position: absolute;
	height: 100%;
}
.categoryheaderdescription {
    width: 50%;
	min-height: 400px;
    /*height: 100%;*/
    background-color: rgba(240, 237, 229, 0.5);
    /*position: absolute;*/
	position: relative;
	/*
    top: 0px;
    left: 0px;
	*/
    padding: 1rem;
    /*overflow-y: auto;*/
    transition: all 1s ease !important;
}
.categoryheaderdescription ul {
	list-style: disc;
	padding-left: 2em;
}

.categoryheaderdescription:hover {
    background-color: rgba(240, 237, 229, 1);
}

.stripedtable {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    max-width: 100%;
    background-color: #fff;
    margin-bottom: 1rem;
}
.stripedtable > tbody > tr:nth-of-type(odd) {
    background-color: #eee;
}
.stripedtable > tbody > tr > td {
    vertical-align: top;
    padding: 0.4rem;
}

.discounttable {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    max-width: 100%;
    background-color: #fff;
    text-align: right;
}
.discounttable > tbody > tr > td {
    vertical-align: top;
}
.product-discount {
    gap: 0px 20px;
}
.product-discount .unitprice {
    text-align: right;
}

.product-discount-title {
    color: var(--accent);
    font-weight: bold;
}

.variantexplain {
    text-decoration: underline;
    color: var(--accent-grey);
    margin-bottom: 1rem;
}
.variantexplain:hover {
    color: var(--text-main);
}
.product-image > .card-image {
    border-radius: 8px;
}
.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5rem;
    color: var(--accent);
}
.product-price-note {
    color: var(--accent-grey);
}

.addtocartblock {
    margin-top: 1rem;
}

.product-description {
    margin-bottom: 1rem;
}

.agendaitem {
    margin-bottom: 1rem;
}


#fltstart {
    scroll-margin-top: 200px;
}

@media (max-width: 900px) {
	
	h1 {
		font-size: 1.3em;
	}
	h2 {
		font-size: 1.1em;
	}
	h3 {
		font-size: 0.9em;
	}
	h4 {
		font-size: 0.7em;
	}
	
	
    .categoryheader {
        width: 100%;
		min-height: 120px;
    }
    .categoryheaderimage {
        width: 100%;
        max-height: 120px;
		position: relative;
    }
    .categoryheaderdescription {
        display: none;
        /*
		background-color: transparent;
		position: relative;
		overflow-y: visible;
		width: auto;
		*/
    }
}
