/*
Theme Name:   eseris (Astra Child)
Theme URI:    https://eseris.de
Description:  Naturverbundenes, ruhiges Premium-Theme für handgefertigte Deko & Figuren, aufbauend auf Astra. WooCommerce-ready.
Author:       OS-Handel
Template:     astra
Version:      1.0.0
Text Domain:  eseris-child
*/

/* ==========================================================================
   DESIGN TOKENS — eseris
   Konzept: "Handgefertigte Ruhe". Warmer Gips/Stein-Grund (greift das matte
   Material der gedruckten Objekte auf), Salbeigrün als Leitfarbe statt des
   üblichen Terrakotta-Cremeweiß-Klischees. Weiche, kieselartige Formen,
   sanfte Schatten. Ein feines botanisches Zweig-Motiv als Signatur.
   ========================================================================== */
:root {
	/* Surfaces */
	--es-bg:            #EDECE4;   /* warmer Gips/Stein-Ton, leicht grünlich gebrochen */
	--es-surface:        #FBFAF6;   /* warmes Fast-Weiß für Karten */
	--es-surface-sage:   #E4E8DF;   /* zart salbeigetönte Fläche */
	--es-hairline:       #DEDBCF;

	/* Text */
	--es-text:        #2C302B;   /* warmes Dunkelgrün-Schwarz */
	--es-text-muted:  #79776D;

	/* Accent — Salbei / Eukalyptus (Leitfarbe) */
	--es-sage:        #5E7060;
	--es-sage-deep:   #3E4C40;   /* für Hover / dunkle Akzente */
	--es-on-sage:     #FBFAF6;

	/* Sekundär — gedämpftes Ton/Rosé, NUR sparsam (z. B. Sale-Preis, Herz-Motiv) */
	--es-clay: #C08977;

	/* Type */
	--es-font-display: 'Fraunces', Georgia, serif;
	--es-font-body:    'Mulish', -apple-system, sans-serif;

	--es-radius:    20px;
	--es-radius-sm: 12px;
	--es-shadow:       0 2px 10px rgba(44, 48, 43, 0.05), 0 14px 34px rgba(44, 48, 43, 0.06);
	--es-shadow-hover: 0 6px 18px rgba(44, 48, 43, 0.08), 0 22px 46px rgba(44, 48, 43, 0.10);
}

/* ==========================================================================
   BASE
   ========================================================================== */
body.eseris-theme {
	background: var(--es-bg);
	color: var(--es-text);
	font-family: var(--es-font-body);
	font-size: 16.5px;
	line-height: 1.65;
}

.eseris-theme h1,
.eseris-theme h2,
.eseris-theme h3,
.eseris-theme h4 {
	font-family: var(--es-font-display);
	font-weight: 500;
	letter-spacing: -0.005em;
	color: var(--es-text);
}

.eseris-theme a { color: var(--es-sage-deep); }

/* ==========================================================================
   HEADER — hell, ruhig, Logo links
   ========================================================================== */
.eseris-theme #ast-desktop-header,
.eseris-theme .site-header {
	background-color: var(--es-surface) !important;
	border-bottom: 1px solid var(--es-hairline);
}
.eseris-theme .ast-primary-header-bar {
	padding-top: 16px;
	padding-bottom: 16px;
}

.eseris-theme .main-header-menu .menu-item > a {
	color: var(--es-text) !important;
	font-family: var(--es-font-body) !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	letter-spacing: 0.01em;
	text-transform: none;
	padding: 8px 14px !important;
	border-radius: 999px;
	transition: background .18s ease, color .18s ease;
}
.eseris-theme .main-header-menu .menu-item > a:hover {
	color: var(--es-sage-deep) !important;
	background: var(--es-surface-sage);
}

.eseris-theme .ast-site-identity img,
.eseris-theme .custom-logo-link img {
	max-height: 50px !important;
	height: 50px !important;
	width: auto !important;
}
.eseris-theme .site-title,
.eseris-theme .ast-site-title {
	font-family: var(--es-font-display);
	font-weight: 600;
	font-size: 21px;
}
.eseris-theme .site-description,
.eseris-theme .ast-site-description {
	font-family: var(--es-font-body);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--es-text-muted);
}

.eseris-theme .ast-header-woo-cart .cart-container,
.eseris-theme .ast-header-account .ast-header-account-svg {
	color: var(--es-text-muted);
}
.eseris-theme .ast-header-woo-cart .cart-container:hover,
.eseris-theme .ast-header-account:hover .ast-header-account-svg {
	color: var(--es-sage-deep);
}
.eseris-theme .count.cart-count-txt,
.eseris-theme .ast-count-info {
	background: var(--es-sage);
	color: var(--es-on-sage);
	font-family: var(--es-font-body);
	font-weight: 700;
}

/* ==========================================================================
   BUTTONS — Salbei, weich, pillenförmig
   ========================================================================== */
.eseris-theme .es-btn-primary,
.eseris-theme .woocommerce a.button,
.eseris-theme .woocommerce button.button,
.eseris-theme .woocommerce .button.alt,
.eseris-theme .woocommerce #respond input#submit,
.eseris-theme .woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--es-sage) !important;
	color: var(--es-on-sage) !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 13px 26px !important;
	font-family: var(--es-font-body) !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(94, 112, 96, 0.24);
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.eseris-theme .es-btn-primary:hover,
.eseris-theme .woocommerce a.button:hover,
.eseris-theme .woocommerce button.button:hover,
.eseris-theme .woocommerce .button.alt:hover,
.eseris-theme .woocommerce input.button:hover {
	background: var(--es-sage-deep) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(94, 112, 96, 0.30);
}

.eseris-theme .es-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--es-text);
	border: 1.5px solid var(--es-hairline);
	border-radius: 999px;
	padding: 12px 24px;
	font-family: var(--es-font-body);
	font-weight: 600;
	text-decoration: none;
	transition: border-color .18s ease, background .18s ease;
}
.eseris-theme .es-btn-secondary:hover {
	border-color: var(--es-sage);
	background: var(--es-surface-sage);
}

/* ==========================================================================
   BOTANICAL SIGNATURE — Zweig-Motiv als Eyebrow-Ornament
   ========================================================================== */
.es-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--es-font-body);
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--es-sage-deep);
}
.es-eyebrow svg {
	width: 26px;
	height: 12px;
	color: var(--es-sage);
	flex-shrink: 0;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.es-trustbar {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: center;
	justify-content: center;
	padding: 15px 20px;
	background: var(--es-surface-sage);
	border-bottom: 1px solid var(--es-hairline);
}
.es-trustbar__item {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--es-text);
	font-size: 13.5px;
	font-weight: 600;
}
.es-trustbar__item svg {
	width: 18px;
	height: 18px;
	color: var(--es-sage);
	flex-shrink: 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.es-hero {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 88px 24px 72px;
	text-align: center;
	overflow: hidden;
}
.es-hero__title {
	font-family: var(--es-font-display);
	font-weight: 400;
	font-size: clamp(36px, 5.4vw, 62px);
	line-height: 1.08;
	max-width: 760px;
	margin: 22px auto 20px;
}
.es-hero__title em {
	font-style: italic;
	color: var(--es-sage-deep);
}
.es-hero__sub {
	font-size: 18px;
	line-height: 1.6;
	color: var(--es-text-muted);
	max-width: 540px;
	margin: 0 auto 34px;
}
.es-hero__ctas {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */
.es-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px;
}
.es-section__head {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 40px;
}
.es-section__title {
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 400;
	margin: 14px 0 12px;
}
.es-section__intro {
	color: var(--es-text-muted);
	font-size: 16.5px;
}
.es-eyebrow--center { justify-content: center; }

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */
.es-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
}
.es-category-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
	padding: 24px;
	background: var(--es-surface-sage);
	border-radius: var(--es-radius);
	box-shadow: var(--es-shadow);
	text-decoration: none;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.es-category-card:hover {
	box-shadow: var(--es-shadow-hover);
	transform: translateY(-3px);
}
.es-category-card__icon {
	position: absolute;
	top: 22px;
	left: 24px;
	width: 30px;
	height: 30px;
	color: var(--es-sage);
	opacity: 0.9;
}
.es-category-card__title {
	font-family: var(--es-font-display);
	font-weight: 500;
	font-size: 20px;
	color: var(--es-text);
}
.es-category-card__count {
	font-size: 13px;
	color: var(--es-text-muted);
	margin-top: 2px;
}

/* ==========================================================================
   FEATURED PRODUCTS (WooCommerce loop)
   ========================================================================== */
.es-featured ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
	margin: 0 !important;
}
.es-featured ul.products::before,
.es-featured ul.products::after { content: none !important; }

.eseris-theme .woocommerce ul.products li.product,
.es-featured ul.products li.product {
	background: var(--es-surface);
	border: 1px solid var(--es-hairline);
	border-radius: var(--es-radius);
	box-shadow: var(--es-shadow);
	padding: 16px !important;
	margin: 0 !important;
	width: auto !important;
	transition: box-shadow .2s ease, transform .2s ease;
	text-align: left;
}
.eseris-theme .woocommerce ul.products li.product:hover,
.es-featured ul.products li.product:hover {
	box-shadow: var(--es-shadow-hover);
	transform: translateY(-3px);
}
.eseris-theme .woocommerce ul.products li.product img {
	border-radius: var(--es-radius-sm);
	margin-bottom: 14px;
	background: var(--es-surface-sage);
}
.eseris-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--es-font-display) !important;
	font-weight: 500;
	font-size: 17px !important;
	color: var(--es-text);
	padding: 0 0 6px !important;
}
.eseris-theme .woocommerce ul.products li.product .price {
	color: var(--es-sage-deep) !important;
	font-family: var(--es-font-body);
	font-weight: 700;
	font-size: 16px !important;
}
.eseris-theme .woocommerce ul.products li.product .price del {
	color: var(--es-text-muted) !important;
	font-weight: 400;
	opacity: 0.7;
}
.eseris-theme .woocommerce ul.products li.product .price ins {
	color: var(--es-clay) !important;
	text-decoration: none;
}

/* WooCommerce Sale-Badge */
.eseris-theme .woocommerce span.onsale {
	background: var(--es-clay) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-family: var(--es-font-body);
	font-weight: 700;
	min-height: auto;
	min-width: auto;
	padding: 4px 12px;
	line-height: 1.4;
}

/* Star rating */
.eseris-theme .woocommerce .star-rating span::before,
.eseris-theme .woocommerce .star-rating::before {
	color: var(--es-sage) !important;
}

/* ==========================================================================
   VALUES / WARUM ESERIS
   ========================================================================== */
.es-values {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}
.es-value {
	background: var(--es-surface);
	border: 1px solid var(--es-hairline);
	border-radius: var(--es-radius);
	box-shadow: var(--es-shadow);
	padding: 30px 26px;
	text-align: center;
}
.es-value__icon {
	width: 46px;
	height: 46px;
	margin: 0 auto 16px;
	padding: 11px;
	box-sizing: border-box;
	color: var(--es-sage);
	background: var(--es-surface-sage);
	border-radius: 50%;
}
.es-value__title {
	font-family: var(--es-font-display);
	font-weight: 500;
	font-size: 18px;
	margin-bottom: 8px;
}
.es-value__text {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--es-text-muted);
}

/* ==========================================================================
   STORY BAND
   ========================================================================== */
.es-story {
	background: var(--es-surface-sage);
}
.es-story__inner {
	max-width: 780px;
	margin: 0 auto;
	padding: 72px 24px;
	text-align: center;
}
.es-story__quote {
	font-family: var(--es-font-display);
	font-weight: 400;
	font-style: italic;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.4;
	color: var(--es-text);
	margin: 18px 0 0;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.es-cta {
	max-width: 1080px;
	margin: 0 auto 88px;
	padding: 52px 44px;
	background: var(--es-sage-deep);
	border-radius: var(--es-radius);
	text-align: center;
	color: var(--es-on-sage);
}
.es-cta__title {
	font-family: var(--es-font-display);
	font-weight: 400;
	font-size: clamp(24px, 3.2vw, 34px);
	color: var(--es-on-sage);
	margin: 0 0 10px;
}
.es-cta__text {
	color: rgba(251, 250, 246, 0.8);
	margin: 0 auto 26px;
	max-width: 460px;
}
.es-cta .es-btn-primary {
	background: var(--es-on-sage) !important;
	color: var(--es-sage-deep) !important;
	box-shadow: none;
}
.es-cta .es-btn-primary:hover {
	background: #fff !important;
	transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.eseris-theme footer,
.eseris-theme .site-footer,
.eseris-theme .ast-footer-container,
.eseris-theme .footer-widget-area,
.eseris-theme .ast-builder-footer-row-container,
.eseris-theme .ast-small-footer,
.eseris-theme .ast-small-footer-wrap {
	background-color: var(--es-surface) !important;
	color: var(--es-text-muted) !important;
	border-top: 1px solid var(--es-hairline);
}
.eseris-theme footer a,
.eseris-theme .ast-footer-container a,
.eseris-theme .ast-small-footer a {
	color: var(--es-text) !important;
	text-decoration: none;
}
.eseris-theme footer a:hover,
.eseris-theme .ast-footer-container a:hover {
	color: var(--es-sage-deep) !important;
}
.eseris-theme footer h1,
.eseris-theme footer h2,
.eseris-theme footer h3,
.eseris-theme footer h4,
.eseris-theme .widget-title {
	font-family: var(--es-font-display);
	color: var(--es-text) !important;
	font-weight: 500;
	font-size: 16px;
	margin-bottom: 16px;
}
.eseris-theme .ast-small-footer-wrap {
	padding: 20px 24px;
	font-size: 13px;
	border-top: 1px solid var(--es-hairline);
}

/* ==========================================================================
   WOOCOMMERCE — Shop / Produktseite / Warenkorb Grundpolitur
   ========================================================================== */
.eseris-theme .woocommerce div.product .product_title {
	font-family: var(--es-font-display);
	font-weight: 400;
}
.eseris-theme .woocommerce div.product p.price,
.eseris-theme .woocommerce div.product span.price {
	color: var(--es-sage-deep);
	font-family: var(--es-font-body);
	font-weight: 700;
}
.eseris-theme .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--es-sage) !important;
}
.eseris-theme .woocommerce .woocommerce-message,
.eseris-theme .woocommerce .woocommerce-info {
	border-top-color: var(--es-sage) !important;
}
.eseris-theme .woocommerce .woocommerce-message::before,
.eseris-theme .woocommerce .woocommerce-info::before {
	color: var(--es-sage) !important;
}
/* Quantity + inputs */
.eseris-theme .woocommerce .quantity input.qty,
.eseris-theme .woocommerce form .form-row input.input-text,
.eseris-theme .woocommerce form .form-row textarea {
	border: 1px solid var(--es-hairline);
	border-radius: var(--es-radius-sm);
	background: var(--es-surface);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
	.es-trustbar {
		gap: 18px;
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
	}
	.es-hero { padding: 60px 20px 48px; }
	.es-cta { padding: 40px 24px; margin-bottom: 60px; }
}
