/**
 * Carrinho — extensões do padrão moderno compartilhado.
 * Somente tema astra-child. Cores e tipografia herdadas do Astra.
 */

.shek-carrinho .woocommerce {
	max-width: 1100px !important;
	margin: 0 auto;
}

/* ============================================================
   Carrinho vazio
   ============================================================ */
.shek-carrinho .wc-empty-cart-message {
	padding: 36px 24px;
	background: var(--ast-global-color-5);
	border-radius: 14px;
	box-shadow: 0 18px 40px color-mix(in srgb, var(--ast-global-color-7) 10%, transparent);
	text-align: center;
}

.shek-carrinho .wc-empty-cart-message .woocommerce-info {
	display: block;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.shek-carrinho .wc-empty-cart-message .woocommerce-info::before {
	display: none;
}

.shek-carrinho .cart-empty {
	margin: 0 0 20px;
	font-size: 18px;
	color: var(--ast-global-color-3);
}

.shek-carrinho .return-to-shop {
	margin: 20px 0 0;
	text-align: center;
}

/* ============================================================
   Carrinho com itens
   ============================================================ */
.shek-carrinho .woocommerce:has(.woocommerce-cart-form) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 14px;
	align-items: stretch;
}

.shek-carrinho .woocommerce:has(.woocommerce-cart-form) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0;
}

.shek-carrinho .woocommerce:has(.woocommerce-cart-form) > .woocommerce-notices-wrapper .woocommerce-message {
	margin: 0;
}

.shek-carrinho .woocommerce-cart-form {
	grid-column: 1;
	grid-row: 3;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	overflow: visible;
	padding: clamp(18px, 2.2vw, 24px);
	background: var(--ast-global-color-5);
	border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
	border-radius: 14px;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
}

.shek-carrinho .woocommerce-cart-form table.shop_table {
	width: 100% !important;
	min-width: 0;
	max-width: 100%;
	table-layout: auto;
}

@media (min-width: 783px) {
	.shek-carrinho .woocommerce-cart-form table.shop_table .product-remove {
		width: 72px;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table .product-thumbnail {
		width: 88px;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table .product-price {
		width: 90px;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table .product-subtotal {
		width: 100px;
	}
}

.shek-carrinho .woocommerce-cart-form table.shop_table th {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.shek-carrinho .woocommerce-cart-form table.shop_table td {
	font-size: 14px;
	vertical-align: middle;
}

.shek-carrinho .cart-collaterals {
	display: contents;
}

.shek-carrinho .cart_totals {
	display: flex !important;
	flex-direction: column;
	grid-column: 2;
	grid-row: 3;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: clamp(18px, 2.2vw, 24px) !important;
	background: var(--ast-global-color-5) !important;
	border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 6%, transparent) !important;
	border-radius: 14px !important;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--ast-global-color-7) 6%, transparent) !important;
}

.shek-carrinho .cart_totals table.shop_table {
	width: 100%;
	margin: 0;
}

.shek-carrinho .cart_totals h2 {
	margin: 0 0 14px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	font-size: 20px;
	line-height: 1.2;
	color: var(--ast-global-color-7);
}

.shek-carrinho .cart_totals .order-total .amount {
	font-size: 28px;
	font-weight: 900;
	color: var(--ast-global-color-1);
}

.shek-carrinho .cart_totals .wc-proceed-to-checkout {
	margin-top: auto;
}

.shek-carrinho .cart_totals .checkout-button {
	width: 100% !important;
	text-align: center;
}

/* Tabela de itens */
.shek-carrinho table.shop_table {
	border: 0;
}

.shek-carrinho table.shop_table th,
.shek-carrinho table.shop_table td {
	padding: 12px;
}

.shek-carrinho .product-thumbnail img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
}

.shek-carrinho .product-quantity {
	text-align: center;
	font-weight: 700;
	color: var(--ast-global-color-7);
}

.shek-carrinho .woocommerce-cart-form table.shop_table th.product-price,
.shek-carrinho .woocommerce-cart-form table.shop_table td.product-price,
.shek-carrinho .woocommerce-cart-form table.shop_table th.product-subtotal,
.shek-carrinho .woocommerce-cart-form table.shop_table td.product-subtotal {
	text-align: right;
}

.shek-carrinho .product-name {
	font-size: 14px;
	line-height: 1.45;
}

.shek-carrinho .product-name a {
	font-weight: 600;
	text-decoration: none;
	color: var(--ast-global-color-7);
}

.shek-carrinho .product-name a:hover {
	color: var(--ast-global-color-1);
}

.shek-carrinho .product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
	color: var(--ast-global-color-3) !important;
	font-size: 0;
	text-decoration: none;
}

.shek-carrinho td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.shek-carrinho .product-remove a.remove::after,
.shek-carrinho .product-remove a.remove > * {
	content: none !important;
	display: none !important;
}

.shek-carrinho .product-remove a.remove::before {
	content: "";
	display: block;
	position: static;
	inset: auto;
	border: 0;
	border-radius: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M7 7l1 13h8l1-13M10 11v6M14 11v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M7 7l1 13h8l1-13M10 11v6M14 11v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shek-carrinho .product-remove a.remove:hover {
	background: var(--ast-global-color-1);
	color: var(--ast-global-color-5) !important;
}

/* Cupom e ações */
.shek-carrinho .coupon {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.shek-carrinho .coupon::before {
	content: "Cupom de desconto";
	display: block;
	width: 100%;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ast-global-color-7);
}

.shek-carrinho .coupon .input-text {
	min-width: 180px;
}

.shek-carrinho .actions .button {
	padding: 12px 16px;
}

.shek-carrinho .cross-sells:not(:has(*)) {
	display: none;
}

.shek-carrinho .cart-collaterals .cross-sells {
	width: 100%;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.shek-carrinho .cart-collaterals .cross-sells > h2 {
	margin: 0 0 12px;
	padding: 0;
	background: transparent;
	border: 0;
	font-size: clamp(17px, 1.8vw, 20px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ast-global-color-7);
}

.shek-carrinho .cart-collaterals .cross-sells li.product {
	padding-bottom: 0;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products {
	gap: 12px;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product {
	flex-direction: row;
	border-radius: 12px;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .astra-shop-thumbnail-wrap {
	flex: 0 0 42%;
	width: 42%;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .astra-shop-thumbnail-wrap img {
	aspect-ratio: 4 / 3;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .astra-shop-summary-wrap {
	flex: 1 1 auto;
	min-width: 0;
	justify-content: center;
}

@media (min-width: 1101px) {
	.shek-carrinho .cart-collaterals .cross-sells ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.shek-carrinho .cross-sells:has(*) {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .astra-shop-summary-wrap {
	padding: 10px 10px 12px;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .ast-woo-product-category {
	font-size: 10px;
	margin-bottom: 4px;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .woocommerce-loop-product__title {
	font-size: 13px;
	margin-bottom: 4px !important;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .price {
	font-size: 13px;
	margin-bottom: 8px;
}

.shek-carrinho .cart-collaterals .cross-sells ul.products li.product .button {
	padding: 8px 10px;
	font-size: 12px;
}

@media (max-width: 620px) {
	.shek-carrinho .cart-collaterals .cross-sells ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 10px;
	}
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1100px) {
	.shek-carrinho .woocommerce:has(.woocommerce-cart-form) {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px;
		border-radius: 16px;
	}

	.shek-carrinho .woocommerce:has(.woocommerce-cart-form) > .woocommerce-notices-wrapper,
	.shek-carrinho .woocommerce-cart-form,
	.shek-carrinho .cart_totals,
	.shek-carrinho .cross-sells {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.shek-carrinho .coupon {
		flex-wrap: wrap;
	}

	.shek-carrinho .coupon .input-text {
		width: 100%;
	}
}

@media (max-width: 782px) {
	.shek-carrinho .woocommerce-cart-form {
		overflow: visible;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table {
		min-width: 0;
		width: 100%;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table thead {
		display: none;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 4px 12px;
		padding: 14px 0;
		border-bottom: 1px solid color-mix(in srgb, var(--ast-global-color-7) 8%, transparent);
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
		display: block;
		padding: 0;
		border: 0;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item td::before {
		content: none !important;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item {
		position: relative;
	}

	.shek-carrinho .product-remove {
		position: absolute;
		top: 14px;
		right: 0;
		text-align: right;
	}

	.shek-carrinho .product-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.shek-carrinho .product-thumbnail img {
		width: 72px;
		height: 72px;
	}

	.shek-carrinho .product-name {
		grid-column: 2;
		grid-row: 1;
		padding-right: 48px !important;
		line-height: 1.4;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name,
	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name a {
		text-align: left !important;
	}

	.shek-carrinho .product-name dl.variation {
		display: block;
		margin: 6px 0 0;
		text-align: left;
	}

	.shek-carrinho .product-name dl.variation dt,
	.shek-carrinho .product-name dl.variation dd {
		display: inline;
		margin: 0;
		padding: 0;
	}

	.shek-carrinho .product-name dl.variation dd::after {
		content: "";
		display: block;
	}

	.shek-carrinho .product-price,
	.shek-carrinho .product-quantity,
	.shek-carrinho .product-subtotal {
		grid-column: 1 / -1;
		display: flex !important;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		min-height: 0 !important;
		padding: 2px 0 !important;
		line-height: 1.4;
	}

	.shek-carrinho .product-quantity {
		display: none !important;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-price::before,
	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity::before,
	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal::before {
		content: attr(data-title) !important;
		display: inline-block !important;
		flex-shrink: 0;
		font-size: 12px;
		font-weight: 700;
		color: var(--ast-global-color-7);
	}

	.shek-carrinho .product-subtotal {
		font-weight: 700;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.actions {
		display: block;
		padding-top: 12px;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.actions td {
		display: block;
		padding: 0 0 10px;
		border: 0;
	}

	.shek-carrinho .woocommerce-cart-form table.shop_table tbody tr.actions td::before {
		content: none !important;
	}

	.shek-carrinho .coupon {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.shek-carrinho .coupon .input-text,
	.shek-carrinho .coupon .button,
	.shek-carrinho .actions .button {
		width: 100%;
	}
}

/* ============================================================
   Referência do carrinho: resumo, cupom, segurança e benefícios
   ============================================================ */
.shek-page-hero__badge {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	background: var(--ast-global-color-5);
	border-radius: 999px;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--ast-global-color-7) 10%, transparent);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ast-global-color-7);
}

.shek-page-hero__badge svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.shek-cart-coupon-prompt {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0 0 16px;
	border-bottom: 1px solid color-mix(in srgb, var(--ast-global-color-7) 8%, transparent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ast-global-color-1);
	text-decoration: none;
}

.shek-cart-coupon-prompt:hover,
.shek-cart-coupon-prompt:focus {
	color: var(--ast-global-color-7);
}

.shek-cart-coupon-prompt svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.shek-cart-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px 0;
	padding: 10px 12px;
	background: color-mix(in srgb, var(--ast-global-color-4) 60%, transparent);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ast-global-color-1);
}

.shek-cart-secure svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.shek-cart-extras {
	display: flex;
	flex-direction: column;
	gap: 16px;
	grid-column: 1 / -1;
	justify-self: stretch;
	width: 100%;
	margin-top: 0;
}

.shek-cart-continue {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px;
	background: var(--ast-global-color-5);
	border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 12%, transparent);
	border-radius: 8px;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ast-global-color-7);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shek-cart-continue:hover,
.shek-cart-continue:focus {
	background: var(--ast-global-color-1);
	border-color: var(--ast-global-color-1);
	color: var(--ast-global-color-5);
}

.shek-cart-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	padding: 18px 22px;
	background: var(--ast-global-color-5);
	border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
	border-radius: 14px;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
}

.shek-cart-benefit {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 22px;
	border-right: 1px solid color-mix(in srgb, var(--ast-global-color-7) 8%, transparent);
}

.shek-cart-benefit:first-child {
	padding-left: 0;
}

.shek-cart-benefit:last-child {
	padding-right: 0;
	border-right: 0;
}

.shek-cart-benefit svg {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	fill: none;
	stroke: var(--ast-global-color-1);
	stroke-width: 1.7;
}

.shek-cart-benefit strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ast-global-color-7);
}

.shek-cart-benefit span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--ast-global-color-3);
}

@media (max-width: 782px) {
	.shek-page-hero__badge {
		position: static;
		margin-bottom: 12px;
	}

	.shek-cart-benefits {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.shek-cart-benefit {
		padding: 12px 0;
		border-right: 0;
		border-bottom: 1px solid color-mix(in srgb, var(--ast-global-color-7) 8%, transparent);
	}

	.shek-cart-benefit:last-child {
		border-bottom: 0;
	}

	.shek-carrinho .shek-cart-extras {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.shek-carrinho .shek-cart-continue {
		align-self: center;
		justify-content: center;
	}

	.shek-carrinho .shek-cart-benefit {
		justify-content: center;
		text-align: center;
	}

	.shek-carrinho .shek-cart-benefit > div {
		text-align: center;
	}
}

/* Data da reserva em destaque sublinhado no item do carrinho */
.shek-carrinho .variation-Datadareserva + dd {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Coluna Quantidade removida: reservas são sempre de 1 unidade por item */
.shek-carrinho .woocommerce-cart-form table.shop_table .product-quantity {
	display: none !important;
}
