/* Carrito lateral + página del carrito Blosoom */
.bcd, .bcp {
	--bc-texto: #23433F;
	--bc-verde: #366661;
	--bc-rosa: #F6C8C7;
	--bc-rosa-t: #FF77A9;
	--bc-linea: rgba(35, 67, 63, .14);
	--bc-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bc-serif: "Noto Serif Display", Georgia, serif;
	color: var(--bc-texto);
	font-family: var(--bc-font);
}

/* El aviso "añadido al carrito" del tema ya no hace falta */
.content-cart-popup, .remove-cart-shadow { display: none !important; }
html.bcd-lock, html.bcd-lock body { overflow: hidden !important; }

/* ---------- Botón común ---------- */
.bc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 24px;
	border: 1px solid var(--bc-verde);
	border-radius: 2px;
	background: var(--bc-verde);
	color: #fff !important;
	font: 500 12px/1 var(--bc-font);
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color .25s ease;
}
.bc-btn:hover { background: #2C5550; }

/* ---------- Línea de producto ---------- */
.bc-items { list-style: none; margin: 0; padding: 0; }
.bc-item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--bc-linea);
	transition: opacity .25s ease;
}
.bc-item.is-loading { opacity: .5; pointer-events: none; }
.bc-item.is-removing { opacity: .25; }
.bc-item-media { display: block; border-radius: 3px; overflow: hidden; background: #F4EDEC; aspect-ratio: 4 / 5; }
.bc-item-media img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; }
.bc-item-name { margin: 0 0 2px; font: 500 15px/1.35 var(--bc-font); }
.bc-item-name a { color: var(--bc-texto) !important; text-decoration: none; }
.bc-item-name a:hover { color: var(--bc-rosa-t) !important; }
.bc-item-meta, .bc-item-unit { margin: 0; font: 400 12.5px/1.4 var(--bc-font); opacity: .65; }
.bc-item-meta dl { margin: 0; }
.bc-item-meta dt, .bc-item-meta dd { display: inline; margin: 0; }
.bc-item-meta dd p { display: inline; margin: 0; }
.bc-item-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.bc-qty { display: inline-flex; align-items: center; border: 1px solid rgba(35, 67, 63, .25); border-radius: 2px; height: 34px; }
.bcd .bc-qty-btn, .bcp .bc-qty-btn {
	width: 32px !important;
	height: 32px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--bc-texto) !important;
	font: 400 16px/1 var(--bc-font) !important;
	cursor: pointer;
}
.bcd .bc-qty-btn:hover, .bcp .bc-qty-btn:hover { background: #FDF1F1 !important; }
.bc-qty-btn[disabled] { opacity: .3; cursor: default; }
.bc-qty-num { min-width: 26px; text-align: center; font: 500 13.5px/1 var(--bc-font); }
.bc-qty-solo { font: 400 12.5px/1 var(--bc-font); opacity: .7; }
.bcd .bc-remove, .bcp .bc-remove {
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--bc-texto) !important;
	font: 400 12.5px/1.4 var(--bc-font) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	opacity: .6;
	cursor: pointer;
}
.bcd .bc-remove:hover, .bcp .bc-remove:hover { opacity: 1; color: var(--bc-rosa-t) !important; }
.bc-item-total { margin: 0; font: 500 15px/1.35 var(--bc-font); white-space: nowrap; }

/* ---------- Carrito lateral ---------- */
.bcd { position: fixed; inset: 0; z-index: 100010; }
.bcd[hidden] { display: none; }
.bcd-overlay {
	position: absolute;
	inset: 0;
	background: rgba(35, 67, 63, .32);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .35s ease;
}
.bcd-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 92vw);
	background: #fff;
	box-shadow: -20px 0 60px -30px rgba(35, 67, 63, .45);
	transform: translateX(100%);
	transition: transform .38s cubic-bezier(.2, .7, .2, 1);
	outline: none;
}
.bcd.is-open .bcd-overlay { opacity: 1; }
.bcd.is-open .bcd-panel { transform: none; }
.bcd-inner { display: flex; flex-direction: column; height: 100%; }
.bcd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: var(--bc-rosa);
}
.bcd-title { margin: 0; font: italic 300 26px/1.1 var(--bc-serif); }
.bcd-count { font: 400 14px/1 var(--bc-font); font-style: normal; opacity: .7; }
.bcd .bcd-close {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .55) !important;
	color: var(--bc-texto) !important;
	cursor: pointer;
}
.bcd .bcd-close:hover { background: #fff !important; }
.bcd-close svg { width: 20px; height: 20px; }
.bcd-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 22px;
	background: #FDF1F1;
	font: 400 12.5px/1.4 var(--bc-font);
}
.bcd-note svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--bc-rosa-t); }
.bcd-items { flex: 1; overflow-y: auto; padding: 0 22px; overscroll-behavior: contain; }
.bcd-items .bc-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
.bcd-foot { padding: 18px 22px 22px; border-top: 1px solid var(--bc-linea); background: #fff; }
.bcd-subtotal { display: flex; justify-content: space-between; margin: 0 0 4px; font: 400 15px/1.4 var(--bc-font); }
.bcd-subtotal strong { font-weight: 500; }
.bcd-hint { margin: 0 0 14px; font: 400 12.5px/1.4 var(--bc-font); opacity: .65; }
.bcd-link {
	display: block;
	margin-top: 12px;
	text-align: center;
	font: 400 13px/1.4 var(--bc-font);
	color: var(--bc-texto) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bcd-link:hover { color: var(--bc-rosa-t) !important; }
.bcd-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 30px; text-align: center; }
.bcd-empty-title { margin: 0 0 8px; font: italic 300 26px/1.2 var(--bc-serif); }
.bcd-empty-text { margin: 0 0 22px; font: 400 14px/1.6 var(--bc-font); opacity: .75; }

/* ---------- Página del carrito ---------- */
.bcp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bcp-title {
	margin: 0 !important;
	font: italic 300 clamp(36px, 4vw, 52px)/1.05 var(--bc-serif) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--bc-texto) !important;
}
.bcp-continue { font: 400 14px/1.4 var(--bc-font); color: var(--bc-texto) !important; text-decoration: underline; text-underline-offset: 3px; }
.bcp-continue:hover { color: var(--bc-rosa-t) !important; }
.bcp-notices:empty { display: none; }
.bcp-notices { margin-bottom: 16px; }
.bcp-notices .woocommerce-message, .bcp-notices .woocommerce-info, .bcp-notices .woocommerce-error, .bcp-notice {
	margin: 0 0 8px !important;
	padding: 12px 16px !important;
	border: 0 !important;
	border-left: 3px solid var(--bc-verde) !important;
	border-radius: 0 !important;
	background: #F3F7F5 !important;
	color: var(--bc-texto) !important;
	font: 400 14px/1.5 var(--bc-font) !important;
	list-style: none;
}
.bcp-notices .woocommerce-message::before, .bcp-notices .woocommerce-info::before, .bcp-notices .woocommerce-error::before { display: none !important; }
.bcp-notices .woocommerce-error, .bcp-notice--error { border-left-color: #A3264E !important; background: #FDF1F3 !important; }
.bcp-notices .button { display: none !important; }

.bcp-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.bcp-items { border-top: 1px solid var(--bc-linea); }
.bcp-items .bc-item { grid-template-columns: 96px minmax(0, 1fr) auto; padding: 20px 0; }
.bcp-items .bc-item-name { font-size: 17px; }

.bcp-block-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: italic 300 24px/1.2 var(--bc-serif); }
.bcp-block-title svg { width: 22px; height: 22px; color: var(--bc-rosa-t); }
.bcp-block-text { margin: 0 0 16px; font: 400 14px/1.5 var(--bc-font); opacity: .7; }

/* Completa tu regalo */
.bcp-extras { margin-top: 36px; }
.bcp-extras-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.bcp-extra { display: flex; flex-direction: column; margin: 0; transition: opacity .25s ease; }
.bcp-extra.is-loading { opacity: .5; pointer-events: none; }
.bcp-extra-img { display: block; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden; background: #F4EDEC; margin-bottom: 10px; }
.bcp-extra-img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform .6s ease; }
.bcp-extra:hover .bcp-extra-img img { transform: scale(1.04); }
.bcp-extra-name { font: 500 14px/1.35 var(--bc-font); }
.bcp-extra-price { margin: 2px 0 10px; font: 400 13.5px/1.3 var(--bc-font); opacity: .8; }
.bcp-extra-price del { opacity: .5; }
.bcp .bcp-extra-btn {
	margin-top: auto;
	height: 38px !important;
	min-height: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--bc-verde) !important;
	border-radius: 2px !important;
	background: transparent !important;
	color: var(--bc-verde) !important;
	font: 500 11.5px/1 var(--bc-font) !important;
	letter-spacing: .12em !important;
	text-transform: uppercase !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.bcp .bcp-extra-btn:hover { background: var(--bc-verde) !important; color: #fff !important; }
.bcp-extra-ok { display: none; }
.bcp-extra.is-added .bcp-extra-add { display: none; }
.bcp-extra.is-added .bcp-extra-ok { display: inline; }
.bcp .bcp-extra.is-added .bcp-extra-btn { background: #E4F2EA !important; border-color: #E4F2EA !important; color: #2C6A4D !important; cursor: default; }

/* Mensaje para la tarjeta */
.bcp-gift { margin-top: 36px; padding: 22px; border: 1px solid var(--bc-linea); border-radius: 4px; background: #FFFBFB; }
.bcp-gift-text {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 12px 14px !important;
	border: 1px solid rgba(35, 67, 63, .2) !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: var(--bc-texto) !important;
	font: 400 15px/1.55 var(--bc-font) !important;
	resize: vertical;
	box-shadow: none !important;
}
.bcp-gift-text:focus { outline: none; border-color: var(--bc-rosa-t) !important; }
.bcp-gift-meta { display: flex; justify-content: space-between; margin: 6px 0 0; font: 400 12px/1.3 var(--bc-font); opacity: .6; }

/* Resumen */
.bcp-aside { position: sticky; top: 140px; }
.bcp-summary { padding: 26px 24px; border-radius: 4px; background: var(--bc-rosa); transition: opacity .25s ease; }
.bcp-summary.is-loading { opacity: .55; pointer-events: none; }
.bcp-sum-title { margin: 0 0 14px; font: 500 11px/1 var(--bc-font); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.bcp-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; font: 400 15px/1.4 var(--bc-font); }
.bcp-row-muted { opacity: .7; font-size: 14px; }
.bcp-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(35, 67, 63, .2); font-size: 17px; }
.bcp-total strong { font-weight: 500; }
.bcp-checkout { margin-top: 16px; }
.bcp .bcp-coupon-remove {
	width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important;
	border: 0 !important; background: none !important; box-shadow: none !important;
	color: var(--bc-texto) !important; font: 400 12px/1 var(--bc-font) !important;
	text-transform: none !important; letter-spacing: 0 !important; text-decoration: underline !important; opacity: .65; cursor: pointer;
}
.bcp-coupon { margin-top: 16px; font: 400 14px/1.4 var(--bc-font); }
.bcp-coupon summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.bcp-coupon summary::-webkit-details-marker { display: none; }
.bcp-coupon-form { display: flex; gap: 8px; margin-top: 10px; }
.bcp-coupon-form input {
	flex: 1; min-width: 0; height: 42px !important; margin: 0 !important; padding: 0 12px !important;
	border: 1px solid rgba(35, 67, 63, .25) !important; border-radius: 2px !important; background: #fff !important;
	color: var(--bc-texto) !important; font: 400 14px var(--bc-font) !important; box-shadow: none !important;
}
.bcp .bcp-coupon-form button {
	height: 42px !important; min-height: 0 !important; padding: 0 16px !important;
	border: 1px solid var(--bc-verde) !important; border-radius: 2px !important; background: transparent !important;
	color: var(--bc-verde) !important; font: 500 11.5px/1 var(--bc-font) !important; letter-spacing: .12em !important; text-transform: uppercase !important; cursor: pointer;
}
.bcp-trust { list-style: none; margin: 16px 0 0; padding: 0 4px; }
.bcp-trust li { position: relative; margin: 0 0 6px; padding-left: 20px; font: 400 13px/1.45 var(--bc-font); opacity: .8; }
.bcp-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--bc-rosa-t); font-weight: 600; }

/* Carrito vacío */
.bcp-empty { display: none; max-width: 460px; margin: 30px auto 0; text-align: center; }
.bcp.is-empty .bcp-empty { display: block; }
.bcp.is-empty .bcp-grid { display: none; }
.bcp-empty-title { margin: 0 0 8px; font: italic 300 30px/1.2 var(--bc-serif); }
.bcp-empty-text { margin: 0 0 22px; font: 400 15px/1.6 var(--bc-font); opacity: .75; }
.bcp-empty .bc-btn { display: inline-flex; }

/* ---------- Tablet y plegables ---------- */
@media (max-width: 960px) {
	.bcp-grid { grid-template-columns: 1fr; }
	.bcp-aside { position: static; }
}
/* ---------- Móvil ---------- */
@media (max-width: 600px) {
	.bcd-panel { width: 100vw; }
	.bcd-head, .bcd-foot { padding-left: 18px; padding-right: 18px; }
	.bcd-items { padding: 0 18px; }
	.bcd-note { padding: 10px 18px; }
	.bcp-items .bc-item { grid-template-columns: 76px minmax(0, 1fr); }
	.bcp-items .bc-item-total { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
	.bcp-items .bc-item-body { grid-column: 2; }
	.bcp-items .bc-item-name { padding-right: 80px; font-size: 15.5px; }
	.bcp-items .bc-item { position: relative; }
	.bcp-items .bc-item-total { position: absolute; right: 0; top: 20px; }
	.bcp-extras-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.bcp-gift { padding: 18px; }
	.bcp-summary { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.bcd-panel, .bcd-overlay { transition: none; }
}
.bcp-total small { font: 400 12.5px/1 var(--bc-font); opacity: .7; }

/* "Fuegos artificiales" del tema al superar el envío gratis: oscurecía toda la página */
#fire_work { display: none !important; }
