/* React Cart Sidebar */
#lebronshirt-react-cart { position: relative; z-index: 55; }
.rcart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.rcart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.rcart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  width: min(100vw, 22.5rem);
  height: 100%;
  height: 100dvh;
  background: #141414;
  border-left: 1px solid rgba(255,255,255,.1);
  box-shadow: -12px 0 40px rgba(0,0,0,.45);
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
  color: #fff;
}
.rcart-drawer.is-open { transform: translateX(0); }
body.rcart-open { overflow: hidden; }
.rcart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rcart-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: .08em;
  font-size: 1.35rem;
  margin: 0;
}
.rcart-count {
  margin: .2rem 0 0;
  font-size: .7rem;
  color: rgba(255,255,255,.45);
}
.rcart-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: 1.25rem;
  cursor: pointer;
}
.rcart-close:hover { color: #fff; background: rgba(255,255,255,.05); }
.rcart-body {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 1rem;
}
.rcart-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}
.rcart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.rcart-items { list-style: none; margin: 0; padding: 0; }
.rcart-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}
.rcart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.rcart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .75rem;
  align-items: start;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.rcart-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}
.rcart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.rcart-item img, .rcart-ph {
  width: 64px;
  height: 64px;
  border-radius: .5rem;
  object-fit: cover;
  background: #0a0a0a;
}
.rcart-name { margin: 0; font-weight: 600; font-size: .9rem; }
.rcart-qty { margin: .25rem 0; font-size: .75rem; color: rgba(255,255,255,.45); }
.rcart-remove {
  background: none;
  border: none;
  color: #ED184C;
  font-size: .75rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.rcart-remove:disabled { opacity: .6; cursor: wait; }
.rcart-price { margin: 0; font-weight: 600; font-size: .9rem; }
.rcart-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem;
  background: rgba(0,0,0,.2);
}
.rcart-totals { display: grid; gap: .45rem; margin-bottom: 1rem; font-size: .9rem; }
.rcart-totals > div {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.65);
}
.rcart-grand {
  margin-top: .25rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
}
.rcart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
}
.rcart-btn--primary {
  background: linear-gradient(135deg, #ED184C, #b01232);
  color: #fff;
  box-shadow: 0 8px 28px rgba(237,24,76,.28);
}
.rcart-btn--primary:hover { filter: brightness(1.07); }
.rcart-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  margin-top: .75rem;
  min-height: 2.85rem;
}
.rcart-link {
  display: block;
  width: 100%;
  margin-top: .65rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  cursor: pointer;
  text-align: center;
}
.rcart-link:hover { color: #fff; }
.rcart-empty { text-align: center; padding: 2.5rem 1.25rem; }
.rcart-muted { color: rgba(255,255,255,.45); font-size: .85rem; }
.rcart-error {
  margin: .75rem 1rem 0;
  padding: .65rem .85rem;
  border-radius: .65rem;
  background: rgba(237,24,76,.14);
  border: 1px solid rgba(237,24,76,.35);
  font-size: .85rem;
  color: #ffb3c3;
}
@media (max-width: 480px) {
  .rcart-drawer { width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  .rcart-drawer, .rcart-backdrop { transition: none; }
}

.rcart-qty { letter-spacing: 0.01em; }


/* Static cart layout */
.rcart-panel.rcart-static,
.rcart-panel {
  /* stable panel */
}
.rcart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rcart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 1.1rem 0;
  transition: none;
  animation: none;
}
.rcart-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.rcart-items {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.rcart-name {
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.rcart-qty {
  margin: 0;
  opacity: 0.55;
  font-size: 0.8rem;
}
.rcart-price {
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}
.rcart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.rcart-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.rcart-grand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.rcart-clear-all {
  width: 100%;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid rgba(237, 24, 76, 0.45);
  color: #ed184c;
  cursor: pointer;
}
.rcart-clear-all:hover:not(:disabled) {
  background: rgba(237, 24, 76, 0.12);
}
.rcart-clear-all:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Cart line dividers — one separator under every item */
.rcart-body .rcart-items > .rcart-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 0;
}
.rcart-body .rcart-items > .rcart-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}


/* Hardened row layout — each item on its own row */
.rcart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.rcart-body .rcart-items > .rcart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: none;
  padding: 1rem 0;
  margin: 0;
}
.rcart-body .rcart-items > .rcart-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.rcart-meta { min-width: 0; }
.rcart-name {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  word-break: break-word;
}
.rcart-qty {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.55;
}
.rcart-price {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: right;
}
.rcart-remove {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  background: none;
  border: none;
  color: #ed184c;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.rcart-totals--empty {
  margin: 1.25rem auto 0;
  max-width: 12rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 0.75rem;
}
.rcart-totals--empty .rcart-grand {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}


/* Responsive cart shell — desktop + mobile */
.rcart-drawer {
  max-width: 100vw;
}
@media (min-width: 768px) {
  .rcart-drawer {
    width: 420px;
    max-width: 420px;
  }
  .rcart-body {
    padding: 0 1.25rem 1rem;
  }
  .rcart-footer {
    padding: 1rem 1.25rem 1.25rem;
  }
  .rcart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 1rem;
  }
}
@media (max-width: 767px) {
  .rcart-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .rcart-header {
    padding: 1rem 1rem 0.75rem;
  }
  .rcart-body {
    padding: 0 1rem 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .rcart-footer {
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
  .rcart-body .rcart-items > .rcart-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.85rem 0;
  }
  .rcart-name {
    font-size: 0.9rem;
  }
  .rcart-price {
    font-size: 0.9rem;
  }
  .rcart-btn {
    min-height: 48px;
    font-size: 0.95rem;
  }
  .rcart-clear-all {
    min-height: 44px;
  }
  .rcart-totals {
    font-size: 0.9rem;
  }
  .rcart-grand {
    font-size: 1.05rem;
  }
}


/* React cart icon */
#navCart {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: #fff;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
#navCart:hover {
  border-color: rgba(237, 24, 76, 0.55);
  box-shadow: 0 0 0 3px rgba(237, 24, 76, 0.15), 0 8px 24px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}
#navCart:active { transform: scale(0.96); }
.rcart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.rcart-icon-wrap.has-items { color: #ffffff; }
.rcart-icon-svg {
  display: block;
  color: #ffffff;
  stroke: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.nav-cart-bag {
  display: block;
  color: #ffffff;
}
.rcart-icon-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ed184c, #c4103a);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(237, 24, 76, 0.55);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.rcart-icon-wrap.is-pulse .rcart-icon-badge {
  animation: rcartBadgePop .55s cubic-bezier(.2,1.4,.4,1);
}
.rcart-icon-wrap.is-pulse .rcart-icon-svg {
  animation: rcartBagTilt .55s ease;
}
@keyframes rcartBadgePop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes rcartBagTilt {
  0% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-12deg) scale(1.08); }
  60% { transform: rotate(8deg) scale(1.05); }
  100% { transform: rotate(0) scale(1); }
}
.rcart-mobile-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
}
.rcart-mobile-count {
  color: #ed184c;
  font-weight: 700;
}


/* Cart drawer Checkout — highlighter animation */
@keyframes rcartCheckoutShine {
  0% { transform: translateX(-130%) skewX(-16deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(230%) skewX(-16deg); opacity: 0; }
}
.rcart-btn--primary,
#rcartDrawerCheckout,
.rcart-btn--highlight {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}
.rcart-btn--primary::after,
#rcartDrawerCheckout::after,
.rcart-btn--highlight::after {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  transform: translateX(-130%) skewX(-16deg);
  pointer-events: none;
  z-index: 2;
  animation: rcartCheckoutShine 2.6s ease-in-out infinite;
  animation-delay: 0.4s;
}
.rcart-btn--primary:hover::after,
#rcartDrawerCheckout:hover::after,
.rcart-btn--highlight:hover::after {
  animation: rcartCheckoutShine 0.7s ease forwards;
}
.rcart-btn--primary:hover,
#rcartDrawerCheckout:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 0 3px rgba(237, 24, 76, 0.35), 0 8px 24px rgba(237, 24, 76, 0.35);
}
.rcart-footer .rcart-btn--primary {
  letter-spacing: 0.04em;
}
@media (prefers-reduced-motion: reduce) {
  .rcart-btn--primary::after,
  #rcartDrawerCheckout::after,
  .rcart-btn--highlight::after {
    animation: none !important;
    display: none !important;
  }
}




/* Shorts gallery — CSS scroll-snap (mobile + desktop) */
.shorts-snap-gallery {
  position: relative;
  width: 100%;
  margin: 0 auto 1.25rem;
}
.shorts-snap-scroller {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10;
  outline: none;
  scrollbar-width: none; /* Firefox */
}
.shorts-snap-scroller::-webkit-scrollbar {
  display: none;
}
.shorts-snap-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
}
.shorts-snap-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.shorts-snap-nav {
  position: absolute;
  top: calc(50% - 1.4rem);
  transform: translateY(-50%);
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 10, 0.7);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.shorts-snap-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.shorts-snap-nav--prev { left: 0.5rem; }
.shorts-snap-nav--next { right: 0.5rem; }
.shorts-snap-nav:not(:disabled):hover {
  border-color: rgba(237, 24, 76, 0.65);
  background: rgba(237, 24, 76, 0.28);
}
.shorts-snap-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding: 0 0.15rem;
  gap: 0.75rem;
}
.shorts-snap-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.shorts-snap-dots {
  display: flex;
  gap: 0.45rem;
}
.shorts-snap-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.shorts-snap-dot.is-active {
  background: #ED184C;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(237, 24, 76, 0.28);
}
.shorts-snap-hint {
  margin: 0.55rem 0 0.15rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Mobile */
@media (max-width: 767px) {
  .shorts-snap-scroller {
    aspect-ratio: 4 / 3;
    min-height: 240px;
    border-radius: 0.85rem;
  }
  .shorts-snap-slide {
    padding: 0.65rem 0.75rem;
  }
  .shorts-snap-nav {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.55rem;
  }
  .shorts-snap-nav--prev { left: 0.35rem; }
  .shorts-snap-nav--next { right: 0.35rem; }
}

/* Desktop */
@media (min-width: 768px) {
  .shorts-snap-scroller {
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }
  .shorts-snap-slide {
    padding: 1rem 1.25rem;
  }
}


.rcart-detail {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
}
.rcart-name {
  margin: 0;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}
.rcart-qty {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}
