/* ==========================================================================
   Mobile QA — shopweite Responsive-Fixes
   ========================================================================== */

html {
	overflow-x: clip;
}

/* Trust bar — mobile auto slider */
@media (max-width: 640px) {
	.nv-trust-bar {
		font-size: 0.8125rem;
	}

	.nv-trust-bar__viewport {
		width: 100%;
	}

	.nv-trust-bar__inner {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
		padding-block: 0.6rem;
		padding-inline: 0;
		transition: transform 0.45s ease;
		will-change: transform;
	}

	.nv-trust-bar__item {
		flex: 0 0 var(--nv-trust-slide-width, 100%);
		width: var(--nv-trust-slide-width, 100%);
		min-width: var(--nv-trust-slide-width, 100%);
		justify-content: center;
		text-align: center;
		gap: 0.35rem;
		padding-inline: var(--nv-gutter);
		box-sizing: border-box;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-trust-bar__inner {
		transition: none;
	}
}

/* Header */
@media (max-width: 1180px) {
	:root {
		--nv-header-height: 64px;
	}

	.nv-site-header__logo img,
	.nv-site-header__logo .custom-logo {
		max-height: 38px;
	}
}

/* Global sections */
@media (max-width: 768px) {
	.nv-section {
		padding-block: clamp(2.5rem, 8vw, 3.75rem);
	}

	.nv-section-head {
		margin-bottom: 1.5rem;
	}

	.nv-page-hero {
		padding-block: clamp(2rem, 6vw, 3rem);
	}

	.nv-page-hero__title {
		font-size: clamp(1.75rem, 6vw, 2.25rem);
	}
}

/* About page */
@media (max-width: 768px) {
	.nv-about-hero {
		min-height: clamp(16rem, 42vh, 22rem);
		padding-block: clamp(2rem, 6vw, 3rem);
	}

	.nv-about-hero__title {
		font-size: clamp(1.85rem, 6vw, 2.35rem);
	}

	.nv-about-story,
	.nv-about-story__content,
	.nv-about-story__media,
	.nv-about-values,
	.nv-about-team,
	.nv-about-team__card {
		min-width: 0;
	}

	.nv-about-story__media,
	.nv-about-story__media img,
	.nv-about-story__placeholder {
		width: 100%;
		max-width: 100%;
	}

	.nv-about-values__card:hover,
	.nv-about-team__card:hover {
		transform: none;
	}

	.nv-about-cta__inner .nv-btn {
		width: 100%;
		justify-content: center;
	}

	.nv-about-stats__grid {
		gap: 1.25rem 1rem;
	}

	.nv-about-timeline__title {
		font-size: 1.2rem;
	}
}

/* Kontakt, Widerruf, Magazin */
@media (max-width: 768px) {
	.nv-contact__form .wpcf7-submit,
	.nv-widerruf__form .wpcf7-submit {
		width: 100%;
		justify-content: center;
	}

	.nv-magazin-card__title a {
		font-size: 1.15rem;
	}
}

/* Shop grid */
@media (max-width: 640px) {
	.nv-shop-layout .nv-product-grid,
	.nv-shop-main .nv-product-grid {
		gap: 0.85rem;
	}

	.nv-product-card__title {
		font-size: 0.88rem;
	}

	.nv-product-card__title a {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

	.nv-product-card__price {
		font-size: 0.88rem;
	}

	.nv-shop-main .nv-product-grid > .nv-product-card,
	.nv-shop-layout .nv-product-grid > .nv-product-card {
		height: 100%;
	}

	.nv-product-card__tags {
		min-height: 2.5rem;
		align-content: flex-start;
	}

	/* CTA unter dem Bild statt als Overlay — einzeilig, sofort klickbar */
	.nv-product-card__media {
		display: flex;
		flex-direction: column;
	}

	.nv-product-card__actions {
		position: static;
		opacity: 1 !important;
		transform: none !important;
		pointer-events: auto !important;
		padding: 0.55rem 0 0;
	}

	.nv-product-card__cta {
		width: 100%;
		min-width: 0;
		padding: 0.62rem 0.85rem;
		font-size: 0.78rem;
		white-space: normal;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.nv-product-card__cta-label--desktop {
		display: none;
	}

	.nv-product-card__cta-label--mobile {
		display: inline;
	}

	/* Kein Hover-Bild in mobiler Ansicht — Tap öffnet direkt die Produktseite */
	.nv-product-card.has-hover-image:hover .nv-product-card__img--hover,
	.nv-product-card.has-hover-image:focus-within .nv-product-card__img--hover {
		opacity: 0 !important;
	}

	.nv-product-card.has-hover-image:hover .nv-product-card__img--primary,
	.nv-product-card.has-hover-image:focus-within .nv-product-card__img--primary {
		opacity: 1 !important;
	}
}

/* Product page */
@media (max-width: 640px) {
	.nv-pdp__grid {
		gap: 1.5rem;
	}

	.nv-pdp__summary .product_title {
		font-size: clamp(1.45rem, 6vw, 1.85rem);
	}

	.nv-pdp__purchase-row {
		flex-direction: column;
		align-items: stretch;
	}

	.nv-pdp__summary .single_add_to_cart_button,
	.nv-pdp__summary button.button.alt.single_add_to_cart_button {
		width: 100%;
	}

	.nv-pdp__below .woocommerce-tabs ul.tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.25rem;
	}

	.nv-pdp__below .woocommerce-tabs ul.tabs::-webkit-scrollbar {
		display: none;
	}

	.nv-pdp__below .woocommerce-tabs ul.tabs li a {
		white-space: nowrap;
	}

	.nv-pdp-sticky {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 220;
		padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.97);
		border-top: 1px solid var(--nv-gray-100);
		box-shadow: 0 -8px 24px rgba(18, 13, 13, 0.08);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		transform: translateY(110%);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.28s var(--nv-ease-out), opacity 0.28s var(--nv-ease-out), visibility 0.28s;
	}

	.nv-pdp-sticky.is-visible {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.nv-pdp-sticky__inner {
		display: flex;
		align-items: center;
		gap: 0.75rem;
	}

	.nv-pdp-sticky__price {
		flex: 1 1 auto;
		min-width: 0;
		font-family: var(--nv-font-sans);
		font-size: 1rem;
		font-weight: 600;
		color: var(--nv-gray-900);
	}

	.nv-pdp-sticky__price .woocommerce-Price-amount {
		font-size: inherit;
	}

	.nv-pdp-sticky__btn {
		flex: 0 0 auto;
		min-height: 48px;
		padding-inline: 1.25rem;
		white-space: nowrap;
	}

	body.nv-pdp-sticky-visible {
		padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
	}
}

/* Cart page */
@media (max-width: 640px) {
	.nv-cart-page .actions .coupon {
		flex-direction: column;
		align-items: stretch;
	}

	.nv-cart-page .actions .coupon input[type="text"] {
		min-width: 0;
		width: 100%;
	}

	.nv-cart-page .actions .button,
	.nv-cart-page .actions [name="update_cart"] {
		width: 100%;
	}
}

/* Cart drawer */
@media (max-width: 480px) {
	.nv-cart-drawer__panel {
		width: 100%;
		max-width: 100%;
	}
}

.nv-mini-cart__footer {
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Account */
@media (max-width: 768px) {
	.nv-account-hero {
		padding-block: clamp(1.75rem, 5vw, 2.5rem);
	}

	.nv-account-hero__title {
		font-size: clamp(1.5rem, 5vw, 2rem);
	}
}

/* Footer */
@media (max-width: 640px) {
	.nv-site-footer {
		padding-block: 2.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
	}

	.nv-site-footer__withdrawal {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.nv-btn--withdrawal {
		width: 100%;
	}
}

/* Home hero */
@media (max-width: 768px) {
	.nv-hero {
		min-height: clamp(460px, 78vh, 620px);
	}

	.nv-hero--has-image {
		align-items: flex-start;
		min-height: clamp(460px, 72vh, 640px);
	}

	.nv-hero--has-image .nv-hero__content {
		padding-block: clamp(2rem, 5vw, 2.75rem);
		padding-bottom: clamp(3rem, 8vw, 4rem);
		padding-inline: max(var(--nv-gutter), 1.15rem);
		max-width: 100%;
	}

	.nv-hero--has-image .nv-hero__title {
		font-size: clamp(1.75rem, 6.5vw, 2.2rem);
		line-height: 1.12;
		text-shadow: 0 2px 20px rgba(18, 13, 13, 0.55);
	}

	.nv-hero--has-image .nv-hero__text {
		font-size: 0.92rem;
		line-height: 1.6;
		margin-bottom: 1.25rem;
		color: rgba(255, 255, 255, 0.96);
		text-shadow: 0 1px 16px rgba(18, 13, 13, 0.55);
	}

	.nv-hero--has-image .nv-eyebrow {
		text-shadow: 0 1px 14px rgba(18, 13, 13, 0.5);
	}

	.nv-hero--has-image .nv-hero__content .nv-eyebrow,
	.nv-hero--has-image .nv-hero__content .nv-hero__title,
	.nv-hero--has-image .nv-hero__content .nv-hero__text,
	.nv-hero--has-image .nv-hero__content .nv-hero__actions {
		max-width: 100%;
		overflow-wrap: break-word;
	}

	.nv-hero__bg-media {
		inset: 0;
		overflow: hidden;
	}

	.nv-hero--has-image .nv-hero__bg-media::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		background:
			linear-gradient(
				90deg,
				rgba(18, 13, 13, 0.72) 0%,
				rgba(18, 13, 13, 0.45) 42%,
				rgba(18, 13, 13, 0.12) 58%,
				transparent 72%
			);
		pointer-events: none;
	}

	.nv-hero__bg-image {
		height: 100%;
		object-position: var(--nv-hero-focus-mobile, 100% 38%);
	}

	.nv-hero--has-image .nv-hero__bg-image {
		object-fit: cover;
		object-position: var(--nv-hero-focus-mobile, 100% 40%);
		filter: blur(10px);
		transform: translateX(8%) scale(1.14);
		transform-origin: center center;
	}

	.nv-hero--has-image .nv-hero__bg--has-image::after {
		z-index: 2;
		background:
			linear-gradient(
				115deg,
				rgba(18, 13, 13, 0.92) 0%,
				rgba(18, 13, 13, 0.84) 32%,
				rgba(18, 13, 13, 0.58) 50%,
				rgba(18, 13, 13, 0.28) 66%,
				rgba(18, 13, 13, 0.08) 80%,
				transparent 92%
			);
	}
}

@media (prefers-reduced-motion: reduce) {
	@media (max-width: 768px) {
		.nv-hero--has-image .nv-hero__bg-image {
			filter: blur(5px);
			transform: translateX(4%) scale(1.06);
		}
	}
}

/* Very small phones */
@media (max-width: 480px) {
	.nv-shop-sidebar {
		width: 100%;
		padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
	}
}

/* Header crowding on narrow phones */
@media (max-width: 400px) {
	.nv-header__actions {
		gap: 0;
	}

	.nv-header__icon-btn {
		width: 40px;
		height: 40px;
	}

	.nv-site-header__logo img,
	.nv-site-header__logo .custom-logo {
		max-height: 34px;
	}
}

/* Safe-area + touch targets */
@media (max-width: 640px) {
	.nv-nav__panel,
	.nv-nav__list--sub {
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.nv-site-footer a {
		display: inline-block;
		padding-block: 0.35rem;
	}
}
