/* ==========================================================================
   woo-cart.css — Page Panier (WooCommerce cart.php / cart-totals.php)
   Enfant Astra "ades" — palette teal du site, police Poppins.
   Chargé uniquement sur is_cart() via ades_enqueue_cart_assets().
   ========================================================================== */

.ades-cart-page {
	--teal: #034E5A;
	--teal-dark: #0f3535;
	--teal-tint: #e8f1f1;
	--bg-soft: #f7f9f9;
	--border: #e6ebec;
	--text: #1f2d2f;
	--text-muted: #6b7c7e;
	--success: #1b9c5a;
	--danger: #c0392b;
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 6px;
	--shadow-card: 0 2px 14px rgba(3, 78, 90, 0.07);

	max-width: 1320px;
	margin: 0 auto;
	padding: 40px 24px 64px;
	font-family: 'Poppins', sans-serif;
	color: var(--text);
}

/* ---- Titre ---- */
.ades-cart-title {
	font-size: 28px;
	font-weight: 600;
	color: var(--teal);
	margin: 0 0 28px;
}

/* ---- Grille 2 colonnes ---- */
.ades-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 28px;
	align-items: start;
}

.ades-cart-main {
	min-width: 0;
	background: #fff;
}

/* ==========================================================================
   TABLEAU PRODUITS
   ========================================================================== */

.ades-cart-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.ades-cart-table thead tr {
	background: var(--bg-soft);
}

.ades-cart-table thead th {
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: none;
	padding: 16px 18px;
	border-bottom: 1px solid var(--border);
}

.ades-cart-table thead th.ades-col-price,
.ades-cart-table thead th.ades-col-qty,
.ades-cart-table thead th.ades-col-total {
	text-align: center;
}

.ades-cart-table td.ades-col-remove {
	width: 44px;
}

.ades-cart-row td {
	padding: 18px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}

.ades-cart-row:last-child td {
	border-bottom: none;
}

.ades-col-price,
.ades-col-qty,
.ades-col-total {
	text-align: center;
	white-space: nowrap;
}

.ades-col-price .amount,
.ades-col-total .amount {
	font-weight: 600;
	color: var(--text);
}

.ades-col-total .amount {
	color: var(--teal);
}

/* ---- Cellule produit : miniature + infos ---- */
.ades-cart-product {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ades-cart-product__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--bg-soft);
}

.ades-cart-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ades-cart-product__info {
	min-width: 0;
}

.ades-cart-product__name {
	display: block;
	font-weight: 600;
	font-size: 15px;
	color: var(--text);
	text-decoration: none;
	line-height: 1.35;
}

a.ades-cart-product__name:hover {
	color: var(--teal);
}

.ades-cart-product__meta {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 2px;
}

.ades-cart-product__meta .variation {
	margin: 0;
}

.ades-cart-product__meta .variation p,
.ades-cart-product__meta .variation dd,
.ades-cart-product__meta .variation dt {
	display: inline;
	margin: 0;
	font-size: 13px;
}

.ades-backorder-note {
	font-size: 12px;
	color: var(--danger);
	margin: 4px 0 0;
}

/* Lien "Retirer" texte — visible seulement en mobile (voir media query) */
.ades-cart-remove--mobile {
	display: none;
}

/* ---- Icône corbeille (colonne dédiée, desktop) ---- */
a.ades-cart-remove.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 16px;
	transition: background-color .15s ease, color .15s ease;
}

a.ades-cart-remove.remove:hover {
	background: #fbe9e7;
	color: var(--danger);
}

/* ==========================================================================
   SÉLECTEUR DE QUANTITÉ (stepper − / input / +)
   ========================================================================== */

.ades-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: #fff;
}

.ades-qty-stepper .quantity {
	margin: 0;
}

.ades-qty-stepper input.qty {
	width: 44px;
	height: 38px;
	border: none;
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: var(--text);
	-moz-appearance: textfield;
}

.ades-qty-stepper input.qty::-webkit-inner-spin-button,
.ades-qty-stepper input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ades-qty-btn {
	width: 34px;
	height: 38px;
	border: none;
	background: #fff;
	color: var(--teal);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease;
}

.ades-qty-btn:hover:not(:disabled) {
	background: var(--teal-tint);
}

.ades-qty-btn:disabled {
	color: #c7d2d3;
	cursor: not-allowed;
}

.ades-qty-stepper--single {
	font-size: 14px;
	padding: 8px 14px;
	border-color: transparent;
}

/* ==========================================================================
   ACTIONS SOUS LE TABLEAU (Continuer mes achats / Vider le panier)
   ========================================================================== */

.ades-cart-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	flex-wrap: wrap;
}

/* ==========================================================================
   BOUTONS — variantes partagées (table + sidebar)
   ========================================================================== */

.ades-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	line-height: 1.2;
}

.ades-btn i {
	font-size: 16px;
}

.ades-btn--outline {
	background: #fff;
	border-color: var(--border);
	color: var(--text);
}

.ades-btn--outline:hover {
	border-color: var(--teal);
	color: var(--teal);
}

.ades-btn--danger:hover {
	border-color: var(--danger);
	color: var(--danger);
}

.ades-btn--primary {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}

.ades-btn--primary:hover {
	background: var(--teal-dark);
	border-color: var(--teal-dark);
	color: #fff;
}

.ades-btn--sm {
	padding: 10px 18px;
	font-size: 13px;
}

.ades-btn--block {
	display: flex;
	width: 100%;
}

/* ==========================================================================
   SIDEBAR — Récapitulatif de commande
   ========================================================================== */

.ades-cart-sidebar {
	position: sticky;
	top: 24px;
}

/* WooCommerce (repris par Astra) applique par défaut
   ".cart_totals { width:48%; float:right; }" — hérité de l'ancien
   affichage côte-à-côte avec les ventes croisées. Comme on garde la
   classe "cart_totals" sur la carte (pour rester compatible avec les
   scripts natifs), il faut neutraliser explicitement cette règle,
   sinon la carte se retrouve à ~48% de la colonne de la grille au
   lieu de 100%, et tout le texte se met à retourner à la ligne. */
.ades-cart-sidebar .cart-collaterals {
	width: 100%;
}

.ades-summary-card {
	box-sizing: border-box;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 26px;
	box-shadow: var(--shadow-card);
}

.ades-summary-card__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 18px;
}

.ades-summary-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	font-size: 14px;
}

.ades-summary-row__label {
	color: var(--text-muted);
}

.ades-summary-row__value {
	font-weight: 600;
	color: var(--text);
	text-align: right;
}

.ades-summary-row--shipping .ades-summary-row__value {
	color: var(--success);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.ades-summary-row--shipping .ades-summary-row__value .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ades-summary-row--coupon .ades-summary-row__value {
	color: var(--success);
}

.ades-summary-row--coupon a {
	color: var(--danger);
	font-size: 12px;
	margin-left: 6px;
}

/* ---- Bloc code promo ---- */
.ades-coupon-box {
	border-top: 1px dashed var(--border);
	border-bottom: 1px dashed var(--border);
	padding: 18px 0;
	margin: 8px 0;
}

.ades-coupon-box label {
	display: block;
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 10px;
}

.ades-coupon-form {
	margin: 0;
}

.ades-coupon-box__row {
	display: flex;
	gap: 8px;
}

.ades-coupon-box__row .input-text {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	background: #fff;
}

.ades-coupon-box__row .input-text:focus {
	outline: none;
	border-color: var(--teal);
}

.ades-coupon-box__row .ades-btn {
	flex: 0 0 auto;
	padding: 0 20px;
}

/* ---- Total ---- */
.ades-summary-row--total {
	align-items: center;
	padding-top: 14px;
}

.ades-summary-row--total .ades-summary-row__label {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.ades-ttc {
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
}

.ades-summary-row__value--total {
	font-size: 22px;
	font-weight: 700;
	color: var(--teal);
}

/* ---- CTA paiement ---- */
.ades-checkout-cta {
	margin-top: 18px;
}

.ades-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: var(--text-muted);
	margin: 12px 0 0;
}

/* ==========================================================================
   BANDEAU RÉASSURANCE (sous le panier)
   ========================================================================== */

.ades-cart-badges {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 32px;
	padding: 26px 8px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.ades-cart-badges__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ades-cart-badges__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--teal-tint);
	color: var(--teal);
	font-size: 20px;
}

.ades-cart-badges__item strong {
	display: block;
	font-size: 14px;
	color: var(--text);
}

.ades-cart-badges__item small {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
}

/* ==========================================================================
   PANIER VIDE
   ========================================================================== */

.ades-cart-empty {
	text-align: center;
	padding: 80px 20px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.ades-cart-empty i {
	font-size: 44px;
	color: var(--teal);
	margin-bottom: 16px;
	display: inline-block;
}

.ades-cart-empty p {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0 0 22px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.ades-cart-layout {
		grid-template-columns: 1fr;
	}

	.ades-cart-sidebar {
		position: static;
	}

	.ades-cart-badges {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {

	.ades-cart-title {
		font-size: 22px;
	}

	/* Tableau -> cartes empilées */
	.ades-cart-table thead {
		display: none;
	}

	.ades-cart-table,
	.ades-cart-table tbody,
	.ades-cart-row {
		display: block;
		width: 100%;
	}

	.ades-cart-table {
		border: none;
		background: transparent;
	}

	.ades-cart-row {
		background: #fff;
		border: 1px solid var(--border);
		border-radius: var(--radius-md);
		margin-bottom: 14px;
		padding: 16px;
	}

	.ades-cart-row td {
		display: block;
		border: none;
		padding: 0;
		text-align: left;
		white-space: normal;
	}

	.ades-col-product {
		margin-bottom: 14px;
	}

	.ades-col-price,
	.ades-col-qty,
	.ades-col-total {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 8px 0;
		border-top: 1px solid var(--border);
		text-align: right;
	}

	.ades-col-price::before,
	.ades-col-qty::before,
	.ades-col-total::before {
		content: attr(data-title);
		font-size: 13px;
		color: var(--text-muted);
		font-weight: 500;
	}

	.ades-col-remove {
		display: none;
	}

	.ades-cart-remove--mobile {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		margin-top: 10px;
		font-size: 12px;
		color: var(--danger);
		text-decoration: none;
	}

	.ades-cart-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ades-cart-actions .ades-btn {
		width: 100%;
	}

	.ades-cart-badges {
		grid-template-columns: 1fr;
	}
}








.attachment-thumbnail{
	width: 100%!important;
	height: 100%!important;
	object-fit: cover;
}