/* Yellitaare – Commande WhatsApp */
:root { --ycw-green: #25D366; --ycw-green-dark: #1da851; --ycw-ink: #1f2a1f; }

.ycw-btn {
	display: inline-flex; align-items: center; gap: .5em;
	background: var(--ycw-green); color: #fff; border: 0; border-radius: 6px;
	padding: .7em 1.3em; font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: background .15s, transform .1s;
}
.ycw-btn:hover, .ycw-btn:focus-visible { background: var(--ycw-green-dark); color: #fff; }
.ycw-btn:active { transform: translateY(1px); }
.ycw-btn-single { font-size: 1.1rem; padding: .85em 1.6em; }
.ycw-btn-loop { width: 100%; justify-content: center; margin-top: .5em; font-size: .95rem; }
.ycw-wrap { margin: 1em 0; }

body.ycw-open { overflow: hidden; }
.ycw-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ycw-modal[hidden] { display: none; }
.ycw-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.ycw-panel {
	position: relative; background: #fff; color: var(--ycw-ink); width: 100%; max-width: 560px; max-height: 92vh;
	overflow: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 20px; box-sizing: border-box;
	font-size: 15px; line-height: 1.4;
}
.ycw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ycw-head h3 { margin: 0; font-size: 1.25rem; }
#ycw-modal .ycw-x { min-height: 0; margin: 0; width: auto; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #666; padding: 0 6px; }

.ycw-empty { color: #777; text-align: center; padding: 16px 0; }
.ycw-line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eee; }
.ycw-line img, .ycw-noimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #f3f3f3; flex: 0 0 56px; }
.ycw-line-main { flex: 1; min-width: 0; }
.ycw-line-name { font-weight: 700; }
.ycw-line-meta { font-size: .85em; color: #666; margin: 2px 0 8px; }
.ycw-qty { display: flex !important; align-items: center; gap: 0; flex-wrap: nowrap; }
.ycw-qty-label { font-size: .85em; color: #444; margin-right: 10px; white-space: nowrap; }
#ycw-modal .ycw-qty button,
#ycw-modal .ycw-qty button[type="button"] {
	width: 36px !important; height: 36px !important; min-width: 36px; min-height: 0; padding: 0 !important; margin: 0 !important;
	border: 1px solid #ccc !important; background: #fafafa !important; color: #222 !important; border-radius: 0; box-shadow: none !important;
	font-size: 18px !important; line-height: 34px !important; cursor: pointer; text-transform: none; letter-spacing: 0; flex: 0 0 36px;
}
#ycw-modal .ycw-qty button[data-dec] { border-radius: 6px 0 0 6px; }
#ycw-modal .ycw-qty button[data-inc] { border-radius: 0 6px 6px 0; }
#ycw-modal .ycw-qty button:hover { background: #eee !important; }
#ycw-modal .ycw-qty input,
#ycw-modal .ycw-qty input[type="number"] {
	width: 56px !important; max-width: 56px; height: 36px !important; margin: 0 !important; padding: 0 4px !important; box-sizing: border-box;
	text-align: center; border: 1px solid #ccc !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important;
	font-size: 15px !important; background: #fff !important; box-shadow: none !important; flex: 0 0 56px; -moz-appearance: textfield;
}
#ycw-modal .ycw-qty input::-webkit-outer-spin-button, #ycw-modal .ycw-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ycw-line-right { text-align: right; flex: 0 0 auto; }
.ycw-line-sub { font-weight: 700; white-space: nowrap; }
#ycw-modal .ycw-del { min-height: 0; margin: 0; background: none; border: 0; color: #c0392b; font-size: .8em; cursor: pointer; padding: 4px 0; text-decoration: underline; }

.ycw-add { margin: 14px 0 6px; }
.ycw-add label { display: block; font-size: .85em; color: #444; margin-bottom: 4px; }
.ycw-add-row { display: flex; gap: 8px; }
#ycw-modal .ycw-add-row select { flex: 1; margin: 0; min-width: 0; height: 38px; border: 1px solid #ccc; border-radius: 6px; padding: 0 8px; font-size: 14px; }
#ycw-modal .ycw-add-btn { height: 38px; margin: 0; min-height: 0; line-height: 1; padding: 0 14px; border: 1px solid var(--ycw-green); background: #fff; color: var(--ycw-green-dark); border-radius: 6px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ycw-add-btn:hover { background: #eafbf0; }

.ycw-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1em; padding: 12px 0; border-top: 2px solid #eee; margin-top: 8px; }
.ycw-cust { display: grid; gap: 8px; margin: 6px 0 12px; }
#ycw-modal .ycw-cust input { height: 40px; margin: 0; border: 1px solid #ccc; border-radius: 6px; padding: 0 10px; font-size: 15px; width: 100%; box-sizing: border-box; }
#ycw-modal .ycw-send {
	width: 100%; margin: 4px 0 0; background: var(--ycw-green); color: #fff; border: 0; border-radius: 8px; padding: 14px; font-size: 1.05rem;
	font-weight: 700; cursor: pointer; margin-top: 4px;
}
.ycw-send:hover { background: var(--ycw-green-dark); }
.ycw-note { font-size: .8em; color: #777; text-align: center; margin: 10px 0 0; }

@media (max-width: 480px) {
	.ycw-panel { padding: 16px; border-radius: 10px; }
	.ycw-line img, .ycw-noimg { width: 44px; height: 44px; flex-basis: 44px; }
}

/* ---- Page catalogue : bandeaux de gamme ---- */
.ycw-catalogue { --ycw-brand: #1F4E78; --ycw-accent: #e30613; }
.ycw-sep { display: flex; align-items: center; gap: 16px; text-align: center; margin: 2.2em 0 1.1em; }
.ycw-sep::before, .ycw-sep::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--ycw-brand)); }
.ycw-sep::after { background: linear-gradient(90deg, var(--ycw-brand), transparent); }
.ycw-sep span { display: inline-block; padding: .35em 1.4em; border-radius: 999px; font-weight: 800; letter-spacing: .04em; }
.ycw-sep-main { margin-top: 3em; }
.ycw-sep-main span { background: var(--ycw-brand); color: #fff; font-size: 1.5rem; text-transform: uppercase; box-shadow: 0 3px 10px rgba(31,78,120,.25); }
.ycw-sep-sub { margin: 1.8em 0 .8em; }
.ycw-sep-sub::before, .ycw-sep-sub::after { height: 1px; background: linear-gradient(90deg, transparent, #c9d3dc); }
.ycw-sep-sub::after { background: linear-gradient(90deg, #c9d3dc, transparent); }
.ycw-sep-sub span { background: #fff; color: var(--ycw-brand); font-size: 1.05rem; border: 2px solid var(--ycw-brand); }
.ycw-catalogue .ycw-sep:first-child { margin-top: .5em; }

/* Sécurité d'affichage : si un thème ne fournit pas de grille, on en impose une */
.ycw-grid ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ycw-grid ul.products::before, .ycw-grid ul.products::after { display: none; }
.ycw-grid ul.products li.product { width: auto; margin: 0; float: none; }
.ycw-grid .products img { max-width: 100%; height: auto; }
.ycw-catalogue .ycw-btn-loop { margin-top: .4em; }
