/**
 * Commerce Support UI Component Styles
 *
 * Styles for mobile bottom navigation, contact launcher, contact modal,
 * cart drawer, and related commerce support UI components.
 *
 * @package Temiz_Wear
 * @subpackage Assets/CSS/Components
 * @since 1.0.0
 */

/* ===================================================================
   CUSTOM PROPERTIES & SCROLL LOCK
   =================================================================== */

:root {
	--tw-color-primary: #2E1A24;
	--tw-color-accent: #A8823D;
	--tw-color-text: #1C1C1A;
	--tw-color-white: #F5EFE3;
	--tw-color-border: #DED6CA;
	--tw-color-overlay: rgba(0, 0, 0, 0.5);
	--tw-color-overlay-light: rgba(0, 0, 0, 0.3);
	--tw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--tw-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--tw-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
	--tw-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
	--tw-transition-fast: 150ms ease-in-out;
	--tw-transition-base: 250ms ease-in-out;
	--tw-transition-slow: 350ms ease-in-out;
	--tw-radius-sm: 4px;
	--tw-radius-md: 8px;
	--tw-radius-lg: 12px;
	--tw-radius-xl: 16px;
	--tw-radius-full: 9999px;
	--temiz-mobile-bottom-nav-height: 66px;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--tw-transition-fast: 0ms;
		--tw-transition-base: 0ms;
		--tw-transition-slow: 0ms;
	}
}

html.is-commerce-ui-locked,
body.is-commerce-ui-locked {
	overflow: hidden;
	overscroll-behavior: none;
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ===================================================================
   MOBILE BOTTOM NAVIGATION
   =================================================================== */

.temiz-mobile-bottom-nav,
[data-temiz-mobile-bottom-nav] {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	display: none;
	margin: 0;
	padding: 0 0 env(safe-area-inset-bottom);
	background: rgba(245, 239, 227, 0.92);
	border-top: 1px solid rgba(46, 26, 36, 0.07);
	box-shadow: 0 -2px 10px rgba(46, 26, 36, 0.04);
	backdrop-filter: blur(10px) saturate(115%);
	-webkit-backdrop-filter: blur(10px) saturate(115%);
	z-index: 1260;
	font-size: 10px;
	line-height: 1.2;
	transition:
		background-color 240ms cubic-bezier(0.4, 0, 0.2, 1),
		border-color 240ms cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 767px) {
	.temiz-mobile-bottom-nav,
	[data-temiz-mobile-bottom-nav] {
		display: block;
	}
}

.temiz-mobile-bottom-nav.is-scrolled,
.temiz-mobile-bottom-nav[data-state="scrolled"],
[data-temiz-mobile-bottom-nav].is-scrolled,
[data-temiz-mobile-bottom-nav][data-state="scrolled"] {
	background: rgba(255, 255, 255, 0.985);
	border-top-color: rgba(46, 26, 36, 0.16);
	box-shadow: 0 -9px 26px rgba(46, 26, 36, 0.12);
}

.temiz-mobile-bottom-nav__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	width: 100%;
	height: var(--temiz-mobile-bottom-nav-height);
	margin: 0;
	padding: 0;
	list-style: none;
}

.temiz-mobile-bottom-nav__item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.temiz-mobile-bottom-nav__link {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 44px;
	padding: 7px 3px 6px;
	gap: 4px;
	color: #827A73;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: color var(--tw-transition-fast);
}

.temiz-mobile-bottom-nav.is-scrolled .temiz-mobile-bottom-nav__link,
.temiz-mobile-bottom-nav[data-state="scrolled"] .temiz-mobile-bottom-nav__link,
[data-temiz-mobile-bottom-nav].is-scrolled .temiz-mobile-bottom-nav__link,
[data-temiz-mobile-bottom-nav][data-state="scrolled"] .temiz-mobile-bottom-nav__link {
	color: #3E3935;
}

.temiz-mobile-bottom-nav__link.is-active,
.temiz-mobile-bottom-nav__item.is-active .temiz-mobile-bottom-nav__link,
.temiz-mobile-bottom-nav__link[aria-current="page"],
.temiz-mobile-bottom-nav.is-scrolled .temiz-mobile-bottom-nav__link.is-active,
.temiz-mobile-bottom-nav.is-scrolled .temiz-mobile-bottom-nav__item.is-active .temiz-mobile-bottom-nav__link,
.temiz-mobile-bottom-nav.is-scrolled .temiz-mobile-bottom-nav__link[aria-current="page"],
.temiz-mobile-bottom-nav[data-state="scrolled"] .temiz-mobile-bottom-nav__link.is-active,
.temiz-mobile-bottom-nav[data-state="scrolled"] .temiz-mobile-bottom-nav__item.is-active .temiz-mobile-bottom-nav__link,
.temiz-mobile-bottom-nav[data-state="scrolled"] .temiz-mobile-bottom-nav__link[aria-current="page"] {
	color: var(--tw-color-accent);
}

.temiz-mobile-bottom-nav__link::before {
	position: absolute;
	top: 1px;
	left: 50%;
	width: 24px;
	height: 2px;
	border-radius: var(--tw-radius-full);
	background: var(--tw-color-accent);
	content: '';
	opacity: 0;
	transform: translateX(-50%) scaleX(0.5);
	transition:
		opacity var(--tw-transition-fast),
		transform var(--tw-transition-fast);
}

.temiz-mobile-bottom-nav__link.is-active::before,
.temiz-mobile-bottom-nav__item.is-active .temiz-mobile-bottom-nav__link::before,
.temiz-mobile-bottom-nav__link[aria-current="page"]::before {
	opacity: 1;
	transform: translateX(-50%) scaleX(1);
}

.temiz-mobile-bottom-nav__link:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: -3px;
	border-radius: var(--tw-radius-md);
}

.temiz-mobile-bottom-nav__icon,
.temiz-mobile-bottom-nav__icon-wrapper {
	width: 23px;
	height: 23px;
	flex: 0 0 23px;
}

.temiz-mobile-bottom-nav__icon {
	display: block;
	fill: currentColor;
	color: inherit;
}

.temiz-mobile-bottom-nav__icon-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.temiz-mobile-bottom-nav__label {
	display: block;
	max-width: 100%;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* ===================================================================
   PAGE CONTENT CLEARANCE
   =================================================================== */

@media (max-width: 767px) {
	body.has-temiz-mobile-bottom-nav .site {
		padding-bottom: calc(
			var(--temiz-mobile-bottom-nav-height)
			+ env(safe-area-inset-bottom)
		);
	}
}

/* ===================================================================
   CART BADGE
   =================================================================== */

.tw-cart-badge,
[data-temiz-cart-count] {
	position: absolute;
	top: -7px;
	right: -10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border: 0;
	border-radius: var(--tw-radius-full);
	background: #B42318;
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.98),
		0 2px 6px rgba(46, 26, 36, 0.22);
	color: #FFFFFF;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.tw-cart-badge[hidden],
[data-temiz-cart-count][hidden] {
	display: none !important;
}

/* ===================================================================
   FLOATING CONTACT LAUNCHER
   =================================================================== */

.temiz-contact-launcher,
[data-temiz-contact-launcher] {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: 22px;
	z-index: 1250;
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 767px) {
	.temiz-contact-launcher,
	[data-temiz-contact-launcher] {
		bottom: calc(
			var(--temiz-mobile-bottom-nav-height)
			+ env(safe-area-inset-bottom)
			+ 16px
		);
	}
}

.temiz-contact-launcher__menu,
[data-temiz-contact-menu] {
	position: absolute;
	right: 0;
	bottom: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-bottom: 12px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px) scale(0.96);
	transform-origin: right bottom;
	transition:
		opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
		visibility 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__menu,
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__menu,
[data-temiz-contact-launcher].is-open [data-temiz-contact-menu],
[data-temiz-contact-launcher][data-state="open"] [data-temiz-contact-menu] {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.temiz-contact-launcher__list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.temiz-contact-launcher__item {
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(9px) scale(0.95);
	transition:
		opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__item,
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__item {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__item:nth-child(4),
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__item:nth-child(4) {
	transition-delay: 25ms;
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__item:nth-child(3),
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__item:nth-child(3) {
	transition-delay: 60ms;
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__item:nth-child(2),
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__item:nth-child(2) {
	transition-delay: 95ms;
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__item:nth-child(1),
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__item:nth-child(1) {
	transition-delay: 130ms;
}

.temiz-contact-launcher__action,
[data-temiz-contact-action] {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 44px;
	max-width: calc(100vw - 32px);
	padding: 0 14px;
	gap: 9px;
	border: 1px solid rgba(46, 26, 36, 0.12);
	border-radius: var(--tw-radius-full);
	background: rgba(255, 255, 255, 0.985);
	box-shadow:
		0 8px 22px rgba(46, 26, 36, 0.10),
		0 2px 6px rgba(46, 26, 36, 0.05);
	color: var(--tw-color-primary);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--tw-transition-fast),
		border-color var(--tw-transition-fast),
		box-shadow var(--tw-transition-fast),
		transform var(--tw-transition-fast);
}

@media (hover: hover) and (pointer: fine) {
	.temiz-contact-launcher__action:hover,
	[data-temiz-contact-action]:hover {
		background: #FFFFFF;
		border-color: rgba(168, 130, 61, 0.48);
		box-shadow:
			0 10px 26px rgba(46, 26, 36, 0.13),
			0 2px 7px rgba(46, 26, 36, 0.06);
		transform: translateY(-1px) scale(1.02);
	}
}

.temiz-contact-launcher__action:active,
[data-temiz-contact-action]:active {
	transform: scale(0.98);
}

.temiz-contact-launcher__action:focus-visible,
[data-temiz-contact-action]:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-contact-launcher__action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
	color: currentColor;
}

.temiz-contact-launcher__action-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.temiz-contact-launcher__action-label {
	display: inline;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.temiz-contact-launcher__trigger,
[data-temiz-contact-toggle] {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(46, 26, 36, 0.12);
	border-radius: 19px 19px 7px 19px;
	background: #FFFFFF;
	box-shadow:
		0 13px 32px rgba(46, 26, 36, 0.14),
		0 3px 9px rgba(46, 26, 36, 0.07);
	color: var(--tw-color-primary);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color var(--tw-transition-fast),
		border-color var(--tw-transition-fast),
		box-shadow var(--tw-transition-fast),
		transform var(--tw-transition-fast);
}

@media (hover: hover) and (pointer: fine) {
	.temiz-contact-launcher__trigger:hover,
	[data-temiz-contact-toggle]:hover {
		border-color: rgba(168, 130, 61, 0.42);
		box-shadow:
			0 15px 36px rgba(46, 26, 36, 0.16),
			0 4px 10px rgba(46, 26, 36, 0.08);
		transform: translateY(-1px) scale(1.02);
	}
}

.temiz-contact-launcher__trigger:active,
[data-temiz-contact-toggle]:active {
	transform: scale(0.98);
}

.temiz-contact-launcher__trigger:focus-visible,
[data-temiz-contact-toggle]:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 3px;
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__trigger,
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__trigger,
[data-temiz-contact-launcher].is-open [data-temiz-contact-toggle],
[data-temiz-contact-launcher][data-state="open"] [data-temiz-contact-toggle] {
	border-color: rgba(168, 130, 61, 0.65);
	background: #FFFFFF;
	box-shadow:
		0 12px 30px rgba(46, 26, 36, 0.14),
		0 0 0 1px rgba(168, 130, 61, 0.10);
}

.temiz-contact-launcher__trigger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--tw-color-primary);
}

.temiz-contact-launcher__trigger-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.temiz-contact-launcher__trigger-icon--open,
.temiz-contact-launcher__trigger-icon--close {
	transition:
		opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
		visibility 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.temiz-contact-launcher__trigger-icon--open {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.temiz-contact-launcher__trigger-icon--close {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.78) rotate(-24deg);
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__trigger-icon--open,
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__trigger-icon--open,
[data-temiz-contact-launcher].is-open .temiz-contact-launcher__trigger-icon--open,
[data-temiz-contact-launcher][data-state="open"] .temiz-contact-launcher__trigger-icon--open {
	opacity: 0;
	visibility: hidden;
	transform: scale(0.82);
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__trigger-icon--close,
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__trigger-icon--close,
[data-temiz-contact-launcher].is-open .temiz-contact-launcher__trigger-icon--close,
[data-temiz-contact-launcher][data-state="open"] .temiz-contact-launcher__trigger-icon--close {
	opacity: 1;
	visibility: visible;
	transform: scale(1) rotate(0deg);
}

.temiz-contact-launcher__trigger-icon--open circle,
.temiz-contact-launcher__dot {
	transform-box: fill-box;
	transform-origin: center;
	animation: temiz-contact-dot 1.25s ease-in-out infinite;
}

.temiz-contact-launcher__trigger-icon--open circle:nth-child(1),
.temiz-contact-launcher__dot--one {
	animation-delay: 0ms;
}

.temiz-contact-launcher__trigger-icon--open circle:nth-child(2),
.temiz-contact-launcher__dot--two {
	animation-delay: 150ms;
}

.temiz-contact-launcher__trigger-icon--open circle:nth-child(3),
.temiz-contact-launcher__dot--three {
	animation-delay: 300ms;
}

.temiz-contact-launcher.is-open .temiz-contact-launcher__trigger-icon--open circle,
.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__trigger-icon--open circle,
[data-temiz-contact-launcher].is-open .temiz-contact-launcher__dot,
[data-temiz-contact-launcher][data-state="open"] .temiz-contact-launcher__dot {
	animation-play-state: paused;
}

@keyframes temiz-contact-dot {
	0%,
	60%,
	100% {
		opacity: 0.42;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
		transform: translateY(-2.5px);
	}
}

/* ===================================================================
   CONTACT MODAL
   =================================================================== */

.temiz-contact-modal,
[data-temiz-contact-modal] {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 1310;
	font-size: 14px;
	line-height: 1.6;
	padding: 0 16px 16px 16px;
}

@media (min-width: 768px) {
	.temiz-contact-modal,
	[data-temiz-contact-modal] {
		align-items: center;
		padding: 16px;
	}
}

.temiz-contact-modal[hidden],
[data-temiz-contact-modal][hidden] {
	display: none;
}

.temiz-contact-modal__overlay,
.temiz-contact-modal [data-temiz-contact-modal] .temiz-contact-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	z-index: -1;
	transition: opacity var(--tw-transition-base);
	opacity: 0;
}

.temiz-contact-modal[data-state="open"] .temiz-contact-modal__overlay,
[data-temiz-contact-modal][data-state="open"] .temiz-contact-modal__overlay {
	opacity: 1;
}

.temiz-contact-modal__dialog,
.temiz-contact-modal .temiz-contact-modal__dialog {
	background: white;
	border-radius: var(--tw-radius-lg) var(--tw-radius-lg) 0 0;
	width: 100%;
	max-height: 90vh;
	max-height: 90dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--tw-shadow-xl);
	animation: slideUp var(--tw-transition-base) ease-out;
}

@media (min-width: 768px) {
	.temiz-contact-modal__dialog {
		border-radius: var(--tw-radius-xl);
		max-width: 500px;
		max-height: 80vh;
		max-height: 80dvh;
		animation: slideScale var(--tw-transition-base) ease-out;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes slideScale {
	from {
		transform: scale(0.95);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.temiz-contact-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px 16px 20px;
	border-bottom: 1px solid var(--tw-color-border);
	flex-shrink: 0;
}

.temiz-contact-modal__title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--tw-color-text);
}

.temiz-contact-modal__close,
[data-temiz-close-contact-modal] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	color: var(--tw-color-text);
	cursor: pointer;
	border-radius: var(--tw-radius-md);
	transition: background var(--tw-transition-fast);
	flex-shrink: 0;
	margin-left: 8px;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-contact-modal__close:hover,
	[data-temiz-close-contact-modal]:hover {
		background: rgba(0, 0, 0, 0.05);
	}
}

.temiz-contact-modal__close:focus-visible,
[data-temiz-close-contact-modal]:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-contact-modal__close-icon {
	width: 20px;
	height: 20px;
}

.temiz-contact-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

@media (min-width: 768px) {
	.temiz-contact-modal__body {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

.temiz-contact-modal__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 16px;
	border-radius: var(--tw-radius-lg);
	background: var(--tw-color-white);
	border: 1px solid var(--tw-color-border);
	transition: all var(--tw-transition-fast);
}

@media (hover: hover) and (pointer: fine) {
	.temiz-contact-modal__card:hover {
		border-color: var(--tw-color-accent);
		background: rgba(168, 130, 61, 0.02);
	}
}

.temiz-contact-modal__icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tw-color-accent);
}

.temiz-contact-modal__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.temiz-contact-modal__card-title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--tw-color-text);
}

.temiz-contact-modal__card-description {
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: #666;
	word-break: break-word;
}

.temiz-contact-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	background: var(--tw-color-accent);
	color: white;
	border: none;
	border-radius: var(--tw-radius-md);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--tw-transition-fast);
	width: 100%;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-contact-modal__button:hover {
		transform: translateY(-2px);
		box-shadow: var(--tw-shadow-md);
	}
}

.temiz-contact-modal__button:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-contact-modal__button:active {
	transform: translateY(0);
}

/* ===================================================================
   CART DRAWER
   =================================================================== */

.temiz-cart-drawer,
[data-temiz-cart-drawer] {
	position: fixed;
	inset: 0;
	z-index: 1320;
	display: none;
}

.temiz-cart-drawer[hidden],
[data-temiz-cart-drawer][hidden] {
	display: none !important;
}

@media (max-width: 767px) {
	.temiz-cart-drawer[data-state="open"],
	[data-temiz-cart-drawer][data-state="open"] {
		display: flex;
	}
}

@media (min-width: 768px) {
	.temiz-cart-drawer,
	[data-temiz-cart-drawer] {
		display: flex;
	}
}

.temiz-cart-drawer__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	cursor: pointer;
	opacity: 0;
	transition: opacity var(--tw-transition-base);
}

.temiz-cart-drawer[data-state="open"] .temiz-cart-drawer__overlay,
[data-temiz-cart-drawer][data-state="open"] .temiz-cart-drawer__overlay {
	opacity: 1;
}

.temiz-cart-drawer__panel,
[data-temiz-cart-panel] {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 100%;
	background: white;
	display: flex;
	flex-direction: column;
	z-index: 1;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
	transform: translateX(100%);
	transition: transform var(--tw-transition-base);
}

@media (min-width: 768px) {
	.temiz-cart-drawer__panel,
	[data-temiz-cart-panel] {
		max-width: 400px;
	}
}

.temiz-cart-drawer[data-state="open"] .temiz-cart-drawer__panel,
[data-temiz-cart-drawer][data-state="open"] [data-temiz-cart-panel] {
	transform: translateX(0);
}

.temiz-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid var(--tw-color-border);
	flex-shrink: 0;
	gap: 12px;
}

.temiz-cart-drawer__title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--tw-color-text);
}

.temiz-cart-drawer__close,
[data-temiz-close-cart] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	color: var(--tw-color-text);
	cursor: pointer;
	border-radius: var(--tw-radius-md);
	transition: background var(--tw-transition-fast);
	flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__close:hover,
	[data-temiz-close-cart]:hover {
		background: rgba(0, 0, 0, 0.05);
	}
}

.temiz-cart-drawer__close:focus-visible,
[data-temiz-close-cart]:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__body,
[data-temiz-cart-body] {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px;
}

.temiz-cart-drawer__empty,
[data-temiz-cart-empty] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
	gap: 16px;
	min-height: 300px;
}

.temiz-cart-drawer__empty-icon {
	width: 64px;
	height: 64px;
	color: var(--tw-color-border);
	opacity: 0.6;
}

.temiz-cart-drawer__empty-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.temiz-cart-drawer__empty-title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--tw-color-text);
}

.temiz-cart-drawer__empty-text {
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: #999;
	line-height: 1.5;
}

.temiz-cart-drawer__continue-shopping {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background: var(--tw-color-primary);
	color: white;
	border-radius: var(--tw-radius-md);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--tw-transition-fast);
	margin-top: 8px;
	border: none;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__continue-shopping:hover {
		transform: translateY(-2px);
		box-shadow: var(--tw-shadow-md);
	}
}

.temiz-cart-drawer__continue-shopping:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__items,
[data-temiz-cart-items] {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.temiz-cart-drawer__item,
[data-temiz-cart-item] {
	display: grid;
	grid-template-columns: 80px 1fr 40px;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--tw-color-border);
	position: relative;
}

.temiz-cart-drawer__item:last-child,
[data-temiz-cart-item]:last-child {
	border-bottom: none;
}

.temiz-cart-drawer__item-image {
	width: 80px;
	height: 80px;
	border-radius: var(--tw-radius-md);
	overflow: hidden;
	background: var(--tw-color-white);
	flex-shrink: 0;
}

.temiz-cart-drawer__item-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.temiz-cart-drawer__item-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.temiz-cart-drawer__item-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: flex-start;
}

.temiz-cart-drawer__item-name {
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--tw-color-text);
	line-height: 1.3;
}

.temiz-cart-drawer__item-name-link {
	color: var(--tw-color-text);
	text-decoration: none;
	transition: color var(--tw-transition-fast);
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__item-name-link:hover {
		color: var(--tw-color-accent);
	}
}

.temiz-cart-drawer__item-name-link:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__item-meta {
	font-size: 11px;
	color: #999;
	line-height: 1.4;
}

.temiz-cart-drawer__item-price {
	font-size: 12px;
	font-weight: 600;
	color: var(--tw-color-text);
}

.temiz-cart-drawer__quantity {
	grid-column: 3 / 4;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	justify-content: flex-start;
}

.temiz-cart-drawer__quantity-button {
	width: 28px;
	height: 28px;
	border-radius: var(--tw-radius-sm);
	background: var(--tw-color-white);
	border: 1px solid var(--tw-color-border);
	color: var(--tw-color-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--tw-transition-fast);
	flex-shrink: 0;
	padding: 0;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__quantity-button:hover {
		background: var(--tw-color-primary);
		color: white;
		border-color: var(--tw-color-primary);
	}
}

.temiz-cart-drawer__quantity-button:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__quantity-button svg {
	width: 14px;
	height: 14px;
	display: block;
}

.temiz-cart-drawer__quantity-input,
[data-temiz-cart-quantity-input] {
	width: 36px;
	height: 28px;
	border: 1px solid var(--tw-color-border);
	border-radius: var(--tw-radius-sm);
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--tw-color-text);
	background: white;
}

.temiz-cart-drawer__quantity-input:focus-visible,
[data-temiz-cart-quantity-input]:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__remove,
[data-temiz-cart-remove] {
	position: absolute;
	right: -50px;
	top: 12px;
	font-size: 11px;
	color: #999;
	text-decoration: none;
	cursor: pointer;
	transition: color var(--tw-transition-fast);
	white-space: nowrap;
	background: none;
	border: none;
	padding: 0;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__remove:hover,
	[data-temiz-cart-remove]:hover {
		color: #D32F2F;
	}
}

.temiz-cart-drawer__remove:focus-visible,
[data-temiz-cart-remove]:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__coupon {
	padding: 20px 0;
	border-top: 1px solid var(--tw-color-border);
	border-bottom: 1px solid var(--tw-color-border);
	margin: 20px 0;
}

.temiz-cart-drawer__coupon-title {
	margin: 0 0 12px 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--tw-color-text);
}

.temiz-cart-drawer__coupon-form {
	display: flex;
	gap: 8px;
}

.temiz-cart-drawer__coupon-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--tw-color-border);
	border-radius: var(--tw-radius-md);
	font-size: 13px;
	background: white;
	color: var(--tw-color-text);
}

.temiz-cart-drawer__coupon-input::placeholder {
	color: #999;
}

.temiz-cart-drawer__coupon-input:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__coupon-button {
	padding: 10px 16px;
	background: var(--tw-color-primary);
	color: white;
	border: none;
	border-radius: var(--tw-radius-md);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--tw-transition-fast);
	flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__coupon-button:hover {
		transform: translateY(-2px);
		box-shadow: var(--tw-shadow-md);
	}
}

.temiz-cart-drawer__coupon-button:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__footer,
[data-temiz-cart-summary] {
	padding: 20px;
	border-top: 1px solid var(--tw-color-border);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.temiz-cart-drawer__summary-row,
[data-temiz-cart-subtotal] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	padding: 8px 0;
}

.temiz-cart-drawer__summary-label {
	color: #999;
	font-weight: 500;
}

.temiz-cart-drawer__summary-value {
	font-weight: 600;
	color: var(--tw-color-text);
}

.temiz-cart-drawer__checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 20px;
	background: var(--tw-color-accent);
	color: white;
	border-radius: var(--tw-radius-md);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--tw-transition-fast);
	border: none;
	min-height: 48px;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__checkout-button:hover {
		transform: translateY(-2px);
		box-shadow: var(--tw-shadow-lg);
	}
}

.temiz-cart-drawer__checkout-button:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__checkout-button:active {
	transform: translateY(0);
}

.temiz-cart-drawer__view-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	background: transparent;
	color: var(--tw-color-text);
	border: 1px solid var(--tw-color-border);
	border-radius: var(--tw-radius-md);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--tw-transition-fast);
	min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__view-cart:hover {
		border-color: var(--tw-color-primary);
		background: rgba(46, 26, 36, 0.02);
	}
}

.temiz-cart-drawer__view-cart:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__whatsapp-order {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	background: transparent;
	color: var(--tw-color-text);
	border: 1px solid var(--tw-color-border);
	border-radius: var(--tw-radius-md);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--tw-transition-fast);
	min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
	.temiz-cart-drawer__whatsapp-order:hover {
		border-color: #25D366;
		background: rgba(37, 211, 102, 0.05);
		color: #25D366;
	}
}

.temiz-cart-drawer__whatsapp-order:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

.temiz-cart-drawer__whatsapp-order svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ===================================================================
   RESPONSIVE REFINEMENTS
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
	.temiz-mobile-bottom-nav,
	.temiz-mobile-bottom-nav__link,
	.temiz-contact-launcher__action,
	.temiz-contact-launcher__trigger,
	.temiz-contact-modal__dialog,
	.temiz-cart-drawer__panel {
		transition: none;
	}

	.temiz-contact-launcher__menu,
	[data-temiz-contact-menu],
	.temiz-contact-launcher__item {
		transition: opacity 0ms, transform 0ms, visibility 0ms;
	}

	.temiz-cart-drawer__overlay {
		transition: opacity 0ms;
	}

	.temiz-contact-launcher.is-open .temiz-contact-launcher__item,
	.temiz-contact-launcher[data-state="open"] .temiz-contact-launcher__item {
		animation: none;
	}

	.temiz-contact-launcher__trigger-icon--open circle,
	.temiz-contact-launcher__dot {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* ===================================================================
   HIGH CONTRAST / FORCED COLORS
   =================================================================== */

@media (forced-colors: active) {
	.temiz-mobile-bottom-nav__link.is-active::before,
	.temiz-mobile-bottom-nav__item.is-active .temiz-mobile-bottom-nav__link::before,
	.temiz-mobile-bottom-nav__link[aria-current="page"]::before,
	.temiz-contact-launcher__trigger,
	.temiz-cart-drawer__checkout-button {
		border-width: 2px;
		border-style: solid;
	}

	.temiz-contact-launcher__action,
	.temiz-cart-drawer__view-cart,
	.temiz-cart-drawer__whatsapp-order {
		border-width: 1px;
		border-style: solid;
	}

	.temiz-contact-modal__overlay,
	.temiz-cart-drawer__overlay {
		background-color: CanvasText;
		opacity: 0.2;
	}
}



/* ===================================================================
   CART DRAWER — MOBILE SCROLL FIX
   =================================================================== */

/*
 * The drawer panel is the fixed-height outer layout.
 * Header and footer remain fixed while the middle body scrolls.
 */
.temiz-cart-drawer__panel,
[data-temiz-cart-panel] {
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	overflow: hidden;
}

/*
 * Dynamic fragment wrapper must participate in the panel flex layout.
 * min-height: 0 is essential for nested flex scrolling.
 */
.temiz-cart-drawer__content,
[data-temiz-cart-content] {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

/*
 * Only the drawer body scrolls.
 */
.temiz-cart-drawer__body,
[data-temiz-cart-body] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	touch-action: pan-y;
}

/*
 * Keep drawer header visible above the scrolling body.
 */
.temiz-cart-drawer__header {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	background: #ffffff;
}

/*
 * Keep subtotal and checkout actions visible below the scrolling body.
 */
.temiz-cart-drawer__footer,
[data-temiz-cart-summary] {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	max-height: 48vh;
	overflow-y: auto;
	background: #ffffff;
	padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/*
 * Prevent mobile browsers from stretching the drawer beyond the viewport.
 */
@media (max-width: 767px) {
	.temiz-cart-drawer,
	[data-temiz-cart-drawer] {
		height: 100vh;
		height: 100dvh;
		overflow: hidden;
	}

	.temiz-cart-drawer__panel,
	[data-temiz-cart-panel] {
		inset: 0;
		width: 100%;
		max-width: none;
	}

	.temiz-cart-drawer__body,
	[data-temiz-cart-body] {
		padding-bottom: 24px;
	}
}

.temiz-mobile-bottom-nav [data-temiz-cart-count-label] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}