/*
Theme Name: Weg is Weg
Description: Nederlandstalig WooCommerce-thema voor een outlet met wisselende restpartijen.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: weg-is-weg
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ink: #202447;
	--muted: #52556a;
	--orange: #ff7946;
	--paper: #fcfaf6;
	--cream: #f5eadd;
	--line: #e8e2d9;
	--heading: "Archivo Black", "Arial Black", system-ui, sans-serif;
	--body: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #2d62e3; outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .7em; line-height: 1.11; letter-spacing: -.04em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 80px, 1280px); margin-inline: auto; }
.screen-reader-text { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip-path: none; padding: 12px 18px; top: 10px; left: 10px; width: auto; height: auto; z-index: 10000; background: white; }

.site-head { background: #fffefa; }
.top-strip { background: var(--ink); color: white; text-align: center; padding: 8px 16px; font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.head-main { display: grid; grid-template-columns: auto minmax(200px, 510px) auto; align-items: center; justify-content: space-between; gap: 28px; min-height: 86px; padding-block: 14px; }
.wordmark { display: inline-block; justify-self: start; width: clamp(152px, 18vw, 214px); }
.wordmark img { display: block; width: 100%; height: auto; }
.custom-logo-link img { display: block; max-width: min(220px, 38vw); max-height: 64px; width: auto; height: auto; }
.store-search { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.store-search input { padding: 11px 14px; width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; font-size: .9rem; }
.store-search button { padding-inline: 17px; border: 0; background: transparent; color: var(--ink); }
.search-icon { display: block; border: 1.7px solid currentColor; width: 14px; height: 14px; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; bottom: -3px; right: -4px; width: 6px; border-bottom: 1.7px solid currentColor; transform: rotate(45deg); }
.head-actions { display: flex; align-items: center; gap: 18px; font-size: .85rem; font-weight: 700; }
.head-actions a { text-decoration: none; white-space: nowrap; }
.head-actions a:hover { text-decoration: underline; }
.cart-link { display: inline-flex; gap: 9px; align-items: center; }
.bag-icon { width: 15px; height: 13px; display: inline-block; border: 1.6px solid currentColor; border-radius: 2px; position: relative; }
.bag-icon::before { content: ""; position: absolute; left: 3px; top: -6px; width: 5px; height: 6px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.head-nav { border-block: 1px solid var(--line); }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 0; margin: 0; list-style: none; }
.nav-list a { display: block; padding-block: 11px; font-size: .86rem; font-weight: 720; text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { text-decoration: underline; }
.nav-shop { box-shadow: inset 0 -3px var(--orange); }

.home-content { padding-top: 30px; }
.wiw-hero { display: grid; grid-template-columns: 1fr 1.04fr; border-radius: 16px; overflow: hidden; background: var(--cream); }
.hero-copy { padding: clamp(30px, 4.4vw, 65px); align-self: center; }
.eyebrow { font-size: .71rem; font-weight: 850; text-transform: uppercase; letter-spacing: .15em; margin: 0 0 12px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; }
.hero-copy .eyebrow::before { content: ""; display: inline-block; width: 12px; height: 3px; background: #bc4a20; }
.hero-copy h1 { font-family: var(--heading); font-weight: 950; font-size: clamp(2.2rem, 4.65vw, 4.32rem); letter-spacing: -.073em; line-height: .99; margin: 0 0 20px; overflow-wrap: anywhere; }
.hero-intro { max-width: 34ch; color: var(--muted); margin-bottom: 25px; }
.wiw-button { display: inline-flex; align-items: center; gap: 24px; min-height: 49px; padding: 11px 17px; border-radius: 7px; background: var(--ink); color: white; font-size: .87rem; font-weight: 750; text-decoration: none; }
.wiw-button:hover { background: #373d6b; }
.wiw-button:focus-visible { outline-offset: -4px; outline-color: #fff; }
.hero-media { position: relative; min-height: 360px; background: #e68959; }
.hero-media img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-ticket { position: absolute; left: 7%; top: 11%; transform: rotate(-9deg); background: #ffd66e; color: var(--ink); font-family: var(--heading); font-weight: 950; font-size: clamp(.87rem, 1.5vw, 1.2rem); padding: 8px 13px; box-shadow: 2px 3px 0 var(--ink); border: 1.5px solid var(--ink); }

.shop-section { margin-top: 55px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 21px; }
.section-heading .eyebrow { margin-bottom: 5px; color: #97391a; }
.section-heading h2, .about-panel h2 { font-family: var(--heading); font-weight: 950; font-size: clamp(1.62rem, 3.1vw, 2.75rem); letter-spacing: -.065em; margin: 0; }
.text-link { font-size: .84rem; font-weight: 760; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.category-grid a { display: flex; gap: 8px; justify-content: space-between; align-items: center; min-height: 63px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.category-grid a:hover { background: var(--cream); }
.about-panel { background: var(--ink); color: white; margin-block: 54px; padding: clamp(24px, 5vw, 56px); border-radius: 14px; }
.about-panel .eyebrow { color: #ffb597; }
.about-panel p:last-child { max-width: 62ch; margin: 14px 0 0; }
.home-editor { margin-top: 50px; }
.site-foot { background: #f1ebe1; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 27px; gap: 20px; }
.wordmark-footer { width: 155px; }
.foot-caption { color: var(--muted); font-size: .81rem; }

.shop-content, .entry-layout { min-height: 55vh; padding-block: 38px 65px; }
.entry-layout h1, .woocommerce-products-header__title, .product_title { font-family: var(--heading); font-weight: 950; font-size: clamp(2rem, 4vw, 3.6rem); }
.entry-content { overflow-wrap: anywhere; }
.entry-content > p { max-width: 74ch; }
.woocommerce .woocommerce-breadcrumb, .woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce input.qty, .woocommerce .coupon .input-text, .comment-form input:not([type=submit]), .comment-form textarea {
	border: 1px solid #bcb7ad; border-radius: 6px; padding: .55rem .7rem; background: #fffefa; color: var(--ink);
}
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	float: none; width: auto; margin: 0; padding: 0 14px 15px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fffefa; min-width: 0; position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: var(--ink); }
.woocommerce ul.products li.product a img {
	width: calc(100% + 28px); max-width: none; margin: 0 -14px 10px; aspect-ratio: 1.23; object-fit: cover; background: #ede5d8;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .woocommerce-loop-category__title {
	color: var(--ink); font-size: .99rem; padding: 0; margin: 5px 0 8px; overflow-wrap: anywhere;
}
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.woocommerce ul.products li.product .price ins, .woocommerce div.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price del { color: var(--muted); opacity: 1; font-weight: 500; font-size: .86em; }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale {
	position: absolute; top: 11px; left: 11px; right: auto; margin: 0; min-height: 0; min-width: 0;
	background: var(--orange); color: var(--ink); font-weight: 850; line-height: 1.2; border-radius: 4px; padding: 6px 8px; font-size: .76rem; z-index: 1;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .wc-block-components-button:not(.is-link) {
	background: var(--ink); color: white; border: 0; border-radius: 6px; padding: .72em .95em; font-weight: 720; line-height: 1.25;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover, .wc-block-components-button:not(.is-link):hover { background: #373d6b; color: white; }
.woocommerce ul.products li.product .button { display: inline-block; margin-top: 8px; font-size: .79rem; text-decoration: none; }
.woocommerce div.product div.images img { border-radius: 10px; }
.woocommerce div.product p.stock { color: #35614c; }
.woocommerce div.product p.stock.out-of-stock { color: #913b25; }
.woocommerce div.product form.cart .variations select { max-width: 100%; min-height: 40px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ink); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ink); }
.wc-block-components-totals-wrapper { border-color: var(--line); }
.comment-section { margin-top: 35px; }

@media (max-width: 1000px) {
	.shell { width: calc(100% - 48px); }
	.head-main { gap: 20px; }
	.head-actions { gap: 14px; }
	.hero-copy { padding: 33px; }
	.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.shell { width: calc(100% - 36px); }
	.head-main { grid-template-columns: auto 1fr; gap: 13px; }
	.head-actions { justify-self: end; }
	.store-search { grid-column: 1 / -1; grid-row: 2; }
	.nav-list { column-gap: 19px; }
	.nav-list a { font-size: .78rem; }
	.home-content { padding-top: 18px; }
	.wiw-hero { grid-template-columns: 1fr; }
	.hero-copy { padding: 28px; }
	.hero-copy h1 { font-size: clamp(2.45rem, 8vw, 3.65rem); }
	.hero-media { min-height: clamp(230px, 56vw, 380px); }
	.shop-section { margin-top: 37px; }
	.woocommerce ul.products[class*="columns-"], .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.woocommerce ul.products li.product:nth-child(n), .woocommerce-page ul.products li.product:nth-child(n) { float: none; margin: 0; width: auto; }
}
@media (max-width: 390px) {
	.head-main .wordmark { width: clamp(118px, 36vw, 140px); }
	.head-actions { gap: 9px; font-size: .71rem; }
	.head-actions .bag-icon { display: none; }
	.nav-list { column-gap: 14px; }
	.hero-copy { padding: 24px 20px; }
	.woocommerce ul.products li.product .button { overflow-wrap: anywhere; }
}

.head-nav-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.mega-menu > summary, .shop-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; }
.mega-menu > summary::-webkit-details-marker, .shop-menu summary::-webkit-details-marker { display: none; }
.mega-menu > summary { padding-block: 11px; font-size: .86rem; font-weight: 720; }
.mega-menu > summary:hover, .mega-menu[open] > summary { box-shadow: inset 0 -3px var(--orange); }
.menu-chevron { flex: none; width: 7px; height: 7px; margin: -4px 3px 0 0; border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
details[open] > summary .menu-chevron { margin-top: 3px; transform: rotate(225deg); }
.mega-panel {
	position: absolute; z-index: 10; inset: 100% 0 auto; max-height: min(65vh, 560px); overflow: auto;
	padding: clamp(17px, 3vw, 34px); border: 1px solid var(--line); border-top: 3px solid var(--orange);
	border-radius: 0 0 14px 14px; background: #fffefa; box-shadow: 0 18px 38px rgb(32 36 71 / 16%);
}
.mega-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; }
.mega-heading p { font-family: var(--heading); font-size: clamp(1.18rem, 2vw, 1.65rem); line-height: 1.15; letter-spacing: -.04em; margin: 0; }
.mega-heading a, .nav-list .mega-heading a { padding: 6px 0; font-size: .84rem; font-weight: 760; text-decoration: underline; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.mega-grid > li { min-width: 0; padding: 12px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.mega-panel a, .shop-menu a { overflow-wrap: anywhere; }
.mega-panel .mega-category { display: block; font-size: .91rem; font-weight: 800; padding: 4px 0; text-decoration: none; }
.mega-subcategories { list-style: none; margin: 0; padding: 0; }
.mega-subcategories a, .nav-list .mega-subcategories a { display: block; padding: 4px 0; font-size: .84rem; font-weight: 500; text-decoration: none; }
.mega-panel .mega-category:hover, .mega-subcategories a:hover { text-decoration: underline; }
.mega-empty { margin: 0; color: var(--muted); }

.catalog-layout { display: grid; grid-template-columns: clamp(175px, 19vw, 230px) minmax(0, 1fr); align-items: start; gap: clamp(16px, 2.5vw, 34px); }
.catalog-results { min-width: 0; scroll-margin-top: 16px; }
.home-content .catalog-results ul.products { margin-block: 0; }
.shop-menu { background: #fffefa; border: 1px solid var(--line); border-radius: 10px; }
.shop-menu summary { padding: 14px 15px; font-size: .9rem; font-weight: 800; background: var(--cream); border-radius: 9px; }
.shop-menu details[open] > summary { border-radius: 9px 9px 0 0; }
.shop-menu-list, .shop-menu-list .sub-menu { list-style: none; margin: 0; padding: 6px 8px 8px; }
.shop-menu-list .sub-menu { padding: 0 0 0 13px; }
.shop-menu-list a { display: block; border-radius: 5px; padding: 8px 7px; font-size: .85rem; text-decoration: none; }
.shop-menu-list a:hover { background: var(--paper); text-decoration: underline; }
.shop-menu-list [aria-current="page"], .shop-menu-list .current-menu-item > a { background: var(--cream); box-shadow: inset 3px 0 var(--orange); font-weight: 770; }

@media (min-width: 761px) and (max-width: 1100px) {
	.catalog-results .woocommerce ul.products.columns-4, .woocommerce .catalog-results ul.products.columns-4,
	.woocommerce .catalog-results ul.products.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 900px) {
	.catalog-results .woocommerce ul.products.columns-4, .woocommerce .catalog-results ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.head-nav-inner { column-gap: 19px; }
	.mega-menu > summary { font-size: .78rem; }
	.mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.mega-grid > li { padding: 8px 10px; }
	.catalog-layout { grid-template-columns: minmax(0, 1fr); }
}
