:root {
  --pcd-green: var(--pcd-theme-primary, var(--theme-color, var(--hovercolor, #2e9e8a)));
  --pcd-green-dark: var(--pcd-theme-primary-dark, #227f70);
  --pcd-ink: var(--pcd-theme-ink, #253237);
  --pcd-muted: #6f7b7e;
  --pcd-line: var(--pcd-theme-line, #e7efed);
  --pcd-soft: var(--pcd-theme-soft, #f3f8f7);
  --pcd-white: #fff;
  --pcd-accent: var(--pcd-theme-accent, var(--pcd-green));
  --pcd-button-radius: var(--pcd-theme-radius, 13px);
  --pcd-primary-08: var(--pcd-theme-primary-08, rgba(46, 158, 138, .08));
  --pcd-primary-12: var(--pcd-theme-primary-12, rgba(46, 158, 138, .12));
  --pcd-primary-20: var(--pcd-theme-primary-20, rgba(46, 158, 138, .2));
  --pcd-primary-25: var(--pcd-theme-primary-25, rgba(34, 127, 112, .25));
  --pcd-primary-28: var(--pcd-theme-primary-28, rgba(34, 127, 112, .28));
  --pcd-primary-35: var(--pcd-theme-primary-35, rgba(46, 158, 138, .35));
}

.pcd-cart-root {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
}

/* Montage automatique quand le header Creative Elements conserve posCart. */
.pcd-cart-root.pcd-cart-root--body > .pcd-cart-trigger {
  display: none;
}

.pcd-cart-fallback-host {
  display: inline-flex;
  width: auto;
  align-items: center;
  align-self: center;
}

.elementor-widget-posCart .popup_cart {
  display: none !important;
}

.pcd-cart-trigger,
.pcd-cart-close,
.pcd-cart-overlay,
.pcd-cart-item__remove,
.pcd-quantity button,
.pcd-recommendation__add,
.pcd-continue-shopping {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.pcd-toast {
  position: fixed;
  z-index: 10070;
  top: 18px;
  right: 18px;
  display: flex;
  min-height: 46px;
  max-width: min(330px, calc(100vw - 32px));
  padding: 10px 15px 10px 11px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pcd-primary-20);
  border-radius: 13px;
  background: rgba(255, 255, 255, .97);
  color: var(--pcd-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(37, 50, 55, .17);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -12px, 0) scale(.98);
  transition: opacity .22s ease, transform .3s cubic-bezier(.22, .72, .2, 1);
}

.pcd-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.pcd-toast__icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--pcd-primary-12);
  color: var(--pcd-green-dark);
  font-size: 14px;
  font-weight: 900;
}

.pcd-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 5px;
  border-radius: 12px;
  background: transparent;
  color: var(--pcd-ink);
  transition: color .22s ease, background-color .22s ease;
}

.pcd-cart-trigger:hover {
  background: var(--pcd-primary-08);
  color: var(--pcd-green-dark);
}

.pcd-cart-trigger__icon {
  display: inline-block !important;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background-color: #222;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='6.5' width='22' height='20' rx='1.2'/%3E%3Cpath d='M11.5 11c.2 3 2 4.5 4.5 4.5s4.3-1.5 4.5-4.5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='6.5' width='22' height='20' rx='1.2'/%3E%3Cpath d='M11.5 11c.2 3 2 4.5 4.5 4.5s4.3-1.5 4.5-4.5'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.pcd-cart-trigger__icon::before {
  content: "" !important;
}

.pcd-cart-trigger__price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.pcd-cart-count {
  position: absolute;
  top: 0;
  left: 20px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid var(--pcd-white);
  border-radius: 999px;
  background: var(--pcd-green);
  color: var(--pcd-white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.pcd-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  visibility: hidden;
  background: rgba(20, 32, 35, .34);
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.pcd-drawer {
  position: fixed;
  z-index: 10050;
  top: 0;
  right: 0;
  display: flex;
  width: min(440px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  flex-direction: column;
  visibility: hidden;
  background: var(--pcd-white);
  box-shadow: -20px 0 55px rgba(37, 50, 55, .18);
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  will-change: transform, opacity;
  transition:
    transform .38s cubic-bezier(.22, .72, .2, 1),
    opacity .25s ease,
    visibility 0s linear .38s;
  overscroll-behavior: contain;
}

.pcd-cart-root.is-open .pcd-cart-overlay {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.pcd-cart-root.is-open .pcd-drawer {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

body.pcd-cart-open {
  overflow: hidden;
}

.pcd-drawer__header {
  display: flex;
  min-height: 90px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px 26px;
  border-bottom: 1px solid var(--pcd-line);
}

.pcd-drawer__eyebrow,
.pcd-recommendations__heading p {
  margin: 0 0 3px;
  color: var(--pcd-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pcd-drawer__header h2 {
  margin: 0;
  color: var(--pcd-ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.pcd-cart-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 11px;
  place-items: center;
  border-radius: 50%;
  background: var(--pcd-soft);
  color: var(--pcd-ink);
  transition: color .22s ease, background-color .22s ease, transform .3s ease;
}

.pcd-cart-close:hover {
  background: var(--pcd-green);
  color: var(--pcd-white);
  transform: rotate(6deg);
}

.pcd-cart-close svg,
.pcd-cart-item__remove svg,
.pcd-recommendation__add svg,
.pcd-checkout svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pcd-drawer__scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--pcd-primary-35) transparent;
  scrollbar-width: thin;
}

.pcd-cart-feedback {
  height: 0;
  overflow: hidden;
  color: #a13939;
  font-size: 13px;
  opacity: 0;
  transition: height .2s ease, opacity .2s ease;
}

.pcd-cart-feedback.has-message {
  height: auto;
  margin: 14px 22px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f1;
  opacity: 1;
}

.pcd-cart-items {
  margin: 0;
  padding: 8px 22px 2px;
  list-style: none;
}

.pcd-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  min-height: 118px;
  padding: 14px 30px 14px 0;
  border-bottom: 1px solid var(--pcd-line);
}

.pcd-cart-item__image {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: #fafcfc;
}

.pcd-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pcd-cart-item__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.pcd-cart-item__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pcd-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pcd-cart-item__name:hover {
  color: var(--pcd-green-dark);
}

.pcd-cart-item__attributes {
  margin: 4px 0 0;
  color: var(--pcd-muted);
  font-size: 11px;
  line-height: 1.3;
}

.pcd-cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.pcd-quantity {
  display: inline-grid;
  grid-template-columns: 28px 30px 28px;
  height: 30px;
  overflow: hidden;
  border: 1px solid #dce7e5;
  border-radius: 999px;
  background: var(--pcd-white);
}

.pcd-quantity button,
.pcd-quantity span {
  display: grid;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--pcd-ink);
  font-size: 14px;
  line-height: 1;
}

.pcd-quantity button:hover {
  background: var(--pcd-soft);
  color: var(--pcd-green-dark);
}

.pcd-quantity span {
  font-size: 12px;
  font-weight: 800;
}

.pcd-cart-item__price {
  color: var(--pcd-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pcd-cart-item__remove {
  position: absolute;
  top: 13px;
  right: 0;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 7px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #98a2a4;
  transition: color .2s ease, background-color .2s ease;
}

.pcd-cart-item__remove:hover {
  background: #fff0f0;
  color: #b74646;
}

.pcd-empty-cart {
  display: flex;
  min-height: 250px;
  padding: 38px 26px 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pcd-empty-cart__icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--pcd-soft);
  color: var(--pcd-green);
}

.pcd-empty-cart__icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.pcd-empty-cart h3 {
  margin: 0 0 7px;
  color: var(--pcd-ink);
  font-size: 19px;
  font-weight: 800;
}

.pcd-empty-cart p {
  max-width: 270px;
  margin: 0;
  color: var(--pcd-muted);
  font-size: 13px;
  line-height: 1.5;
}

.pcd-recommendations {
  padding: 22px 0 25px;
  border-top: 8px solid var(--pcd-soft);
}

.pcd-recommendations__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 14px;
}

.pcd-recommendations__heading h3 {
  margin: 0;
  color: var(--pcd-ink);
  font-size: 18px;
  font-weight: 800;
}

.pcd-recommendations__heading > span {
  color: var(--pcd-accent);
  font-size: 19px;
}

.pcd-recommendations__track {
  display: grid;
  grid-auto-columns: minmax(150px, 44%);
  grid-auto-flow: column;
  gap: 11px;
  padding: 0 22px 5px;
  overflow-x: auto;
  scroll-padding-left: 22px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.pcd-recommendations__track::-webkit-scrollbar {
  display: none;
}

.pcd-recommendation {
  display: flex;
  min-height: 218px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--pcd-line);
  border-radius: 15px;
  background: var(--pcd-white);
  scroll-snap-align: start;
  transition: border-color .24s ease, box-shadow .24s ease;
}

.pcd-recommendation:hover {
  border-color: var(--pcd-primary-35);
  box-shadow: 0 10px 24px rgba(37, 50, 55, .09);
}

.pcd-recommendation__image {
  display: grid;
  height: 118px;
  padding: 8px;
  place-items: center;
  background: #fbfdfc;
}

.pcd-recommendation__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pcd-recommendation__content {
  display: flex;
  min-height: 98px;
  padding: 10px 11px 11px;
  flex: 1;
  flex-direction: column;
}

.pcd-recommendation__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pcd-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pcd-recommendation__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
}

.pcd-recommendation__price {
  color: var(--pcd-green-dark);
  font-size: 12px;
  font-weight: 800;
}

.pcd-recommendation__add {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 8px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--pcd-green);
  color: var(--pcd-white);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.pcd-recommendation__add:hover {
  background: var(--pcd-green-dark);
  box-shadow: 0 6px 14px var(--pcd-primary-25);
}

.pcd-drawer__footer {
  flex: 0 0 auto;
  padding: 15px 22px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--pcd-line);
  background: var(--pcd-white);
  box-shadow: 0 -10px 28px rgba(37, 50, 55, .06);
}

.pcd-summary,
.pcd-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pcd-summary {
  margin-bottom: 6px;
  color: var(--pcd-muted);
  font-size: 12px;
}

.pcd-summary strong {
  color: var(--pcd-ink);
  font-weight: 700;
}

.pcd-total {
  margin-bottom: 13px;
  color: var(--pcd-ink);
  font-size: 16px;
  font-weight: 800;
}

.pcd-total strong {
  color: var(--pcd-green-dark);
  font-size: 19px;
}

.pcd-savings {
  display: flex;
  margin: -5px 0 12px;
  align-items: center;
  gap: 7px;
  color: var(--pcd-green-dark);
  font-size: 12px;
  font-weight: 700;
}

.pcd-savings > span:first-child {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--pcd-primary-12);
  font-size: 10px;
  font-weight: 900;
}

.pcd-savings strong {
  font-weight: 900;
}

.pcd-checkout {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--pcd-button-radius);
  background: var(--pcd-green);
  color: var(--pcd-white);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 20px var(--pcd-primary-20);
  transition: background-color .22s ease, box-shadow .22s ease;
}

.pcd-checkout:hover {
  background: var(--pcd-green-dark);
  color: var(--pcd-white);
  box-shadow: 0 11px 24px var(--pcd-primary-28);
}

.pcd-checkout svg {
  width: 19px;
  height: 19px;
}

.pcd-checkout-reassurance {
  display: flex;
  margin: 10px 0 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--pcd-muted);
  font-size: 10.5px;
  line-height: 1.3;
  text-align: center;
}

.pcd-checkout-reassurance i {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: var(--pcd-green);
}

.pcd-continue-shopping {
  display: block;
  margin: 7px auto 0;
  padding: 2px 6px;
  background: transparent;
  color: var(--pcd-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgba(111, 123, 126, .35);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.pcd-continue-shopping:hover {
  color: var(--pcd-green-dark);
  text-decoration-color: currentColor;
}

.pcd-cart-root.is-busy .pcd-drawer::after {
  content: "";
  position: absolute;
  inset: 90px 0 0;
  z-index: 5;
  background: rgba(255, 255, 255, .5);
  cursor: wait;
}

.pcd-cart-root.is-busy [data-pcd-action] {
  pointer-events: none;
}

.pcd-cart-root button:focus-visible,
.pcd-cart-root a:focus-visible {
  outline: 3px solid rgba(252, 183, 44, .52);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .pcd-toast {
    right: 16px;
    left: 16px;
    justify-content: center;
    max-width: none;
  }

  .pcd-cart-trigger__price {
    display: none;
  }

  .pcd-drawer {
    width: 100vw;
    transition:
      transform .42s cubic-bezier(.22, .72, .2, 1),
      opacity .26s ease,
      visibility 0s linear .42s;
  }

  .pcd-drawer__header {
    min-height: 80px;
    padding: 16px 16px 13px 20px;
  }

  .pcd-cart-items {
    padding-right: 16px;
    padding-left: 16px;
  }

  .pcd-recommendations__heading {
    padding-right: 16px;
    padding-left: 16px;
  }

  .pcd-recommendations__track {
    grid-auto-columns: minmax(145px, 46%);
    padding-right: 16px;
    padding-left: 16px;
    scroll-padding-left: 16px;
  }

  .pcd-drawer__footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcd-cart-root *,
  .pcd-cart-root *::before,
  .pcd-cart-root *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
