/*
Theme Name:   DAVA Store
Theme URI:    https://new.davastore.de
Description:  Storefront child theme for davastore.de, matching the former Shopify (Dawn) look: Assistant typeface, near-black text on white, blue accent, navy footer.
Author:       davastore
Template:     storefront
Version:      1.6.0
Text Domain:  davastore
*/

:root {
	--dv-color-text: #121212;
	--dv-color-background: #ffffff;
	--dv-color-surface: #f3f3f3;
	--dv-color-accent: #334fb4;
	--dv-color-accent-contrast: #ffffff;
	--dv-color-footer-bg: #242833;
	--dv-color-footer-text: #ffffff;
	--dv-font-body: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
	font-family: var(--dv-font-body);
	color: var(--dv-color-text);
	background: var(--dv-color-background);
}

h1, h2, h3, h4, h5, h6,
.site-title, .site-branding {
	font-family: var(--dv-font-body);
	font-weight: 700;
}

a {
	color: var(--dv-color-accent);
}

.site-header {
	background: var(--dv-color-background);
	border-bottom: 1px solid #e5e5e5;
}

/* Storefront's default is max-width:230px with no max-height, sized for a
   wide horizontal logo. Ours is a square mark, so cap the height instead. */
.site-branding .custom-logo-link {
	display: inline-block;
	vertical-align: middle;
}
.site-branding img.custom-logo {
	max-height: 56px;
	width: auto;
	max-width: 56px;
}
@media screen and (max-width: 549px) {
	.site-branding img.custom-logo {
		max-height: 40px;
		max-width: 40px;
	}
}

.woocommerce ul.products li.product,
.storefront-product-section {
	background: var(--dv-color-background);
}

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button.alt,
.added_to_cart {
	background-color: var(--dv-color-accent);
	color: var(--dv-color-accent-contrast);
	border-radius: 2px;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: #26399a;
	color: var(--dv-color-accent-contrast);
}

.woocommerce span.onsale {
	background-color: var(--dv-color-accent);
}

#colophon.site-footer,
.site-footer {
	background: var(--dv-color-footer-bg);
	color: var(--dv-color-footer-text);
}

.site-footer a {
	color: var(--dv-color-footer-text);
}

.site-footer .widget-title {
	color: var(--dv-color-footer-text);
	opacity: 0.7;
}

/* --- Homepage: hero, USP strip, category tiles --- */

.dv-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 2rem;
}
.dv-hero__image {
	width: 100%;
	height: 440px;
	object-fit: cover;
	object-position: center 15%;
	display: block;
}
.dv-hero__content {
	position: absolute;
	top: 50%;
	left: 6%;
	transform: translateY(-50%);
	max-width: 380px;
}
.dv-hero__content h1 {
	font-size: 2rem;
	line-height: 1.15;
	margin: 0 0 0.5rem;
}
.dv-hero__content p {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
}
.dv-hero__button {
	display: inline-block;
}
@media screen and (max-width: 600px) {
	.dv-hero__image {
		height: 280px;
		object-position: center 8%;
	}
	.dv-hero__content {
		position: static;
		transform: none;
		max-width: 100%;
		padding: 1.25rem 1rem 1.5rem;
		text-align: center;
		background: var(--dv-color-background);
	}
}

.dv-usp-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem 2.5rem;
	padding: 1.5rem 1rem;
	text-align: center;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 2.5rem;
}
.dv-usp {
	display: flex;
	flex-direction: column;
	min-width: 160px;
}
.dv-usp strong {
	font-size: 1rem;
}
.dv-usp span {
	font-size: 0.875rem;
	color: #555;
}

.dv-category-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 0 auto 3rem;
	max-width: 900px;
	padding: 0 1rem;
}
.dv-tile {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: var(--dv-color-surface);
	text-decoration: none;
}
.dv-tile img {
	width: 100%;
	height: 260px;
	object-fit: contain;
	display: block;
}
.dv-tile span {
	display: block;
	text-align: center;
	padding: 0.75rem;
	font-weight: 700;
	color: var(--dv-color-text);
	background: var(--dv-color-background);
}
@media screen and (max-width: 600px) {
	.dv-category-tiles {
		grid-template-columns: 1fr;
	}
}

/* --- Footer widgets: legal links, payment icons --- */

.dv-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dv-footer-list li {
	margin: 0 0 0.4rem;
}

.dv-payment-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.dv-payment-icon {
	height: 28px;
	width: auto;
	background: #fff;
	border-radius: 3px;
	padding: 3px 6px;
}
.dv-payment-badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 3px;
	background: #fff;
	color: var(--dv-color-text);
	font-size: 0.75rem;
	font-weight: 700;
}

/* --- Size chart product tab --- */
table.dv-size-chart {
	border-collapse: collapse;
	margin-bottom: 1rem;
}
table.dv-size-chart th,
table.dv-size-chart td {
	border: 1px solid #e0e0e0;
	padding: 0.5rem 1rem;
	text-align: left;
}
table.dv-size-chart th {
	background: var(--dv-color-surface);
}
.dv-size-chart-note {
	color: #666;
	font-size: 0.9rem;
}
