/* =====================================================================
   MVCK PVCK Clothing — theme.css
   Tailwind utilities are compiled separately (tailwind-build.css).
   This file contains everything Tailwind can't express: component
   states, animations, WooCommerce overrides, checkout, responsive fixes.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Heading weight reset (Section 2.2) — real weights are set per element
   above via Tailwind (font-extrabold / font-bold / font-semibold etc.)
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-weight: inherit;
}

.btn-cta, .btn-cta-pink,
.single_add_to_cart_button, .add_to_cart_button {
	text-transform: none;
}

/* ---------------------------------------------------------------------
   Global cover-image rule (Section 15.1) — explicit exclusion list.
   --------------------------------------------------------------------- */
img:not(.cover-img):not(.theme-height-fill):not(.theme-product-card__image):not(.theme-thumb-img) {
	max-width: 100%;
	height: auto;
}
.theme-height-fill,
.theme-product-card__image-wrapper img,
.theme-product-card__image-wrapper .attachment-woocommerce_thumbnail,
#theme-cart-drawer .theme-cart-item-image img,
#theme-cart-drawer a.w-24 img,
#theme-cart-drawer .theme-pair-with-card img,
#product-main-img,
.theme-product-card img {
	height: 100% !important;
	width: 100%;
	object-fit: cover;
}
#product-main-img {
	object-fit: contain;
	width: 100%;
}
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =====================================================================
   HEADER
   ===================================================================== */
#theme-site-header { transition: top 0.3s ease; }
#theme-header-inner.theme-header-transparent {
	border-color: transparent !important;
	box-shadow: none !important;
}
#theme-header-inner.theme-header-transparent.is-scrolled-solid {
	box-shadow: none !important;
}
#theme-header-inner:not(.theme-header-transparent) {
	border-bottom-width: 1px;
	border-bottom-color: hsl(var(--border));
}
#theme-header-inner.is-scrolled-solid {
	box-shadow: var(--shadow-elevated);
}
#theme-nav.is-scrolled { height: 84px !important; }

[data-cart-open] {
	position: relative;
}

.theme-burger-line { transition: all 0.3s ease-out; }
#theme-mobile-menu-toggle[aria-expanded="true"] .theme-burger-line:nth-child(1) {
	width: 1.75rem; transform: translateY(7.5px) rotate(45deg);
}
#theme-mobile-menu-toggle[aria-expanded="true"] .theme-burger-line:nth-child(2) {
	opacity: 0; transform: scaleX(0);
}
#theme-mobile-menu-toggle[aria-expanded="true"] .theme-burger-line:nth-child(3) {
	width: 1.75rem; transform: translateY(-7.5px) rotate(-45deg);
}

.theme-hidden { display: none !important; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Mega menu */
.theme-mega-menu { animation: fadeIn 0.25s ease forwards; }
.theme-mega-menu:not(.is-open) { display: none; }
.theme-mega-menu.is-open { display: block; }

/* Mobile drawer */
.theme-mobile-drawer {
	pointer-events: none;
	visibility: hidden;
}
.theme-mobile-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}
.theme-mobile-drawer__overlay {
	opacity: 0;
	transition: opacity 0.3s ease;
}
.theme-mobile-drawer.is-open .theme-mobile-drawer__overlay {
	opacity: 1;
}
.theme-mobile-drawer__panel {
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-mobile-drawer.is-open .theme-mobile-drawer__panel {
	transform: translateX(0);
}
.theme-mobile-chevron.rotate-180 { transform: rotate(180deg); }

/* Custom dropdowns (category / price) */
.theme-dropdown-list.hidden { display: none; }
.theme-dropdown-list:not(.hidden) { animation: fadeIn 0.25s ease forwards; }
.theme-dropdown-chevron.rotate-180 { transform: rotate(180deg); }
.theme-dropdown-option-check { display: none; }
.theme-cat-option.is-selected,
.theme-price-option.is-selected {
	color: hsl(var(--primary));
	font-weight: 600;
}
.theme-cat-option.is-selected .theme-dropdown-option-check,
.theme-price-option.is-selected .theme-dropdown-option-check {
	display: inline-flex;
}

/* Category tile active filter ring (matches Index.tsx ring-4 ring-accent) */
.theme-cat-filter.is-active {
	box-shadow: 0 0 0 4px hsl(var(--accent));
}

/* Logo shrinks on scroll — height tokens set inline from Customizer logo_height */
#theme-logo-plain.is-scrolled-logo {
	max-height: var(--logo-height-scrolled, 54px);
}

/* Contact modal — centered overlay (matches Dialog.tsx) */
#theme-contact-modal {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
#theme-contact-modal:not(.hidden) {
	display: flex;
}
#theme-contact-modal > .theme-contact-modal-panel {
	position: relative;
	width: 92vw;
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	margin: 0;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.animate-fade-in {
	animation: fadeIn 0.25s ease forwards;
}

/* Search dialog / contact modal fade-in */
#theme-search-dialog:not(.hidden),
#theme-contact-modal:not(.hidden) {
	animation: fadeIn 0.25s ease forwards;
}

/* =====================================================================
   SCROLL REVEAL SYSTEM (Section 2.1)
   ===================================================================== */
.reveal-item {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* Customizer preview fallback — never leave content hidden in the editor. */
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* =====================================================================
   HERO CAROUSEL
   ===================================================================== */
#theme-hero .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}
.theme-hero-slide {
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.4s cubic-bezier(0.25, 0.4, 0.25, 1), transform 1.4s cubic-bezier(0.25, 0.4, 0.25, 1);
	z-index: 0;
	pointer-events: none;
}
.theme-hero-slide.is-active {
	opacity: 1;
	transform: scale(1);
	z-index: 1;
}

/* =====================================================================
   FAQ ACCORDION
   ===================================================================== */
.theme-faq-panel {
	height: 0;
	overflow: hidden;
	transition: height 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* =====================================================================
   PRODUCT CARD (Section 31.9 uniform grid heights)
   ===================================================================== */
.theme-product-grid, .theme-featured-grid {
	align-items: stretch;
}
.theme-product-card-wrap {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.theme-product-card-wrap.theme-hidden { display: none; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper { position: relative; }

/* =====================================================================
   MEGA MENU LAYOUT NOTE: handled by tailwind utilities + .is-open toggle
   ===================================================================== */

/* =====================================================================
   SIDE CART DRAWER (Sections 12, 22.5)
   ===================================================================== */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.3);
	z-index: 55;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}
#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 32rem;
	background: hsl(var(--background));
	z-index: 56;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
}
body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}
#theme-cart-drawer.is-updating {
	opacity: 0.6;
	pointer-events: none;
}
.theme-cart-count:empty { display: none; }

/* Hide WooCommerce's injected "View cart" link (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* =====================================================================
   WOOCOMMERCE NOTICES — scoped visibility (Section 14.1)
   ===================================================================== */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}
#theme-cart-drawer .woocommerce-message {
	display: none;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	font-family: var(--font-body);
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	border-top: 3px solid hsl(var(--primary));
	background: hsl(var(--secondary));
	list-style: none;
	margin: 0 0 1.5rem 0;
}
.woocommerce-error { border-top-color: hsl(var(--destructive)); }

/* =====================================================================
   ADD TO CART BUTTON OVERRIDE (Section 11.4.1)
   ===================================================================== */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	min-height: 3.5rem !important;
	padding: 0 2rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.28em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	background: var(--gradient-rose-gold) !important;
	filter: brightness(1.08);
	color: hsl(var(--background)) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: hsl(var(--foreground)) !important;
	background: hsl(var(--foreground)) !important;
}
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

/* Pair-with cards inside the drawer reuse .add_to_cart_button as a plain link */
#theme-cart-drawer .add_to_cart_button.ajax_add_to_cart {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	min-height: 0 !important;
	display: block !important;
	text-transform: none !important;
	font-weight: inherit !important;
	letter-spacing: normal !important;
}

/* =====================================================================
   VARIABLE PRODUCT ATTRIBUTE PILLS (Section 11.5.2)
   ===================================================================== */
.theme-attr-select-hidden { display: none !important; }
.single-product .single_variation_wrap .woocommerce-variation-price,
.single-product .single_variation_wrap .woocommerce-variation-availability,
.single-product .single_variation_wrap .quantity {
	display: none !important;
}
.single-product .theme-pill.is-selected {
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--accent));
}
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button:disabled {
	cursor: not-allowed;
	opacity: 0.4;
	pointer-events: none;
}

/* Variations table layout reflow (Section 11.5.1) */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

/* =====================================================================
   SINGLE PRODUCT RESPONSIVE (Section 11.13)
   ===================================================================== */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.single-product .theme-product-qty {
	display: flex;
	align-items: center;
	border: 1px solid hsl(var(--border));
	height: 3.5rem;
}
.single-product .theme-product-qty .theme-qty-input {
	width: 2.75rem;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	background: transparent;
	border: 0;
	-moz-appearance: textfield;
}
.single-product .theme-product-qty .theme-qty-input::-webkit-outer-spin-button,
.single-product .theme-product-qty .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-thumb-img, .theme-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   CHECKOUT — WooCommerce Blocks override (Section 13)
   ===================================================================== */
body.woocommerce-checkout .site-main {
	padding-top: 9rem;
	padding-bottom: 4rem;
}
body.woocommerce-checkout .page-title {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 2.25rem;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: hsl(var(--foreground));
	margin: 0 0 2.5rem 0;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .page-title {
		font-size: 3rem;
	}
}
body.woocommerce-checkout .wc-block-checkout {
	display: block;
	font-family: var(--font-body);
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout__main + .wc-block-checkout__sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--secondary) / 0.6);
	border-radius: var(--radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input select,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-select .components-custom-select-control__button,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-country-input select,
body.woocommerce-checkout .wc-block-components-state-input select {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	line-height: 1.25rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	width: 100% !important;
	max-width: none !important;
	box-shadow: none !important;
	appearance: auto !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
	opacity: 1 !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input select:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-select .components-custom-select-control__button:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-country-input select:focus,
body.woocommerce-checkout .wc-block-components-state-input select:focus {
	outline: none !important;
	border-color: hsl(var(--primary)) !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	border-radius: 8px !important;
	text-transform: none !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: var(--gradient-rose-gold) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

/* =====================================================================
   THANK-YOU PAGE (Section 22.8)
   ===================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .theme-thankyou-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details {
	width: 100%;
	max-width: 640px;
	text-align: left;
	margin: 0 auto;
}
body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-top: 1px solid hsl(var(--border));
	border-bottom: 1px solid hsl(var(--border));
	font-family: var(--font-body);
}
body.theme-thankyou-page h2 {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 800;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	font-style: normal;
	font-family: var(--font-body);
}

/* =====================================================================
   404
   ===================================================================== */
.bg-muted { background-color: hsl(var(--muted)); }

/* Misc source-specific accent (rose-gold-mid icon color on the product page) */
/* Hover parity — Lovable source transitions */
.btn-cta:hover,
.single_add_to_cart_button.button:not(:disabled):hover {
	filter: brightness(1.08);
}
.btn-cta-pink:hover {
	background-color: hsl(var(--foreground)) !important;
	color: #ffffff !important;
	border-color: hsl(var(--foreground)) !important;
}
.nav-link:hover,
.theme-nav-trigger:hover {
	color: hsl(var(--primary));
}
.theme-product-card:hover h3,
.theme-product-card-wrap a:hover h3 {
	color: hsl(var(--primary));
}
#theme-newsletter-form button:hover,
.theme-footer-newsletter-submit:hover {
	background-color: hsl(var(--accent)) !important;
	color: hsl(var(--accent-foreground)) !important;
}

.theme-rose-gold-mid-text { color: hsl(var(--rose-gold-mid)); }

