/* ==========================================================
   shop.angela-mahr.de – Design wie angela-mahr.de

   1. Schriften
   2. Farben & Grundwerte
   3. Grundlayout (Seite als Karte vor dem Erd-Hintergrund)
   4. Header, Menü, Warenkorb
   5. Buttons & Formulare
   6. Produkte (Übersicht & Einzelseite)
   7. Warenkorb, Kasse, Konto, Hinweise
   8. Sidebar
   9. Footer & Handy-Leiste
   ========================================================== */


/* ---------- 1. Schriften (lokal) ---------- */

@font-face { font-family: "Playfair Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/roboto-condensed-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/roboto-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/allura-latin-400-normal.woff2") format("woff2"); }


/* ---------- 2. Farben & Grundwerte ---------- */

:root {
	--am-cream:       #f5efe4;
	--am-cream-light: #faf7f1;
	--am-white:       #ffffff;
	--am-sage:        #7f977f;
	--am-sage-dark:   #677f68;
	--am-sage-light:  #dfe6dc;
	--am-blue:        #5d6d84;
	--am-blue-dark:   #4a596d;
	--am-forest:      #2f4a3a;
	--am-ink:         #26292b;
	--am-text:        #3a3d40;
	--am-muted:       #6c7073;
	--am-line:        #e4dccd;

	--am-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--am-sans:  "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

	--am-radius:    6px;
	--am-radius-lg: 14px;
	--am-shadow:    0 2px 6px rgba(38, 41, 43, .06), 0 10px 28px rgba(38, 41, 43, .08);
	--am-page-max:  1320px;
}


/* ---------- 3. Grundlayout ---------- */

html body {
	background:
		linear-gradient(rgba(255, 248, 235, .40), rgba(255, 248, 235, .40)),
		#1b3558 url("../images/hintergrund.webp") center top / cover fixed no-repeat;
	color: var(--am-text);
	font-family: var(--am-sans);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

html body button,
html body input,
html body select,
html body textarea { font-family: var(--am-sans); }

#page {
	max-width: var(--am-page-max);
	margin: 40px auto;
	background: var(--am-cream);
	border-radius: var(--am-radius-lg);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	overflow: clip;
}

html body :is(h1, h2, h3, h4, h5, h6),
.entry-title, .page-title, .product_title {
	font-family: var(--am-serif);
	font-weight: 600;
	color: var(--am-ink);
	letter-spacing: 0;
	line-height: 1.25;
}

a { color: var(--am-blue); }
a:hover, a:focus { color: var(--am-sage-dark); }
:focus-visible { outline: 2px solid var(--am-sage); outline-offset: 2px; }

.site-content { padding-top: 8px; padding-bottom: 32px; }

.storefront-breadcrumb {
	margin: 0 0 24px;
	padding: 18px 0;
	background: transparent;
	font-size: 15px;
}
.storefront-breadcrumb, .storefront-breadcrumb a { color: var(--am-muted); }
.woocommerce-breadcrumb a:first-of-type::before { color: var(--am-muted); }

.hentry .entry-header { border-bottom: 0; }
.hentry .entry-content { font-size: 18px; }

@media (max-width: 1400px) { #page { margin: 24px; } }
@media (max-width: 767px) {
	html body { font-size: 17px; background-attachment: scroll; }
	#page { margin: 0; border-radius: 0; }
}


/* ---------- 4. Header, Menü, Warenkorb ---------- */

.site-header {
	padding: 0;
	margin-bottom: 0;
	background: var(--am-cream-light);
	border-bottom: 1px solid var(--am-line);
	color: var(--am-ink);
}

.am-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	text-decoration: none;
}
.am-brand__logo { width: 56px; height: 56px; object-fit: contain; }
.am-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
/* Name wie auf angela-mahr.de: Allura-Schreibschrift */
.am-brand__name {
	font-family: "Allura", cursive;
	font-size: 44px;
	font-weight: 700; /* Allura hat keinen fetten Schnitt – der Browser verstärkt die Striche. */
	line-height: .9;
	color: var(--am-ink);
}
.am-brand__tagline {
	margin-top: 4px;
	font-size: 13px; /* etwas größer als auf der Hauptseite, weil der Shop-Untertitel kürzer ist */
	font-weight: 500;
	color: var(--am-text);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.am-brand__tagline::before { content: "— "; }
.am-brand:hover .am-brand__name { color: var(--am-sage-dark); }

.main-navigation ul li a,
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	padding: 10px 12px;
	color: var(--am-ink);
	font-family: var(--am-sans);
	font-size: 17px;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.main-navigation ul li a:hover,
.main-navigation ul li:hover > a,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a { color: var(--am-sage-dark); }

.main-navigation ul.menu ul,
.main-navigation ul.nav-menu ul {
	background: var(--am-white);
	border-radius: var(--am-radius);
	box-shadow: var(--am-shadow);
	padding: 8px 0;
}
.main-navigation ul.menu ul li a,
.main-navigation ul.nav-menu ul li a {
	padding: 8px 18px;
	font-size: 16px;
	text-transform: none;
	background: transparent;
}
.main-navigation ul.menu ul li a:hover,
.main-navigation ul.nav-menu ul li a:hover { background: var(--am-cream); }

/* Warenkorb im Header */
.site-header-cart .cart-contents { color: var(--am-ink); font-size: 16px; }
.site-header-cart .cart-contents:hover { color: var(--am-sage-dark); }
.site-header-cart .cart-contents .count {
	opacity: 1;
	background: var(--am-sage);
	color: #fff;
	border-radius: 20px;
	padding: 1px 8px;
	font-size: 14px;
}
.site-header-cart .widget_shopping_cart {
	background: var(--am-white);
	border-radius: 0 0 var(--am-radius) var(--am-radius);
	box-shadow: var(--am-shadow);
}
.site-header-cart .widget_shopping_cart a.button { margin: 4px; }

@media (min-width: 768px) {
	.site-header .col-full {
		display: flex;
		align-items: center;
		gap: 24px;
		min-height: 92px;
		max-width: 1240px;
		padding-left: 32px;
		padding-right: 32px;
		box-sizing: border-box;
	}
	.site-header .col-full::before,
	.site-header .col-full::after { display: none; }
	.site-header .main-navigation {
		flex: 1 1 auto;
		width: auto;
		float: none;
		margin: 0;
		clear: none;
	}
	.site-header .main-navigation ul.menu,
	.site-header .main-navigation ul.nav-menu { display: flex; justify-content: flex-end; flex-wrap: wrap; }
	.site-header .main-navigation ul.menu > li,
	.site-header .main-navigation ul.nav-menu > li { float: none; }
	.site-header .site-header-cart {
		flex: 0 0 auto;
		width: auto;
		float: none;
		margin: 0;
	}
	.site-header .site-header-cart .cart-contents { padding: 10px 0; }
}

@media (max-width: 767px) {
	.site-header .col-full { padding-top: 14px; padding-bottom: 10px; }
	.am-brand__logo { width: 44px; height: 44px; }
	.am-brand__name { font-size: 34px; }
	.am-brand__tagline { font-size: 11px; }
	/* Hamburger rechts neben dem Namen (erste Zeile), ohne das Wort „Menü“; das Menü klappt darunter auf */
	.site-header .col-full { position: relative; }
	.am-brand { padding-right: 52px; }
	.main-navigation { margin-top: 0; }
	.main-navigation .menu-toggle {
		position: absolute;
		top: 14px;
		right: 0;
		float: none;
		width: 44px;
		height: 44px;
		max-width: none;
		padding: 0;
		font-size: 0; /* Text „Menü“ ausblenden – für Screenreader bleibt er erhalten */
		background: transparent;
		border: 1px solid var(--am-line);
		border-radius: var(--am-radius);
		color: var(--am-ink);
		box-shadow: none;
	}
	.main-navigation .menu-toggle::before,
	.main-navigation .menu-toggle::after,
	.main-navigation .menu-toggle span::before { left: 14px; }
	.main-navigation.toggled .handheld-navigation { margin-top: 10px; }
	.main-navigation .menu-toggle span::before,
	.main-navigation .menu-toggle span::after,
	.main-navigation .menu-toggle::before,
	.main-navigation .menu-toggle::after { background-color: var(--am-ink); }
	.handheld-navigation { background: var(--am-cream-light); }
}


/* ---------- 5. Buttons & Formulare ---------- */

html body .button,
html body button,
html body input[type="button"],
html body input[type="reset"],
html body input[type="submit"],
html body .added_to_cart,
html body .wc-block-components-button,
html body .wp-block-button__link {
	padding: 11px 22px;
	border: 0;
	border-radius: var(--am-radius);
	background: var(--am-blue);
	color: #fff;
	font-family: var(--am-sans);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	transition: background-color .2s, transform .2s;
}
html body .button:hover,
html body button:hover,
html body input[type="submit"]:hover,
html body .added_to_cart:hover,
html body .wc-block-components-button:hover {
	background: var(--am-blue-dark);
	color: #fff;
	transform: translateY(-1px);
}

/* Hauptaktionen in Salbeigrün */
html body .button.alt,
html body button.alt,
html body .single_add_to_cart_button,
html body .checkout-button,
html body #place_order,
html body .wc-block-cart__submit-button,
html body .wc-block-components-checkout-place-order-button {
	background: var(--am-sage);
	color: #fff;
}
html body .button.alt:hover,
html body .single_add_to_cart_button:hover,
html body .checkout-button:hover,
html body #place_order:hover { background: var(--am-sage-dark); color: #fff; }

/* Knöpfe ohne Kasten (Menü-Schalter, Mengen, Schließen) nicht wie Buttons färben */
html body .menu-toggle,
html body .woocommerce-product-gallery__trigger,
html body .wc-block-components-quantity-selector__button,
html body .wc-block-components-totals-coupon-link,
html body .wc-block-components-panel__button {
	background: transparent;
	color: var(--am-ink);
	box-shadow: none;
	text-transform: none;
}

html body input[type="text"], html body input[type="email"], html body input[type="search"],
html body input[type="tel"], html body input[type="url"], html body input[type="password"],
html body input[type="number"], html body textarea, html body select,
html body .select2-container .select2-selection--single {
	background: var(--am-cream-light);
	border: 1px solid var(--am-line);
	border-radius: var(--am-radius);
	color: var(--am-ink);
	box-shadow: none;
}
html body input:focus, html body textarea:focus, html body select:focus {
	border-color: var(--am-sage);
	outline: none;
	box-shadow: 0 0 0 3px rgba(127, 151, 127, .25);
}


/* ---------- 6. Produkte ---------- */

.woocommerce-products-header, .page-title { margin-bottom: 24px; }

ul.products li.product {
	padding: 16px 16px 22px;
	background: var(--am-white);
	border-radius: var(--am-radius-lg);
	box-shadow: var(--am-shadow);
	transition: transform .2s, box-shadow .2s;
}
ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(38, 41, 43, .08), 0 18px 40px rgba(38, 41, 43, .12);
}
ul.products li.product img { border-radius: var(--am-radius); margin-bottom: 14px; }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
	font-family: var(--am-serif);
	font-size: 19px;
	line-height: 1.3;
	color: var(--am-ink);
}
ul.products li.product .price,
.single-product div.product p.price,
.single-product div.product .summary .price {
	color: var(--am-forest);
	font-weight: 600;
}
ul.products li.product .price { font-size: 18px; }
ul.products li.product .button { margin-top: 6px; }
ul.products li.product .onsale,
.onsale {
	background: var(--am-sage);
	border: 0;
	border-radius: 30px;
	color: #fff;
	padding: 2px 12px;
}
.star-rating span::before, .star-rating::before { color: var(--am-sage); }

/* Einzelseite */
.single-product div.product {
	padding: 32px;
	background: var(--am-white);
	border-radius: var(--am-radius-lg);
	box-shadow: var(--am-shadow);
}
.single-product div.product .product_title { font-size: clamp(28px, 3vw, 38px); }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--am-radius); }
.single-product div.product p.price { font-size: 26px; }
.single-product div.product .quantity .qty { padding: 10px; width: 5em; }
.single-product div.product .product_meta { border-top-color: var(--am-line); font-size: 15px; color: var(--am-muted); }

.woocommerce-tabs ul.tabs { border-top-color: var(--am-line); }
.woocommerce-tabs ul.tabs li { border-bottom-color: var(--am-line); }
.woocommerce-tabs ul.tabs li a { color: var(--am-text); }
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover { color: var(--am-sage-dark); }
.woocommerce-tabs ul.tabs li.active::after { color: var(--am-sage); }

.related.products > h2,
.upsells.products > h2 { font-size: 28px; margin-top: 32px; }

/* Seitennummern */
.woocommerce-pagination .page-numbers li .page-numbers {
	background: var(--am-white);
	border-radius: var(--am-radius);
	color: var(--am-ink);
}
.woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--am-sage); color: #fff; }

.storefront-sorting { font-size: 16px; }


/* ---------- 7. Warenkorb, Kasse, Konto, Hinweise ---------- */

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content,
.page .hentry {
	padding: 32px;
	background: var(--am-white);
	border-radius: var(--am-radius-lg);
	box-shadow: var(--am-shadow);
}
.page .hentry .entry-content { padding: 0; box-shadow: none; }

table.shop_table, table.cart { border-radius: var(--am-radius); overflow: hidden; }
table th, table.shop_table th { background: var(--am-cream); color: var(--am-ink); }
table td { background: var(--am-white); }
table tbody tr:nth-child(2n) td { background: var(--am-cream-light); }

.cart-collaterals .cart_totals, .woocommerce-checkout-review-order {
	padding: 20px;
	background: var(--am-cream-light);
	border-radius: var(--am-radius);
}

#payment { background: var(--am-cream-light); border-radius: var(--am-radius); }
#payment .payment_methods > li { background: transparent; }
#payment .payment_methods li .payment_box { background: var(--am-cream); }

.woocommerce-MyAccount-navigation ul li { border-bottom-color: var(--am-line); }
.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--am-sage-dark); }

.woocommerce-message, .woocommerce-info, .woocommerce-noreviews, p.no-comments,
.wc-block-components-notice-banner {
	background: var(--am-sage) !important;
	border-radius: var(--am-radius);
	color: #fff;
}
.woocommerce-message a, .woocommerce-info a { color: #fff; text-decoration: underline; }
.woocommerce-message .button, .woocommerce-info .button { background: rgba(0, 0, 0, .15); }
.woocommerce-error { background: #a24b43; border-radius: var(--am-radius); }

.demo_store { background: var(--am-forest); }


/* ---------- 8. Sidebar ---------- */

.widget-area .widget {
	padding: 22px;
	margin-bottom: 24px;
	background: var(--am-white);
	border-radius: var(--am-radius-lg);
	box-shadow: var(--am-shadow);
}
.widget .widget-title, .widget .widgettitle {
	font-family: var(--am-serif);
	font-size: 21px;
	border-bottom-color: var(--am-line);
}
.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .ui-slider .ui-slider-handle { background: var(--am-sage); }


/* ---------- 9. Footer & Handy-Leiste ---------- */

.site-footer {
	padding: 0;
	background:
		linear-gradient(rgba(38, 62, 48, .92), rgba(30, 50, 39, .95)),
		url("../images/footer-trees.jpg") center 60% / cover no-repeat;
	color: #e8eee6;
	font-size: 16px;
}
.site-footer .col-full { max-width: 1140px; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

.am-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr auto;
	gap: 32px;
	padding: 44px 0 36px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #e8eee6; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }
.am-footer__name { font-family: var(--am-serif); font-size: 22px; color: #fff; }
.am-footer__heading {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #b9cab6;
}
.am-footer__menu { list-style: none; margin: 0; padding: 0; }
.am-footer__menu li { margin-bottom: 6px; }
.am-social { display: flex; gap: 12px; list-style: none; margin: 4px 0 0; padding: 0; }
.am-social a { display: block; transition: transform .2s; }
.am-social a:hover { transform: translateY(-2px); }
.am-social svg { display: block; width: 32px; height: 32px; color: #e8eee6; --am-footer-bg: #2b4636; }
.am-footer__bottom {
	margin: 0 -9999px;
	padding: 14px 9999px;
	background: rgba(0, 0, 0, .22);
	font-size: 14px;
	color: #b9cab6;
}
.site-footer { overflow: hidden; }

.storefront-handheld-footer-bar { background: var(--am-forest); border-top: 0; }
.storefront-handheld-footer-bar ul li > a { background: var(--am-forest); color: #e8eee6; border-right-color: rgba(255, 255, 255, .1); }
.storefront-handheld-footer-bar ul li.cart .count { background: var(--am-sage); color: #fff; border-color: var(--am-forest); }

@media (max-width: 767px) {
	.am-footer__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
}


/* ---------- 10. Header-Feinschliff (Storefront-Breiten überschreiben) ---------- */

@media (min-width: 768px) {
	html body.woocommerce-active .site-header .main-navigation,
	html body .site-header .main-navigation { width: auto; margin-right: 0; clear: none; }
	html body.woocommerce-active .site-header .site-header-cart { width: auto; float: none; }
	.main-navigation ul.menu > li > a,
	.main-navigation ul.nav-menu > li > a { padding: 10px 9px; font-size: 16px; }
	.main-navigation ul.menu { flex-wrap: nowrap; }
	.site-header-cart .cart-contents { white-space: nowrap; }
	.site-header-cart .cart-contents::after { float: none; margin-left: 8px; }
	.site-header-cart .widget_shopping_cart { width: 320px; }
	.site-header-cart:hover .widget_shopping_cart,
	.site-header-cart.focus .widget_shopping_cart { left: auto; right: 0; }
}


/* ---------- 11. Cookie-Hinweis ---------- */

#cookie-notice {
	background-color: rgba(38, 62, 48, .97) !important;
	font-family: var(--am-sans);
}
#cookie-notice .cookie-notice-container { color: #e8eee6 !important; }
#cookie-notice .cn-text-container { font-size: 16px; }
#cookie-notice .cn-button {
	padding: 8px 18px;
	background: var(--am-sage) !important;
	border-radius: var(--am-radius) !important;
	color: #fff !important;
	font-family: var(--am-sans);
	font-size: 15px;
	letter-spacing: .03em;
	box-shadow: none;
}
#cookie-notice .cn-button:hover { background: var(--am-sage-dark) !important; }
#cookie-notice .cn-close-icon { background: transparent; box-shadow: none; }


/* ---------- 12. Heller Foto-Hintergrund hinter den Produkten ---------- */

/* Das Foto liegt auf der Seitenkarte direkt unter dem Header und läuft unten in Creme aus */
#page {
	background: var(--am-cream) url("../images/shop-hintergrund.webp?v=6") center 92px / 100% auto no-repeat;
}
.storefront-breadcrumb,
#content.site-content { background: transparent; }
@media (max-width: 767px) {
	#page { background-position: 78% 110px; background-size: 180% auto; }
}

@media (max-width: 480px) {
	.am-brand { gap: 8px; }
	.am-brand__logo { width: 38px; height: 38px; }
	.am-brand__name { font-size: 30px; }
}
