/*
Theme Name: Fashion
Theme URI: https://example.com/fashion
Author: Fashion Theme
Author URI: https://example.com
Description: Market-ready fashion & athleisure WordPress theme converted from the KINETIK HTML template. Includes Primary Home Page, Secondary Home Page, and full WooCommerce shop support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fashion
Tags: e-commerce, woocommerce, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* Theme stylesheet header only. Front-end styles load from assets/css/style.css */

.site-logo-wrap .custom-logo {
	display: block;
	width: auto;
	max-width: var(--fashion-logo-max-width, 180px);
	height: auto;
	max-height: 3rem;
	object-fit: contain;
}

/* Dynamic WP menu: top-level links without children */
a.nav-trigger.nav-trigger-link {
	text-decoration: none;
}

/* Dynamic WP menu: mobile top-level links without children */
.mobile-nav-link {
	display: block;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.05em;
	color: #f5f2eb;
	transition: color 0.2s ease;
}

.mobile-nav-link:hover {
	color: #e85d3b;
}

.mobile-sub-link--nested {
	color: rgba(245, 242, 235, 0.5);
}

/* Wishlist heart active state */
.v2-product-wish.is-active {
	background-color: #2f5d50;
	color: #fff;
}

.v2-product-wish.is-active svg {
	fill: currentColor;
}

/* AJAX add to cart — spinner stays inside the button */
@keyframes fashion-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

.add_to_cart_button.loading,
.single_add_to_cart_button.loading,
.v2-product-add.loading,
a.v2-product-add.loading,
.fashion-related-add.loading {
	color: transparent !important;
	pointer-events: none;
	opacity: 1 !important;
}

/* Only in-flow buttons need relative; overlay ATC already uses absolute */
.single_add_to_cart_button.loading {
	position: relative;
}

/* Keep overlay ATC pinned in the card while spinning */
.v2-product-add.loading,
a.v2-product-add.loading,
.fashion-related-add.loading,
.add_to_cart_button.absolute.loading {
	position: absolute !important;
	transform: translateY(0) !important;
	overflow: hidden;
}

.add_to_cart_button.loading::before,
.single_add_to_cart_button.loading::before,
.v2-product-add.loading::before,
.fashion-related-add.loading::before {
	display: none !important;
}

.add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::after,
.v2-product-add.loading::after,
a.v2-product-add.loading::after,
.fashion-related-add.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1rem;
	height: 1rem;
	margin-top: -0.5rem;
	margin-left: -0.5rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fashion-cart-spin 0.65s linear infinite;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 1;
}

li.product .added_to_cart.wc-forward,
.v2-product-media .added_to_cart.wc-forward,
.v2-wishlist-item .added_to_cart.wc-forward,
.fashion-related-media .added_to_cart.wc-forward {
	display: none !important;
}

#cart-sidebar.is-updating {
	opacity: 0.7;
	pointer-events: none;
}

.fashion-view-cart-btn {
	cursor: pointer;
}

/* Loop ATC: label only, centered — never stretch over price/meta */
.v2-product-add,
a.v2-product-add,
.fashion-related-add {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	white-space: nowrap;
}

.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;
}

@media (hover: hover) and (min-width: 768px) {
	.v2-product-card .v2-product-add,
	.v2-product-card-grid .v2-product-add {
		opacity: 0;
		transform: translateY(0.5rem);
	}

	.v2-product-card.group:hover .v2-product-add,
	.v2-product-card-grid.group:hover .v2-product-add,
	.v2-product-card:focus-within .v2-product-add,
	.v2-product-card-grid:focus-within .v2-product-add {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Cart sidebar quantity stepper */
.cart-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(10, 10, 10, 0.15);
	background: #f5f0e8;
}

.cart-qty .cart-qty-btn {
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: rgba(10, 10, 10, 0.7);
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.cart-qty .cart-qty-btn:hover {
	color: #0a0a0a;
	background: rgba(232, 223, 211, 0.6);
}

.cart-qty-input {
	width: 2.5rem;
	height: 1.75rem;
	border: 0;
	border-left: 1px solid rgba(10, 10, 10, 0.15);
	border-right: 1px solid rgba(10, 10, 10, 0.15);
	background: transparent;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: #0a0a0a;
	outline: none;
	-moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cart-item-unit-price {
	line-height: 1.3;
}

.cart-item-unit-price del {
	opacity: 0.55;
	margin-right: 0.35rem;
}

.cart-sidebar.is-updating {
	pointer-events: none;
	opacity: 0.72;
}

/* Header live search */
.fashion-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	color: #8a8478;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.fashion-search-submit:hover,
.fashion-search-submit:focus-visible {
	color: #0a0a0a;
	background: rgba(10, 10, 10, 0.06);
	outline: none;
}

.fashion-search-submit--mobile {
	color: rgba(245, 242, 235, 0.55);
}

.fashion-search-submit--mobile:hover,
.fashion-search-submit--mobile:focus-visible {
	color: #f5f2eb;
	background: rgba(245, 242, 235, 0.1);
}

.fashion-search-results {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: auto;
	right: 0;
	z-index: 80;
	width: max(100%, 18rem);
	max-height: min(70vh, 26rem);
	overflow-y: auto;
	padding: 0.5rem 0;
	background: #f5f2eb;
	border: 1px solid rgba(10, 10, 10, 0.1);
	border-radius: 0.75rem;
	box-shadow: 0 18px 40px rgba(10, 10, 10, 0.12);
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.fashion-search-results.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.fashion-search-results[hidden] {
	display: none !important;
}

.fashion-search-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fashion-search-results__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.85rem;
	text-decoration: none;
	color: #0a0a0a;
	transition: background-color 0.15s ease;
}

.fashion-search-results__link:hover,
.fashion-search-results__link:focus-visible {
	background: rgba(232, 93, 59, 0.08);
	outline: none;
}

.fashion-search-results__thumb {
	display: block;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: 0.35rem;
	background: #e8dfd3;
}

.fashion-search-results__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fashion-search-results__thumb--empty {
	background: linear-gradient(135deg, #e8dfd3, #f5f2eb);
}

.fashion-search-results__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.fashion-search-results__title {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fashion-search-results__price,
.fashion-search-results__type {
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	color: #8a8478;
}

.fashion-search-results__price .woocommerce-Price-amount {
	color: #e85d3b;
	font-weight: 600;
}

.fashion-search-results__empty {
	margin: 0;
	padding: 0.85rem 1rem;
	font-size: 0.8125rem;
	color: #8a8478;
}

.fashion-search-results__all {
	display: block;
	margin-top: 0.25rem;
	padding: 0.7rem 0.85rem 0.35rem;
	border-top: 1px solid rgba(10, 10, 10, 0.08);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: #0a0a0a;
	transition: color 0.15s ease;
}

.fashion-search-results__all:hover,
.fashion-search-results__all:focus-visible {
	color: #e85d3b;
	outline: none;
}

/* Mobile drawer: cream results on dark panel */
#mobile-nav .fashion-search-results {
	left: 0;
	right: 0;
	width: 100%;
	z-index: 90;
	background: #161616;
	border-color: rgba(245, 242, 235, 0.12);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

#mobile-nav .fashion-search-results__link {
	color: #f5f2eb;
}

#mobile-nav .fashion-search-results__link:hover,
#mobile-nav .fashion-search-results__link:focus-visible {
	background: rgba(232, 93, 59, 0.16);
}

#mobile-nav .fashion-search-results__thumb {
	background: rgba(245, 242, 235, 0.08);
}

#mobile-nav .fashion-search-results__price,
#mobile-nav .fashion-search-results__type,
#mobile-nav .fashion-search-results__empty {
	color: rgba(245, 242, 235, 0.5);
}

#mobile-nav .fashion-search-results__all {
	border-top-color: rgba(245, 242, 235, 0.1);
	color: #f5f2eb;
}

#mobile-nav .fashion-search-results__all:hover,
#mobile-nav .fashion-search-results__all:focus-visible {
	color: #e85d3b;
}

