/*
Theme Name: Orlind
Theme URI: https://orlind.de
Author: Orlind
Description: Schlankes Block-Theme für Orlind – Edelmetall-Geschenke. Design-Richtung „Atelier“: Creme, viel Weißraum, editoriale Serifen.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: Proprietary
Text Domain: orlind
*/

/* Feinschliff, den theme.json nicht abdeckt. Bewusst klein halten. */

:root {
	--orlind-hairline: 1px solid var(--wp--preset--color--line);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--linen);
	color: var(--wp--preset--color--ink);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

/* Kopfzeile */
.orlind-topbar p {
	letter-spacing: 0.08em;
}

.orlind-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: var(--orlind-hairline);
}

.orlind-header .wp-block-site-title a {
	text-decoration: none;
	letter-spacing: 0.04em;
}

.orlind-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* Link mit Unterstrich als ruhiger Call-to-Action */
.orlind-link-cta a {
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 3px;
}

.orlind-link-cta a:hover {
	border-bottom-width: 2px;
}

/* Kicker / Überzeile */
.orlind-kicker {
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

/* Produktkacheln */
.wc-block-product-template .wc-block-components-product-image img,
.wc-block-grid__product-image img {
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--wp--preset--color--linen);
	transition: transform 0.6s ease;
}

.wc-block-product-template li:hover .wc-block-components-product-image img {
	transform: scale(1.03);
}

.wc-block-components-product-image {
	overflow: hidden;
}

/* Vertrauensleiste */
.orlind-trust .wp-block-column {
	border-left: var(--orlind-hairline);
	padding-left: var(--wp--preset--spacing--40);
}

.orlind-trust .wp-block-column:first-child {
	border-left: 0;
	padding-left: 0;
}

@media (max-width: 781px) {
	.orlind-trust .wp-block-column {
		border-left: 0;
		padding-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* Kopfzeile: Menü links, Logo mittig, Aktionen rechts */
.orlind-header > .wp-block-group {
	grid-template-columns: 1fr auto 1fr !important;
	align-items: center;
}

.orlind-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.orlind-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 0;
	padding: 0.25rem;
}

.orlind-header .wp-block-search__button svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 960px) {
	.orlind-header .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.orlind-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}
}

.orlind-header .wp-block-search,
.orlind-header .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	margin: 0;
}

.orlind-header .wp-block-search__button {
	margin: 0;
	display: flex;
}
