/*
Theme Name: PrintShop Theme
Description: Strak WooCommerce-thema voor drukwerkwinkels. Werkt samen met de PrintShop Connect plugin. Logo via Weergave → Customizer → Site-identiteit, kleur via WooCommerce → PrintShop Connect.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Onur
License: GPL-2.0-or-later
Text Domain: printshop-theme
*/

:root {
	--brand: #C8114F;
	--brand-dark: #7C0D45;
	--ink: #111827;
	--text: #1f2937;
	--muted: #6b7280;
	--line: #e5e7eb;
	--soft: #f6f7f9;
	--bg: #ffffff;
	--accent: #F59E0B;
	--ok: #15803d;
	--radius: 14px;
	--container: 1240px;
	--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }

.pst-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.pst-icon { display: block; flex: none; }

/* ------------------------------------------------------------ Top bar */
.pst-topbar { background: linear-gradient(100deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 13px; }
.pst-topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.pst-usps { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.pst-usps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pst-usps .pst-icon { width: 16px; height: 16px; color: #fff; opacity: .9; }
.pst-service { display: flex; align-items: center; gap: 18px; }
.pst-service ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.pst-service a { color: #fff; text-decoration: none; opacity: .9; }
.pst-service a:hover { opacity: 1; text-decoration: underline; }
.pst-phone { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.pst-phone .pst-icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------- Header */
.pst-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.admin-bar .pst-header { top: 32px; }
.pst-header.is-scrolled { box-shadow: 0 6px 24px rgba(17, 24, 39, .08); }
.pst-header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; min-height: 76px; }
.pst-burger { display: none; background: none; border: 0; padding: 6px; color: var(--ink); cursor: pointer; }
.pst-logo img, .pst-logo-img { max-height: 40px; width: auto; display: block; }
.pst-logo-link { display: block; }
.pst-logo-img.is-light { filter: brightness(0) invert(1); max-height: 36px; }
.pst-logo-text { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.pst-logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 19px; }
.pst-search { display: flex; align-items: center; max-width: 620px; width: 100%; justify-self: center; background: var(--soft); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; transition: border-color .15s, background .15s; }
.pst-search:focus-within { border-color: var(--brand); background: #fff; }
.pst-search input[type=search] { flex: 1; border: 0; background: transparent; padding: 9px 0; min-width: 0; outline: none; color: var(--ink); }
.pst-search button { border: 0; background: var(--brand); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.pst-search button .pst-icon { width: 18px; height: 18px; }
.pst-actions { display: flex; gap: 6px; }
.pst-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; }
.pst-action:hover { background: var(--soft); }
.pst-cart-count { position: absolute; top: 0; right: 8px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.pst-cart-count.is-empty { display: none; }

/* Category navigation */
.pst-nav { border-top: 1px solid var(--line); background: #fff; }
.pst-nav .pst-container { display: flex; }
.pst-nav-list { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 2px; }
.pst-nav-list > li { position: relative; }
.pst-nav-list > li > a { display: flex; align-items: center; gap: 4px; padding: 13px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent; }
.pst-nav-list > li > a .pst-icon { width: 16px; height: 16px; opacity: .6; }
.pst-nav-list > li:hover > a, .pst-nav-list > li:focus-within > a { color: var(--brand); border-bottom-color: var(--brand); }
.pst-nav-all > a { color: var(--brand) !important; }
.pst-drop { position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(17, 24, 39, .12); padding: 14px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.pst-nav-item:hover .pst-drop, .pst-nav-item:focus-within .pst-drop { opacity: 1; visibility: visible; transform: none; }
.pst-drop ul { list-style: none; margin: 0 0 8px; padding: 0; }
.pst-drop li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.pst-drop li a:hover { background: var(--soft); color: var(--brand); }
.pst-drop-all { display: block; padding: 8px 10px; font-weight: 700; font-size: 14px; text-decoration: none; }
.pst-nav-service { display: none; }

/* ---------------------------------------------------------- Page head */
.pst-main { min-height: 50vh; }
.pst-pagehead { background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.pst-pagehead h1 { margin: 6px 0 0; }
.pst-pagehead-slim { padding: 14px 0; background: #fff; }
.pst-pagehead .pst-lead { color: var(--muted); max-width: 46em; margin-top: 8px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.pst-content { padding-top: 36px; padding-bottom: 64px; }
.pst-prose { max-width: 820px; }
.pst-prose > * { max-width: 100%; }
.pst-prose h2 { margin-top: 1.6em; font-size: 24px; }
.pst-prose ul, .pst-prose ol { padding-left: 1.2em; }
.pst-prose li { margin: .3em 0; }
.pst-front { padding-top: 28px; padding-bottom: 40px; }
.pst-front .psc-home { max-width: none; }
.pst-front .wp-block-group.alignwide { max-width: none; }

/* Buttons (WordPress, WooCommerce, ours) */
.button, button.button, .wp-element-button, .wp-block-button__link, input[type=submit], .psc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff !important; border: 0; border-radius: 10px;
	padding: 12px 20px; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: filter .15s, transform .05s;
}
.button:hover, .wp-element-button:hover, .wp-block-button__link:hover, input[type=submit]:hover { filter: brightness(1.1); }
.button:active { transform: translateY(1px); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
	border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; }

/* ------------------------------------------------------ Shop / archive */
.woocommerce-products-header { display: none; }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.woocommerce .woocommerce-ordering { float: right; margin: 0 0 18px; }
ul.products { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; clear: both; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { margin: 0 !important; width: auto !important; float: none !important; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; position: relative; }
ul.products li.product:hover { box-shadow: 0 14px 34px rgba(17, 24, 39, .10); transform: translateY(-2px); }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 !important; display: block; }
ul.products li.product .woocommerce-loop-product__title { font-size: 16.5px !important; font-weight: 700; color: var(--ink); padding: 14px 16px 2px !important; margin: 0; }
ul.products li.product .price { display: block; padding: 0 16px 6px; color: var(--muted) !important; font-size: 14px !important; }
ul.products li.product .price .amount { color: var(--ink); font-weight: 700; }
ul.products li.product .button { margin: auto 16px 16px !important; width: calc(100% - 32px); background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--brand) !important; }
ul.products li.product .button:hover { background: var(--brand); color: #fff !important; filter: none; }
.woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; margin-top: 36px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.woocommerce-pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------------------------------------------------- Single product */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.single-product div.product .woocommerce-product-gallery { position: sticky !important; top: 150px; width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery img { border-radius: 20px; }
.single-product div.product .woocommerce-product-gallery__trigger { display: none; }
.single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .product_title { font-size: clamp(28px, 3vw, 38px); margin-bottom: 8px; }
.single-product div.product .woocommerce-product-details__short-description { color: var(--muted); font-size: 16.5px; margin-bottom: 18px; }
.single-product div.product .product_meta { display: none; }
.single-product div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 6px; padding: 0; margin: 20px 0 0; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 16px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--brand); }
.woocommerce-tabs .panel { padding: 20px 0; max-width: 820px; }
.related > h2, .upsells > h2 { margin-top: 30px; }
.onsale { display: none; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; list-style: none; border: 1px solid var(--line); background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.woocommerce-message { border-color: #bbf7d0; background: #f0fdf4; }
.woocommerce-error { border-color: #fecaca; background: #fef2f2; }

/* Cart & checkout (block and classic) */
.pst-wide { max-width: var(--container); }
.wc-block-cart, .wc-block-checkout { margin-top: 0; }
.wc-block-components-button:not(.is-link) { border-radius: 10px !important; background: var(--brand) !important; color: #fff !important; font-weight: 700 !important; }
.wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-totals-wrapper { border-color: var(--line) !important; }
table.shop_table { border-collapse: collapse; width: 100%; }
table.shop_table th, table.shop_table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* --------------------------------------------------------------- Footer */
.pst-footer { background: #1c0912; color: #e7d5dd; margin-top: 40px; font-size: 14.5px; }
.pst-footer a { color: #f6e8ee; text-decoration: none; }
.pst-footer a:hover { color: #fff; text-decoration: underline; }
.pst-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.pst-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.pst-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pst-footer-about p { max-width: 28em; margin-top: 14px; }
.pst-logo-light { color: #fff !important; text-decoration: none !important; }
.pst-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid #3a1426; padding-top: 18px; padding-bottom: 24px; font-size: 13px; }
.pst-pay { display: flex !important; gap: 8px !important; }
.pst-pay li { background: #fff; color: #1c0912; font-weight: 800; font-size: 12px; border-radius: 6px; padding: 5px 10px; }
.pst-legal { display: flex; gap: 18px; flex-wrap: wrap; color: #b99aa9; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1280px) {
	.pst-nav-list > li > a { padding: 13px 8px; font-size: 14px; }
	.pst-nav-all { display: none; }
}
@media (max-width: 1100px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pst-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.pst-container { padding: 0 16px; }
	.pst-logo img, .pst-logo-img { max-height: 30px; }
	.pst-service ul, .hide-sm { display: none; }
	.pst-header-inner { grid-template-columns: auto 1fr auto; gap: 10px; min-height: 64px; }
	.pst-burger { display: block; }
	.pst-logo-text { font-size: 18px; }
	.pst-logo-mark { width: 32px; height: 32px; font-size: 16px; }
	.pst-search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 12px; }
	.pst-action span:not(.pst-cart-count) { display: none; }
	.pst-nav { display: none; border-top: 1px solid var(--line); max-height: calc(100vh - 120px); overflow: auto; }
	.pst-nav.is-open { display: block; }
	.pst-nav .pst-container { flex-direction: column; padding-bottom: 16px; }
	.pst-nav-list { flex-direction: column; }
	.pst-nav-list > li > a { justify-content: space-between; border-bottom: 1px solid var(--line); padding: 14px 4px; }
	.pst-drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 4px 0 8px 10px; }
	.pst-nav-item.is-open .pst-drop { display: block; }
	.pst-nav-service { display: block; list-style: none; margin: 10px 0 0; padding: 0; }
	.pst-nav-service a { display: block; padding: 10px 4px; color: var(--muted); text-decoration: none; }
	.single-product div.product { grid-template-columns: 1fr; gap: 20px; }
	.single-product div.product .woocommerce-product-gallery { position: static !important; max-width: 420px; }
	.admin-bar .pst-header { top: 0; }
}
@media (max-width: 640px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; padding: 10px 12px 0 !important; }
	ul.products li.product .price { padding: 0 12px 4px; }
	ul.products li.product .button { margin: auto 12px 12px !important; width: calc(100% - 24px); padding: 10px; font-size: 14px; }
	.pst-footer-cols { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
	.pst-usps li:nth-child(2) { display: none; }
	.pst-topbar-inner { justify-content: center; }
}
