/* ==========================================================
   Maria Gingiu – stilizare minimală Coș & Checkout (blocuri)
   ========================================================== */
.mg-shop {
	--mg-bg: #F7F2EC;
	--mg-paper: #FFFDF9;
	--mg-plum: #501950;
	--mg-plum-2: #3D0C41;
	--mg-violet: #761B87;
	--mg-gold: #C9A15A;
	--mg-ink: #292429;
	--mg-muted: rgba(41, 36, 41, .65);
	--mg-line: rgba(61, 12, 65, .14);
	--mg-field: rgba(61, 12, 65, .22);
}

/* ---------- Lățime: aceeași ca a site-ului (anulează alignwide) ---------- */
.mg-shop .wp-block-woocommerce-cart,
.mg-shop .wp-block-woocommerce-checkout,
.mg-shop .wp-block-woocommerce-cart.alignwide,
.mg-shop .wp-block-woocommerce-checkout.alignwide {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

/* ---------- Coș: card alb pentru „Total coș” ---------- */
.mg-shop .wp-block-woocommerce-cart-totals-block {
	background: #FFFFFF;
	padding: 24px;
	border-radius: 16px;
	border: 1px solid var(--mg-line);
}
@media (max-width: 699px) {
	.mg-shop .wp-block-woocommerce-cart-totals-block { padding: 20px 16px; }
}

/* ---------- Checkout: rezumat comandă alb + sticky la 60px ---------- */
.mg-shop .wp-block-woocommerce-checkout-order-summary-block {
	background: #FFFFFF;
	border-radius: 16px;
}
.mg-shop .wc-block-checkout__sidebar.is-sticky { top: 60px !important; }
.admin-bar.mg-shop .wc-block-checkout__sidebar.is-sticky { top: 92px !important; }

/* ---------- Titlu pagină (Hello Elementor) ---------- */
.mg-shop .page-header .entry-title,
.mg-shop .page-content > h1.wp-block-heading {
	margin: 0 0 clamp(20px, 2.4vw, 32px);
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: -.035em;
	color: var(--mg-plum);
}

/* ---------- Linkuri (înlocuiește roz-ul implicit Hello) ---------- */
.mg-shop .wp-block-woocommerce-cart a,
.mg-shop .wp-block-woocommerce-checkout a { color: var(--mg-violet); }
.mg-shop .wp-block-woocommerce-cart a:hover,
.mg-shop .wp-block-woocommerce-checkout a:hover { color: var(--mg-plum); }

/* ---------- Titluri secțiuni ---------- */
.mg-shop .wc-block-components-title.wc-block-components-title,
.mg-shop .wc-block-components-checkout-step__title {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -.02em;
	color: var(--mg-plum);
}
.mg-shop .wc-block-cart__totals-title.wc-block-cart__totals-title,
.mg-shop .wc-block-cart-items__header {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mg-muted);
}
.mg-shop .wp-block-woocommerce-cart h2.wp-block-heading,
.mg-shop .wc-block-cart__empty-cart__title {
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 500;
	letter-spacing: -.02em;
	color: var(--mg-plum);
}

/* ---------- Butoane principale ---------- */
.mg-shop .wc-block-cart__submit-button,
.mg-shop .wc-block-components-checkout-place-order-button,
.mg-shop .wp-block-woocommerce-cart .wp-block-button__link,
.mg-shop .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
	min-height: 54px;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--mg-plum) !important;
	color: #FFF9F5 !important;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color .15s;
}
.mg-shop .wc-block-cart__submit-button:hover,
.mg-shop .wc-block-components-checkout-place-order-button:hover,
.mg-shop .wp-block-woocommerce-cart .wp-block-button__link:hover {
	background: var(--mg-plum-2) !important;
}
.mg-shop .wc-block-cart__submit-button .wc-block-components-button__text,
.mg-shop .wc-block-components-checkout-place-order-button .wc-block-components-button__text { color: inherit; }

/* Buton secundar (Aplică cupon) */
.mg-shop .wc-block-components-totals-coupon__button {
	border: 1px solid var(--mg-plum) !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--mg-plum) !important;
	font-weight: 500;
}
.mg-shop .wc-block-components-totals-coupon__button:hover:not(:disabled) {
	background: var(--mg-plum) !important;
	color: #FFF9F5 !important;
}

/* Butoane produs (cross-sells / noutăți) */
.mg-shop .wp-block-woocommerce-product-button .wp-block-button__link,
.mg-shop .wc-block-grid__product-add-to-cart .wp-block-button__link {
	min-height: 0;
	padding: 10px 18px;
	border: 1px solid var(--mg-plum) !important;
	background: transparent !important;
	color: var(--mg-plum) !important;
	font-size: 14px;
}
.mg-shop .wp-block-woocommerce-product-button .wp-block-button__link:hover,
.mg-shop .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
	background: var(--mg-plum) !important;
	color: #FFF9F5 !important;
}

/* Link „Înapoi la coș” */
.mg-shop .wc-block-components-checkout-return-to-cart-button { color: var(--mg-violet); text-decoration: none; }

/* ---------- Câmpuri ---------- */
.mg-shop .wc-block-components-text-input input,
.mg-shop .wc-block-components-textarea,
.mg-shop .wc-blocks-components-select .wc-blocks-components-select__select,
.mg-shop .wc-block-components-combobox .wc-block-components-combobox-control input {
	border: 1px solid var(--mg-field) !important;
	border-radius: 8px !important;
	background: var(--mg-paper) !important;
	color: var(--mg-ink) !important;
	box-shadow: none !important;
}
.mg-shop .wc-block-components-text-input input:focus,
.mg-shop .wc-block-components-textarea:focus,
.mg-shop .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.mg-shop .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
	border-color: var(--mg-violet) !important;
	box-shadow: 0 0 0 3px rgba(118, 27, 135, .12) !important;
	outline: none !important;
}
.mg-shop .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked {
	background: var(--mg-violet);
	border-color: var(--mg-violet);
}
.mg-shop .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
.mg-shop .wc-block-components-radio-control__input:checked { border-color: var(--mg-violet); }
.mg-shop .wc-block-components-radio-control__input:checked::before { background: var(--mg-violet); }

/* ---------- Totaluri ---------- */
.mg-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.mg-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 22px;
	font-weight: 500;
	color: var(--mg-plum);
}
.mg-shop .wc-block-components-order-summary-item__quantity {
	background: var(--mg-plum);
	border-color: var(--mg-bg);
	color: #FFF9F5;
}

/* ---------- Produse în coș ---------- */
.mg-shop .wc-block-cart-item__image img,
.mg-shop .wc-block-components-order-summary-item__image img { border-radius: 10px; }
.mg-shop .wc-block-components-product-name {
	font-weight: 500;
	color: var(--mg-plum) !important;
	text-decoration: none !important;
}
.mg-shop .wc-block-cart-item__remove-link { color: var(--mg-muted) !important; }
.mg-shop .wc-block-cart-item__remove-link:hover { color: var(--mg-violet) !important; }

/* ---------- Linii subtile ---------- */
.mg-shop .wc-block-components-totals-wrapper,
.mg-shop .wc-block-cart-items td,
.mg-shop .wc-block-cart-items th,
.mg-shop .wc-block-cart-items { border-color: var(--mg-line) !important; }
.mg-shop .wc-block-checkout__sidebar .wc-block-components-order-summary,
.mg-shop .wp-block-woocommerce-checkout-order-summary-block {
	border-color: var(--mg-line);
	border-radius: 16px;
}

/* ---------- Câmpuri: radius 8px peste tot ---------- */
.mg-shop .wc-block-components-text-input input,
.mg-shop .wc-block-components-textarea,
.mg-shop .wc-blocks-components-select .wc-blocks-components-select__container,
.mg-shop .wc-blocks-components-select .wc-blocks-components-select__select,
.mg-shop .wc-block-components-combobox .wc-block-components-combobox-control input,
.mg-shop .wc-block-components-totals-coupon__input input { border-radius: 8px !important; }


/* ---------- Mobil: secțiunile de rezumat ---------- */
@media (max-width: 699px) {
	.mg-shop .wp-block-woocommerce-cart-totals-block,
	.mg-shop .wp-block-woocommerce-checkout-order-summary-block,
	.mg-shop .wc-block-checkout__sidebar .wc-block-components-order-summary,
	.mg-shop .wc-block-components-checkout-order-summary__content {
		border-radius: 0 !important;
	}
	.mg-shop .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title,
	.mg-shop .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__content,
	.mg-shop .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper,
	.mg-shop .wp-block-woocommerce-cart-totals-block .wc-block-components-totals-wrapper {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.mg-shop .wp-block-woocommerce-cart-totals-block { padding-left: 0; padding-right: 0; }
	.mg-shop .wp-block-woocommerce-cart-totals-block .wc-block-cart__totals-title,
	.mg-shop .wp-block-woocommerce-cart-totals-block .wc-block-components-express-payment,
	.mg-shop .wp-block-woocommerce-cart-totals-block .wc-block-cart__submit,
	.mg-shop .wp-block-woocommerce-cart-totals-block .wc-block-components-express-payment-continue-rule,
	.mg-shop .wp-block-woocommerce-cart-totals-block .wc-block-cart__payment-options {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

/* ---------- Label-ul care urcă în câmp (mai deschis) ---------- */
.mg-shop .wc-block-components-text-input label,
.mg-shop .wc-block-components-text-input.is-active label,
.mg-shop .wc-block-components-textarea + label,
.mg-shop .wc-blocks-components-select .wc-blocks-components-select__label,
.mg-shop .wc-block-components-combobox .wc-block-components-combobox-control label {
	color: rgba(41, 36, 41, .5) !important;
}
