/*
Theme Name: Tinus Tools
Theme URI: http://tinustools.local/
Author: Leenweb
Description: Lokale winkelweergave van Tinus Tools met het All4Car-assortiment als hiërarchisch menu.
Version: 1.0.0
Text Domain: tinustools
*/

:root {
	--tt-navy: #2a2768;
	--tt-navy-deep: #1d1a52;
	--tt-ink: #1c1a33;
	--tt-muted: #5c5878;
	--tt-line: #e6e4f0;
	--tt-paper: #f6f5f8;
	--tt-white: #fff;
	--tt-accent: #6a62ef;
	--tt-accent-2: #8b84f6;
	--tt-cart: #2faf62;
	--tt-hero: #241f62;
	--tt-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Titillium Web", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--tt-ink);
	background: var(--tt-white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.tt-wrap { width: min(var(--tt-max), calc(100% - 40px)); margin: 0 auto; }

.tt-top {
	background: var(--tt-navy-deep);
	color: #fff;
	font-size: 13px;
}
.tt-top-inner {
	display: flex;
	justify-content: flex-start;
	gap: 28px;
	min-height: 36px;
	align-items: center;
}
.tt-top span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tt-top svg { flex: none; }

.tt-header { background: var(--tt-navy); color: #fff; }
.tt-header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 28px;
	align-items: center;
	min-height: 84px;
}
.tt-logo img { height: 46px; width: auto; }
.tt-search {
	max-width: 640px;
	width: 100%;
	justify-self: center;
}
.tt-search .dgwt-wcas-search-wrapp {
	max-width: none;
	width: 100%;
}
.tt-tools { display: flex; align-items: center; gap: 14px; }
.tt-icon,
.tt-cart {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	color: #fff;
	background: transparent;
}
.tt-cart { position: relative; }
.tt-cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	background: #fff;
	color: var(--tt-navy);
	border-radius: 99px;
	min-width: 18px;
	height: 18px;
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
	padding: 0 4px;
}

.tt-scrim {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 20;
}
body.tt-menu-open .tt-scrim { display: block; }
.tt-top, .tt-header { position: relative; z-index: 40; }
.tt-nav { background: var(--tt-paper); border-bottom: 1px solid var(--tt-line); position: sticky; top: 0; z-index: 40; }
.tt-nav-inner { display: flex; align-items: stretch; gap: 4px; min-height: 52px; }
.tt-nav-link, .tt-assortiment-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 18px;
	color: #3d3a55;
	font-weight: 600;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.tt-nav-link:hover, .tt-assortiment-toggle:hover, .tt-assortiment.is-open .tt-assortiment-toggle { background: #fff; }
.tt-nav-spacer { margin-left: auto; }

.tt-assortiment { position: relative; display: flex; align-items: stretch; }
.tt-assortiment-toggle { align-self: stretch; }
.tt-mega {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 280px;
	height: min(70vh, 540px);
	background: #fff;
	box-shadow: 0 18px 50px rgba(24, 18, 70, 0.18);
	border: 1px solid var(--tt-line);
	border-radius: 0 0 12px 12px;
	z-index: 45;
	overflow: hidden;
}
.tt-assortiment.is-open > .tt-mega { display: block; }
.tt-mega-stage { position: relative; height: 100%; width: 100%; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.tt-mega ul {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	border-right: 1px solid var(--tt-line);
}
.tt-mega li { position: static; }
.tt-mega a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	padding: 9px 16px;
	color: var(--tt-ink);
	font-size: 14px;
}
.tt-mega a:hover,
.tt-mega li.is-open > a { background: #efeefe; color: var(--tt-navy); }
.tt-mega .tt-chevron { color: #9a96b5; font-size: 12px; }
.tt-mega ul ul { display: none; }
.tt-mega li.is-open > ul,
.tt-mega ul.is-shown { display: block; }

.tt-hero { background: var(--tt-hero); color: #fff; overflow: hidden; }
.tt-hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 32px;
	align-items: center;
	padding: 54px 0 42px;
}
.tt-kicker {
	display: inline-block;
	background: #5b54d6;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 18px;
}
.tt-hero h1 { font-size: 52px; line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.03em; }
.tt-hero h1 span { color: var(--tt-accent-2); }
.tt-hero p { margin: 0 0 26px; max-width: 460px; color: #d9d7ef; font-size: 17px; line-height: 1.5; }
.tt-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tt-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 8px;
	padding: 12px 18px;
	font-weight: 700;
}
.tt-btn-primary { background: #6d66f2; color: #fff; }
.tt-btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.tt-hero-art img { width: min(460px, 100%); margin-left: auto; }

.tt-benefits { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--tt-line); }
.tt-benefit { padding: 22px 18px; border-right: 1px solid var(--tt-line); }
.tt-benefit:last-child { border-right: 0; }
.tt-benefit strong { display: block; margin-bottom: 4px; }
.tt-benefit span { color: var(--tt-muted); font-size: 14px; }

.tt-section { padding: 48px 0 64px; background: #f3f4f6; }
.tt-section h2 { margin: 0 0 22px; font-size: 28px; }
.tt-catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tt-catcard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 168px;
	padding: 18px 20px;
	border-radius: 16px;
	overflow: hidden;
	color: #fff;
	background-size: cover;
	background-position: center;
}
.tt-catcard.is-wide { grid-column: span 2; min-height: 228px; }
.tt-catcard::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 12, 24, 0) 42%, rgba(10, 12, 24, .72) 100%);
}
.tt-catcard strong, .tt-catcard span { position: relative; z-index: 1; }
.tt-catcard strong { font-size: 22px; letter-spacing: -0.02em; }
.tt-catcard span { color: rgba(255,255,255,.82); font-size: 14px; margin-top: 2px; }
.tt-catcard:hover { color: #fff; filter: brightness(1.06); }

body.woocommerce-shop,
body.single-product,
body.tax-product_cat { background: #f3f2f6; }
.tt-crumbs { background: #fff; border-bottom: 1px solid var(--tt-line); }
.tt-crumbs .tt-wrap { padding: 12px 0; }
.tt-crumbs .woocommerce-breadcrumb,
.tt-crumbs .rank-math-breadcrumb,
.tt-crumbs .rank-math-breadcrumb p { margin: 0; color: #3a3658; font-size: 14px; }
.tt-crumbs .woocommerce-breadcrumb a,
.tt-crumbs .rank-math-breadcrumb a { color: var(--tt-navy); font-weight: 700; }
.tt-crumbs .rank-math-breadcrumb .separator { color: #8d89a8; }
.tt-sep { color: #8d89a8; margin: 0 4px; font-weight: 500; }
.tt-shop-hero { background: linear-gradient(180deg, #2c286e 0%, #241f62 100%); color: #fff; padding: 54px 0 46px; }
.tt-shop-hero h1 { margin: 0; font-size: 52px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 16px; }
.tt-shop-mark { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.tt-shop-body { padding: 28px 0 72px; }
.tt-archive-title { margin: 0 0 18px; }
.tt-shop { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.tt-filter { background: #fff; border-radius: 16px; padding: 16px 16px 14px; margin-bottom: 14px; }
.tt-filter h2 { margin: 0 0 12px; font-size: 18px; }
.tt-price-track { height: 4px; background: #d9d7e8; border-radius: 99px; position: relative; margin: 8px 8px 4px; }
.tt-price-track span { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--tt-navy); border-radius: 99px; }
.tt-price-track::before, .tt-price-track::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--tt-navy); transform: translateY(-50%); }
.tt-price-track::before { left: -2px; }
.tt-price-track::after { right: -2px; }
.tt-price-scale { display: flex; justify-content: space-between; color: #8a86a3; font-size: 12px; margin-bottom: 10px; }
.tt-check { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: #3d3a55; font-size: 14px; cursor: pointer; }
.tt-filter-clear { display: inline-block; margin-top: 8px; color: var(--tt-accent); font-size: 13px; }
.tt-shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.tt-result { margin: 0; font-weight: 650; }
.tt-sort { margin: 0 0 0 auto; }
.tt-sort select { width: auto; min-width: 190px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233d3a55' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center no-repeat; border: 1px solid #e4e2ee; border-radius: 12px; padding: 12px 36px 12px 14px; color: #3d3a55; appearance: none; }
.tt-shop-main ul.products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tt-shop-main ul.products li.product.tt-card,
.related ul.products li.product.tt-card { background: #fff; border-radius: 16px; padding: 0 0 20px; display: flex; flex-direction: column; float: none; }
.tt-card-media { display: block; background: #fff; border-radius: 16px 16px 0 0; aspect-ratio: 1.05; overflow: hidden; }
.tt-shop-main ul.products li.product a.tt-card-media img,
.related ul.products li.product a.tt-card-media img { width: 100%; height: 100%; max-width: none; margin: 0; border: 0; box-shadow: none; object-fit: contain; }
.tt-card-title { font-size: 16px; line-height: 1.35; margin: 14px 16px 8px; min-height: 44px; }
.tt-card-title a:hover { color: var(--tt-accent); }
.tt-card-price { margin: 0 16px 14px; font-weight: 750; font-size: 16px; }
.tt-card-buy { display: flex; align-items: center; gap: 8px; margin: auto 16px 0; padding-bottom: 4px; }
.tt-qty-select { height: 42px; min-width: 72px; margin: 0; border: 1px solid #e4e2ee; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233d3a55' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center no-repeat; padding: 0 28px 0 12px; color: #1c1a33; line-height: 40px; appearance: none; }
.tt-shop-main ul.products li.product a.button.tt-add,
.related ul.products li.product a.button.tt-add { position: relative; width: 42px; height: 42px; min-width: 42px; margin: 0; padding: 0; background: #1c8a4c; color: #fff; border: 0; border-radius: 8px; line-height: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; overflow: hidden; }
.tt-shop-main ul.products li.product a.button.tt-add svg,
.related ul.products li.product a.button.tt-add svg { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: 0; transform: translate(-50%, -50%); display: block; }
.woocommerce .tt-shop-main ul.products li.product a.button.tt-add::after,
.woocommerce .related ul.products li.product a.button.tt-add::after,
.tt-shop-main ul.products li.product a.button.tt-add.added::after,
.related ul.products li.product a.button.tt-add.added::after { content: none !important; display: none !important; }
.tt-shop-main .tt-card a.tt-add:hover,
.related .tt-card a.tt-add:hover { background: #167a42; color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.tt-shop-main .page-numbers { display: flex; gap: 8px; list-style: none; padding: 22px 0 0; margin: 0; }
.tt-shop-main .page-numbers a, .tt-shop-main .page-numbers span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; padding: 0 10px; }
.tt-shop-main .page-numbers .current { background: var(--tt-navy); color: #fff; }

.tt-pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.tt-pdp-main { background: #fff; border-radius: 18px; min-height: 420px; display: grid; place-items: center; padding: 24px; }
.tt-pdp-main img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.tt-pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tt-pdp-thumbs button { width: 74px; height: 74px; border-radius: 12px; border: 1px solid transparent; background: #fff; padding: 6px; cursor: pointer; }
.tt-pdp-thumbs button.is-active { border-color: #c9c4f4; }
.tt-pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.tt-pdp-summary h1 { margin: 0 0 12px; font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.tt-pdp-price { color: var(--tt-navy); font-size: 28px; font-weight: 750; margin: 0 0 16px; }
.tt-perks { list-style: none; margin: 14px 0 0; padding: 0; }
.tt-perks li { display: flex; align-items: flex-start; gap: 8px; color: #111; padding: 4px 0; }
.tt-perks svg { flex: none; margin-top: 2px; }
.tt-stock { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px; font-weight: 650; margin: 0 0 16px; }
.tt-stock.is-in { background: #e7f8ee; color: #1c8a4c; }
.tt-stock.is-in::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2faf62; }
.tt-stock.is-out { background: #fdecec; color: #a33; }
.tt-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.woocommerce form.cart button.single_add_to_cart_button { background: #1c8a4c; color: #fff; border: 0; border-radius: 8px; height: 42px; padding: 0 18px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.woocommerce form.cart button.single_add_to_cart_button:hover { background: #167a42; color: #fff; }
.tt-pdp-details { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; margin-top: 40px; align-items: start; }
.tt-pdp-details h2 { margin: 0 0 14px; font-size: 24px; }
.tt-specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.tt-specs th, .tt-specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--tt-line); }
.tt-specs th { width: 34%; color: #5c5878; font-weight: 650; }
.related.products { margin-top: 28px; }
.related.products > h2 { font-size: 28px; margin-bottom: 16px; }
.related ul.products { grid-template-columns: repeat(4, 1fr); }

.tt-page { padding: 36px 0 72px; }
.tt-page h1 { margin-top: 0; }
.woocommerce-breadcrumb { color: var(--tt-muted); font-size: 14px; margin-bottom: 18px; }
.woocommerce-breadcrumb a { color: var(--tt-accent); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.tt-shop-main ul.products { grid-template-columns: repeat(3, 1fr); }
.tt-subcat-slider { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; }
.tt-subcat-nav { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--tt-navy); font-size: 22px; line-height: 1; cursor: pointer; }
.tt-subcat-nav:hover { background: #eceaf6; }
.tt-subcats { display: flex; gap: 10px; margin: 0; padding: 2px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.tt-subcats::-webkit-scrollbar { display: none; }
.tt-subcats li { flex: 0 0 auto; scroll-snap-align: start; }
.tt-subcats a { display: block; background: #fff; border: 1px solid var(--tt-line); border-radius: 999px; padding: 10px 16px; font-weight: 650; white-space: nowrap; }
.tt-subcats a:hover { border-color: var(--tt-accent); color: var(--tt-accent); }
.tt-empty { color: var(--tt-muted); }

.tt-footer { background: var(--tt-navy-deep); color: #ddd9f5; padding: 42px 0 24px; margin-top: 0; }
.tt-footer-grid { display: grid; grid-template-columns: 1.4fr .9fr 1fr 1.15fr; gap: 32px; align-items: start; }
.tt-footer p { margin: 0; max-width: 280px; line-height: 1.55; }
.tt-footer-links a { display: block; padding: 4px 0; }
.tt-footer a:hover { color: #fff; }
.tt-footer-contact a,
.tt-footer-contact div { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.tt-footer-contact svg { flex: none; margin-top: 2px; }
.tt-footer-base hr { border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: 28px 0 16px; }
.tt-footer small { display: block; color: #9d98c4; }

@media (max-width: 900px) {
	.tt-header-inner, .tt-hero-inner, .tt-benefits, .tt-catgrid, .tt-footer-grid, .woocommerce ul.products, .tt-shop, .tt-pdp, .related ul.products { grid-template-columns: 1fr 1fr; }
	.tt-catcard.is-wide { grid-column: span 2; }
	.tt-header-inner { grid-template-columns: 1fr auto; }
	.tt-search { grid-column: 1 / -1; max-width: none; }
	.tt-top-inner { justify-content: flex-start; gap: 16px; }
	.tt-top span:nth-child(2) { display: none; }
	.tt-hero h1 { font-size: 36px; }
	.tt-mega { position: static; width: auto; height: auto; max-height: 70vh; overflow: auto; }
	.tt-mega-stage { width: auto !important; height: auto; }
	.tt-mega ul, .tt-mega ul ul { position: static; width: auto; height: auto; display: none; border: 0; }
	.tt-mega > ul, .tt-mega li.is-open > ul { display: block; padding-left: 8px; }
}
@media (max-width: 640px) {
	.tt-benefits, .tt-catgrid, .tt-footer-grid, .woocommerce ul.products, .tt-hero-inner, .tt-shop, .tt-pdp, .related ul.products { grid-template-columns: 1fr; }
	.tt-shop-bar { align-items: stretch; flex-direction: column; }
	.tt-sort, .tt-sort select { width: 100%; }
	.tt-catcard.is-wide { grid-column: auto; }
	.tt-pdp-summary h1, .tt-shop-hero h1 { font-size: 32px; }
	.tt-pdp-details { grid-template-columns: 1fr; }
}
