/* Panier global — tiroir + fiche produit */

@keyframes sc-cart-slidein {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes sc-cart-pop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

[data-soycain-cart] .sc-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-soycain-cart] .sc-icon-wrap .sc-icon {
  display: block;
}

body.sc-cart-open { overflow: hidden; }

.nav__cart-count.is-empty {
  background: #9DAE97;
  color: #fff;
}

.sc-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 46, 29, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}
.sc-cart-backdrop[hidden],
.sc-detail-backdrop[hidden] { display: none !important; }

.sc-cart-drawer {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #F5F8F1;
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(10, 46, 29, 0.5);
  animation: sc-cart-slidein 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Manrope', system-ui, sans-serif;
  color: #13231A;
}

.sc-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid #E3EADE;
  background: #fff;
  flex-shrink: 0;
}
.sc-cart-drawer__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 0;
}
.sc-cart-drawer__meta {
  font-size: 13px;
  color: #8A998D;
  font-weight: 600;
  margin-top: 2px;
}
.sc-cart-drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid #E3EADE;
  border-radius: 999px;
  background: #fff;
  color: #13231A;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.sc-cart-drawer__close:hover { border-color: #1C7C4A; }

.sc-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sc-cart-drawer__empty,
.sc-cart-drawer__success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
}
.sc-cart-drawer__empty-icon { margin-bottom: 16px; line-height: 0; }
.sc-cart-drawer__empty-icon .sc-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(145deg, #E6F1E2 0%, #D4E8C8 100%);
  border: 1px solid rgba(76, 138, 36, 0.16);
  color: #1C7C4A;
  box-shadow: 0 14px 32px -18px rgba(28, 124, 74, 0.5);
}
.sc-cart-drawer__empty-icon .sc-icon { width: 50%; height: 50%; }
.sc-cart-drawer__empty-title,
.sc-cart-drawer__success-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.sc-cart-drawer__success-title { font-size: 25px; margin-bottom: 10px; }
.sc-cart-drawer__empty-text,
.sc-cart-drawer__success-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #5C6B60;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 300px;
}
.sc-cart-drawer__success-icon {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: #E6F1E2;
  color: #1C7C4A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 22px;
}
.sc-cart-drawer__ref {
  font-size: 13.5px;
  color: #8A998D;
  font-weight: 600;
  margin-bottom: 26px;
}
.sc-cart-drawer__ref strong { color: #1C7C4A; font-weight: 800; }

.sc-cart-line {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #E3EADE;
  border-radius: 16px;
  padding: 14px;
}
.sc-cart-line__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #E3EFD6 0%, #D8E8C9 100%);
}
.sc-cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-cart-line__body { flex: 1; min-width: 0; }
.sc-cart-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.sc-cart-line__name {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  margin: 0;
}
.sc-cart-line__remove {
  border: none;
  background: none;
  color: #B23B3B;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.sc-cart-line__unit {
  font-size: 12.5px;
  color: #8A998D;
  font-weight: 600;
  margin: 3px 0 10px;
}
.sc-cart-line__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sc-cart-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  background: #EEF4E9;
  border-radius: 10px;
  padding: 4px;
}
.sc-cart-qty__btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #1C7C4A;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 6px -2px rgba(15, 68, 41, 0.2);
}
.sc-cart-qty__btn--lg { width: 40px; height: 40px; border-radius: 10px; font-size: 22px; }
.sc-cart-qty__val {
  flex: 1 1 auto;
  min-width: 3.25rem;
  padding: 0 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
  color: #13231A;
  line-height: 1.2;
  white-space: nowrap;
}
.sc-cart-qty__val--lg {
  min-width: 4.5rem;
  padding: 0 16px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 18px;
}
.sc-cart-line__total {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: #13231A;
}

.sc-cart-drawer__foot.is-checkout [data-cart-summary],
.sc-cart-drawer__foot.is-checkout [data-cart-actions] {
  display: none !important;
}
.sc-cart-drawer__foot:not(.is-checkout) [data-cart-checkout] {
  display: none !important;
}

.sc-cart-drawer__foot {
  border-top: 1px solid #E3EADE;
  background: #fff;
  padding: 20px 24px;
  flex-shrink: 0;
}
.sc-cart-drawer__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sc-cart-drawer__total-lbl {
  font-size: 14px;
  color: #5C6B60;
  font-weight: 600;
}
.sc-cart-drawer__total-val {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #13231A;
}
.sc-cart-drawer__quote-note {
  font-size: 12.5px;
  color: #9DAE97;
  font-weight: 600;
  margin-bottom: 14px;
}
.sc-cart-drawer__disclaimer {
  font-size: 12px;
  color: #9DAE97;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}
.sc-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #1C7C4A;
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px -12px rgba(28, 124, 74, 0.8);
  text-decoration: none;
}
.sc-cart-btn:hover { background: #176A3F; }
.sc-cart-btn--pill { border-radius: 999px; padding: 13px 26px; width: auto; font-size: 14.5px; box-shadow: none; }
.sc-cart-btn--ghost {
  width: 100%;
  background: none;
  color: #8A998D;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 0 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
}
.sc-cart-btn--ghost:hover { color: #B23B3B; background: none; }

.sc-cart-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.sc-cart-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.sc-cart-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sc-cart-field__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5C6B60;
}
.sc-cart-field input,
.sc-cart-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #DCE6D6;
  border-radius: 12px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14.5px;
  color: #13231A;
  background: #FBFCF9;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.sc-cart-field input:focus,
.sc-cart-field textarea:focus {
  border-color: #1C7C4A;
  background: #fff;
}
.sc-cart-field textarea { resize: vertical; min-height: 64px; }
.sc-cart-field__error {
  font-size: 12px;
  color: #C0392B;
  font-weight: 600;
}
.sc-cart-phone {
  display: grid;
  grid-template-columns: minmax(110px, 36%) 1fr;
  gap: 10px;
}
.sc-cart-phone__number {
  width: 100%;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #13231A;
  background: #F8FAF6;
  border: 1px solid #DCE6D6;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sc-cart-phone__number:focus {
  outline: none;
  border-color: #1C7C4A;
  box-shadow: 0 0 0 3px rgba(28, 124, 74, 0.12);
}
.sc-cart-phone__picker {
  position: relative;
  width: 100%;
}
.sc-cart-phone__picker-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  min-height: 48px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #13231A;
  background: #F8FAF6;
  border: 1px solid #DCE6D6;
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sc-cart-phone__picker-btn:focus,
.sc-cart-phone__picker-btn[aria-expanded="true"] {
  outline: none;
  border-color: #1C7C4A;
  box-shadow: 0 0 0 3px rgba(28, 124, 74, 0.12);
}
.sc-cart-phone__picker-flag,
.sc-cart-phone__opt-flag {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.sc-cart-phone__picker-flag svg { width: 22px; height: auto; border-radius: 2px; }
.sc-cart-phone__opt-flag svg   { width: 20px; height: auto; border-radius: 2px; }
.sc-cart-phone__picker-dial {
  flex: 1;
  font-size: 13px;
}
.sc-cart-phone__picker-chevron {
  flex-shrink: 0;
  color: #6B8C72;
  transition: transform 0.2s ease;
}
.sc-cart-phone__picker-btn[aria-expanded="true"] .sc-cart-phone__picker-chevron {
  transform: rotate(180deg);
}
.sc-cart-phone__picker-list {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 300;
  width: 220px;
  max-height: 230px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #DCE6D6;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.sc-cart-phone__picker-list.is-open { display: block; }
.sc-cart-phone__picker-list::-webkit-scrollbar { width: 4px; }
.sc-cart-phone__picker-list::-webkit-scrollbar-thumb { background: #DCE6D6; border-radius: 4px; }
.sc-cart-phone__picker-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}
.sc-cart-phone__picker-opt:hover { background: #F0F7F3; }
.sc-cart-phone__picker-opt[aria-selected="true"] { background: #E6F4EC; }
.sc-cart-phone__opt-name {
  flex: 1;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #13231A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-cart-phone__opt-dial {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #1C7C4A;
  flex-shrink: 0;
}
.sc-detail-modal__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid #DCE6D6;
  background: #F8FAF6;
  color: #1C7C4A;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.sc-detail-modal__page-btn:hover {
  background: #EEF5E8;
  border-color: #B8D4A8;
}

.sc-cart-form__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FDEDEC;
  color: #C0392B;
  font-size: 13px;
  font-weight: 600;
}
.sc-cart-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.sc-cart-btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sc-cart-btn--icon .sc-icon-wrap {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  box-shadow: none;
  color: inherit;
}
.sc-cart-btn--icon .sc-icon-wrap .sc-icon {
  width: 55%;
  height: 55%;
  display: block;
}

.sc-cart-checkout {
  padding-bottom: 4px;
}
.sc-cart-checkout__back {
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 14px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #1C7C4A;
  cursor: pointer;
}
.sc-cart-checkout__back:hover { text-decoration: underline; }
.sc-cart-checkout__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #13231A;
}
.sc-cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Fiche produit */
.sc-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(10, 46, 29, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  overflow-y: auto;
}
.sc-detail-modal {
  width: 100%;
  max-width: 720px;
  background: #F5F8F1;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(10, 46, 29, 0.6);
  animation: sc-cart-pop 0.22s ease;
  font-family: 'Manrope', system-ui, sans-serif;
  color: #13231A;
  margin: auto;
}
.sc-detail-modal__hero {
  position: relative;
  height: clamp(170px, 26vw, 230px);
  background: linear-gradient(135deg, #E3EFD6 0%, #D8E8C9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-detail-modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-detail-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #13231A;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(15, 68, 41, 0.4);
  line-height: 1;
}
.sc-detail-modal__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 999px;
}
.sc-detail-modal__badge--bio { background: #1C7C4A; color: #fff; }
.sc-detail-modal__badge--conv { background: #fff; color: #9A8E6B; }
.sc-detail-modal__body { padding: clamp(24px, 3.5vw, 36px); }
.sc-detail-modal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.sc-detail-modal__cat {
  display: inline-block;
  background: #EEF4E9;
  color: #3A6B4A;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.sc-detail-modal__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.sc-detail-modal__latin {
  font-size: 14px;
  color: #9DAE97;
  font-weight: 500;
  font-style: italic;
}
.sc-detail-modal__price-lbl {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9DAE97;
  text-align: right;
}
.sc-detail-modal__price-val {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.025em;
  color: #1C7C4A;
  line-height: 1.05;
  text-align: right;
}
.sc-detail-specs {
  background: #fff;
  border: 1px solid #E3EADE;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
}
.sc-detail-specs__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #F1F5EE;
}
.sc-detail-specs__row:last-child { border-bottom: none; }
.sc-detail-specs__lbl {
  font-size: 13.5px;
  font-weight: 600;
  color: #8A998D;
}
.sc-detail-specs__val {
  font-size: 14.5px;
  font-weight: 700;
  color: #13231A;
  text-align: right;
}
.sc-detail-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #E3EADE;
  border-radius: 18px;
  padding: 18px 20px;
}
.sc-detail-modal__qty-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: #8A998D;
  margin-bottom: 8px;
}

/* Carte tarifs — actions panier */
.st-card__visual {
  position: relative;
  height: 158px;
  cursor: pointer;
  background: linear-gradient(135deg, #E3EFD6 0%, #D8E8C9 100%);
  border-radius: 14px;
  overflow: hidden;
  margin: -4px 0 0;
}
.st-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.st-card__visual-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
}
.st-card__visual-badge--bio { background: #1C7C4A; color: #fff; }
.st-card__visual-badge--conv { background: #fff; color: #9A8E6B; }
.st-card__visual-cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #3A6B4A;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.st-card__visual-sheet {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #1C7C4A;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
}
.st-card__body-click { cursor: pointer; }
.st-card__add {
  width: 100%;
  background: #1C7C4A;
  color: #fff;
  font-family: var(--st-font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.st-card__add:hover { background: #176A3F; }
.st-card__qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-card__qty-row .sc-cart-qty {
  flex: 1;
  padding: 5px;
  border-radius: 12px;
}
.st-card__qty-row .sc-cart-qty__btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.st-card__qty-row .sc-cart-qty__val {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 14px;
  font-family: var(--st-font-display);
  font-size: 15px;
}
.st-card__remove-btn {
  width: 46px;
  height: 46px;
  border: 1px solid #E3EADE;
  border-radius: 12px;
  background: #fff;
  color: #B23B3B;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.st-card__remove-btn:hover { background: #FBEAEA; border-color: #E7C7C7; }
.st-btn--cart {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .sc-cart-drawer,
  .sc-detail-modal { animation: none; }
}
