/* =========================================================================
   Sade's Kookies — functional styles.
   app.css carries the design system; this file only adds:
   - functional rules (hidden attribute, drawer state, reveals)
   - markup with no source equivalent (WooCommerce output)
   ========================================================================= */

:root {
	--logo-height: 72px;
	--header-height: 80px;
}

[hidden] {
	display: none !important;
}

.theme-cart-count:empty {
	display: none;
}

/* -------------------------------------------------------------------------
   Site logo sizing (identical in header, footer and all page types)
   ---------------------------------------------------------------------- */
.site-logo-box {
	width: var(--logo-height);
	height: var(--logo-height);
	min-width: var(--logo-height);
	flex-shrink: 0;
}

.site-logo-img {
	height: 100% !important;
	width: 100% !important;
	max-height: var(--logo-height);
	display: block;
	object-fit: contain;
}

.site-logo-text {
	line-height: 1.1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

/* -------------------------------------------------------------------------
   Header states
   ---------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
}

/* -------------------------------------------------------------------------
   The sticky header already occupies flow space, so inner-page templates
   carry the design's own pt-24 / lg:pt-28 utilities (no extra offset).
   ---------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
   Entrance + scroll animations
   The design animates with motion: opacity/translate on entry and
   scale/translate on hover.
   ---------------------------------------------------------------------- */
@keyframes themeFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.hero-fade-in {
	animation: themeFadeIn 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

@keyframes themeHeroItem {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-item {
	opacity: 0;
	animation: themeHeroItem 0.8s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}

.hero-item--1 {
	animation-duration: 0.7s;
	animation-delay: 0.25s;
}

.hero-item--2 {
	animation-duration: 0.9s;
	animation-delay: 0.35s;
}

.hero-item--3 {
	animation-duration: 0.7s;
	animation-delay: 0.55s;
}

.hero-item--4 {
	animation-duration: 0.65s;
	animation-delay: 0.75s;
}

.hero-item.is-visible {
	animation-play-state: running;
}

/* Scroll reveal: opacity 0 -> 1, translateY(32px) -> 0, 0.7s */
.reveal-item {
	opacity: 0;
	transform: translateY(32px);
	transition:
		opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1),
		transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}

.reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Customizer preview, reduced motion and no-JS fallbacks */
body.is-customizer .reveal-item,
body.is-customizer .hero-item,
.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

.no-js .reveal-item,
.no-js .hero-item {
	opacity: 1;
	transform: none;
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.hero-item,
	.hero-fade-in {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}
}

/* -------------------------------------------------------------------------
   Product card: hit-area overlay (Pattern A)
   ---------------------------------------------------------------------- */
.theme-product-card {
	position: relative;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card > *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card__quick-add {
	z-index: 3;
	pointer-events: auto !important;
}

.theme-product-card__image-wrap {
	position: relative;
}

.theme-product-card:hover .theme-product-card__image {
	transform: scale(1.04);
}

.theme-product-card__image {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover {
	transform: translateY(-4px);
}

.theme-product-card {
	transition: transform 0.35s cubic-bezier(0.5, 0.1, 0.25, 1);
}

.theme-tile-image {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .theme-tile-image {
	transform: scale(1.05);
}

/* -------------------------------------------------------------------------
   Price range: two overlapping full-width inputs
   ---------------------------------------------------------------------- */
.price-range-wrapper {
	position: relative;
	height: 1.5rem;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	height: 4px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 9999px;
}

.range-track-bg {
	left: 0;
	right: 0;
	background: hsl(var(--secondary));
}

.range-track-fill {
	left: 0;
	width: 100%;
	background: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.range-input:focus {
	outline: none;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
	box-shadow: 0 0 0 0 hsl(var(--ring) / 0);
	transition: box-shadow 0.2s ease;
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
}

.range-input--max {
	z-index: 3;
}

.range-input--min {
	z-index: 4;
}

.theme-price-panel {
	transition:
		height 0.3s cubic-bezier(0.25, 0.4, 0.25, 1),
		opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* -------------------------------------------------------------------------
   Cart drawer + overlay
   ---------------------------------------------------------------------- */
#theme-cart-drawer {
	transform: translateX(100%);
	transition:
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0.35s;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0.35s;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
   Contact modal transitions
   ---------------------------------------------------------------------- */
[data-contact-modal] [data-contact-dialog] {
	opacity: 0;
	transform: translate(-50%, -48%) scale(0.96);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

[data-contact-modal] [data-contact-dialog][data-state="open"] {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

[data-contact-modal] [data-contact-close][data-state="closed"] {
	opacity: 0;
}

[data-contact-modal] [data-contact-close][data-state="open"] {
	opacity: 1;
	transition: opacity 0.2s ease;
}

/* -------------------------------------------------------------------------
   Product page: variations table + pills
   ---------------------------------------------------------------------- */
.theme-attr-select-hidden {
	display: none !important;
}

.single-product .theme-variation-attributes.variations {
	width: 100%;
	margin-bottom: 0;
}

.single-product .theme-variation-attribute .value {
	display: block;
	width: 100%;
}

.single-product .theme-variation-attribute .label label {
	font-size: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	font-family: inherit;
	color: inherit;
	cursor: default;
}

.single-product form.variations_form.cart {
	margin: 0;
}

.single-product .reset_variations_wrapper,
.single-product .woocommerce-variation,
.single-product .single_variation_wrap > .woocommerce-variation-add-to-cart-disabled {
	display: none !important;
}

.single-product .single_variation_wrap {
	display: none !important;
	margin: 0;
}

.single-product .single_add_to_cart_button.button {
	display: block;
	line-height: inherit;
	border-radius: 9999px;
}

/* Responsive single product layout */
.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: block;
	width: 100%;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	width: 100%;
}

.single-product .theme-quantity-wrapper .theme-qty-input {
	width: 3rem;
	min-width: 44px;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	padding: 0.5rem 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.single-product .theme-quantity-wrapper .theme-qty-input::-webkit-outer-spin-button,
.single-product .theme-quantity-wrapper .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .woocommerce-product-details__short-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Thumbnail active states */
.theme-thumb img {
	opacity: 0.6;
}

.theme-thumb:hover img,
.theme-thumb.is-active img {
	opacity: 1;
}

.theme-thumb .theme-thumb-line {
	opacity: 0;
}

.theme-thumb.is-active .theme-thumb-line {
	opacity: 1;
}

/* Related products keep the shared card wrapper */
.related-products-section .theme-product-card-wrap {
	height: 100%;
}

/* -------------------------------------------------------------------------
   Add to cart: disabled + loading states
   ---------------------------------------------------------------------- */
.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;
}

.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;
}

.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 (archive/shop keeps them visible)
   ---------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.6;
	border-radius: 1rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	list-style: none;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* Shop pagination */
.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: hsl(var(--foreground));
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

/* Result count / ordering (no design equivalent, kept minimal) */
.woocommerce-result-count,
.woocommerce-ordering {
	display: none;
}

/* -------------------------------------------------------------------------
   Checkout block (native) — fully re-skinned
   ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
	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-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout h1,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-checkout .wc-block-components-title {
	font-family: var(--font-display);
	letter-spacing: -0.015em;
}

body.woocommerce-checkout .page-title {
	max-width: 100%;
	margin-bottom: 2.5rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-blocks-components-select__select {
	font-family: var(--font-body);
	font-size: 1rem;
	color: hsl(var(--foreground));
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	border-color: hsl(var(--foreground)) !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
	outline: none !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));
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	font-family: var(--font-display);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 600;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 2px solid hsl(var(--foreground));
	border-radius: 9999px;
	box-shadow: var(--shadow-soft);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	transform: translateY(-2px);
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-checkbox label {
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-family: var(--font-body);
}

/* Cart, account and order-received pages: same width + alignment */
.woocommerce-cart .site-main,
.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-bottom: 4rem;
}

.woocommerce-cart .page-title,
.woocommerce-account .page-title,
body.theme-thankyou-page .page-title {
	max-width: 100%;
	margin-bottom: 2.5rem;
}

.woocommerce-page .entry-content {
	max-width: 100%;
}

/* -------------------------------------------------------------------------
   Thank you page
   ---------------------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.9375rem;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-customer-details h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	padding: 0 0 1rem 0;
	margin: 2.5rem 0 0;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.85rem 0;
	border-bottom: 1px solid hsl(var(--border));
	vertical-align: top;
	text-align: left;
	overflow-wrap: break-word;
}

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;
	font-style: normal;
	font-family: var(--font-body);
	line-height: 1.7;
	color: hsl(var(--muted-foreground));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	background: hsl(var(--card));
}

/* -------------------------------------------------------------------------
   WordPress generated markup with no design equivalent
   ---------------------------------------------------------------------- */
.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;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
	list-style: disc;
	margin-bottom: 1rem;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content p {
	margin-bottom: 1rem;
}

/* Search widget / default WP search form */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form .search-field {
	flex: 1 1 auto;
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	padding: 0.5rem 0.75rem;
	font-family: var(--font-body);
	background: hsl(var(--background));
	color: hsl(var(--foreground));
}

.search-form .search-submit {
	border: 1px solid hsl(var(--foreground));
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-radius: 9999px;
	padding: 0.5rem 1.25rem;
	font-family: var(--font-display);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}
