.popnow-stage,
.popnow-stage * {
  box-sizing: border-box;
}

.popnow-stage {
  width: 100%;
  overflow: hidden;
  background: var(--popnow-page-bg, #0b0b0e);
  color: var(--popnow-text, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.popnow-section {
  position: relative;
  width: 100%;
  max-width: var(--popnow-max-width, 1440px);
  margin: 0 auto;
  padding: 40px 32px 60px;
  overflow: hidden;
  border-radius: var(--popnow-radius, 20px);
  background: var(--popnow-section-bg, #151518);
  isolation: isolate;
}

.popnow-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(var(--popnow-bg-brightness, 65%));
  pointer-events: none;
}

.popnow-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.2) 0%, rgba(15, 15, 18, 0.92) 80%);
}

.popnow-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.popnow-header-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.popnow-logo {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.popnow-logo-image {
  object-fit: contain;
}

.popnow-title {
  margin: 0;
  color: var(--popnow-text, #ffffff);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.popnow-more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--popnow-text, #ffffff);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.popnow-more:hover {
  color: var(--popnow-text, #ffffff);
  opacity: 1;
  transform: translateX(2px);
}

.popnow-more:focus-visible,
.popnow-card:focus-visible,
.popnow-track:focus-visible,
.popnow-arrow:focus-visible {
  outline: 2px solid var(--popnow-text, #ffffff);
  outline-offset: 3px;
}

.popnow-more svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transform: rotate(180deg);
}

.popnow-carousel {
  position: relative;
  z-index: 1;
}

.popnow-track {
  display: flex;
  gap: var(--popnow-gap, 20px);
  padding: 10px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.popnow-track::-webkit-scrollbar {
  display: none;
}

.popnow-slide {
  display: flex;
  flex: 0 0 var(--popnow-card-width, 240px);
  width: var(--popnow-card-width, 240px);
  scroll-snap-align: start;
}

.popnow-card {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--popnow-card-bg, #1f1f23);
  color: var(--popnow-text, #ffffff);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.popnow-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--popnow-text, #ffffff);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(-6px);
}

.popnow-card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--popnow-image-bg, #2a2a30);
}

.popnow-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.popnow-card:hover .popnow-card-image {
  transform: scale(1.06);
}

.popnow-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px;
}

.popnow-card-title {
  display: -webkit-box;
  height: 38px;
  margin-bottom: 12px;
  overflow: hidden;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.popnow-card-price {
  margin-bottom: 14px;
  color: var(--popnow-text, #ffffff);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.popnow-card-price span {
  margin-left: 2px;
  color: var(--popnow-muted, #a1a1aa);
  font-size: 12px;
  font-weight: 400;
}

.popnow-card-button {
  width: 100%;
  margin-top: auto;
  padding: 10px 0;
  border-radius: 8px;
  background: var(--popnow-accent, #e50012);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.popnow-card:hover .popnow-card-button {
  filter: brightness(1.12);
}

.popnow-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(30, 30, 34, 0.85);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.popnow-arrow:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.popnow-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.popnow-arrow-prev {
  left: -22px;
}

.popnow-arrow-next {
  right: -22px;
}

.popnow-arrow-next svg {
  transform: rotate(180deg);
}

.popnow-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .popnow-section {
    padding: 24px 16px;
  }

  .popnow-header {
    gap: 14px;
    margin-bottom: 20px;
  }

  .popnow-header-left {
    gap: 10px;
  }

  .popnow-logo {
    width: 38px;
    height: 38px;
  }

  .popnow-title {
    font-size: 22px;
  }

  .popnow-more {
    max-width: 42%;
    font-size: 12px;
    text-align: right;
  }

  .popnow-slide {
    flex-basis: var(--popnow-card-width-mobile, 170px);
    width: var(--popnow-card-width-mobile, 170px);
  }

  .popnow-track {
    gap: min(var(--popnow-gap, 20px), 14px);
  }

  .popnow-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popnow-track {
    scroll-behavior: auto;
  }

  .popnow-card,
  .popnow-card-image,
  .popnow-card-button,
  .popnow-more,
  .popnow-arrow {
    transition: none;
  }
}
