/* Preserve WooCommerce image proportions in the product gallery. */
.site-header .desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Refined mini-cart: compact product cards, clear controls and a persistent checkout. */
.cart-drawer {
	width: min(460px, 100vw);
	padding: 0;
	background:
		radial-gradient(circle at 90% 4%, rgba(101, 53, 135, 0.2), transparent 28%),
		linear-gradient(155deg, #120e1d, #090711 58%);
	box-shadow: -24px 0 70px rgba(0, 0, 0, 0.45);
}

.drawer-head {
	min-height: 88px;
	padding: 23px 25px 18px;
	border-bottom-color: rgba(224, 198, 143, 0.25);
}

.drawer-head h2 {
	font-size: clamp(30px, 7vw, 38px);
	letter-spacing: 0.01em;
}

.close-cart {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(224, 198, 143, 0.48);
	border-radius: 4px;
	font: 300 29px/1 var(--sans);
	transition: 180ms ease;
}

.close-cart:hover {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}

.cart-items {
	padding: 18px 20px 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 30%);
}

.cart-line.cart-item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	gap: 13px;
	align-items: center;
	margin: 0 0 12px;
	padding: 11px;
	border: 1px solid rgba(185, 145, 85, 0.26);
	border-radius: 7px;
	background: linear-gradient(135deg, rgba(38, 28, 48, 0.86), rgba(14, 11, 22, 0.94));
}

.cart-item-image {
	width: 76px;
	height: 82px;
	overflow: hidden;
	border: 1px solid rgba(224, 198, 143, 0.25);
	border-radius: 4px;
	background: #17111f;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item-copy {
	min-width: 0;
}

.cart-item-copy h3 {
	margin: 0 0 8px;
	color: var(--ivory);
	font: 500 17px/1.05 var(--serif);
	letter-spacing: 0.01em;
}

.cart-item-copy p {
	margin: 0;
	color: var(--gold);
	font: 500 12px/1.2 var(--sans);
}

.cart-item-side {
	display: grid;
	justify-items: end;
	gap: 7px;
	align-self: stretch;
}

.cart-item-side strong {
	color: var(--gold-light);
	font: 600 16px var(--serif);
	white-space: nowrap;
}

.cart-remove,
.cart-quantity button {
	border: 0;
	background: transparent;
	color: var(--gold-light);
	cursor: pointer;
}

.cart-remove {
	width: 24px;
	height: 24px;
	padding: 0;
	color: #c59674;
	font: 400 22px/1 var(--sans);
}

.cart-quantity {
	display: grid;
	grid-template-columns: 25px 25px 25px;
	align-items: center;
	height: 27px;
	border: 1px solid rgba(224, 198, 143, 0.35);
	border-radius: 3px;
	text-align: center;
}

.cart-quantity span {
	color: var(--ivory);
	font: 500 12px var(--sans);
}

.cart-quantity button {
	width: 25px;
	height: 25px;
	padding: 0;
	font-size: 16px;
	transition: 160ms ease;
}

.cart-quantity button:hover {
	background: rgba(224, 198, 143, 0.14);
}

.drawer-footer {
	padding: 17px 20px 21px;
	border-top: 1px solid rgba(224, 198, 143, 0.25);
	background: linear-gradient(180deg, rgba(20, 14, 29, 0.96), #0b0811);
	box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.16);
}

.drawer-footer > span {
	align-items: baseline;
	padding-bottom: 13px;
	color: #d6cdc3;
	font: 500 19px var(--serif);
}

.drawer-footer .cart-total {
	color: var(--gold-light);
	font-size: 22px;
}

.drawer-footer::before {
	content: "Sicher bezahlen · Versandkostenfrei ab 60 €";
	display: block;
	margin-bottom: 10px;
	color: #9e948d;
	font: 10px/1.3 var(--sans);
	letter-spacing: 0.02em;
}

.checkout.button {
	min-height: 56px;
	margin: 0;
	padding: 15px 18px;
	border-color: var(--gold-light);
	background: linear-gradient(100deg, #b99155, #e0c68f);
	color: #100b14;
	font-weight: 700;
}

.checkout.button:hover {
	background: #f1d99f;
	box-shadow: 0 0 28px rgba(224, 198, 143, 0.3);
}

.empty-cart {
	display: grid;
	place-items: center;
	min-height: 250px;
	margin: 0;
	padding: 30px;
	border: 1px dashed rgba(224, 198, 143, 0.26);
	border-radius: 7px;
	color: var(--muted);
	text-align: center;
}

.empty-cart > span {
	color: var(--gold);
	font-size: 30px;
}

.empty-cart p {
	margin: 10px 0 4px;
	color: var(--ivory);
	font: 500 20px var(--serif);
}

.empty-cart small {
	font: 12px/1.5 var(--sans);
}

@media (max-width: 560px) {
	.cart-drawer {
		width: min(100vw, 430px);
	}

	.drawer-head {
		min-height: 79px;
		padding: 18px 17px 15px;
	}

	.drawer-head h2 {
		font-size: 31px;
	}

	.cart-items {
		padding: 14px 13px 18px;
	}

	.cart-line.cart-item {
		grid-template-columns: 62px minmax(0, 1fr) auto;
		gap: 10px;
		padding: 9px;
	}

	.cart-item-image {
		width: 62px;
		height: 70px;
	}

	.cart-item-copy h3 {
		font-size: 16px;
	}

	.drawer-footer {
		padding: 15px 13px 17px;
	}
}

.mystic-language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  margin-right: 12px;
}

.mystic-language-switcher a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  font: 600 9px var(--sans);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.mystic-language-switcher a:hover,
.mystic-language-switcher a.active {
  border-color: rgba(224, 198, 143, 0.7);
  background: rgba(185, 145, 85, 0.1);
  color: var(--gold-light);
}

.mystic-language-switcher-mobile {
  display: none;
}

.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.catalog-categories a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(185, 145, 85, 0.32);
  padding: 8px 12px;
  color: var(--muted);
  font: 600 9px var(--sans);
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.catalog-categories a:hover,
.catalog-categories a.active {
  border-color: var(--gold);
  background: rgba(185, 145, 85, 0.12);
  color: var(--gold-light);
}

.catalog-categories small {
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 8px var(--sans);
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.catalog-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-pagination a,
.catalog-pagination span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(185, 145, 85, 0.32);
  color: var(--muted);
  font: 500 15px var(--serif);
  text-decoration: none;
}

.catalog-pagination a:hover,
.catalog-pagination .current {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

/* WordPress wraps each page link in an li; keep the glyph centered in its square. */
.catalog-pagination .page-numbers > li {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.catalog-pagination .page-numbers > li > a,
.catalog-pagination .page-numbers > li > span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.product-page .gallery-stage {
  background: radial-gradient(circle at center, rgba(61, 35, 79, 0.3), transparent 58%), #0b0911;
}

.product-page .gallery-stage > img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  object-position: center;
}

.product-page .gallery-stage.detail > img {
  transform: scale(1.06);
  object-fit: contain;
}

.product-page .gallery-stage.ritual > img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 560px) {
  .product-page .gallery-stage > img {
    padding: 10px;
  }
}

@media (max-width: 820px) {
  .site-header > .mystic-language-switcher {
    display: none;
  }

  .mobile-nav .mystic-language-switcher-mobile {
    display: flex;
    width: 100%;
    margin: 8px 0 0;
  }

  .catalog-categories {
    justify-content: flex-start;
  }
}

/* Never hide page content solely because an animation script is unavailable. */
.reveal {
  opacity: 1;
  transform: none;
}

.mystic-reveal-ready .reveal {
	opacity: 1;
	transform: none;
}

.mystic-reveal-ready .reveal.visible {
	opacity: 1;
	transform: none;
}

/* Keep the product image balanced instead of reserving an oversized fixed area. */
.product-page .gallery-stage {
	min-height: 0;
	height: clamp(360px, 48vw, 560px);
}

@media (max-width: 900px) {
	.product-page .gallery-stage {
		height: min(110vw, 520px);
	}
}

@media (max-width: 560px) {
	.product-page .gallery-stage {
		height: 360px;
	}
}

/* Long WooCommerce product names must remain inside the product card. */
.product-detail {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
}

.product-info {
	min-width: 0;
}

.product-info h1 {
	max-width: 100%;
	font-size: clamp(32px, 3vw, 42px);
	line-height: 0.9;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.product-page .thumb:nth-child(2) img {
	transform: none;
	object-position: center;
}

@media (max-width: 900px) {
	.product-info h1 {
		font-size: clamp(32px, 8vw, 42px);
	}
}

/* Make the purchase controls comfortably tappable and visually prominent. */
.purchase-row {
	grid-template-columns: 154px minmax(0, 1fr);
	gap: 14px;
}

.quantity,
.product-add {
	min-height: 58px;
}

.quantity button,
.quantity output {
	font-size: 23px;
}

.product-add {
	padding: 0 24px;
	font-size: 12px;
}

.product-add b {
	font-size: 21px;
}

/* Give the desktop hero breathing room below the navigation and above the catalog. */
@media (min-width: 821px) {
	.hero {
		min-height: 880px;
	}

	.hero-copy {
		margin-top: 90px;
	}

	.category-section {
		margin-top: 0;
	}
}

@media (max-width: 560px) {
	.purchase-row {
		grid-template-columns: 126px minmax(0, 1fr);
		gap: 10px;
	}

	.quantity,
	.product-add {
		min-height: 52px;
	}
}

/* Responsive product detail card. */
.product-detail {
	align-items: start;
}

.gallery,
.gallery-thumbs,
.product-info {
	min-width: 0;
}

@media (min-width: 901px) and (max-width: 1200px) {
	.product-detail {
		grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
		gap: 32px;
		padding: 22px;
	}

	.gallery {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 12px;
	}

	.thumb {
		height: 88px;
	}

	.product-page .gallery-stage {
		height: clamp(420px, 48vw, 540px);
	}

	.product-info {
		padding: 16px 0 8px;
	}

	.product-info h1 {
		font-size: clamp(34px, 3.5vw, 48px);
	}
}

@media (max-width: 900px) {
	.product-detail {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.gallery {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.gallery-thumbs {
		grid-row: 2;
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.thumb {
		flex: 0 0 76px;
		width: 76px;
		height: 76px;
	}

	.product-page .gallery-stage {
		height: clamp(360px, 78vw, 520px);
	}

	.product-info {
		padding: 0;
	}

	.product-info h1 {
		font-size: clamp(34px, 7vw, 48px);
	}
}

@media (max-width: 700px) {
	.product-detail.section-shell {
		width: min(100% - 24px, 680px);
		padding: 14px;
		border-radius: 6px;
	}

	.product-page .gallery-stage {
		height: min(calc(100vw - 52px), 420px);
	}

	.product-page .gallery-stage > img {
		padding: 10px;
	}

	.gallery-badge {
		top: 12px;
		left: 12px;
	}

	.zoom-button {
		right: 12px;
		bottom: 12px;
	}

	.title-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.product-price {
		margin-top: 16px;
		padding: 18px 0 12px;
	}

	.lead {
		font-size: 16px;
	}

	.option-group {
		padding-top: 17px;
	}

	.size-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.size-options button {
		height: 50px;
	}

	.payment-note {
		align-items: flex-start;
		line-height: 1.45;
	}

	.product-accordions summary {
		gap: 14px;
		font-size: 14px;
	}

	.product-accordions details p {
		padding-right: 0;
	}
}

@media (max-width: 380px) {
	.product-detail.section-shell {
		width: min(100% - 16px, 680px);
		padding: 10px;
	}

	.product-info h1 {
		font-size: 32px;
	}

	.purchase-row {
		grid-template-columns: 1fr;
	}

	.quantity {
		min-height: 48px;
	}
}

/* Shared responsive rules for home, catalog, about, contact and WooCommerce views. */
img {
	max-width: 100%;
}

/* Keep the site header clear of WordPress's toolbar for signed-in users. */
body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (min-width: 821px) and (max-width: 1200px) {
	.section-shell,
	.product-page .trust-bar,
	.product-page .footer-bottom {
		width: min(100% - 48px, 1100px);
	}

	.site-header {
		width: min(100% - 48px, 1100px);
	}

	.desktop-nav {
		gap: clamp(14px, 2vw, 28px);
	}

	.desktop-nav a {
		font-size: 15px;
	}

	.about-row,
	.contact-section {
		gap: 40px;
	}

	.about-visual {
		min-height: 440px;
	}

	.contact-copy {
		padding: 50px 42px;
	}

	.catalog-image {
		height: clamp(320px, 36vw, 390px);
	}
}

@media (max-width: 820px) {
	.section-shell,
	.hero-copy,
	.catalog-hero > div {
		width: min(100% - 32px, 700px);
	}

	.about-hero h1,
	.contact-hero h1,
	.catalog-hero h1 {
		max-width: 100%;
		font-size: clamp(38px, 9vw, 58px);
		overflow-wrap: anywhere;
	}

	.about-row,
	.about-row.reverse,
	.contact-section {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-visual,
	.contact-visual {
		min-height: 420px;
	}

	.contact-copy {
		padding: 44px 34px;
	}

	.catalog-toolbar {
		gap: 14px;
	}

	.catalog-toolbar label,
	.catalog-toolbar select {
		max-width: 100%;
	}

	.catalog-categories {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 4px;
	}

	.catalog-categories a {
		flex: 0 0 auto;
	}

	.footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px;
	}

	.mystic-store-main {
		width: min(100% - 32px, 700px);
	}
}

@media (max-width: 560px) {
	.section-shell,
	.hero-copy,
	.catalog-hero > div,
	.mystic-store-main {
		width: min(100% - 24px, 700px);
	}

	.site-header {
		width: calc(100% - 24px);
	}

	.mobile-nav {
		padding: 108px 24px 32px;
	}

	.mobile-nav a {
		font-size: 24px;
	}

	.hero {
		min-height: 680px;
	}

	.hero-copy {
		margin-top: 56px;
	}

	.hero h1 {
		font-size: clamp(36px, 11vw, 48px);
		overflow-wrap: anywhere;
	}

	.hero-text {
		font-size: 16px;
	}

	.about-hero,
	.contact-hero {
		height: 280px;
	}

	.about-content {
		padding-block: 44px 62px;
	}

	.about-visual,
	.contact-visual {
		min-height: min(110vw, 420px);
	}

	.contact-section {
		margin-block: 45px;
	}

	.contact-copy {
		padding: 34px 24px;
	}

	.contact-copy h2,
	.about-copy h2 {
		font-size: clamp(32px, 10vw, 42px);
		overflow-wrap: anywhere;
	}

	.catalog-hero {
		height: 420px;
	}

	.catalog-hero > div {
		padding-bottom: 46px;
	}

	.catalog {
		padding-block: 30px 60px;
	}

	.catalog-toolbar {
		grid-template-columns: minmax(0, 1fr);
		padding: 14px;
	}

	.catalog-toolbar label {
		justify-self: start;
	}

	.catalog-toolbar select {
		width: 100%;
	}

	.catalog-image {
		height: min(112vw, 430px);
	}

	.catalog-body {
		padding: 14px 16px 20px;
	}

	.footer-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.trust-bar {
		gap: 18px 0;
	}

	.cart-drawer {
		width: min(100%, 430px);
		padding: 22px 18px;
	}

	.mystic-store-main {
		padding: 105px 0 62px;
	}

	.mystic-store-main table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.mystic-store-main th,
	.mystic-store-main td {
		padding: 12px 8px;
	}
}

/* Mobile typography: a calm, readable scale across every page. */
@media (max-width: 560px) {
	body {
		font-size: 16px;
	}

	main h1,
	main h2,
	main h3,
	main h4,
	footer h2,
	footer h3 {
		font-size: 26px !important;
		line-height: 1.05;
		overflow-wrap: anywhere;
	}

	.hero-text,
	.lead,
	.about-copy > p:not(.eyebrow),
	.contact-copy > p:not(.eyebrow),
	.catalog-description,
	.origin-copy > p:last-of-type,
	.mystic-store-main,
	.mystic-store-main input,
	.mystic-store-main select,
	.mystic-store-main textarea {
		font-size: 16px;
	}
}

/* Polished mobile header and contact layout. */
@media (max-width: 560px) {
	.site-header {
		height: 76px;
		padding: 0 4px;
		background: linear-gradient(180deg, rgba(8, 7, 16, 0.88), rgba(8, 7, 16, 0.35));
		backdrop-filter: blur(10px);
		border-bottom-color: rgba(224, 198, 143, 0.16);
	}

	.brand {
		gap: 6px;
	}

	.brand-mark {
		width: 42px !important;
		height: 50px !important;
	}

	.brand b {
		font-size: 18px;
	}

	.header-actions {
		gap: 3px;
	}

	.icon-button,
	.menu-toggle {
		width: 42px;
		height: 42px;
	}

	.menu-toggle {
		position: relative;
		display: grid;
		place-items: center;
		isolation: isolate;
		border: 1px solid rgba(224, 198, 143, 0.55);
		border-radius: 5px;
		background: radial-gradient(circle at 35% 30%, rgba(58, 39, 73, 0.92), rgba(11, 9, 18, 0.94));
		box-shadow: inset 0 0 0 1px rgba(255, 237, 188, 0.08), 0 0 18px rgba(121, 58, 153, 0.28);
	}

	.menu-toggle span {
		position: absolute;
		left: 50%;
		width: 19px;
		height: 1.5px;
		border-radius: 2px;
		background: linear-gradient(90deg, var(--gold-light), #fff0c5);
		box-shadow: 0 0 6px rgba(224, 198, 143, 0.38);
		transform-origin: center;
		transition: transform 220ms ease, width 220ms ease, opacity 220ms ease;
	}

	.menu-toggle span:first-child {
		transform: translate(-50%, -4px);
	}

	.menu-toggle span:last-child {
		width: 13px;
		transform: translate(-50%, 4px);
	}

	.menu-toggle:hover span:last-child {
		width: 19px;
	}

	.menu-toggle[aria-expanded="true"] span:first-child {
		transform: translate(-50%, 0) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] span:last-child {
		width: 19px;
		transform: translate(-50%, 0) rotate(-45deg);
	}

	.mobile-nav {
		background: linear-gradient(145deg, rgba(11, 8, 19, 0.98), rgba(19, 11, 28, 0.98));
	}

	.contact-hero {
		height: 300px;
		background-position: 62% center;
	}

	.contact-hero > div {
		padding-top: 76px;
	}

	.contact-section {
		margin: 30px auto 48px;
		border-radius: 10px;
		background: linear-gradient(145deg, #130e1d, #090711);
		box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
	}

	.contact-copy {
		padding: 34px 24px 30px;
	}

	.contact-methods a {
		min-height: 58px;
		padding: 13px;
	}
}

/* Keep the redesigned drawer edge-to-edge on small phones. */
@media (max-width: 560px) {
	.cart-drawer {
		padding: 0;
	}
}

/* The shop must never widen the mobile viewport; category links wrap instead. */
@media (max-width: 820px) {
	html,
	body.category-page {
		overflow-x: clip;
	}

	.category-page .catalog,
	.category-page .catalog-grid,
	.category-page .catalog-card,
	.category-page .catalog-body,
	.category-page .catalog-price {
		min-width: 0;
		max-width: 100%;
	}

	.category-page .catalog {
		overflow-x: clip;
	}

	.catalog-categories {
		flex-wrap: wrap;
		overflow-x: visible;
		padding-bottom: 0;
	}

	.catalog-categories a {
		flex: 0 1 auto;
	}

	.catalog-price strong {
		min-width: 0;
		overflow-wrap: anywhere;
	}
}
