/* =========================================================================
   I'M A DAD THEME — WooCommerce overrides
   ========================================================================= */

/* ---------------------------------------------------------------------
 * ADD TO CART BUTTON — STYLE 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,
button.single_add_to_cart_button {
	background-color: var(--color-navy) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-navy) !important;
	color: var(--color-button-text) !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.6 !important; /* Lovable disabled:opacity-60 */
	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.6 !important;
	background-color: var(--color-navy) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Hide "View cart" injected after AJAX add (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,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: 0.5rem; font-family: var(--font-body); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
	border-top: none; background: var(--color-muted); color: var(--color-foreground);
}
.woocommerce-error { background: color-mix(in srgb, #b91c1c 10%, transparent); color: #b91c1c; }

/* ---------------------------------------------------------------------
 * SINGLE PRODUCT PAGE — parity with src/routes/product.$id.tsx
 * Lovable: main pt-16 lg:pt-20 · grid gap-10 lg:gap-16 · aspect-[3/4]
 * ------------------------------------------------------------------- */
body.single-product .site-main.single-product-main,
body.theme-no-hero .site-main.single-product-main {
	padding-top: 4rem !important; /* pt-16 */
	padding-bottom: 0 !important;
}
@media (min-width: 1024px) {
	body.single-product .site-main.single-product-main,
	body.theme-no-hero .site-main.single-product-main {
		padding-top: 5rem !important; /* lg:pt-20 */
	}
}

.single-product-main .theme-back-to-shop-row { padding-block: 1.5rem; margin: 0; } /* py-6 */
.theme-back-to-shop {
	display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent); transition: color 0.2s ease;
}
.theme-back-to-shop:hover { color: var(--color-foreground); }

.single-product-main .theme-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem; /* gap-10 */
	padding-bottom: 5rem; /* pb-20 */
	min-width: 0;
	float: none !important;
	width: 100% !important;
}
@media (min-width: 1024px) {
	.single-product-main .theme-product-layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4rem; /* lg:gap-16 */
	}
}
.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; float: none !important; width: 100% !important; }
@media (min-width: 1024px) { .theme-product-info { padding-block: 2.5rem; } } /* lg:py-10 */

/* Main image in normal flow (no absolute) — wrapper clips to aspect 3/4 */
.theme-product-main-image {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 1rem; /* rounded-2xl ≈ 1rem in this token set */
	overflow: hidden;
	background: var(--color-muted);
	margin-bottom: 1rem;
}
.theme-product-main-img {
	position: static !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.theme-product-thumbnails {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	max-width: 100%;
}
.theme-product-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 0.375rem;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: all 0.2s ease;
	padding: 0;
	background: none;
	cursor: pointer;
}
.theme-product-thumb img,
.theme-product-thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--color-navy); opacity: 1; }
.reset_variations,
.single-product-main .woocommerce-product-gallery,
.single-product-main .woocommerce-tabs,
.single-product-main .product_meta,
.single-product-main .onsale,
.single-product-main .woocommerce-product-rating,
.single-product-main .woocommerce-variation,
.single-product-main .woocommerce-variation-price,
.single-product-main .woocommerce-variation-availability { display: none !important; }

.theme-product-info__category {
	font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-product-info__title {
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	font-size: 1.5rem !important; /* text-2xl */
	letter-spacing: -0.02em;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	line-height: 1.2;
	color: var(--color-foreground);
	display: block !important;
	background: none !important;
	padding: 0 !important;
	border: none !important;
	min-height: 0 !important;
}
@media (min-width: 768px) {
	.theme-product-info__title { font-size: 1.875rem !important; } /* md:text-3xl */
}

.theme-product-info__price {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	font-family: var(--font-body);
}
.theme-product-info__price-breakdown {
	margin-left: 0.5rem; font-size: 0.875rem; font-weight: 400;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-product-info__price-breakdown[hidden] { display: none !important; }
.theme-stock-indicator { margin-bottom: 1rem; font-size: 0.875rem; font-weight: 600; }
.theme-stock-indicator--out { color: var(--color-rust); }
.theme-product-info__description {
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	line-height: 1.625;
	margin-bottom: 2rem;
	white-space: pre-line;
	overflow-wrap: break-word;
}

.theme-product-attr { margin-bottom: 1.5rem; }
.theme-product-attr__label {
	font-size: 0.875rem; font-weight: 600; margin: 0 0 0.75rem;
	font-family: var(--font-body);
}
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	padding: 0.5rem 1rem; font-size: 0.875rem; border: 1px solid var(--color-border); border-radius: 0.375rem;
	background: transparent; transition: all 0.2s ease; cursor: pointer;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-navy) 50%, transparent); }
.theme-attr-pill.is-selected { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.theme-quantity-wrapper {
	position: relative;
	display: flex; align-items: center; border: 1px solid var(--color-border);
	border-radius: 0.375rem; overflow: hidden; flex-shrink: 0;
}
.theme-qty-minus, .theme-qty-plus {
	padding: 0.75rem 1rem; background: transparent; border: none;
	transition: background-color 0.2s ease; display: flex; align-items: center;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-muted); }
.theme-qty-value {
	min-width: 3rem; /* min-w-[48px] */
	padding: 0.75rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 500;
}
.theme-qty-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 1rem;
	margin-bottom: 2rem;
	min-width: 0;
	max-width: 100%;
}
@media (max-width: 479.98px) {
	.theme-add-to-cart-area {
		flex-wrap: wrap;
	}
	.single-product-main .theme-add-to-cart-area .single_add_to_cart_button,
	.single-product-main .theme-add-to-cart-area a.single_add_to_cart_button {
		width: 100%;
		min-width: 0 !important;
	}
}
.single-product-main .theme-add-to-cart-area .single_add_to_cart_button,
.single-product-main .theme-add-to-cart-area a.single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
	border-radius: 0.375rem !important; /* rounded-md, not pill */
	min-height: auto !important;
	padding: 0.75rem 1.5rem !important;
	background-color: var(--color-navy) !important;
	color: var(--color-primary-foreground) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
}

.theme-product-info__details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-info__details-title { font-size: 0.875rem; font-weight: 600; margin: 0 0 1rem; }
.theme-product-info__details-list {
	display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none;
}
.theme-product-info__details-list li {
	display: flex; align-items: flex-start; gap: 0;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-product-info__bullet {
	width: 0.375rem; height: 0.375rem; border-radius: 999px;
	background: var(--color-navy); margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0;
}

.related-products-section {
	margin-top: 0;
	padding-top: 5rem; /* py-20 top */
	padding-bottom: 5rem;
	border-top: 1px solid var(--color-border);
}
.related-products-section__title {
	font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 0 0 2.5rem;
}
@media (min-width: 768px) { .related-products-section__title { font-size: 1.5rem; } }

/* ---------------------------------------------------------------------
 * SHOP ARCHIVE PAGE
 * ------------------------------------------------------------------- */
.shop-archive-page { padding-block: 3rem 5rem; }
.shop-archive-header { text-align: center; margin-bottom: 3rem; }

/* ---------------------------------------------------------------------
 * SIDE CART DRAWER
 * ------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
	/* Keep overlay out of scroll-width calculations when closed */
	visibility: hidden;
}
body.cart-open #theme-cart-overlay {
	opacity: 1; pointer-events: auto; visibility: visible;
}

#theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: min(28rem, 100%);
	max-width: 100%;
	background: var(--color-background);
	z-index: 51;
	box-shadow: -20px 0 40px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
	/* translate3d off-canvas; closed state also uses visibility (mobile scrollWidth) */
	transform: translate3d(100%, 0, 0);
	transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
	visibility: hidden;
	pointer-events: none;
	overflow-x: hidden;
}
body.cart-open #theme-cart-drawer {
	transform: translate3d(0, 0, 0);
	visibility: visible;
	pointer-events: auto;
}
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; background: none; border: none; opacity: 1; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 0.6; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer__empty-icon { color: color-mix(in srgb, var(--color-foreground) 50%, transparent); margin-bottom: 1rem; }
.theme-cart-drawer__empty p { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 1.5rem; }

.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-image { width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; border-radius: 0.375rem; background: var(--color-muted); display: block; }
.theme-cart-drawer__item-image img,
.theme-cart-thumb { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.theme-cart-drawer__item-info { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity 0.2s ease; }
.theme-cart-drawer__item-name:hover { opacity: 0.7; }
.theme-cart-drawer__item-variation { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.125rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-drawer__item-controls button { background: none; border: none; padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; display: flex; align-items: center; }
.theme-cart-drawer__item-controls button:hover { background: var(--color-muted); }
.theme-cart-drawer__item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-drawer__remove { margin-left: auto !important; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-drawer__remove:hover { color: var(--color-foreground); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-row span:first-child { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-drawer__shipping-note { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-drawer__checkout-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	padding: 0.75rem 1.25rem !important;
	border-radius: 999px !important;
	font-weight: 600;
	background-color: var(--color-navy) !important;
	color: var(--color-primary-foreground) !important;
}
.theme-cart-drawer__checkout-btn:hover { opacity: 0.9; color: #fff !important; }

/* ---------------------------------------------------------------------
 * CHECKOUT BLOCK (Section 13)
 * ------------------------------------------------------------------- */
/* Sticky header is in-flow — only bottom breathing room (Lovable pattern). */
body.woocommerce-checkout .site-main { padding-top: 2.5rem; padding-bottom: 4rem; }
body.woocommerce-checkout .page-title { margin-top: 1rem; }

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-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2.5rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-components-notice-banner {
		grid-column: 1 / -1;
	}
}

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 {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--color-navy); /* Lovable focus:ring-primary */
	border-color: var(--color-navy);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: transparent;
	border-radius: 0;
	padding: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-navy) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	padding: 0.85rem 1.6rem !important;
	height: auto !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	font-family: var(--font-body);
}

body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: 0; /* cart.php owns Lovable pt-16 / py-10 spacings */
	padding-bottom: 0;
}
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}
body.woocommerce-account .site-main {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}
.woocommerce-account .button {
	background-color: var(--color-navy);
	color: #fff;
	border-radius: 999px;
	padding: 0.75rem 1.5rem;
	border: none;
	text-transform: none;
	font-weight: 600;
}
.woocommerce-account .button:hover { opacity: 0.9; }

/* Cart page — parity with src/routes/cart.tsx */
.theme-cart-page { min-height: 100vh; padding-top: 4rem; } /* Lovable pt-16 */
@media (min-width: 1024px) { .theme-cart-page { padding-top: 5rem; } } /* lg:pt-20 */
.theme-cart-page__inner { padding-block: 2.5rem; } /* py-10 */
.theme-cart-page__empty {
	max-width: 42rem; margin-inline: auto; padding-block: 5rem; text-align: center;
}
.theme-cart-page__empty-icon {
	display: block; margin: 0 auto 1.5rem;
	color: color-mix(in srgb, var(--color-foreground) 55%, transparent);
}
.theme-cart-page__empty-title {
	font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem;
}
@media (min-width: 768px) { .theme-cart-page__empty-title { font-size: 1.875rem; } }
.theme-cart-page__empty-body {
	margin-bottom: 2rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-cart-page__back {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem;
	font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	transition: color 0.2s ease; background: none; border: none; padding: 0;
}
.theme-cart-page__back:hover { color: var(--color-foreground); }
.theme-cart-page__header {
	display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
	.theme-cart-page__header {
		flex-direction: row; align-items: flex-end; justify-content: space-between;
	}
}
.theme-cart-page__title {
	font-family: var(--font-display); font-size: 1.875rem; font-weight: 700;
}
@media (min-width: 768px) { .theme-cart-page__title { font-size: 2.25rem; } }
.theme-cart-page__count {
	margin-top: 0.5rem; font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-cart-page__clear {
	display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	background: none; border: none; padding: 0; transition: color 0.2s ease;
}
.theme-cart-page__clear:hover { color: #b91c1c; }
.theme-cart-page__layout {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 1024px) {
	.theme-cart-page__layout {
		grid-template-columns: minmax(0, 1fr) 360px; gap: 3.5rem;
	}
}
.theme-cart-page__items { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.theme-cart-page__item {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem;
	border-bottom: 1px solid var(--color-border); padding-bottom: 1.5rem;
}
@media (min-width: 640px) {
	.theme-cart-page__item {
		grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1.5rem;
	}
}
.theme-cart-page__item-media {
	aspect-ratio: 4/5; overflow: hidden; border-radius: 0.375rem; background: var(--color-muted);
}
.theme-cart-page__item-body { min-width: 0; }
.theme-cart-page__item-name {
	font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
	transition: opacity 0.2s ease;
}
.theme-cart-page__item-name:hover { opacity: 0.7; }
.theme-cart-page__item-meta {
	margin-top: 0.25rem; font-size: 0.75rem;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-cart-page__item-unit {
	margin-top: 0.5rem; font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-cart-page__qty { margin-top: 1.25rem; max-width: 180px; justify-content: space-between; }
.theme-cart-page__qty-val { min-width: 2.5rem; text-align: center; font-size: 0.875rem; font-weight: 500; }
.theme-cart-page__item-side {
	grid-column: span 2; display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) {
	.theme-cart-page__item-side {
		grid-column: auto; display: block; text-align: right;
	}
}
.theme-cart-page__item-total { font-size: 0.875rem; font-weight: 600; }
.theme-cart-page__remove {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0; font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	background: none; border: none; padding: 0; transition: color 0.2s ease;
}
@media (min-width: 640px) { .theme-cart-page__remove { margin-top: 1.25rem; } }
.theme-cart-page__remove:hover { color: #b91c1c; }
.theme-cart-page__summary {
	height: fit-content; border: 1px solid var(--color-border); background: var(--color-card); padding: 1.5rem;
}
.theme-cart-page__summary-title {
	font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem;
}
.theme-cart-page__summary-rows {
	display: flex; flex-direction: column; gap: 0.75rem;
	border-bottom: 1px solid var(--color-border); padding-bottom: 1.25rem; font-size: 0.875rem;
}
.theme-cart-page__summary-row {
	display: flex; justify-content: space-between;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-cart-page__summary-row span:last-child { color: var(--color-foreground); }
.theme-cart-page__shipping-free { font-weight: 500; color: var(--color-navy) !important; }
.theme-cart-page__summary-total {
	display: flex; justify-content: space-between; padding-block: 1.25rem; font-weight: 600;
}
.theme-cart-page__checkout {
	width: 100%; justify-content: center; gap: 0.5rem;
	padding: 1rem 1.5rem; border-radius: 999px;
}

/* ---------------------------------------------------------------------
 * THANK YOU PAGE (Section 22.8)
 * ------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
.theme-thankyou { max-width: 42rem; margin-inline: auto; padding-block: 5rem; text-align: center; }
.theme-thankyou__hero { margin-bottom: 2.5rem; }
.theme-thankyou__icon {
	width: 4rem; height: 4rem; border-radius: 999px; background: var(--color-navy); color: #fff;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.theme-thankyou__title {
	font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem;
}
@media (min-width: 768px) { .theme-thankyou__title { font-size: 2.25rem; } }
.theme-thankyou__body {
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 2rem; line-height: 1.6;
}
.theme-thankyou__cta {
	display: inline-flex; align-items: center; padding: 0.75rem 1.5rem; border-radius: 999px;
	background: var(--color-navy); color: #fff; font-weight: 600; font-size: 0.875rem; transition: opacity 0.2s ease;
}
.theme-thankyou__cta:hover { opacity: 0.9; color: #fff; }
.theme-thankyou__details {
	text-align: left; border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1rem 1.25rem;
	background: var(--color-card);
}
.theme-thankyou__details summary {
	cursor: pointer; font-weight: 600; font-family: var(--font-display); list-style: none;
}
.theme-thankyou__details summary::-webkit-details-marker { display: none; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { text-align: left; margin-top: 1.5rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; padding: 0 0 1rem 0; margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
body.theme-thankyou-page .woocommerce-order-overview li { flex: 1 1 auto; padding: 1rem 1.5rem; border-right: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-overview li:last-child { border-right: none; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
	}
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }
