/* Sougui — Panier Intelligent : styles front. Préfixe .sci- uniquement. */

.sci-slot { display: block; }

/* ---------- Carte offre (commune) ---------- */
.sci-card {
	position: relative;
	background: var(--sg-pale, #FBF8F1);
	border: 1px solid var(--sg-sand, #E5DAC4);
	border-radius: 14px;
	padding: 16px;
	text-align: left;
	font-family: "Work Sans", system-ui, sans-serif;
	color: #2A2622;
}
.sci-card__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--sg-accent, #BE5E3C);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 4px 10px;
	border-radius: 999px;
}
.sci-card__img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 10px;
	display: block;
}
.sci-card__title {
	font-family: "Fraunces", Georgia, serif;
	font-size: 17px;
	margin: 6px 0 4px;
	color: #1F1D4E;
}
.sci-card__msg {
	font-size: 13px;
	line-height: 1.45;
	color: #6E6456;
	margin: 0 0 10px;
}
.sci-card__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}
.sci-card__was {
	text-decoration: line-through;
	color: #9A8E7B;
	font-size: 13px;
}
.sci-card__now {
	font-size: 18px;
	font-weight: 700;
	color: var(--sg-accent, #BE5E3C);
}
.sci-card__btn {
	width: 100%;
	border: 0;
	cursor: pointer;
	background: #2D2A70;
	color: #fff;
	font: 600 14px/1 "Work Sans", system-ui, sans-serif;
	padding: 13px 16px;
	border-radius: 12px;
	transition: background .2s ease;
}
.sci-card__btn:hover { background: #1F1D4E; }
.sci-card__btn:disabled { opacity: .6; cursor: default; }
.sci-card__btn--link {
	display: block;
	text-align: center;
	text-decoration: none;
}

/* Sélecteur de variation (produit à couleurs) */
.sci-card__vlabel {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #6E6456;
	margin-bottom: 4px;
}
.sci-card__variant {
	width: 100%;
	margin-bottom: 12px;
	padding: 9px 10px;
	border: 1px solid var(--sg-sand, #E5DAC4);
	border-radius: 10px;
	background: #fff;
	font: 400 13px "Work Sans", system-ui, sans-serif;
	color: #2A2622;
}

/* Offre informative (nudge de seuil) : pas de bouton, pas d'image. */
.sci-card--info {
	background: transparent;
	border-style: dashed;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 0;
	padding: 14px 16px;
}
.sci-card--info .sci-card__badge {
	position: static;
	flex: 0 0 auto;
	align-self: center;
}
.sci-card--info .sci-card__msg {
	margin: 0;
	color: #2D2A70;
	font-weight: 600;
	font-size: 13px;
}

/* ---------- Sticky ---------- */
.sci-sticky {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	width: 320px;
	max-width: calc(100vw - 32px);
	background: var(--sg-cream, #F4EEE3);
	border: 1px solid var(--sg-accent, #BE5E3C);
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 8px 30px rgba(31, 29, 78, .12);
	animation: sci-slide-in .4s ease-out;
}
@keyframes sci-slide-in {
	from { transform: translateX(360px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}
.sci-sticky__head {
	font-family: "Fraunces", Georgia, serif;
	font-size: 15px;
	color: #1F1D4E;
	margin-bottom: 8px;
	padding-right: 24px;
}
.sci-sticky__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	color: #6E6456;
	cursor: pointer;
}
.sci-sticky .sci-card {
	background: #fff;
	border-color: var(--sg-sand, #E5DAC4);
}

/* Un panneau latéral Woodmart (panier, menu, connexion) est ouvert : on efface
   le sticky, qui occupe le même coin de l'écran. */
html.sci-drawer-open .sci-sticky {
	display: none;
}

/* ---------- Bloc panier ---------- */
.sci-cart-offers {
	margin: 24px 0;
	background: linear-gradient(180deg, #FBF8F1 0%, #F4EEE3 100%);
	border-top: 1px solid var(--sg-accent, #BE5E3C);
	border-bottom: 1px solid var(--sg-accent, #BE5E3C);
	border-radius: 14px;
	padding: 28px;
}
.sci-cart-offers__head h2 {
	font-family: "Fraunces", Georgia, serif;
	font-size: 22px;
	color: #1F1D4E;
	margin: 0 0 16px;
}
.sci-cart-offers__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	align-items: start; /* la carte informative ne s'étire pas sur la hauteur des autres */
}
.sci-cart-offers__save {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--sg-sand, #E5DAC4);
	font-weight: 600;
	color: #2D2A70;
	text-align: center;
}

/* ---------- Mini-offre checkout ---------- */
.sci-checkout-offer {
	background: linear-gradient(135deg, #2D2A70 0%, #1F1D4E 100%);
	color: #fff;
	border-left: 4px solid var(--sg-accent, #BE5E3C);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}
.sci-checkout-offer__flash {
	display: inline-block;
	background: var(--sg-accent, #BE5E3C);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.sci-checkout-offer .sci-card {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .18);
	color: #fff;
}
.sci-checkout-offer .sci-card__title { color: #fff; }
.sci-checkout-offer .sci-card__msg { color: rgba(255, 255, 255, .75); }
.sci-checkout-offer .sci-card__now { color: var(--sg-ocre, #CB9A57); }
.sci-checkout-offer .sci-card__btn { background: var(--sg-accent, #BE5E3C); }
.sci-checkout-offer .sci-card__btn:hover { background: #9C4527; }

/* ---------- Toast ---------- */
.sci-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 20px);
	background: #1F1D4E;
	color: #fff;
	padding: 12px 18px;
	border-radius: 10px;
	font: 500 14px "Work Sans", system-ui, sans-serif;
	z-index: 10000;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
}
.sci-toast--in {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.sci-sticky {
		left: 16px;
		right: 16px;
		width: auto;
		bottom: 12px;
	}
	.sci-cart-offers { padding: 18px; }
	.sci-cart-offers__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.sci-sticky { animation: none; }
	.sci-toast { transition: none; }
}
