/*
Theme Name: KlappStudio
Theme URI: https://klappstudio.de
Author: KlappStudio
Description: Schlichtes Block-Theme für den Poster-Shop: Schwarz-Weiß, Systemschrift, nur Shop-Seiten.
Version: 0.1.0
Requires at least: 7.0
Requires PHP: 8.4
Text Domain: klappstudio
*/

/* Kopf- und Fußzeile */

.ks-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ks-header__bar {
	min-height: 64px;
}

.ks-header .wp-block-site-title a {
	color: inherit;
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.ks-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: 72px;
}

.ks-footer__bar {
	padding: 24px 0 36px;
	gap: 8px 32px;
}

.klappstudio-legal-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.klappstudio-legal-nav a {
	align-items: center;
	display: flex;
	font-size: var(--wp--preset--font-size--small);
	min-height: 44px;
	text-decoration: none;
}

.klappstudio-legal-nav a:hover {
	text-decoration: underline;
}

.ks-muted,
.ks-footer p {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

/* Katalog */

.klappstudio-category-nav ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 20px 0 0;
	overflow-x: auto;
	padding: 0 0 4px;
}

.klappstudio-pill {
	align-items: center;
	border: 1px solid #cfcfcf;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	font-size: 14px;
	min-height: 44px;
	padding: 0 18px;
	text-decoration: none;
	white-space: nowrap;
}

.klappstudio-pill:hover {
	border-color: var(--wp--preset--color--ink);
}

.klappstudio-pill.is-active {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.klappstudio-catalog-head {
	align-items: baseline;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-top: 24px;
}

.klappstudio-catalog-head h1 {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0;
}

.klappstudio-catalog-head span {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.ks-catalog .wc-block-product-template {
	column-gap: clamp(12px, 2.5vw, 32px);
	row-gap: 36px;
}

.ks-catalog .wc-block-components-product-image,
.ks-catalog .wc-block-components-product-image img {
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--tile);
	object-fit: cover;
	width: 100%;
}

.ks-card-title {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	margin-top: 12px;
}

.ks-card-title a {
	text-decoration: none;
}

.ks-card-price,
.ks-card-price .wc-block-components-product-price {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	margin-top: 2px;
}

/* Preisangaben von Germanized (inkl. MwSt., Versandkosten) unter dem Preis der Karte */
.ks-catalog .wc-block-product p.wc-gzd-additional-info.wc-gzd-additional-info-loop {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	line-height: 1.4;
	margin: 0;
}

/* Produktseite */

.ks-breadcrumbs {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 16px;
}

.ks-breadcrumbs a {
	color: var(--wp--preset--color--muted);
}

.ks-product {
	column-gap: clamp(24px, 5vw, 64px);
	margin-top: 16px;
}

.ks-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ks-gallery .wc-block-product-gallery-large-image img,
.ks-gallery .wc-block-product-gallery-thumbnails img {
	background: var(--wp--preset--color--tile);
}

.ks-buybox > * + * {
	margin-top: 8px;
}

.ks-buybox h1 {
	margin: 0;
}

.ks-price,
.ks-price .wc-block-components-product-price {
	font-size: var(--wp--preset--font-size--large);
	margin-top: 12px;
}

.ks-buybox .wp-block-woocommerce-gzd-product-price-label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 2px;
}

.ks-buybox .wp-block-woocommerce-gzd-product-is-empty {
	display: none;
}

.ks-buybox .wc-block-add-to-cart-with-options {
	margin-top: 28px;
}

.ks-attribute {
	gap: 10px;
	margin: 0 0 24px;
}

.ks-attribute .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name,
.ks-attribute label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.wc-block-product-filter-chips__items {
	gap: 8px;
}

.wc-block-product-filter-chips__item {
	border-color: #cfcfcf;
	border-radius: 0;
	font-size: 14px;
	min-height: 44px;
	padding: 0 16px;
}

.wc-block-product-filter-chips__item:hover:not(:disabled) {
	border-color: var(--wp--preset--color--ink);
}

.wc-block-product-filter-chips__item[aria-checked="true"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* Personalisierung (Plugin klappstudio-shop) */

.klappstudio-personalization {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 24px;
	min-width: 0;
	padding: 0;
}

.klappstudio-personalization legend {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-bottom: 12px;
	padding: 0;
}

.klappstudio-personalization__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.klappstudio-personalization__head {
	align-items: baseline;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.klappstudio-personalization__head label {
	font-size: 14px;
}

.klappstudio-personalization__count,
.klappstudio-personalization__hint {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
}

.klappstudio-personalization input[type="text"] {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--field);
	border-radius: 0;
	box-sizing: border-box;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: 16px;
	height: 48px;
	padding: 0 14px;
	width: 100%;
}

.klappstudio-personalization input[type="text"]:focus {
	border-color: var(--wp--preset--color--ink);
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 1px;
}

.klappstudio-personalization__note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.ks-add-to-cart {
	gap: 12px;
	margin-top: 8px;
}

.ks-add-to-cart .wp-block-woocommerce-product-button {
	flex: 1 1 auto;
}

.ks-add-to-cart .wc-block-components-product-button .wc-block-components-product-button__button {
	border-radius: 0;
	flex: 1 1 auto;
	min-height: 52px;
	width: 100%;
}

.ks-details {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: 32px;
}

.ks-details details,
.ks-details .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin: 0;
}

.ks-details summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 14px;
	min-height: 52px;
}

.ks-details details > :not(summary) {
	color: #333333;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 20px;
}

/* Gewährleistungslabel der EU (Germanized, in der Kasse): farbig und vollständig sichtbar, aber nicht seitenfüllend */

.wc-gzd-legal-guarantee-label-full .wc-gzd-legal-guarantee-label-image {
	display: block;
	height: auto;
	max-width: 600px;
	width: 100%;
}

/* Seiten */

.ks-page {
	padding-top: 32px;
}
