/*
Theme Name: Stapelboeken
Theme URI: https://stapelboeken.nl//
Author: Joris Lindner - Luqe.nl
Author URI: http://luqe.nl//
Description: Het thema gemaakt voor de website Stapelboeken 2026.
Version: 1.2
License: Alle rechten toegekend aan stapelboeken.
License URI: http:/luqe.nl/data/licensies/stapelboeken
Tags: books, book, store, winkel, shop
Text Domain: stapelboeken
*/


/* Variables */

:root {
	--c-bg: #f9f9f9;
	--c-bg-accent: #cac4cb;
	--c-accent: #b8bec5;
	--c-text: #111621; /* Text color and button hovers */
	--c-special: #748397; /* Buttons */

	--container-padding: 20px;
	--spacer: 80px;
	--container-margin: 0 0 var(--spacer) 0;

	--site-pad-s: 8rem;
	--site-padding: 0 var(--site-pad-s);

	--max-width: 1240px;
	--gap: 20px;
	--element-padding: 10px;
	--element-margin: 8px;
	--element-border-radius: 10px; /* For images */

	/* --font-headers: "Libre Baskerville", serif; */
	/* --font-headers: "Inter", sans-serif; */
	--font-text: "Inter", sans-serif; /* All other text */

	--ani: 0.2s ease 0s; /* Hover animations */
}

@media screen and (max-width: 1024px) {
	:root {
		--site-pad-s: 4rem;
	}
}
@media screen and (max-width: 767px) {
	:root {
		--site-pad-s: 2rem;
	}
}


/* Standards */

* {
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	height: 100%;
	font-family: "Inter", sans-serif;
}

.libre {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.inter {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

@font-face {
	font-family: "Inter", sans-serif;
    font-weight: normal;
    font-style: normal;
}

a {
	text-decoration: none;
	color: inherit;
}

div, a, span, p, li, h5, h6 {
	font-family: "Inter", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-text);
}

h1, h2, h3, h4 {
	font-family: "Inter", sans-serif;
	font-weight: 600;
}

ol { list-style-position: inside }

h1 { font-size: 48px; line-height: 48px; }
h2 { font-size: 36px; line-height: 36px; }
h3 { font-size: 24px; line-height: 24px; }
h4 { font-size: 16px; line-height: 21px; }
h5 { font-size: 14px; line-height: 14px; }
h6 { font-size: 12px; line-height: 12px; }

ul {
	list-style: none;
}


/* Basics */

body {
	background-color: var(--c-bg);
}

.w-full {
	width: 100%;
	padding: var(--site-padding);
	box-sizing: border-box;
}
.w-1-4 { width:25% }
.inner {
	max-width: var(--max-width);
	margin: auto;
}

.spacer { height: var(--spacer); }


/* buttons */

.button a {
	color: var(--c-bg);
	background-color: var(--c-text);
	padding: 10px 30px;
	border-radius: 10px;
	line-height: 30px;
	display: inline-block;
	opacity: 1;
	transition: var(--ani);
}
.button:hover a { opacity: 0.8; }
.button a i { margin-left:8px }

@media screen and (max-width: 1024px) {
	.w-1-4 { width: 50% }
}
@media screen and (max-width: 767px) {
	.w-1-4 { width: 100% }
}

/* Header */

header {
	padding: 20px 0;
	border-bottom: 1px solid var(--c-bg-accent);
}

header .w-full .inner {
	height: 60px;
	position: relative;
	display: flex;
	flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

.h-menu { padding-top: 27px; }

.h-menu ul {
	display: flex;
	gap: var(--gap);
}
.h-menu ul li {
	position: relative;
}

.h-menu ul li.current-menu-item a { color: #6f9297; }
.h-menu ul li ul { 
	display: none;
	position: absolute;
	top: 100%;
	top: calc(100% + 10px);
	left: -20px;
	padding: 30px 20px 10px 20px;
	background-color: var(--c-accent);
	width: fit-content;
	min-width: 100px;
}
.h-menu ul li:hover ul { display: inline-block; }

.h-menu ul li ul li {
	height: 30px;
	margin-bottom: 10px;
	width: 100%;
}

.h-menu a {
	font-size: 16px;
	line-height: 1;
	font-weight: 600;
	padding: 10px;
	border-bottom: 2px solid transparent;
	transition: var(--ani);
}
.h-menu li:hover a {
	font-weight: 600;
	border-bottom: 2px solid var(--c-text);
	opacity: 0.7;
}

.h-menu ul li ul li a {
	font-size: 14px;
	line-height: 1;
	border: none !important;
}
.h-menu ul li ul li a:hover {
	background-color: var(--c-bg);
}


.h-logo {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
}
.h-logo a img {
	width: 100%;
    aspect-ratio: 4 / 1;
    height: 60px;
    object-fit: contain;
    max-width: 250px;
}

.h-buttons {
	display: flex;
	flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    gap: var(--gap);
	padding-top: 20px;
}

.h-buttons i {
	font-size: 20px;
}

.h-search {
	width: 38px;
	height: 38px;
	padding: 10px 0;
	border-radius: var(--element-border-radius);
	border: 1px solid transparent;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.h-search.active {
	padding: 10px;
	width: fit-content;
	border-radius: var(--element-border-radius);
	border: 1px solid var(--c-accent);
}
.h-search input { display: none; }
.h-search.active input {
	display: block;
	height: 38px;
	background-color: transparent;
	border: none;
	margin-right: 10px;
}

.h-hamburger { display:none; }
@media screen and (max-width: 767px) {
	.h-hamburger { display:block; }
	.h-hamburger i:last-child {	display: none; }
	.h-hamburger.active i:first-child {	display: none; }
	.h-hamburger.active i:last-child {	display: block; }
}

@media screen and (max-width: 1350px) {
	header .w-full .inner {
		flex-direction: column-reverse;
		flex-wrap: wrap;
		height: unset;
		gap: 20px;
	}
	.h-menu,
	.h-buttons {
		width: 100%;
	}
	.h-menu { padding-top: 0; }
	.h-buttons {
		height: 60px;
		padding-top: 0;
	}
	.h-logo {
		left: 0;
		transform: unset;
	}
}

@media screen and (max-width: 580px) {
	.h-menu {
		position: absolute;
        top: calc(100% + 21px);
        left: -32px;
        padding: 32px;
        background-color: var(--c-accent);
        min-width: 50%;
        width: fit-content;
        z-index: 99;
        border-radius: 0 0 20px 0;
        display: none;
	}
	.h-menu.active {display: block; }
	.h-menu ul { flex-direction: column; }
	.h-menu ul li ul {
		display: block;
        position: initial;
        padding: 20px 0 0;
        margin-bottom: -15px;
	}
	.h-menu ul li:hover ul { display: block !important; }
	.h-menu ul li ul li a { font-size: 16px; }
	.h-logo a img { width: 67%; }
}



/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 20px;
    row-gap: 40px;
    width: 100%;
}
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}


/* Lists */

.categoryList,
.productList {
	margin-top: 40px;
	margin-bottom: 40px;
}

.imageCategory {
	position: relative;
	width: 100%;
	aspect-ratio: 1/1;
	margin-bottom: 15px;
	transition: var(--ani);
}
.imageCategory img {
	aspect-ratio: 2/3;
	position: absolute;
	background-color: var(--c-bg-accent);
	border: none;
	border-left: 10px solid var(--c-special);
	border-radius: var(--element-border-radius);
	overflow: hidden;
}
.imageCategory .first {
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}
.imageCategory .second {
	height: 80%;
	right: 0;
	bottom: 5px;
}

.singleCategory { transition: var(--ani); }
.singleCategory p {
	font-size: 18px;
	border-bottom: 2px solid transparent;
	text-align: center;
	transition: var(--ani);
}
.singleCategory:hover .imageCategory { scale: 1.05; }
.singleCategory:hover p { border-bottom: 2px solid #253c6d; color: #253c6d; }

.singleProduct .productImage {
	border-radius: var(--element-border-radius);
	overflow: hidden;
	background-color: var(--c-bg-accent);
	position: relative;
	margin-bottom: 15px;
	transition: var(--ani);
}

.singleProduct:hover .productImage {
	scale: 1.05;
}

.singleProduct .productImage .productImageBanner {
	position: absolute;
	top: 0;
	right: 0;
	border-radius: 0 0 0 var(--element-border-radius);
	padding: 4px 10px;
}

.singleProduct .productImage a { display:flex; }
.singleProduct .productImage img {
	width: 100%;
	height: 100%;
    aspect-ratio: 2 / 3;
    border: none;
    border-left: 10px solid var(--c-special);
}

.singleProduct .productTitle { font-size: 18px; }
.singleProduct .productPrice s { opacity:0.5; }

.singleProduct .productActions {
	margin-top: 15px;
	display: flex;
	gap: 10px;
}

.singleProduct .productActions .quickView,
.singleProduct .productActions .addToCart {
	height: 40px;
	background-color: var(--c-accent);
	display: flex;
	gap: 5px;
	justify-content: center;
    align-items: center;
    border-radius: var(--element-border-radius);
    cursor: pointer;
    transition: var(--ani);
}

.singleProduct .productActions p,
.singleProduct .productActions i {
	transition: var(--ani);
}

.singleProduct .productActions .quickView {
	width: 100%;
	width: calc(100% - 50px);
}

.singleProduct .productActions .addToCart {
	width: 40px;
}

.singleProduct .productActions .quickView:hover,
.singleProduct .productActions .addToCart:hover {
	background-color: var(--c-text);
	color: var(--c-bg);
}
.singleProduct .productActions .quickView:hover i,
.singleProduct .productActions .quickView:hover p,
.singleProduct .productActions .addToCart:hover i {
	color: var(--c-bg);
}


.pagination {
	display: flex;
	flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}
.pagination * {
	transition: var(--ani);
}

.pagination .pagePrev a,
.pagination .pageNext a {
	display: flex;
	align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--c-accent);
    border-radius: var(--element-border-radius);
}
.pagination .pagePrev:hover a,
.pagination .pageNext:hover a {
    background-color: var(--c-text);
}
.pagination .pagePrev:hover a p,
.pagination .pageNext:hover a p,
.pagination .pagePrev:hover a i,
.pagination .pageNext:hover a i {
    color: var(--c-bg);
}

.pagination .pageIndex {
	display: flex;
	flex-direction: row;
    align-items: center;
    justify-content: center;
}
.pagination .pageIndex a,
.pagination .pageIndex span {
	opacity: 0.5;
	transition: var(--ani);
	padding: 5px;
}
.pagination .pageIndex a:hover {
	opacity: 0.8;
}
.pagination .pageIndex .current {
	opacity: 1;
	font-weight: 600;
}


.inner .divider {
	margin: 20px 0 80px;
    border: none;
    width: 100%;
    height: 2px;
    background-color: var(--c-text);
}

.productFilters {
	display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.filterItem {
	display: flex;
	flex-direction: row;
	gap: 6px;
	min-width: 180px;
	align-items: center;
}

.filterItem label {
	font-size: 0.9rem;
	font-weight: 600;
}

.filterItem select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	padding: 12px 42px 12px 14px;
	border: 1px solid var(--c-accent);
	border-radius: var(--element-border-radius);
	background-color: var(--c-bg-accent);

	background-image:
		linear-gradient(45deg, transparent 50%, var(--c-text) 50%),
		linear-gradient(135deg, var(--c-text) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 50%,
		calc(100% - 12px) 50%;
	background-size:
		6px 6px,
		6px 6px;
	background-repeat: no-repeat;

	cursor: pointer;
	transition: var(--ani);
}

.filterItem select:hover {
	background-color: var(--c-bg);
	border-color: var(--c-special);
}

.filterItem select:focus {
	outline: none;
	border-color: var(--c-special);
	box-shadow: 0 0 0 3px rgba(225, 198, 152, 0.35);
}

@media (max-width: 600px) {
	.productFilters {
		flex-direction: column;
	}

	.filterItem {
		width: 100%;
	}
}


/* CTA */

.cta {
	width: 100%;
	background-color: var(--c-special);
	display: flex;
	gap: 40px;
}
.cta-half { width:50%; background-position: center center; background-size: cover; }

.cta-inner { 
	padding: 120px var(--site-pad-s) 120px 0;
	max-width: calc(var(--max-width) / 2 - 20px);
	display: flex;
	flex-direction: column;
    gap: 20px;
}

@media screen and (max-width: 767px) {
	.cta { flex-direction: column; gap: 0; }
	.cta-half {
		width: 100%;
		min-height: 200px;
	}
	.cta-inner { padding: 80px var(--site-pad-s); }
}




/* footer */

footer { background-color: var(--c-bg-accent); }
.f-main .inner { 
	padding:40px 0; 
	display: flex;
	gap: 20px;
}

@media screen and (max-width: 767px) {
	.f-main .inner {
		flex-direction: column;
	}
}

.f-main h4 { margin-bottom: 10px; }
.f-main ul li {	margin-bottom: 5px; }
.f-main ul li a { padding: 5px 0; }
.f-main ul li a:hover { font-weight:600; }
.f-main p { font-style:italic; }

.f-logo img {
	width: 100%;
    aspect-ratio: 4 / 1;
    height: 100%;
    object-fit: contain;
    max-width: 250px;
}

.f-copy {
	width: 100%;
	display: flex;
	padding-bottom: 20px;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.f-copy p { font-size:12px; }
.f-copy a { display:grid; }
.f-copy svg { height:18px; object-fit:contain; fill: var(--c-text); transition: var(--ani); }
.f-copy svg:hover { opacity:0.5; }














body.qv-open {
    overflow: hidden;
}

.qv-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.65);
}

.qv-close-overlay {
	position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.qv-overlay.is-active {
    display: flex;
}

.qv-modal {
    position: relative;
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: #fff;
}

.qv-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    border: 0;
    background: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.qv-image {
    flex: 0 0 40%;
    max-width: 400px;
}

.qv-image img {
    display: block;
    width: 100%;
    height: auto;
}

.qv-content {
    flex: 1;
    padding-right: 35px;
}

.qv-price {
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
}

.qv-add-to-cart,
.qv-full-product {
    display: inline-block;
    margin-right: 15px;
    padding: 12px 18px;
    text-decoration: none;
}

.qv-add-to-cart {
    background: #000;
    color: #fff;
}

.qv-full-product {
    color: #000;
}

.qv-skeleton {
    position: relative;
    overflow: hidden;
    background: #eee;
}

.qv-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    animation: qv-loading 1.2s infinite;
}

.qv-skeleton-image {
    flex: 0 0 40%;
    max-width: 400px;
    aspect-ratio: 2/3;
}

.qv-skeleton-title {
    width: 70%;
    height: 32px;
    margin-bottom: 20px;
}

.qv-skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 12px;
}

.qv-skeleton-text.short {
    width: 65%;
}

.qv-skeleton-price {
    width: 90px;
    height: 28px;
    margin: 25px 0;
}

.qv-skeleton-button {
    width: 140px;
    height: 45px;
}

@keyframes qv-loading {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 767px) {
    .qv-modal {
        flex-direction: column;
    }

    .qv-image,
    .qv-skeleton-image {
        flex: none;
        max-width: none;
    }
}



/* Basic WordPress content styling */

.page-title {
	margin-bottom: 32px;
}

.content {
	min-height: 100vh;
	min-height: calc(100vh - 101px - 253px - 160px);
}
.main {
	min-height: 100vh;
	min-height: calc(100vh - 101px - 253px);
}

.content h2 {
	margin-bottom: 32px;
	font-family: var(--font-headers);
}

.content h3,
.content h4,
.content h5,
.content h6 {
	margin: 36px 0 16px;
	font-family: var(--font-headers);
}

.content p {
	margin: 0 0 10px;
	line-height: 1.5;
}

.content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: var(--ani);
}

.content a:hover {
	opacity: 0.7;
}

.content ul,
.content ol {
	margin: 0 0 15px 20px;
	padding: 0;
}

.content li {
	margin-bottom: 6px;
	line-height: 1.5;
}

.content blockquote {
	margin: 32px 0;
	padding: 24px 28px;
	background: var(--c-accent);
	border-left: 5px solid var(--c-special);
	border-radius: var(--element-border-radius);
}

.content blockquote p:last-child {
	margin-bottom: 0;
}

.content figure {
	margin: 32px 0;
}

.content figcaption {
	margin-top: 8px;
	font-size: 0.9rem;
	opacity: 0.75;
}

.content table {
	width: 100%;
	border-collapse: collapse;
	margin: 32px 0;
	background: var(--c-bg);
	border-radius: var(--element-border-radius);
	overflow: hidden;
}

.content th,
.content td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--c-accent);
}

.content th {
	font-weight: 700;
}

.content tr:last-child td {
	border-bottom: 0;
}

.content hr {
	border: 0;
	height: 1px;
	background: var(--c-accent);
	margin: 40px 0;
}

.content code {
	padding: 3px 6px;
	background: var(--c-accent);
	border-radius: 5px;
	font-size: 0.95em;
}

.content pre {
	margin: 28px 0;
	padding: 20px;
	overflow-x: auto;
	background: var(--c-accent);
	border-radius: var(--element-border-radius);
}

.content pre code {
	padding: 0;
	background: transparent;
}

.content .wp-block-button {
	margin: 24px 0;
}

.content .wp-block-button__link {
	display: inline-block;
	padding: 12px 20px;
	background: var(--c-special);
	border-radius: var(--element-border-radius);
	text-decoration: none;
	transition: var(--ani);
}

.content .wp-block-button__link:hover {
	opacity: 0.8;
}

.content .wp-block-separator {
	margin: 40px 0;
}

.content .wp-block-columns {
	gap: var(--gap);
	margin: 32px 0;
}

.content .wp-block-quote {
	margin: 32px 0;
}

.content .wp-block-image {
	margin: 32px 0;
}



.product_meta {
	display: flex;
    flex-direction: column;
    gap: 5px;
}




/* Form styling */

.content .form7 {
	margin-top: 30px;
}

.content .form7 .formRow {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	margin-bottom: 20px;
}

.content .form7 .formRow.twoCols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.content .form7 .formField {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.content .form7 label {
	font-size: 0.95rem;
	font-weight: 600;
}

.content .form7 input,
.content .form7 textarea,
.content .form7 select {
	width: 100%;
	padding: 14px 16px;
	box-sizing: border-box;
	border: 1px solid var(--c-accent);
	border-radius: var(--element-border-radius);
	background: var(--c-bg);
	font-family: var(--font-text);
	font-size: 1rem;
	transition: var(--ani);
}

.content .form7 textarea {
	min-height: 180px;
	resize: vertical;
}

.content .form7 input:focus,
.content .form7 textarea:focus,
.content .form7 select:focus {
	outline: none;
	border-color: var(--c-special);
	box-shadow: 0 0 0 3px rgba(225, 198, 152, 0.25);
}

.content .form7 input::placeholder,
.content .form7 textarea::placeholder {
	opacity: 0.7;
}

.content .form7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: auto;
	min-width: 220px;

	padding: 14px 22px;
	border: 0;
	border-radius: var(--element-border-radius);

	background: var(--c-special);

	cursor: pointer;
	transition: var(--ani);
}

.content .form7 .wpcf7-submit:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

.content .form7 .wpcf7-spinner {
	margin-top: 12px;
}

.content .form7 .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-radius: var(--element-border-radius);
	border: 1px solid var(--c-accent);
	background: var(--c-bg);
}

.content .form7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.9rem;
}

@media (max-width: 700px) {

	.content .form7 .formRow.twoCols {
		grid-template-columns: 1fr;
	}

}