/**
 * iTech — WooCommerce brand layer.
 *
 * Restyles the DEFAULT WooCommerce markup (Shop, Single Product, Cart, Checkout,
 * My Account) to the iTech design system. Loaded only on store pages, AFTER
 * main.css, so it wins same-specificity conflicts against Woo's own stylesheets.
 *
 * Structural changes that markup alone can't express live in template overrides
 * under `woocommerce/` (e.g. the product card). Brand tokens mirror the Figma
 * store palette (#155DFC primary), kept in sync with the rest of the theme.
 *
 * Sections:
 *   1. Tokens & base       6. Cart
 *   2. Buttons             7. Checkout
 *   3. Forms & notices     8. My Account
 *   4. Shop archive        9. Misc
 *   5. Single product
 */

:root {
	--wc-ink: #0F172B;
	--wc-secondary: #62748E;
	--wc-muted: #90A1B9;
	--wc-primary: #155DFC;
	--wc-primary-hover: #1351DB;
	--wc-primary-subtle: #EFF6FF;
	--wc-border: #E2E8F0;
	--wc-border-subtle: #F1F5F9;
	--wc-surface: #FFFFFF;
	--wc-surface-subtle: #FAFBFC;
	--wc-surface-tint: #F8FAFC;
	--wc-success: #10B981;
	--wc-danger: #EF4444;
}

/* ============ 1. Tokens & base ============ */
.woocommerce,
.woocommerce-page {
	font-family: 'Inter', sans-serif;
	color: var(--wc-ink);
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
	font-family: 'Inter', sans-serif;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--wc-ink);
}

#primary .woocommerce a {
	color: var(--wc-primary);
}

/* ============ 2. Buttons ============ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--wc-primary);
	color: #fff;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1;
	border: none;
	border-radius: 12px;
	padding: 0.875rem 1.75rem;
	transition: background-color 200ms ease, transform 200ms ease;
	text-decoration: none;
	cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background-color: var(--wc-primary-hover);
	color: #fff;
}

/* Ghost / secondary buttons */
.woocommerce a.button.wc-backward,
.woocommerce .cart .button[name="update_cart"],
.woocommerce a.added_to_cart {
	background-color: var(--wc-surface);
	color: var(--wc-ink);
	border: 1px solid var(--wc-border);
}

.woocommerce a.button.wc-backward:hover,
.woocommerce a.added_to_cart:hover {
	background-color: var(--wc-surface-tint);
	color: var(--wc-ink);
}

.woocommerce .button.disabled,
.woocommerce .button:disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled {
	background-color: #E2E8F0 !important;
	color: #94A3B8 !important;
	border-color: #E2E8F0 !important;
	cursor: not-allowed;
	opacity: 1;
	box-shadow: none;
}

/* ============ 3. Forms & notices ============ */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.woocommerce .select2-container .select2-selection {
	background-color: var(--wc-surface-subtle);
	border: 1px solid var(--wc-border);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	color: var(--wc-ink);
	font-size: 0.9rem;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce .input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
	outline: none;
	border-color: var(--wc-primary);
	box-shadow: 0 0 0 3px rgba(21, 93, 252, 0.15);
}

.woocommerce form .form-row label,
.woocommerce-checkout label {
	font-weight: 700;
	font-size: 0.8rem;
	color: #45556C;
	margin-bottom: 0.4rem;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.4;
	color: var(--wc-ink);
	padding: 0;
}

/* Notices — keep left padding so the ::before status icon has room and never
   sits behind the text. The action button (Ver carrinho) stays right. */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	position: relative;
	border-top: none;
	border-radius: 16px;
	border: 1px solid var(--wc-border-subtle);
	background-color: var(--wc-surface);
	color: var(--wc-ink);
	font-weight: 500;
	padding: 1.1rem 1.5rem 1.1rem 3.4rem;
	box-shadow: 0 4px 30px rgba(15, 23, 43, 0.04);
	line-height: 1.5;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
	left: 1.35rem;
	top: 1.15rem;
	font-size: 1rem;
	line-height: 1.4;
}

.woocommerce .woocommerce-message::before {
	color: var(--wc-success);
}

.woocommerce .woocommerce-info::before {
	color: var(--wc-primary);
}

.woocommerce .woocommerce-error {
	border-color: rgba(239, 68, 68, 0.25);
}

.woocommerce .woocommerce-error::before {
	color: var(--wc-danger);
}

/* The inline action button inside a notice (e.g. "Ver carrinho"). */
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button {
	padding: 0.6rem 1.25rem;
	font-size: 0.8rem;
}

/* ============ 4. Shop archive ============ */
.woocommerce-breadcrumb {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wc-muted);
	margin-bottom: 1rem;
}

.woocommerce-breadcrumb a {
	color: var(--wc-primary);
}

.woocommerce .woocommerce-products-header__title,
.woocommerce h1.page-title,
.woocommerce-page h1.entry-title {
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	line-height: 0.95;
	margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-result-count {
	color: var(--wc-secondary);
	font-size: 0.85rem;
	font-weight: 500;
	margin: 0;
}

.woocommerce .woocommerce-ordering select {
	border-radius: 999px;
	padding: 0.6rem 2.25rem 0.6rem 1.1rem;
	font-weight: 600;
	font-size: 0.85rem;
}

/* Product grid spacing (card markup comes from content-product.php) */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
}

/* Kill Woo's clearfix pseudo-elements — in a grid they become phantom cells
   that push the first product out of column 1. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	content: none;
	display: none;
}

@media (min-width: 640px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.woocommerce ul.products.columns-3,
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Force loop items to fill their grid track (beats Woo's default
   width:30.75%/float, regardless of stylesheet load order). */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

/* Cap the shop / category archive width so 3 columns stay a comfortable size
   (the Figma reserves the left rail for filters; until those exist we centre). */
.post-type-archive-product .site-main > .container,
.tax-product_cat .site-main > .container {
	max-width: 1200px;
}

/* The default onsale flash is replaced by the card's own badge */
.woocommerce ul.products li.product .onsale {
	display: none;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
	border: none;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	border-radius: 999px;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--wc-secondary);
	background-color: var(--wc-surface);
	border: 1px solid var(--wc-border-subtle);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background-color: var(--wc-primary);
	color: #fff;
	border-color: var(--wc-primary);
}

/* ============ 5. Single product ============ */
.single-product div.product .product_title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
	margin-bottom: 0.75rem;
}

.single-product div.product p.price,
.single-product div.product span.price {
	color: var(--wc-primary);
	font-weight: 900;
	font-size: 1.75rem;
}

.single-product div.product p.price del,
.single-product div.product span.price del {
	color: var(--wc-muted);
	font-weight: 500;
	font-size: 1.1rem;
	margin-left: 0.6rem;
}

.single-product div.product p.price ins,
.single-product div.product span.price ins {
	text-decoration: none;
}

.single-product .woocommerce-product-rating {
	margin-bottom: 1.25rem;
}

.single-product .woocommerce-product-rating .star-rating span::before {
	color: #F5B400;
}

.single-product div.product .woocommerce-product-details__short-description {
	color: var(--wc-secondary);
	font-weight: 500;
	line-height: 1.65;
	margin-bottom: 1.5rem;
}

/* Gallery */
.single-product div.product .woocommerce-product-gallery {
	border-radius: 28px;
	overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport,
.single-product div.product .woocommerce-product-gallery__image {
	border-radius: 28px;
	overflow: hidden;
	background-color: var(--wc-surface-tint);
}

/* Variations */
.single-product .variations,
.single-product .variations td,
.single-product .variations th {
	border: none;
	background: none;
	padding: 0.35rem 0;
}

.single-product .variations label {
	font-weight: 700;
	font-size: 0.8rem;
	color: #45556C;
}

/* Quantity */
.woocommerce .quantity .qty {
	border-radius: 12px;
	border: 1px solid var(--wc-border);
	background-color: var(--wc-surface-subtle);
	padding: 0.6rem 0.5rem;
	font-weight: 700;
	color: var(--wc-ink);
	width: 4.5rem;
	min-height: 44px;
	text-align: center;
}

.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.single-product div.product form.cart .button {
	padding: 0.95rem 2rem;
	border-radius: 999px;
	font-size: 0.95rem;
}

/* Tabs */
.woocommerce-tabs {
	background-color: var(--wc-surface);
	border: 1px solid var(--wc-border-subtle);
	border-radius: 28px;
	padding: 2rem;
	margin-top: 3rem;
	box-shadow: 0 8px 60px rgba(15, 23, 43, 0.05);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	justify-content: center;
	gap: 2rem;
	padding: 0 0 1.5rem;
	border-bottom: 1px solid var(--wc-border-subtle);
	margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--wc-muted);
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wc-primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
	color: var(--wc-secondary);
	line-height: 1.7;
}

/* Related */
.single-product .related > h2,
.single-product .upsells > h2 {
	font-size: 1.75rem;
	margin-bottom: 1.5rem;
}

/* ============ 6. Cart ============ */
.woocommerce-cart .woocommerce > h1,
.woocommerce-cart h1.entry-title {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	margin-bottom: 2rem;
}

.woocommerce table.shop_table {
	border: none;
	border-radius: 20px;
	border-collapse: separate;
	border-spacing: 0;
	background-color: var(--wc-surface);
	box-shadow: 0 4px 30px rgba(15, 23, 43, 0.04);
	overflow: hidden;
}

.woocommerce table.shop_table th {
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wc-muted);
	border: none;
	padding: 1.25rem 1.5rem;
}

.woocommerce table.shop_table td {
	border-top: 1px solid var(--wc-border-subtle);
	padding: 1.25rem 1.5rem;
	vertical-align: middle;
}

.woocommerce table.shop_table .product-name a {
	font-weight: 800;
	color: var(--wc-ink);
}

/* Product thumbnail: WooCommerce ships the full 300x300 image with no size
   constraint, so it renders oversized in the line item (issue #19). */
.woocommerce-cart td.product-thumbnail,
.woocommerce-cart th.product-thumbnail {
	width: 88px;
	min-width: 88px;
}

/* !important + min-width: a real-browser sweep for issue #21 found this
   column collapsing to ~0px at 1024px even with the width above in place.
   Two compounding causes: (1) WooCommerce core's own
   `.woocommerce-cart table.cart img { width: 32px }` (woocommerce.css) ties
   this rule's specificity (2 classes + 2 elements each) and wins on source
   order since core loads after the theme; (2) the table's auto-layout
   algorithm treats a plain `width` as a hint and will shrink a column below
   it — including below this rule's 88px — once the other columns'
   (name/price/qty/subtotal) combined content demand exceeds the table's
   available width. `!important` wins the cascade tie; `min-width` gives the
   layout algorithm a hard floor it won't shrink past. */
.woocommerce-cart td.product-thumbnail img {
	width: 72px !important;
	height: 72px !important;
	min-width: 72px !important;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

/* WooCommerce core's own woocommerce-smallscreen.css (auto-enqueued, media
   <=768px — covers both the 390px and 768px QA breakpoints) hides
   table.cart .product-thumbnail outright, silently undoing the thumbnail
   restored above for issue #19 as soon as the viewport goes mobile. Beat it
   on specificity (3 classes vs. its 3) plus !important regardless of
   stylesheet load order. */
@media (max-width: 768px) {
	.woocommerce-cart table.cart td.product-thumbnail {
		display: block !important;
	}
}

/* Coupon field: no width rule anywhere left the browser default (~20 chars),
   too narrow for the full "Código do cupão" placeholder (issue #19). */
.woocommerce-cart .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	float: none;
}

.woocommerce-cart .coupon .input-text {
	float: none;
	margin: 0;
	width: 100%;
	max-width: 260px;
	min-width: 200px;
	border: 1px solid var(--wc-border-subtle);
	border-radius: 999px;
	padding: 0.75rem 1.25rem;
}

.woocommerce-cart .coupon .button {
	margin: 0;
}

.woocommerce a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wc-danger) !important;
	font-weight: 700;
	border-radius: 999px;
}

.woocommerce a.remove:hover {
	background-color: var(--wc-danger);
	color: #fff !important;
}

/* Cart totals card */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals {
	background-color: var(--wc-surface);
	border: 1px solid var(--wc-border-subtle);
	border-radius: 28px;
	padding: 2rem;
	box-shadow: 0 8px 60px rgba(15, 23, 43, 0.05);
}

.woocommerce .cart_totals h2 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.woocommerce .cart_totals table.shop_table {
	box-shadow: none;
	border-radius: 0;
}

/* Rebalance columns: the generic shop_table padding (1.25rem 1.5rem) ate too
   much of the narrow 360px sidebar, squeezing the shipping-destination note
   into a one-word-per-line column (issue #19). */
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
	padding: 1rem 0.5rem;
}

.woocommerce .cart_totals table.shop_table th {
	width: 30%;
}

.woocommerce .cart_totals .woocommerce-shipping-destination,
.woocommerce .cart_totals ul#shipping_method label {
	overflow-wrap: break-word;
	white-space: normal;
}

.woocommerce .cart_totals .order-total .amount {
	color: var(--wc-ink);
	font-size: 1.5rem;
	font-weight: 900;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	font-size: 1rem;
	padding: 1rem;
	border-radius: 16px;
}

/* ============ 7. Checkout ============ */
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .woocommerce > h1 {
	text-align: center;
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	margin-bottom: 2.5rem;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	width: 100%;
	float: none;
}

.woocommerce-checkout #customer_details {
	margin-bottom: 2rem;
}

.woocommerce form.checkout_coupon,
.woocommerce-checkout #customer_details > .col-1 > div,
.woocommerce-checkout #customer_details > .col-2 > div,
.woocommerce-checkout h3 {
	background: none;
}

.woocommerce-checkout #customer_details .woocommerce-billing-fields,
.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
	background-color: var(--wc-surface);
	border: 1px solid var(--wc-border-subtle);
	border-radius: 24px;
	padding: 2rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 30px rgba(15, 23, 43, 0.04);
}

.woocommerce-checkout h3 {
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
}

.woocommerce-checkout #order_review_heading {
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
}

.woocommerce-checkout #order_review {
	background-color: var(--wc-surface);
	border: 1px solid var(--wc-border-subtle);
	border-radius: 24px;
	padding: 2rem;
	box-shadow: 0 8px 60px rgba(15, 23, 43, 0.05);
}

.woocommerce-checkout #order_review table.shop_table {
	box-shadow: none;
	border-radius: 0;
}

.woocommerce-checkout #payment {
	background: none;
	border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	border: none;
	padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
	border: 1px solid var(--wc-border);
	border-radius: 16px;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	list-style: none;
}

.woocommerce-checkout #payment div.payment_box {
	background-color: var(--wc-surface-subtle);
	border-radius: 12px;
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #place_order {
	width: 100%;
	background-color: var(--electric);
	font-size: 1rem;
	padding: 1.1rem;
	border-radius: var(--radius-pill);
}

.woocommerce-checkout #place_order:hover {
	background-color: #2c47e0;
}

.woocommerce-checkout #place_order:focus-visible {
	outline: 2px solid var(--electric);
	outline-offset: 2px;
}

/* ============ 8. My Account ============ */
.woocommerce-account .woocommerce > h1,
.woocommerce-account h1.entry-title {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 28%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 1rem;
	background-color: var(--wc-surface);
	border: 1px solid var(--wc-border-subtle);
	border-radius: 24px;
	box-shadow: 0 4px 30px rgba(15, 23, 43, 0.04);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 0 0.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--wc-secondary);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background-color: var(--wc-primary-subtle);
	color: var(--wc-primary);
}

.woocommerce-account .woocommerce-MyAccount-content {
	width: 68%;
	background-color: var(--wc-surface);
	border: 1px solid var(--wc-border-subtle);
	border-radius: 24px;
	padding: 2.5rem;
	box-shadow: 0 8px 60px rgba(15, 23, 43, 0.05);
	color: var(--wc-secondary);
}

.woocommerce-account .woocommerce-MyAccount-content a {
	font-weight: 600;
}

/* Login / register forms */
.woocommerce-account:not(.logged-in) .woocommerce > .u-columns,
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
	float: none;
	width: 100%;
}

.woocommerce form.login,
.woocommerce form.register {
	border: 1px solid var(--wc-border-subtle);
	border-radius: 24px;
	padding: 2rem;
	box-shadow: 0 4px 30px rgba(15, 23, 43, 0.04);
}

/* ============ 9. Misc ============ */
.woocommerce .star-rating span::before {
	color: #F5B400;
}

.woocommerce .price del {
	color: var(--wc-muted);
	font-weight: 500;
}

.woocommerce .price ins {
	text-decoration: none;
}

/* Tidy default product-category list output */
.woocommerce ul.products li.product .button {
	margin-top: 0;
}

/* ============ 10. Page width & column layouts ============ */

/* Constrain Woo functional pages so content is not full-bleed on wide screens
   (page.php / woocommerce.php use Tailwind `.container`, which caps at 1536px). */
.woocommerce-cart .site-main > .container,
.woocommerce-checkout .site-main > .container,
.woocommerce-account .site-main > .container {
	max-width: 1180px;
}

.single-product .site-main > .container {
	max-width: 1280px;
}

/* --- Cart: items left, summary sidebar right (Figma) --- */
@media ( min-width: 1024px ) {
	.woocommerce-cart .woocommerce {
		display: grid;
		grid-template-columns: minmax( 0, 1fr ) 360px;
		gap: 2.5rem;
		align-items: start;
	}

	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}

	.woocommerce-cart form.woocommerce-cart-form {
		grid-column: 1;
		margin: 0;
	}

	.woocommerce-cart .cart-collaterals {
		grid-column: 2;
		width: 100%;
		float: none;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		width: 100%;
		float: none;
	}

	/* The Figma puts upsells in a separate full-width row; hide the sidebar
	   cross-sells block so the summary card stands alone. */
	.woocommerce-cart .cart-collaterals .cross-sells {
		display: none;
	}
}

/* --- Checkout: form left, order review sticky sidebar right (Figma) --- */
@media ( min-width: 1024px ) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax( 0, 1fr ) 400px;
		grid-template-areas:
			"details review-heading"
			"details review";
		gap: 0.5rem 2.5rem;
		align-items: start;
	}

	.woocommerce-checkout form.checkout #customer_details {
		grid-area: details;
	}

	.woocommerce-checkout form.checkout #order_review_heading {
		grid-area: review-heading;
		margin: 0 0 0.5rem;
	}

	.woocommerce-checkout form.checkout #order_review {
		grid-area: review;
		position: sticky;
		top: 120px;
	}
}

/* ============ 11. Variation swatches (pills) ============ */
.single-product .itech-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.single-product .itech-swatch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	background: var(--wc-surface);
	border: 2px solid var(--wc-border);
	border-radius: 12px;
	padding: 0.5rem 1.1rem;
	font-weight: 700;
	font-size: 0.85rem;
	color: #45556C;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.single-product .itech-swatch:hover {
	border-color: #CAD5E2;
}

.single-product .itech-swatch.is-active {
	border-color: var(--electric);
	background: rgba(61, 91, 255, 0.08);
	color: var(--electric);
}

.single-product .itech-swatch.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.single-product .itech-swatch-dot {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	display: inline-block;
}

/* Stack each variation row (label above the swatches) for a cleaner column. */
.single-product .variations th,
.single-product .variations td {
	display: block;
	width: 100%;
	text-align: left;
}

.single-product .variations th {
	padding-bottom: 0.35rem;
}

.single-product .variations .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.8rem;
}

/*
 * Variable products: form.cart's default flex-row (below) puts the attributes
 * table and the qty/Adicionar wrap side by side. Override to a block flow so
 * the buy controls always land in their own row below every attribute row,
 * per Figma. Scoped to .variations_form (variable products only) so simple
 * products keep their side-by-side qty + button layout.
 */
.single-product div.product form.cart.variations_form {
	display: block;
}

.single-product div.product form.cart.variations_form .single_variation_wrap {
	display: block;
	margin-top: 0.75rem;
}

.single-product div.product form.cart.variations_form .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
