/*
Theme Name:  Zauberhaft Schick (Blocksy Child)
Template:    blocksy
Description: Shop-Design passend zu zauberhaft-schick.de – Header/Footer wie die Hauptseite, lokale Schriften.
Version:     1.0.1
Text Domain: blocksy-child
*/

/* ---------- Schriften (lokal, DSGVO) ---------- */
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/quicksand.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito-sans.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: italic; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito-sans-italic.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat.woff2) format('woff2'); }

/* ---------- Farben der Hauptseite ---------- */
:root:root {
	--zs-bg: #FBF7F0;
	--zs-bg-soft: #F4EADB;
	--zs-sand: #E6D7C0;
	--zs-line: #EADFCD;
	--zs-line-2: #E2D2B9;
	--zs-brown: #6E5A45;
	--zs-brown-dark: #4A3B2C;
	--zs-heading: #3E2F23;
	--zs-text: #4A3B2C;
	--zs-muted: #8A7560;
	--zs-gold: #C49A63;
	--zs-rust: #9A5B3B;

	/* Blocksy-Palette auf die Hauptseite umbiegen */
	--theme-palette-color-1: #6E5A45;
	--theme-palette-color-2: #4A3B2C;
	--theme-palette-color-3: #4A3B2C;
	--theme-palette-color-4: #3E2F23;
	--theme-palette-color-5: #E2D2B9;
	--theme-palette-color-6: #F4EADB;
	--theme-palette-color-7: #FBF7F0;
	--theme-palette-color-8: #FFFFFF;
	--theme-text-color: #4A3B2C;
	--theme-link-initial-color: #6E5A45;
	--theme-link-hover-color: #3E2F23;
	--theme-headings-color: #3E2F23;
	--theme-border-color: #E2D2B9;
	--theme-button-background-initial-color: #6E5A45;
	--theme-button-background-hover-color: #4A3B2C;
	--theme-button-text-initial-color: #FBF7F0;
	--theme-button-text-hover-color: #FBF7F0;
	--theme-button-border-radius: 999px;
	--theme-form-field-border-radius: 14px;
	--theme-form-field-border-initial-color: #E2D2B9;
	--theme-form-field-border-focus-color: #C49A63;
	--theme-font-family: 'Nunito Sans', sans-serif;
	--theme-font-size: 17px;
	--theme-line-height: 1.7;
	--theme-content-spacing: 1.4em;
	--theme-normal-container-max-width: 1180px;
}

body {
	background: var(--zs-bg) !important;
	color: var(--zs-text);
	font-family: 'Nunito Sans', sans-serif;
}
h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title,
.product_title,
.page-title,
.entry-title {
	font-family: 'Quicksand', sans-serif !important;
	font-weight: 700;
	color: var(--zs-heading);
	letter-spacing: -0.3px;
}
a { color: var(--zs-brown); }
a:hover { color: var(--zs-heading); }
::selection { background: var(--zs-sand); color: var(--zs-heading); }

/* ---------- Header (wie Hauptseite) ---------- */
.zs-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251,247,240,0.93);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--zs-line);
}
.admin-bar .zs-header { top: var(--admin-bar, 32px); }
.zs-header-row {
	position: relative; max-width: 1180px; margin: 0 auto;
	padding: 12px clamp(18px,4vw,48px);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.zs-logo img { height: 80px; width: auto; display: block; }
.zs-nav {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: clamp(12px,1.6vw,24px);
	font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 16px;
}
.zs-nav a {
	color: var(--zs-brown); padding: 6px 2px;
	border-bottom: 2px solid transparent; text-decoration: none;
	transition: color .15s, border-color .15s;
}
.zs-nav a:hover { color: var(--zs-heading); border-bottom-color: var(--zs-gold); }
.zs-nav a.zs-active { color: var(--zs-heading); border-bottom-color: var(--zs-gold); }
.zs-nav a.zs-nav-cta {
	background: var(--zs-brown); color: var(--zs-bg); padding: 10px 22px;
	border-radius: 999px; border-bottom: none;
}
.zs-nav a.zs-nav-cta:hover { background: var(--zs-brown-dark); color: var(--zs-bg); }
.zs-cart {
	position: relative; display: inline-flex !important; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0 !important; border-radius: 999px;
	border: 2px solid #D8C4A8 !important;
}
.zs-cart:hover { border-color: var(--zs-brown) !important; }
.zs-cart svg { width: 20px; height: 20px; }
.zs-cart-count {
	position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--zs-gold); color: #fff;
	font-size: 12px; line-height: 20px; text-align: center; font-weight: 700;
}
.zs-cart-count:empty, .zs-cart-count[data-count="0"] { display: none; }
.zs-burger {
	display: none; align-items: center; justify-content: center;
	width: 46px; height: 46px; border: none; background: var(--zs-brown); color: var(--zs-bg);
	border-radius: 12px; cursor: pointer; font-size: 22px; line-height: 1;
}
.zs-header-actions { display: none; align-items: center; gap: 10px; }

@media (max-width: 1060px) {
	.zs-burger { display: inline-flex; }
	.zs-header-actions { display: inline-flex; }
	.zs-nav .zs-cart { display: none !important; }
	.zs-nav {
		display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 2px;
		background: var(--zs-bg); border-bottom: 1px solid var(--zs-line);
		padding: 10px 24px 18px; box-shadow: 0 20px 30px -22px rgba(74,59,44,0.55);
	}
	.zs-nav.zs-open { display: flex; }
	.zs-nav a { padding: 12px 4px; width: 100%; border-bottom: 1px solid #F0E6D6; }
	.zs-nav a.zs-nav-cta { text-align: center; margin-top: 10px; border-bottom: none; }
	.zs-logo img { height: 64px; }
}

/* ---------- Footer (wie Hauptseite) ---------- */
.zs-footer {
	background: var(--zs-bg-soft); border-top: 1px solid var(--zs-line-2);
	padding: clamp(48px,6vw,72px) clamp(18px,5vw,48px) 32px;
	margin-top: clamp(48px,6vw,80px);
}
.zs-footer-cols {
	max-width: 1180px; margin: 0 auto;
	display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap;
}
.zs-footer-brand { flex: 1 1 280px; max-width: 340px; }
.zs-footer-brand img { height: 84px; width: auto; margin-bottom: 14px; }
.zs-footer-brand p { font-size: 16px; line-height: 1.6; color: var(--zs-brown); margin: 0; }
.zs-footer-col { flex: 0 1 auto; }
.zs-footer-col .zs-footer-title {
	font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 16px;
	color: var(--zs-heading); margin: 0 0 16px;
}
.zs-footer-col nav { display: flex; flex-direction: column; gap: 11px; font-size: 16px; }
.zs-footer-col a { color: var(--zs-brown); text-decoration: none; }
.zs-footer-col a:hover { color: var(--zs-heading); }
.zs-footer-col a.zs-revoke { color: var(--zs-rust); font-weight: 600; }
.zs-footer-col a.zs-revoke:hover { color: #7a4126; }
.zs-footer-bottom {
	max-width: 1180px; margin: 36px auto 0; padding-top: 24px;
	border-top: 1px solid var(--zs-line-2); text-align: center;
}
.zs-footer-bottom p { font-size: 14.5px; color: var(--zs-muted); margin: 0; }

/* ---------- Seitenkopf im Shop ---------- */
.zs-kicker {
	font-family: 'Caveat', cursive; font-weight: 600; color: var(--zs-gold);
	font-size: clamp(26px,3vw,34px); margin: 0 0 4px; line-height: 1.1;
}
.hero-section[data-type="type-1"] { margin-bottom: 32px; }
.hero-section .page-title, .woocommerce-products-header__title {
	font-size: clamp(34px,5vw,54px) !important; line-height: 1.1;
}

/* ---------- Buttons ---------- */
.button, button.button, a.button, input[type="submit"],
.wp-element-button, .wc-block-components-button:not(.is-link),
.single_add_to_cart_button, .checkout-button, #place_order,
.woocommerce-mini-cart__buttons .button {
	font-family: 'Quicksand', sans-serif !important;
	font-weight: 600 !important;
	border-radius: 999px !important;
	background: var(--zs-brown) !important;
	color: var(--zs-bg) !important;
	border: none !important;
	transition: background .15s;
}
.button:hover, button.button:hover, a.button:hover, input[type="submit"]:hover,
.wp-element-button:hover, .wc-block-components-button:not(.is-link):hover,
.single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover {
	background: var(--zs-brown-dark) !important;
	color: var(--zs-bg) !important;
}
.button.alt-outline, .woocommerce-Button--previous, .button.wc-backward {
	background: transparent !important; color: var(--zs-brown) !important;
	border: 2px solid #D8C4A8 !important;
}

/* ---------- Produktkacheln ---------- */
.products .product {
	background: #fff; border-radius: 22px; padding: 14px 14px 20px !important;
	box-shadow: 0 18px 40px -30px rgba(74,59,44,0.45);
	border: 1px solid var(--zs-line);
	transition: transform .2s, box-shadow .2s;
}
.products .product:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px rgba(74,59,44,0.55); }
.products .product figure, .products .product .ct-media-container,
.products .product img { border-radius: 16px; overflow: hidden; }
.products .woocommerce-loop-product__title { font-size: 18px !important; }
.price, .woocommerce-Price-amount { color: var(--zs-brown) !important; font-weight: 700; }
.price del .woocommerce-Price-amount { color: var(--zs-muted) !important; font-weight: 400; }
.onsale, .out-of-stock-badge {
	background: var(--zs-gold) !important; color: #fff !important; border-radius: 999px !important;
	font-family: 'Quicksand', sans-serif; font-weight: 700;
}
.wc-gzd-additional-info, .wc-gzd-additional-info a,
.small-business-info, .wc-gzd-small-business-info, .shipping-costs-info, .delivery-time-info {
	font-size: 13.5px; color: var(--zs-muted) !important;
}

/* ---------- Produktseite ---------- */
.single-product div.product .woocommerce-product-gallery img { border-radius: 22px; }
.single-product .product_title { font-size: clamp(30px,4vw,44px) !important; }
.single-product .summary .price { font-size: 26px; }
.woocommerce-tabs .tabs li a { font-family: 'Quicksand', sans-serif; font-weight: 600; }
.quantity .qty { border-radius: 999px !important; }

/* ---------- Formulare, Warenkorb, Kasse ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], select, textarea,
.wc-block-components-text-input input, .wc-block-components-select select {
	background: #fff !important; border-radius: 14px !important;
	border-color: var(--zs-line-2) !important;
}
input:focus, select:focus, textarea:focus { border-color: var(--zs-gold) !important; }
.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order,
.wc-block-cart, .wc-block-checkout, .woocommerce-MyAccount-content,
#customer_details, .woocommerce-order {
	background: #fff; border-radius: 22px; border: 1px solid var(--zs-line);
	padding: clamp(16px,3vw,32px);
}
.shop_table th { font-family: 'Quicksand', sans-serif; color: var(--zs-heading); }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	border-radius: 16px !important; background: var(--zs-bg-soft) !important;
	border-color: var(--zs-gold) !important; color: var(--zs-text) !important;
}

/* ---------- Rechtstexte ---------- */
.zs-legal { max-width: 820px; margin: 0 auto; }
.zs-legal h2 { font-size: 22px; margin: 2em 0 .6em; }
.zs-legal h3 { font-size: 18px; margin: 1.6em 0 .5em; }
.zs-legal p, .zs-legal li { font-size: 17px; line-height: 1.8; color: #5A4836; }
.zs-legal .zs-box {
	background: #fff; border: 1px solid var(--zs-line-2); border-radius: 18px; padding: 18px 22px; margin: 1.2em 0;
}

/* ---------- Coming-Soon-Seite von WooCommerce ---------- */
.woocommerce-coming-soon-default,
.woocommerce-coming-soon-default .wp-block-cover,
.woocommerce-coming-soon-default .woocommerce-coming-soon-header {
	background: var(--zs-bg) !important; color: var(--zs-text) !important;
}
.woocommerce-coming-soon-default .woocommerce-coming-soon-header {
	border-bottom: 1px solid var(--zs-line);
}
.zs-cs-logo img { height: 80px; width: auto; display: block; }
.woocommerce-coming-soon-default .woocommerce-coming-soon-header-login .wp-block-button__link {
	font-family: 'Quicksand', sans-serif; font-weight: 600; border-radius: 999px;
	background: transparent !important; color: var(--zs-brown) !important; border: 2px solid #D8C4A8 !important;
}
.zs-cs-kicker { text-align: center; margin-bottom: 6px !important; }
.woocommerce-coming-soon-default h1.woocommerce-coming-soon-banner {
	font-family: 'Quicksand', sans-serif !important; font-weight: 700;
	font-size: clamp(38px,6vw,64px) !important; line-height: 1.1; color: var(--zs-heading) !important;
	max-width: 780px; margin: 0 auto 18px !important;
}
.zs-cs-text {
	text-align: center; max-width: 560px; margin: 0 auto !important;
	font-size: clamp(17px,1.5vw,20px); line-height: 1.7; color: var(--zs-brown);
}
.zs-cs-text a { color: var(--zs-rust); text-decoration: underline; }
.woocommerce-coming-soon-powered-by-woo > *:not(.wp-block-group) { display: none !important; }
.zs-social { justify-content: center; gap: 18px !important; }
.zs-social .wp-social-link, .zs-social .wp-social-link a { color: var(--zs-brown) !important; }
.zs-social .wp-social-link:hover, .zs-social .wp-social-link a:hover { color: var(--zs-heading) !important; }
.zs-social .wp-social-link svg { width: 26px; height: 26px; }
