/* =========================================================
   Sea Tech – Panier latéral
   Les sélecteurs commencent par #st-side-cart pour passer
   devant les styles globaux d'Elementor et du thème.
   ========================================================= */

#st-side-cart {
  --st-sc-primary: #1e6fbf;
  --st-sc-text: #1a1d21;
  --st-sc-soft: #5b6470;
  --st-sc-line: #e6e9ee;
  --st-sc-bg-soft: #f1f3f6;
  --st-sc-danger: #c43d3d;
  --st-sc-success: #1f7a4d;
  --st-sc-width: 440px;

  position: fixed;
  inset: 0;
  z-index: 999999;
  visibility: hidden;
  pointer-events: none;
  font-family: inherit;
  color: var(--st-sc-text);
  line-height: 1.4;
}
#st-side-cart.is-open {
  visibility: visible;
  pointer-events: auto;
}
#st-side-cart *,
#st-side-cart *::before,
#st-side-cart *::after {
  box-sizing: border-box;
}
html.st-sc-lock,
html.st-sc-lock body {
  overflow: hidden !important;
}

/* ---------- Fond assombri ---------- */
#st-side-cart .st-sc__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 30, .45);
  opacity: 0;
  transition: opacity .3s ease;
}
#st-side-cart.is-open .st-sc__overlay {
  opacity: 1;
}

/* ---------- Panneau ---------- */
#st-side-cart .st-sc__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(var(--st-sc-width), 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(12, 20, 30, .16);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
  outline: none;
}
#st-side-cart.is-open .st-sc__panel {
  transform: translateX(0);
}

/* ---------- En-tête ---------- */
#st-side-cart .st-sc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--st-sc-line);
  flex-shrink: 0;
}
#st-side-cart .st-sc__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 0 0 -6px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--st-sc-text);
  cursor: pointer;
  box-shadow: none;
  transition: background .2s;
}
#st-side-cart .st-sc__close:hover {
  background: var(--st-sc-bg-soft);
}
#st-side-cart .st-sc__title {
  flex: 1;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--st-sc-text);
}
#st-side-cart .st-sc__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--st-sc-bg-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--st-sc-text);
}

/* Barre de chargement */
#st-side-cart .st-sc__progress {
  height: 2px;
  margin-top: -1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--st-sc-primary), transparent) 0 0 / 40% 100% no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
#st-side-cart.is-loading .st-sc__progress {
  opacity: 1;
  animation: st-sc-progress 1s linear infinite;
}
@keyframes st-sc-progress {
  from { background-position: -40% 0; }
  to   { background-position: 140% 0; }
}

/* ---------- Contenu ---------- */
#st-side-cart .st-sc__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: opacity .2s;
}
#st-side-cart.is-loading .st-sc__content {
  opacity: .6;
  pointer-events: none;
}

/* ---------- Articles ---------- */
#st-side-cart .st-sc__items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 4px 24px;
}
#st-side-cart .st-sc__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--st-sc-line);
  transition: opacity .2s;
}
#st-side-cart .st-sc__item:last-child {
  border-bottom: 0;
}
#st-side-cart .st-sc__item.is-busy {
  opacity: .45;
  pointer-events: none;
}
#st-side-cart .st-sc__thumb {
  width: 72px;
  height: 72px;
}
#st-side-cart .st-sc__thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
#st-side-cart .st-sc__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  border-radius: 4px;
}
#st-side-cart .st-sc__name {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--st-sc-text);
}
#st-side-cart .st-sc__name a {
  color: inherit;
  text-decoration: none;
}
#st-side-cart .st-sc__name a:hover {
  color: var(--st-sc-primary);
}
#st-side-cart .st-sc__meta {
  margin: -6px 0 10px;
  font-size: 13px;
  color: var(--st-sc-soft);
}
#st-side-cart .st-sc__meta dl,
#st-side-cart .st-sc__meta dd,
#st-side-cart .st-sc__meta p {
  margin: 0;
}
#st-side-cart .st-sc__meta dt {
  float: left;
  clear: left;
  margin: 0 4px 0 0;
  font-weight: 500;
}
#st-side-cart .st-sc__qty-single {
  font-size: 13px;
  color: var(--st-sc-soft);
}

/* Sélecteur de quantité  −  1  + */
#st-side-cart .st-sc__qty {
  display: inline-flex;
  align-items: stretch;
  height: 32px;
  border: 1px solid #d5dae1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
#st-side-cart .st-sc__qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--st-sc-text);
  cursor: pointer;
  transition: background .15s;
}
#st-side-cart .st-sc__qty-btn:hover:not(:disabled) {
  background: var(--st-sc-bg-soft);
}
#st-side-cart .st-sc__qty-btn:disabled {
  color: #b5bcc6;
  cursor: not-allowed;
}
#st-side-cart .st-sc__qty-input {
  width: 38px;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: var(--st-sc-text);
  -moz-appearance: textfield;
  appearance: textfield;
}
#st-side-cart .st-sc__qty-input::-webkit-outer-spin-button,
#st-side-cart .st-sc__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#st-side-cart .st-sc__qty-input:focus {
  outline: none;
  background: var(--st-sc-bg-soft);
}

/* Croix + prix */
#st-side-cart .st-sc__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
#st-side-cart .st-sc__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: -2px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: var(--st-sc-text);
  cursor: pointer;
  transition: background .15s, color .15s;
}
#st-side-cart .st-sc__remove:hover {
  background: var(--st-sc-bg-soft);
  color: var(--st-sc-danger);
}
#st-side-cart .st-sc__price {
  font-size: 14px;
  color: #333a43;
  white-space: nowrap;
}
#st-side-cart .st-sc__price del {
  display: block;
  font-size: 12px;
  color: var(--st-sc-soft);
}
#st-side-cart .st-sc__price ins {
  text-decoration: none;
}

/* ---------- Pied ---------- */
#st-side-cart .st-sc__foot {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid var(--st-sc-line);
  box-shadow: 0 -10px 24px rgba(12, 20, 30, .05);
}
#st-side-cart .st-sc__notice {
  margin: 12px 24px 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}
#st-side-cart .st-sc__notice--success {
  background: #e8f5ee;
  color: var(--st-sc-success);
}
#st-side-cart .st-sc__notice--error {
  background: #fbeaea;
  color: var(--st-sc-danger);
}

/* Code de réduction */
#st-side-cart .st-sc__coupon {
  border-bottom: 1px solid var(--st-sc-line);
}
#st-side-cart .st-sc__coupon-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 16px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  color: var(--st-sc-text);
  cursor: pointer;
}
#st-side-cart .st-sc__coupon-toggle:hover {
  background: #fafbfc;
}
#st-side-cart .st-sc__chevron {
  flex-shrink: 0;
  transition: transform .25s;
}
#st-side-cart .st-sc__coupon.is-open .st-sc__chevron {
  transform: rotate(180deg);
}
#st-side-cart .st-sc__coupon-panel {
  display: none;
  padding: 0 24px 16px;
}
#st-side-cart .st-sc__coupon.is-open .st-sc__coupon-panel {
  display: block;
}
#st-side-cart .st-sc__coupon-form {
  display: flex;
  gap: 8px;
  margin: 0;
}
#st-side-cart .st-sc__coupon-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d5dae1;
  border-radius: var(--st-sc-btn-radius, 6px);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--st-sc-text);
  text-transform: uppercase;
}
#st-side-cart .st-sc__coupon-form input::placeholder {
  text-transform: none;
  color: #9aa3ae;
}
#st-side-cart .st-sc__coupon-form input:focus {
  outline: none;
  border-color: var(--st-sc-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-sc-primary) 18%, transparent);
}
#st-side-cart .st-sc__coupon-form button {
  height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--st-sc-primary);
  border-radius: var(--st-sc-btn-radius, 6px);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  color: var(--st-sc-primary);
  cursor: pointer;
  transition: background .2s, color .2s;
}
#st-side-cart .st-sc__coupon-form button:hover {
  background: var(--st-sc-primary);
  color: #fff;
}

/* Totaux */
#st-side-cart .st-sc__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--st-sc-line);
  font-size: 15px;
}
#st-side-cart .st-sc__row-label {
  font-weight: 500;
  color: var(--st-sc-text);
}
#st-side-cart .st-sc__row-value {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  color: var(--st-sc-text);
}
#st-side-cart .st-sc__muted {
  font-weight: 400;
  font-size: 13px;
  color: var(--st-sc-soft);
  white-space: normal;
}
#st-side-cart .st-sc__row--discount .st-sc__row-value {
  color: var(--st-sc-success);
}
#st-side-cart .st-sc__coupon-remove {
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-transform: none;
  color: var(--st-sc-soft);
  cursor: pointer;
}
#st-side-cart .st-sc__coupon-remove:hover {
  color: var(--st-sc-danger);
}
#st-side-cart .st-sc__row--total {
  align-items: baseline;
  padding-top: 16px;
  padding-bottom: 14px;
  border-bottom: 0;
}
#st-side-cart .st-sc__row--total .st-sc__row-label,
#st-side-cart .st-sc__row--total .st-sc__row-value {
  font-size: 17px;
  font-weight: 700;
}
#st-side-cart .st-sc__tax-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--st-sc-soft);
}

/* Bouton Paiement */
#st-side-cart .st-sc__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 24px 20px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--st-sc-btn-radius, 6px);
  background: var(--st-sc-primary);
  font-size: 17px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  transition: background .2s, transform .1s;
}
#st-side-cart .st-sc__checkout:hover {
  background: color-mix(in srgb, var(--st-sc-primary) 86%, #000);
}
#st-side-cart .st-sc__checkout:active {
  transform: translateY(1px);
}
#st-side-cart .st-sc__checkout svg {
  width: 20px;
  height: 20px;
}

/* ---------- Panier vide ---------- */
#st-side-cart .st-sc__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
  color: var(--st-sc-soft);
}
#st-side-cart .st-sc__empty svg {
  width: 56px;
  height: 56px;
  color: #c2c9d2;
}
#st-side-cart .st-sc__empty p {
  margin: 0;
  font-size: 16px;
  color: var(--st-sc-text);
}
#st-side-cart .st-sc__btn-outline {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--st-sc-primary);
  border-radius: var(--st-sc-btn-radius, 6px);
  font-size: 15px;
  font-weight: 600;
  color: var(--st-sc-primary) !important;
  text-decoration: none !important;
  transition: background .2s, color .2s;
}
#st-side-cart .st-sc__btn-outline:hover {
  background: var(--st-sc-primary);
  color: #fff !important;
}

/* Accessibilité */
#st-side-cart .st-sc__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#st-side-cart button:focus-visible,
#st-side-cart a:focus-visible,
#st-side-cart input:focus-visible {
  outline: 2px solid var(--st-sc-primary);
  outline-offset: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  #st-side-cart .st-sc__head,
  #st-side-cart .st-sc__coupon-toggle,
  #st-side-cart .st-sc__row {
    padding-left: 16px;
    padding-right: 16px;
  }
  #st-side-cart .st-sc__items { padding: 4px 16px; }
  #st-side-cart .st-sc__coupon-panel { padding: 0 16px 16px; }
  #st-side-cart .st-sc__notice { margin: 12px 16px 0; }
  #st-side-cart .st-sc__checkout { margin: 4px 16px 16px; }
  #st-side-cart .st-sc__item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; }
  #st-side-cart .st-sc__thumb { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  #st-side-cart .st-sc__panel,
  #st-side-cart .st-sc__overlay { transition: none; }
}

/* =========================================================
   Icône du header  [st_side_cart_icon]
   ========================================================= */
.st-sc-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  color: inherit;
  text-decoration: none !important;
  transition: color .2s;
}
.st-sc-icon:hover {
  color: var(--st-sc-primary, #1e6fbf);
}
.st-sc-icon svg {
  width: var(--st-sc-icon-size, 24px);
  height: var(--st-sc-icon-size, 24px);
  flex-shrink: 0;
  stroke-width: var(--st-sc-icon-stroke, 1.2);
}
.st-sc-icon__label {
  font-size: 15px;
}
.st-sc-icon .st-sc-count {
  position: absolute;
  top: 2px;
  left: calc(var(--st-sc-icon-size, 24px) - 2px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--st-sc-primary, #1e6fbf);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
.st-sc-icon .st-sc-count.is-empty {
  display: none;
}
