/* ==========================================================================
   Ami's Creative Designs — theme overrides.
   Only markup without a source equivalent, plus functional states.
   ========================================================================== */

/* ---------- Customizer color tokens -------------------------------------- */
.bg-\[\#FFF8FC\],
.bg-\[\#fff8fc\] {
	background-color: hsl(var(--background));
}
.bg-\[\#FFF8FC\]\/95 {
	background-color: hsl(var(--background) / 0.95);
}
.bg-\[\#FFF8FC\]\/97 {
	background-color: hsl(var(--background) / 0.97);
}
.bg-\[\#2A1530\] {
	background-color: hsl(var(--primary));
}
.bg-\[\#E6338C\] {
	background-color: hsl(var(--accent));
}
.bg-\[\#EEDDF7\] {
	background-color: hsl(var(--muted));
}
.bg-\[\#F8E1EF\] {
	background-color: hsl(var(--secondary));
}
.bg-\[\#FCEBF5\] {
	background-color: hsl(var(--card));
}

.text-\[\#2A1530\] {
	color: hsl(var(--foreground));
}
.text-\[\#2A1530\]\/85 {
	color: hsl(var(--foreground) / 0.85);
}
.text-\[\#5A4560\] {
	color: hsl(var(--dark-body));
}
.text-\[\#6B5470\],
.text-\[\#8F7A94\],
.text-\[\#9A869E\] {
	color: hsl(var(--muted-foreground));
}
.text-\[\#C2187A\] {
	color: hsl(var(--caramel-deep));
}
.text-\[\#E6338C\] {
	color: hsl(var(--accent));
}
.text-\[\#F8E1EF\] {
	color: hsl(var(--secondary));
}
.text-\[\#F8E1EF\]\/90 {
	color: hsl(var(--secondary) / 0.9);
}
.text-\[\#FFF8FC\],
.text-\[\#FFFBFE\] {
	color: hsl(var(--primary-foreground));
}

.border-\[\#2A1530\] {
	border-color: hsl(var(--foreground));
}
.border-\[\#2A1530\]\/8 {
	border-color: hsl(var(--foreground) / 0.08);
}
.border-\[\#2A1530\]\/10 {
	border-color: hsl(var(--foreground) / 0.1);
}
.border-\[\#2A1530\]\/12 {
	border-color: hsl(var(--foreground) / 0.12);
}
.border-\[\#2A1530\]\/15 {
	border-color: hsl(var(--foreground) / 0.15);
}
.border-\[\#2A1530\]\/18 {
	border-color: hsl(var(--foreground) / 0.18);
}
.border-\[\#2A1530\]\/20 {
	border-color: hsl(var(--foreground) / 0.2);
}
.border-\[\#E6338C\] {
	border-color: hsl(var(--accent));
}
.border-\[\#FFF8FC\]\/60 {
	border-color: hsl(var(--primary-foreground) / 0.6);
}
.divide-\[\#2A1530\]\/8 > :not([hidden]) ~ :not([hidden]) {
	border-color: hsl(var(--foreground) / 0.08);
}
.ring-\[\#2A1530\]\/10 {
	--tw-ring-color: hsl(var(--foreground) / 0.1);
}
.decoration-\[\#E6338C\]\/40 {
	text-decoration-color: hsl(var(--accent) / 0.4);
}
.placeholder\:text-\[\#2A1530\]\/45::placeholder {
	color: hsl(var(--foreground) / 0.45);
}

.hover\:bg-\[\#2A1530\]:hover {
	background-color: hsl(var(--primary));
}
.hover\:bg-\[\#C2187A\]:hover {
	background-color: hsl(var(--caramel-deep));
}
.hover\:bg-\[\#E6338C\]:hover {
	background-color: hsl(var(--accent));
}
.hover\:bg-\[\#F8E1EF\]:hover {
	background-color: hsl(var(--secondary));
}
.hover\:bg-\[\#FFF8FC\]\/12:hover {
	background-color: hsl(var(--primary-foreground) / 0.12);
}
.hover\:text-\[\#2A1530\]:hover {
	color: hsl(var(--foreground));
}
.hover\:text-\[\#E6338C\]:hover {
	color: hsl(var(--accent));
}
.hover\:text-\[\#FFF8FC\]:hover,
.hover\:text-\[\#FFFBFE\]:hover {
	color: hsl(var(--primary-foreground));
}
.hover\:border-\[\#E6338C\]:hover {
	border-color: hsl(var(--accent));
}
.hover\:border-\[\#E6338C\]\/40:hover {
	border-color: hsl(var(--accent) / 0.4);
}
.hover\:border-\[\#E6338C\]\/50:hover {
	border-color: hsl(var(--accent) / 0.5);
}
.focus\:border-\[\#E6338C\]:focus {
	border-color: hsl(var(--accent));
}
.focus\:ring-\[\#E6338C\]\/50:focus,
.focus-visible\:ring-\[\#E6338C\]:focus-visible {
	--tw-ring-color: hsl(var(--accent) / 0.5);
}
.group:hover .group-hover\:bg-\[\#E6338C\] {
	background-color: hsl(var(--accent));
}
.group:hover .group-hover\:text-\[\#FFFBFE\] {
	color: hsl(var(--primary-foreground));
}

.btn-pe-primary {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}
.btn-pe-primary:hover {
	background-color: color-mix(in srgb, hsl(var(--primary)) 82%, black);
}
.btn-pe-secondary {
	color: hsl(var(--foreground));
	border-color: hsl(var(--foreground) / 0.28);
}
.btn-pe-secondary:hover {
	background-color: hsl(var(--foreground) / 0.06);
}
.cs-section-dark {
	background-color: hsl(var(--primary));
	color: hsl(var(--cream-1));
}
.cs-section-cream {
	background-color: hsl(var(--secondary));
	color: hsl(var(--foreground));
}

/* ---------- Header -------------------------------------------------------- */
.site-header {
	--logo-h: var(--logo-height, 68px);
}

.site-header.is-scrolled {
	--logo-h: calc(var(--logo-height, 68px) - 12px);
}

.site-header__brand {
	margin-right: 32px;
}

.site-header__logo {
	width: var(--logo-h);
	height: var(--logo-h);
	min-width: var(--logo-h);
	max-width: var(--logo-h);
	min-height: var(--logo-h);
	max-height: var(--logo-h);
	flex: 0 0 var(--logo-h);
}

.site-header__actions {
	padding-left: 32px;
}

.site-logo-img {
	display: block;
}

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* ---------- Hero ---------------------------------------------------------- */
.theme-hero-bg {
	z-index: 0;
}

.theme-hero-overlay {
	z-index: 2;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, hsl(var(--foreground)) 55%, transparent) 0%,
		color-mix(in srgb, hsl(var(--foreground)) 45%, transparent) 45%,
		color-mix(in srgb, hsl(var(--foreground)) 72%, transparent) 100%
	);
}

.theme-category-overlay {
	background: linear-gradient(
		180deg,
		color-mix(in srgb, hsl(var(--foreground)) 0%, transparent) 40%,
		color-mix(in srgb, hsl(var(--foreground)) 72%, transparent) 100%
	);
}

/* ---------- Reveal fallbacks --------------------------------------------- */
body.is-customizer [data-cs-fade],
.no-js [data-cs-fade] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* ---------- Cart drawer --------------------------------------------------- */
#theme-cart-drawer {
	display: none;
}

body.cart-open #theme-cart-drawer {
	display: flex;
}

#theme-cart-overlay {
	display: none;
}

body.cart-open #theme-cart-overlay {
	display: block;
}

body.cart-open {
	overflow: hidden;
}

.theme-cart-count:empty {
	display: none;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------- Policy dialogs ------------------------------------------------ */
.theme-dialog {
	position: fixed;
	inset: 0;
	z-index: 50;
}

.theme-dialog[hidden] {
	display: none !important;
}

/* ---------- Quantity control --------------------------------------------- */
.theme-qty-input {
	width: 46px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .theme-add-to-cart-area {
	display: block;
	min-width: 0;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	width: 100%;
}

/* ---------- Accordion ----------------------------------------------------- */
[data-accordion-panel] {
	overflow: hidden;
	transition: height 0.2s ease-out;
}

[data-accordion-panel][data-state="closed"] {
	height: 0;
}

/* ---------- Add to cart 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;
}

body a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward {
	display: none !important;
}

/* ---------- WooCommerce: shared markup ----------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol {
	font: inherit;
	color: inherit;
}

.woocommerce-Price-amount bdi {
	font: inherit;
}

del .woocommerce-Price-amount {
	opacity: 0.6;
}

ins {
	text-decoration: none;
}

.theme-product-card__image-link {
	display: block;
}

.theme-product-card__image-link img {
	display: block;
	width: 100%;
}

.theme-product-card .theme-card-title-link {
	color: inherit;
	text-decoration: none;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--card));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	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;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.18);
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 14px;
	text-decoration: none;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

/* ---------- WooCommerce: single product ---------------------------------- */
.single-product .theme-product-short-description p {
	font-size: 16px;
	line-height: 1.625;
	margin-bottom: 1em;
}

.single-product .theme-product-short-description p:last-child {
	margin-bottom: 0;
}

.single-product #product-main-img,
.single-product [data-buy-box] {
	min-width: 0;
	max-width: 100%;
}

.single-product #product-main-img img {
	display: block;
	width: 100%;
}

.single-product .theme-product-thumb {
	display: block;
	padding: 0;
	background: transparent;
	overflow: hidden;
}

.single-product .theme-product-thumb img {
	display: block;
	width: 100%;
}

.single-product .variations {
	display: none;
}

.theme-attr-select-hidden {
	display: none !important;
}

.single-product .theme-attr-pill.is-active {
	border-color: hsl(var(--primary));
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.single-product .single_variation_wrap {
	display: none;
}

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-description,
.single-product .woocommerce-variation-availability {
	font-family: var(--font-body);
	font-size: 15px;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1rem;
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .woocommerce-variation-price .woocommerce-Price-amount {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: hsl(var(--foreground));
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* ---------- WooCommerce: cart / account / checkout ---------------------- */
.woocommerce table.shop_table,
.wp-block-woocommerce-cart table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 15px;
	color: hsl(var(--foreground));
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.9rem 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	vertical-align: middle;
}

.woocommerce .cart-collaterals .cart_totals {
	width: 100%;
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce h2 {
	font-family: var(--font-display);
	font-weight: 500;
	color: hsl(var(--foreground));
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-Input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: 0.75rem;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 14px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-Input:focus {
	outline: none;
	border-color: hsl(var(--accent));
}

.woocommerce form .form-row label {
	font-family: var(--font-label);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: hsl(var(--muted-foreground));
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border: 0;
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
	background-color: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
}

.woocommerce .quantity input.qty {
	width: 4rem;
	padding: 0.5rem;
	border: 1px solid hsl(var(--foreground) / 0.18);
	border-radius: 9999px;
	background-color: hsl(var(--background));
	text-align: center;
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .site-main {
	padding-top: 0;
	padding-bottom: 4rem;
}

/* Checkout block */
body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 2rem;
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar {
		order: 2;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border-radius: var(--radius);
	padding: 2rem;
}

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,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	border-radius: 0.75rem !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	box-shadow: 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 {
	outline: none !important;
	border-color: hsl(var(--accent)) !important;
	box-shadow: 0 0 0 2px hsl(var(--accent) / 0.35) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 0 !important;
	border-radius: 9999px !important;
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	padding: 1rem 2rem !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--accent)) !important;
	color: hsl(var(--accent-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius) !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title {
	font-family: var(--font-display) !important;
	font-weight: 500 !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-cart-items__row {
	border-color: hsl(var(--border)) !important;
}

/* Thank you page */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: var(--font-display);
	font-weight: 500;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
	display: block;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0.75rem 1rem;
	border-radius: var(--radius);
	background-color: hsl(var(--card));
	font-family: var(--font-body);
	font-size: 14px;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

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;
}

/* ---------- Page titles --------------------------------------------------- */
.page-title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.08;
}

.entry-content > * {
	max-width: 100%;
}
