/*
Theme Name: HCM Demo
Theme URI: https://demo.hcmai.at/
Description: Demo Theme for HCM AI
Author: HC-Media
Author URI: https://www.hcm.wien
Template: storefront
Version: 1.0.0
Text Domain: hcm-demo
*/

:root {
	--hcm-ink: #10283d;
	--hcm-navy: #14344e;
	--hcm-teal: #0e7c72;
	--hcm-teal-dark: #0b655d;
	--hcm-gold: #d4922a;
	--hcm-paper: #e7eef2;
	--hcm-line: #d7e1e8;
	--hcm-muted: #5d6d7a;
	--hcm-text: #1c2b36;
}

body {
	background-color: var(--hcm-paper);
	color: var(--hcm-text);
	font-family: "DM Sans", "Source Sans Pro", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.site-title {
	font-family: "DM Sans", "Source Sans Pro", "Segoe UI", sans-serif;
}

button,
input,
textarea,
select,
.button {
	font-family: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.widget a.button {
	border-radius: 8px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/*
 * Serviceleiste, Markenzeile und Kategorieleiste.
 */
.hcm-topbar {
	background: var(--hcm-ink);
	color: #d5e0ea;
	border-bottom: 3px solid var(--hcm-gold);
}

.hcm-topbar .col-full::before,
.hcm-topbar .col-full::after,
#masthead > .col-full::before,
#masthead > .col-full::after,
#masthead .storefront-primary-navigation > .col-full::before,
#masthead .storefront-primary-navigation > .col-full::after {
	content: none;
	display: none;
}

.hcm-topbar .secondary-navigation {
	display: block;
	float: none;
	width: 100%;
	margin: 0;
	clear: none;
}

.hcm-topbar .secondary-navigation ul,
.hcm-topbar .secondary-navigation .menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.15rem 1.15rem;
	float: none;
	width: 100%;
	margin: 0;
	padding: 0.45rem 0;
	font-size: 0.78rem;
}

.hcm-topbar .secondary-navigation ul.menu a {
	padding: 0.28rem 0;
	color: #d5e0ea;
	font-weight: 500;
	text-decoration: none;
}

.hcm-topbar .secondary-navigation ul.menu a:hover,
.hcm-topbar .secondary-navigation ul.menu li.current-menu-item > a {
	color: #ffffff;
}

#masthead.site-header {
	padding: 0;
	background: #ffffff;
	border-bottom: 0;
	box-shadow: 0 10px 28px rgba(16, 40, 61, 0.06);
	margin-bottom: 0;
}

#masthead .site-title {
	font-size: 1.7rem;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 0;
}

#masthead .site-title a {
	color: var(--hcm-ink);
	text-decoration: none;
}

#masthead .site-description {
	display: block;
	margin: 0.2rem 0 0;
	color: var(--hcm-teal);
	font-size: 0.82rem;
	font-weight: 500;
}

#masthead .site-search .widget_product_search form {
	margin: 0;
}

#masthead .site-search input[type="search"] {
	width: 100%;
	border: 1px solid var(--hcm-line);
	border-radius: 999px;
	background: #f7fafb;
	padding: 0.72rem 1rem 0.72rem 2.6rem;
	color: var(--hcm-text);
	line-height: 1.3;
}

#masthead .site-search input[type="search"]:focus {
	background: #ffffff;
	border-color: var(--hcm-teal);
	outline: 2px solid rgba(14, 124, 114, 0.25);
	outline-offset: 1px;
}

#masthead .site-header-cart .cart-contents {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--hcm-line);
	border-radius: 999px;
	background: #f7fafb;
	color: var(--hcm-ink);
	text-decoration: none;
	white-space: nowrap;
	height: auto;
	width: auto;
}

#masthead .site-header-cart .cart-contents .count {
	opacity: 1;
	background: var(--hcm-teal);
	color: #ffffff;
	border-radius: 999px;
	padding: 0.12rem 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
}

#masthead .site-header-cart .cart-contents::after {
	float: none;
	color: var(--hcm-ink);
}

#masthead .site-header-cart:hover .widget_shopping_cart,
#masthead .site-header-cart.focus .widget_shopping_cart {
	left: auto;
	right: 0;
	width: 22rem;
	background: #ffffff;
	color: var(--hcm-text);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(16, 40, 61, 0.16);
	padding-top: 0.4rem;
}

#masthead .site-header-cart .widget_shopping_cart .buttons,
#masthead .site-header-cart .widget_shopping_cart .total {
	background: #f4f7f9;
}

#masthead .storefront-primary-navigation {
	background: var(--hcm-navy);
}

#masthead .main-navigation ul.menu > li > a,
#masthead .main-navigation ul.nav-menu > li > a {
	font-weight: 600;
	text-decoration: none;
}

@media (min-width: 768px) {
	#masthead > .col-full {
		display: flex;
		align-items: center;
		gap: 1.75rem;
		padding-top: 1.05rem;
		padding-bottom: 1.05rem;
	}

	#masthead .site-branding,
	.woocommerce-active #masthead .site-branding,
	.storefront-secondary-navigation.woocommerce-active #masthead .site-branding {
		float: none;
		width: auto;
		max-width: 16rem;
		margin: 0;
		flex: 0 0 auto;
	}

	#masthead .site-search,
	.woocommerce-active #masthead .site-search {
		display: block;
		float: none;
		clear: none;
		width: auto;
		margin: 0;
		flex: 1 1 auto;
	}

	#masthead .site-header-cart,
	.woocommerce-active #masthead .site-header-cart {
		float: none;
		width: auto;
		margin: 0;
		flex: 0 0 auto;
		position: relative;
	}

	#masthead .storefront-primary-navigation > .col-full {
		display: flex;
		align-items: stretch;
	}

	#masthead .main-navigation,
	.woocommerce-active #masthead .main-navigation {
		float: none;
		width: auto;
		margin: 0;
		clear: none;
		flex: 1 1 auto;
	}

	#masthead .main-navigation ul.menu,
	#masthead .main-navigation ul.nav-menu {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		margin: 0;
	}

	#masthead .main-navigation ul.menu > li > a,
	#masthead .main-navigation ul.nav-menu > li > a {
		padding: 0.9rem 1.05rem;
		color: #f4f7fa;
	}

	#masthead .main-navigation ul.menu > li > a:hover,
	#masthead .main-navigation ul.menu > li:hover > a,
	#masthead .main-navigation ul.menu > li.current-menu-item > a,
	#masthead .main-navigation ul.nav-menu > li.current-menu-item > a {
		color: #ffffff;
	}

	#masthead .main-navigation ul.menu > li.current-menu-item > a,
	#masthead .main-navigation ul.menu > li > a:hover,
	#masthead .main-navigation ul.nav-menu > li.current-menu-item > a,
	#masthead .main-navigation ul.nav-menu > li > a:hover {
		box-shadow: inset 0 -3px 0 var(--hcm-gold);
	}
}

@media (max-width: 767px) {
	.hcm-topbar .secondary-navigation {
		overflow-x: auto;
	}

	.hcm-topbar .secondary-navigation ul,
	.hcm-topbar .secondary-navigation .menu {
		flex-wrap: nowrap;
		justify-content: flex-start;
		width: max-content;
		gap: 0.85rem;
		padding: 0.45rem 0;
	}

	.hcm-topbar .secondary-navigation ul.menu a {
		white-space: nowrap;
	}

	#masthead.site-header {
		position: relative;
		padding: 0.75rem 0 0.35rem;
	}

	#masthead > .col-full {
		display: flex;
		align-items: center;
	}

	#masthead .site-branding,
	.woocommerce-active #masthead .site-branding {
		float: none;
		width: auto;
		max-width: calc(100% - 7.5rem);
		margin: 0;
	}

	#masthead .site-header-cart {
		display: none;
	}

	#masthead button.menu-toggle {
		position: absolute;
		top: 0.85rem;
		right: 1rem;
		float: none;
		margin: 0;
		border-color: var(--hcm-line);
		border-radius: 8px;
		color: var(--hcm-ink);
		background: #ffffff;
	}

	#masthead .storefront-primary-navigation,
	#masthead .handheld-navigation {
		background: #ffffff;
	}

	#masthead .main-navigation ul li a,
	#masthead .handheld-navigation ul li a,
	#masthead .main-navigation ul.menu > li.current-menu-item > a,
	#masthead .handheld-navigation ul.menu li.current-menu-item > a {
		color: var(--hcm-ink);
		box-shadow: none;
	}

	#masthead .main-navigation ul li.current-menu-item > a,
	#masthead .handheld-navigation ul li.current-menu-item > a {
		color: var(--hcm-teal-dark);
	}

	.storefront-handheld-footer-bar,
	.storefront-handheld-footer-bar ul li > a {
		background-color: var(--hcm-ink);
	}

	.page-template-template-homepage .hentry {
		padding: 1.15rem 1.05rem 1rem;
		border-radius: 12px;
	}

	.page-template-template-homepage .hentry .entry-content p:first-of-type {
		font-size: 1.2rem;
	}
}

/*
 * Startseite und Produktbereiche.
 */
.page-template-template-homepage #primary.content-area,
.page-template-template-homepage .content-area {
	float: none;
	width: 100%;
	margin-right: 0;
}

.page-template-template-homepage:not(.has-post-thumbnail) .site-main {
	padding-top: 0.75rem;
}

.page-template-template-homepage .type-page {
	padding-top: 0;
	padding-bottom: 0;
}

.page-template-template-homepage .hentry {
	background: linear-gradient(135deg, #10283d 0%, #1a4664 62%, #0e7c72 130%);
	color: #f4f7fa;
	border-radius: 16px;
	margin: 0.75rem 0 0.4rem;
	padding: 1.7rem 1.9rem 1.45rem;
}

.page-template-template-homepage .hentry .col-full {
	max-width: none;
	margin: 0;
	padding: 0;
	width: auto;
}

.page-template-template-homepage .hentry .entry-header,
.page-template-template-homepage .hentry .entry-title,
.page-template-template-homepage .hentry .entry-content {
	margin-left: 0;
	margin-right: 0;
	max-width: 40rem;
	text-align: left;
}

.page-template-template-homepage .hentry .entry-title {
	margin: 0 0 0.55rem;
	color: var(--hcm-gold);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.page-template-template-homepage .hentry .entry-content {
	color: #e7eef3;
	max-width: 44rem;
}

.page-template-template-homepage .hentry .entry-content p:first-of-type {
	color: #ffffff;
	font-size: 1.45rem;
	font-weight: 500;
	line-height: 1.35;
}

.page-template-template-homepage .hentry .entry-content a {
	color: #f3d7a1;
	white-space: nowrap;
}

.storefront-product-section {
	margin-top: 2.4rem;
}

.storefront-product-section .section-title {
	margin-bottom: 1rem;
	padding-bottom: 0.45rem;
	border-bottom: 0;
	box-shadow: inset 0 -3px 0 var(--hcm-teal);
	display: inline-block;
}

ul.products li.product {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--hcm-line);
	border-radius: 14px;
	padding: 0.85rem 0.85rem 1rem;
	box-shadow: 0 1px 2px rgba(16, 40, 61, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

ul.products li.product:hover {
	border-color: #b7c9d4;
	box-shadow: 0 12px 28px rgba(16, 40, 61, 0.08);
	transform: translateY(-2px);
}

ul.products li.product img {
	border-radius: 8px;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
	color: var(--hcm-ink);
	font-size: 1rem;
	padding-top: 0.35rem;
}

ul.products li.product .price {
	color: var(--hcm-ink);
	font-weight: 700;
}

ul.products li.product .price del {
	color: var(--hcm-muted);
	font-weight: 500;
	opacity: 1;
}

ul.products li.product .price ins {
	color: #9a3412;
	font-weight: 700;
	text-decoration: none;
}

ul.products li.product .button,
ul.products li.product .added_to_cart {
	border-radius: 8px;
	margin-top: 0.35rem;
}

ul.products li.product-category a {
	display: block;
	color: var(--hcm-ink);
	text-decoration: none;
}

ul.products li.product-category .woocommerce-loop-category__title {
	font-size: 1.05rem;
}

ul.products li.product-category .count {
	display: inline-block;
	margin-left: 0.25rem;
	background: rgba(14, 124, 114, 0.12);
	color: var(--hcm-teal-dark);
	border-radius: 999px;
	padding: 0.05rem 0.45rem;
	font-size: 0.75rem;
	font-weight: 700;
}

span.onsale,
.wc-block-grid__product-onsale {
	background: var(--hcm-gold);
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.02em;
	min-height: 0;
	line-height: 1.3;
	padding: 0.28rem 0.6rem;
}

ul.products li.product span.onsale {
	position: absolute;
	top: 1.05rem;
	right: 1.05rem;
	left: auto;
	margin: 0;
	z-index: 2;
}

@media (min-width: 768px) {
	.hcm-no-sidebar .content-area {
		width: 100%;
		float: none;
		margin-right: 0;
	}

	.hcm-no-sidebar .widget-area {
		display: none;
	}
}

.woocommerce-breadcrumb {
	color: var(--hcm-muted);
	margin-bottom: 1rem;
}

.woocommerce-breadcrumb a {
	color: var(--hcm-teal-dark);
	text-decoration: none;
}

.woocommerce-pagination .page-numbers li .page-numbers,
.pagination .page-numbers li .page-numbers {
	color: var(--hcm-ink);
	background: #ffffff;
	border: 1px solid var(--hcm-line);
	border-radius: 8px;
}

.woocommerce-pagination .page-numbers li .page-numbers.current,
.pagination .page-numbers li .page-numbers.current {
	background: var(--hcm-teal);
	border-color: var(--hcm-teal);
	color: #ffffff;
}

.single-product div.product {
	background: #ffffff;
	border: 1px solid var(--hcm-line);
	border-radius: 16px;
	padding: 1.25rem 1.35rem 1.5rem;
}

.single-product div.product p.price,
.single-product div.product span.price {
	color: var(--hcm-ink);
	font-size: 1.55rem;
}

.woocommerce-tabs ul.tabs li.active a {
	color: var(--hcm-teal-dark);
	box-shadow: inset 0 -2px 0 var(--hcm-teal);
}

.widget-area .widget {
	background: #ffffff;
	border: 1px solid var(--hcm-line);
	border-radius: 12px;
	padding: 0.9rem 1rem 1rem;
}

.site-footer {
	margin-top: 2.5rem;
	border-top: 3px solid var(--hcm-gold);
}

.site-footer .site-info {
	padding-top: 1.4rem;
	padding-bottom: 1.4rem;
}

p.demo_store,
.woocommerce-store-notice {
	background: var(--hcm-ink);
	color: #ffffff;
}

p.demo_store a,
.woocommerce-store-notice a {
	color: #f3d7a1;
}

/*
 * Vergleichstabellen in Produkttexten und Ratgebern.
 */
.entry-content,
.woocommerce-Tabs-panel {
	overflow-x: auto;
}

.entry-content table,
.woocommerce-Tabs-panel table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	background: #ffffff;
}

.entry-content th,
.woocommerce-Tabs-panel th {
	background: var(--hcm-ink);
	color: #ffffff;
	border: 1px solid var(--hcm-ink);
	padding: 0.55em 0.75em;
	text-align: left;
	vertical-align: top;
}

.entry-content td,
.woocommerce-Tabs-panel td {
	border: 1px solid var(--hcm-line);
	padding: 0.55em 0.75em;
	text-align: left;
	vertical-align: top;
}

.entry-content h2,
.woocommerce-Tabs-panel h2 {
	margin-top: 1.6em;
}

.entry-content h3,
.woocommerce-Tabs-panel h3 {
	margin-top: 1.2em;
}