/* Deportes Jimmy — carrito vacío 12.2.4 */
.dj-empty-cart {
  width: min(760px, calc(100% - 28px));
  margin: 34px auto 54px;
  padding: 26px 24px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #ededf1;
  border-radius: 20px;
  box-shadow: 0 14px 44px rgba(17,17,20,.07);
  overflow: hidden;
}

.dj-empty-cart__stage {
  position: relative;
  width: min(390px, 88vw);
  height: 170px;
  margin: 0 auto 8px;
  overflow: hidden;
}

.dj-empty-cart__cart {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 180px;
  height: 128px;
  transform: translateX(-50%);
  animation: dj-empty-cart-arrive .72s cubic-bezier(.2,.82,.22,1) both;
}

.dj-empty-cart__cart-svg {
  display: block;
  width: 180px;
  height: 128px;
  fill: none;
  stroke: #202126;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dj-empty-cart__cart-svg .dj-empty-cart__basket { fill: #f6f6f8; stroke: #202126; }
.dj-empty-cart__cart-svg .dj-empty-cart__rail { stroke: #e52a2f; stroke-width: 5; }
.dj-empty-cart__cart-svg .dj-empty-cart__handle { stroke: #202126; }
.dj-empty-cart__cart-svg circle { fill: #202126; stroke: #202126; }

.dj-empty-cart__iso {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44px;
  width: 54px;
  height: 54px;
  object-fit: contain;
  transform: translate(-50%, -150px) rotate(-12deg) scale(.82);
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.18));
  animation: dj-empty-cart-drop .68s .62s cubic-bezier(.2,.95,.32,1.18) forwards;
}

.dj-empty-cart__speed {
  position: absolute;
  right: calc(50% + 88px);
  height: 3px;
  border-radius: 999px;
  background: #e52a2f;
  opacity: 0;
  animation: dj-empty-cart-speed .55s .08s ease-out both;
}
.dj-empty-cart__speed--1 { bottom: 58px; width: 56px; }
.dj-empty-cart__speed--2 { bottom: 42px; width: 34px; animation-delay: .16s; }

.dj-empty-cart h2 {
  margin: 4px auto 8px;
  max-width: 650px;
  color: #17181c;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.dj-empty-cart p {
  max-width: 590px;
  margin: 0 auto 20px;
  color: #666872;
  font-size: .98rem;
  line-height: 1.55;
}
.dj-empty-cart__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: #e52a2f;
  color: #fff !important;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(229,42,47,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dj-empty-cart__cta:hover { transform: translateY(-2px); box-shadow: 0 11px 22px rgba(229,42,47,.27); }

/* El Cart Block nativo no debe volver a enseñar “New in store”. */
.dj-cart-empty .wp-block-woocommerce-empty-cart-block > *:not(.dj-empty-cart),
.dj-cart-empty .wc-block-cart__empty-cart > *:not(.dj-empty-cart) { display: none !important; }
.dj-cart-empty .return-to-shop { display: none !important; }

@keyframes dj-empty-cart-arrive {
  0%   { transform: translateX(-360%) rotate(-2deg); }
  72%  { transform: translateX(-42%) rotate(1deg); }
  100% { transform: translateX(-50%) rotate(0); }
}
@keyframes dj-empty-cart-drop {
  0%   { transform: translate(-50%, -150px) rotate(-12deg) scale(.82); }
  68%  { transform: translate(-50%, 4px) rotate(5deg) scale(1.06); }
  84%  { transform: translate(-50%, -6px) rotate(-2deg) scale(.98); }
  100% { transform: translate(-50%, 0) rotate(0) scale(1); }
}
@keyframes dj-empty-cart-speed {
  0%   { transform: translateX(-30px) scaleX(.3); opacity: 0; }
  35%  { opacity: .8; }
  100% { transform: translateX(34px) scaleX(1); opacity: 0; }
}

@media (max-width: 600px) {
  .dj-empty-cart { margin: 18px auto 38px; padding: 18px 14px 24px; border-radius: 16px; }
  .dj-empty-cart__stage { height: 150px; }
  .dj-empty-cart__cart { width: 158px; height: 112px; bottom: 10px; }
  .dj-empty-cart__cart-svg { width: 158px; height: 112px; }
  .dj-empty-cart__iso { top: 38px; width: 48px; height: 48px; }
  .dj-empty-cart h2 { font-size: 1.38rem; }
  .dj-empty-cart p { font-size: .9rem; }
  .dj-empty-cart__cta { width: min(100%, 310px); }
}

@media (prefers-reduced-motion: reduce) {
  .dj-empty-cart__cart,
  .dj-empty-cart__iso,
  .dj-empty-cart__speed { animation: none !important; }
  .dj-empty-cart__cart { transform: translateX(-50%); }
  .dj-empty-cart__iso { transform: translate(-50%, 0); }
}
