/*
Theme Name: vapes-shop
Theme URI: https://vapes-shop.de/
Author: vapes-shop.de
Author URI: https://vapes-shop.de/
Description: Leichtes, mobiles WooCommerce-Theme für den deutschen Vape-Fachhandel.
Version: 1.3.34
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vapes-shop
Domain Path: /languages
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
*/

/*
 * Die produktiven Theme-Stile werden aus src/input.css nach
 * assets/css/app.css kompiliert. Diese Datei enthält bewusst nur den
 * WordPress-Theme-Header und sichere Fallbacks.
 */

:root {
	--vapes-shop-carbon: #121212;
	--vapes-shop-neon: #00ff88;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

img {
	height: auto;
	max-width: 100%;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: #121212;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 0.75rem;
	padding: 0.75rem 1rem;
	top: 0.75rem;
	width: auto;
	z-index: 100000;
}

/*
 * Keep desktop dropdowns connected to their parent navigation item.
 * A transformed submenu creates a hover gap and closes before users can move
 * the pointer onto the first child link.
 */
#primary-menu.primary-menu .sub-menu,
#primary-menu.primary-menu li:hover > .sub-menu,
#primary-menu.primary-menu li:focus-within > .sub-menu {
	top: 100%;
	transform: none;
}

/*
 * Customer-service components also live here as safe fallbacks. The compiled
 * Tailwind bundle contains the same responsive layout for production.
 */
.footer-contact {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	font-style: normal;
	gap: 0.5rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
}

.footer-contact a {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.875rem;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
	color: #00ff88;
}

.footer-contact .footer-contact__internal {
	color: #fff;
	font-weight: 700;
}

.footer-trust-note {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.875rem;
	line-height: 1.55;
	margin: 1rem 0 0;
}

.site-footer .footer-bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	min-width: 0;
}

.site-footer .footer-bottom-links a {
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* Let the site chrome breathe across normal wide desktop windows. */
@media (min-width: 1440px) {
	.site-header > .container-shell,
	.site-footer > .container-shell {
		width: min(calc(100% - 4rem), 1920px);
		max-width: none;
	}

	.site-footer .footer-grid {
		column-gap: clamp(3rem, 6vw, 8rem);
	}
}

.footer-brand-badge {
	display: inline-flex;
	margin-top: 1.5rem;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-brand-badge img {
	display: block;
	width: clamp(6.5rem, 10vw, 8.5rem);
	height: auto;
}

.footer-brand-badge:hover,
.footer-brand-badge:focus-visible {
	opacity: 0.88;
	transform: translateY(-2px);
}

/* Keep the homepage display title bold without letting its glyphs overlap. */
body .hero-copy h1 {
	margin-bottom: 2rem;
	font-size: clamp(3.25rem, 7vw, 6.75rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.hero-product-image {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 110%;
	max-width: none;
	height: 100%;
	object-fit: contain;
	background-color: transparent;
	transform: translate(-50%, -50%);
}

/* Match the generated hero artwork edge color so the image has no visible panel. */
body.home .hero-section,
body.home .hero-visual {
	background-color: #0d0e0d;
}

@media (min-width: 768px) {
	body.home .hero-copy h1 {
		line-height: 1.10;
		margin-bottom: 2.25rem;
	}
}

/*
 * Keep the desktop hero inside the first viewport. The earlier 730px minimum
 * height plus 80px vertical padding made the banner taller than the usable
 * screen on common laptop resolutions.
 */
@media (min-width: 1024px) {
	body.home .hero-grid {
		min-height: clamp(500px, calc(100svh - 220px), 560px);
		grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
		gap: 2rem;
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	body.home .hero-kicker {
		margin-bottom: 0.75rem;
	}

	body.home .hero-copy h1 {
		margin-bottom: 1.25rem;
		font-size: clamp(3rem, 4vw, 3.75rem);
		line-height: 0.98;
		letter-spacing: -0.04em;
	}

	body.home .hero-description {
		font-size: 1rem;
		line-height: 1.625;
	}

	body.home .hero-actions {
		margin-top: 1.25rem;
	}

	body.home .hero-age-note {
		margin-top: 0.75rem;
	}

	body.home .hero-visual {
		height: 420px;
		max-width: 620px;
	}
}

/* Use the full desktop canvas so ultra-wide screens do not leave a dead left gutter. */
@media (min-width: 1440px) {
	body.home .hero-section > .container-shell {
		width: min(calc(100% - 4rem), 1920px);
		max-width: none;
	}

	body.home .hero-grid {
		grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
		gap: clamp(2rem, 4vw, 5rem);
	}

	body.home .hero-copy {
		max-width: 40rem;
	}

	body.home .hero-visual {
		height: 460px;
		width: 100%;
		max-width: 820px;
	}

	body.home .hero-product-image {
		width: 100%;
	}
}

@media (max-width: 767px) {
	body .hero-copy h1 {
		font-size: clamp(2.75rem, 11.5vw, 3.25rem);
		line-height: 0.98;
		letter-spacing: -0.04em;
	}

	body.home .hero-grid {
		min-height: 0;
		gap: 1.5rem;
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	body.home .hero-kicker {
		margin-bottom: 0.75rem;
	}

	body.home .hero-copy h1 {
		margin-bottom: 1.25rem;
	}

	body.home .hero-description {
		font-size: 0.9375rem;
		line-height: 1.6;
	}

	body.home .hero-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		margin-top: 1.25rem;
	}

	body.home .hero-actions .button-primary,
	body.home .hero-actions .button-secondary {
		min-height: 44px;
		padding: 0.625rem 0.75rem;
		font-size: 0.75rem;
		line-height: 1.2;
	}

	body.home .hero-age-note {
		margin-top: 0.75rem;
	}

	body.home .hero-visual {
		height: 280px;
		max-width: 320px;
	}

	body.home .hero-product-image {
		top: 50%;
		width: 118%;
	}
}

@media (max-width: 639px) {
	.footer-brand-badge {
		margin-top: 1.25rem;
	}

	.footer-brand-badge img {
		width: 6.5rem;
	}
}

.vs-contact-hub {
	display: grid;
	gap: 2.5rem;
}

.vs-contact-lead {
	max-width: 48rem;
}

.vs-contact-lead h2,
.vs-contact-help h2 {
	font-size: clamp(1.5rem, 4vw, 1.875rem);
	margin: 0 0 1rem;
}

.vs-contact-lead p {
	color: #686d6a;
	line-height: 2;
	margin: 0;
}

.vs-contact-grid {
	display: grid;
	gap: 1rem;
}

.vs-contact-card {
	background: #f4f5f4;
	border: 1px solid rgba(18, 18, 18, 0.1);
	border-radius: 1.5rem;
	color: #121212;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	padding: 1.5rem;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vs-contact-card:hover,
.vs-contact-card:focus-visible {
	border-color: #00ff88;
	box-shadow: 0 18px 50px rgba(18, 18, 18, 0.08);
	transform: translateY(-0.25rem);
}

.vs-contact-card__label {
	color: #686d6a;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.vs-contact-card strong {
	font-size: clamp(1.25rem, 5vw, 1.5rem);
	overflow-wrap: anywhere;
}

.vs-contact-card > span:last-child {
	color: #686d6a;
	font-size: 0.875rem;
	line-height: 1.5rem;
}

.vs-contact-help {
	background: #121212;
	border-radius: 1.5rem;
	color: #fff;
	padding: 1.5rem;
}

.vs-contact-help ul {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vs-contact-help a {
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 1rem;
	color: #fff;
	display: flex;
	font-size: 0.875rem;
	font-weight: 700;
	min-height: 3.5rem;
	padding: 0 1rem;
	text-decoration: none;
}

.vs-contact-help a:hover,
.vs-contact-help a:focus-visible {
	border-color: #00ff88;
	color: #00ff88;
}

.vs-seo-landing {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.vs-seo-landing > * {
	max-width: 100%;
	min-width: 0;
}

.site-main:has(.vs-seo-landing) > .container-shell.section-space {
	padding-top: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: clamp(4rem, 7vw, 7rem);
}

.page-entry:has(.vs-seo-landing),
.entry-content:has(.vs-seo-landing) {
	max-width: none;
	width: 100%;
}

.page-entry:has(.vs-seo-landing) > header {
	margin-bottom: clamp(2rem, 3vw, 2.5rem);
	max-width: 56rem;
}

.vs-seo-landing {
	gap: clamp(2rem, 4vw, 3rem);
}

.vs-seo-landing > section,
.vs-seo-landing > nav,
.vs-seo-landing .woocommerce,
.vs-seo-landing ul.products {
	max-width: none;
	width: 100%;
}

.vs-seo-landing > .vs-seo-lead {
	max-width: 56rem;
	width: 100%;
}

.vs-seo-landing > section > h2 {
	margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
}

.vs-seo-lead {
	color: #686d6a;
	font-size: 1.125rem;
	line-height: 2rem;
	max-width: 56rem;
}

.vs-seo-facts,
.vs-seo-quicklinks {
	display: grid;
	gap: 1rem;
}

.vs-seo-fact,
.vs-seo-quicklinks a {
	background: #f4f5f4;
	border: 1px solid rgba(18, 18, 18, 0.1);
	border-radius: 1.5rem;
	color: #121212;
	padding: 1.5rem;
	text-decoration: none;
}

.vs-seo-fact strong {
	display: block;
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.vs-seo-fact span {
	color: #686d6a;
	font-size: 0.875rem;
	line-height: 1.5rem;
}

.vs-seo-table-wrap {
	border: 1px solid rgba(18, 18, 18, 0.1);
	border-radius: 1.5rem;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

.vs-seo-table {
	background: #fff;
	border-collapse: collapse;
	margin: 0;
	min-width: 42rem;
	width: 100%;
}

.vs-seo-table th,
.vs-seo-table td {
	border-bottom: 1px solid rgba(18, 18, 18, 0.1);
	padding: 1rem 1.25rem;
	text-align: left;
	vertical-align: top;
}

.vs-seo-table th {
	background: #121212;
	color: #fff;
	font-size: 0.875rem;
}

.vs-seo-faq {
	display: grid;
	gap: 0.75rem;
}

.vs-seo-faq details {
	background: #fff;
	border: 1px solid rgba(18, 18, 18, 0.1);
	border-radius: 1rem;
	padding: 0 1.25rem;
}

.vs-seo-faq summary {
	cursor: pointer;
	font-weight: 900;
	padding: 1.25rem 0;
}

.vs-seo-faq details p {
	color: #686d6a;
	margin-top: 0;
	padding-bottom: 1.25rem;
}

.vs-product-seo-links {
	background: #121212;
	border-radius: 1.5rem;
	color: #fff;
	margin-top: 2.5rem;
	padding: 1.5rem;
}

.vs-product-seo-links h2 {
	color: #fff;
	font-size: 1.5rem;
	margin-top: 0;
}

.vs-product-seo-links ul {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin-bottom: 0;
	padding: 0;
}

.vs-product-seo-links a {
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0.75rem;
	color: #fff;
	display: block;
	font-weight: 700;
	padding: 0.75rem 1rem;
	text-decoration: none;
}

.vs-product-seo-links a:hover,
.vs-product-seo-links a:focus-visible {
	border-color: #00ff88;
	color: #00ff88;
}

.vs-seo-lead a:not(.button),
.vs-seo-table td a:not(.button),
.vs-seo-faq p a:not(.button),
.woocommerce-product-details__short-description a:not(.button):not(.wp-element-button),
.woocommerce-Tabs-panel a:not(.button):not(.wp-element-button) {
	color: #006b3c;
	font-weight: 700;
	text-decoration-color: #00b862;
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.vs-seo-lead a:hover,
.vs-seo-table td a:hover,
.vs-seo-faq p a:hover,
.woocommerce-product-details__short-description a:hover,
.woocommerce-Tabs-panel a:hover {
	color: #004c2b;
	text-decoration-thickness: 3px;
}

.vs-seo-quicklinks a,
.vs-product-seo-links a {
	padding-right: 3.25rem;
	position: relative;
}

.vs-seo-quicklinks a::after,
.vs-product-seo-links a::after {
	content: "→";
	font-size: 1.25rem;
	font-weight: 900;
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.vs-seo-quicklinks a.vs-external-link::after,
.vs-product-seo-links a.vs-external-link::after {
	content: "↗";
}

.vs-product-seo-links a {
	text-decoration-color: #00ff88;
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.vs-seo-quicklinks a:focus-visible,
.vs-product-seo-links a:focus-visible,
.vs-seo-table a:focus-visible,
.woocommerce-Tabs-panel a:focus-visible {
	outline: 3px solid rgba(0, 255, 136, 0.4);
	outline-offset: 3px;
}

@media (min-width: 768px) {
	.vs-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vs-seo-facts,
	.vs-seo-quicklinks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vs-product-seo-links ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vs-contact-help {
		padding: 2rem;
	}

	.vs-contact-help ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	html,
	body {
		min-width: 0;
	}
}

@media (min-width: 1280px) {
	.vs-seo-facts,
	.vs-seo-quicklinks {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
