/* /new + /best-sellers — category product hubs */

:root {
  --cc-hub-ink: var(--cc-bx-ink);
  --cc-hub-muted: var(--cc-bx-muted);
  --cc-hub-border: #e4e4e8;
  --cc-hub-surface: #f5f5f7;
  --cc-hub-card: #ffffff;
  --cc-hub-gold: var(--cc-bx-accent);
  --cc-hub-font: var(--cc-font-sans);
  --cc-hub-display: var(--cc-font-display);
}

.content .inside .cc-newHub {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 80px 0;
  font-family: var(--cc-hub-font);
  color: var(--cc-hub-ink);
}

/* Hero banner */
.cc-newHub__hero {
  position: relative;
  margin: 0 0 40px 0;
  padding: 48px 44px 0 44px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cc-bx-surface);
  color: #fff;
  isolation: isolate;
}
.cc-newHub__heroMesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255,66,0,0.14) 0%, transparent 42%),
    linear-gradient(220deg, rgba(255,255,255,0.06) 0%, transparent 48%),
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(255,255,255,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255,66,0,0.08) 0%, transparent 50%);
  animation: ccHubMesh 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.cc-newHub--new .cc-newHub__heroMesh {
  background:
    linear-gradient(125deg, rgba(147,197,253,0.12) 0%, transparent 42%),
    linear-gradient(220deg, rgba(255,255,255,0.06) 0%, transparent 48%),
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(255,255,255,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255,66,0,0.08) 0%, transparent 50%);
}
@keyframes ccHubMesh {
  0% { transform: scale(1) translate(0, 0) }
  100% { transform: scale(1.06) translate(-1.5%, 1%) }
}
.cc-newHub__heroOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
}
.cc-newHub__heroOrb--a {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -40px;
  background: rgba(255,66,0,0.35);
  animation: ccHubOrbA 10s ease-in-out infinite alternate;
}
.cc-newHub--new .cc-newHub__heroOrb--a { background: rgba(147,197,253,0.28) }
.cc-newHub__heroOrb--b {
  width: 200px;
  height: 200px;
  bottom: 40px;
  left: -60px;
  background: rgba(255,255,255,0.12);
  animation: ccHubOrbB 12s ease-in-out infinite alternate;
}
@keyframes ccHubOrbA {
  0% { transform: translate(0, 0) }
  100% { transform: translate(-24px, 18px) }
}
@keyframes ccHubOrbB {
  0% { transform: translate(0, 0) }
  100% { transform: translate(20px, -14px) }
}
.cc-newHub__heroInner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
}
.cc-newHub__heroCopy { min-width: 0 }
.cc-newHub__eyebrow {
  margin: 0 0 14px 0;
  font-family: var(--cc-hub-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.cc-newHub__eyebrow span {
  color: var(--cc-hub-gold);
  font-weight: 700;
}
.cc-newHub--new .cc-newHub__eyebrow span { color: #93c5fd }
.cc-newHub__title {
  margin: 0 0 12px 0;
  font-family: var(--cc-hub-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
}
.cc-newHub__lead {
  margin: 0 0 20px 0;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.58);
  font-weight: 400;
}
.cc-newHub__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cc-newHub__stat {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.cc-newHub__statDot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cc-hub-gold);
}
.cc-newHub--new .cc-newHub__statDot { background: #93c5fd }
.cc-newHub__heroBadge {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.cc-newHub__heroBadgeRing {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  animation: ccHubPulse 4s ease-in-out infinite;
}
@keyframes ccHubPulse {
  0%, 100% { transform: scale(1); opacity: 1 }
  50% { transform: scale(1.06); opacity: 0.85 }
}
.cc-newHub__heroBadgeIcon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--cc-hub-gold);
}
.cc-newHub--new .cc-newHub__heroBadgeIcon { color: #93c5fd }

/* Marquee */
.cc-newHub__marquee {
  position: relative;
  z-index: 2;
  margin: 0 -44px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.cc-newHub__marqueeFade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.cc-newHub__marqueeFade--l {
  left: 0;
  background: linear-gradient(90deg, var(--cc-bx-ink) 0%, transparent 100%);
}
.cc-newHub__marqueeFade--r {
  right: 0;
  background: linear-gradient(270deg, var(--cc-bx-ink) 0%, transparent 100%);
}
.cc-newHub__marqueeTrack {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ccHubMarquee 38s linear infinite;
}
@keyframes ccHubMarquee {
  0% { transform: translateX(0) }
  100% { transform: translateX(-50%) }
}
.cc-newHub__marqueeItem {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-family: var(--cc-hub-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

/* Body + sections */
.cc-newHub__body { padding: 0 }
.cc-newHub__section {
  position: relative;
  margin-bottom: 32px;
  padding: 28px 32px 32px 32px;
  border-radius: 22px;
  border: 1px solid var(--cc-hub-border);
  background: linear-gradient(180deg, #fff 0%, var(--cc-hub-surface) 100%);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 12px 40px rgba(15,15,18,0.04);
}
.cc-newHub__section:last-child { margin-bottom: 0 }
.cc-newHub__watermark {
  position: absolute;
  top: -8px;
  right: 20px;
  font-family: var(--cc-hub-display);
  font-size: 120px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(10,10,12,0.04);
  pointer-events: none;
  user-select: none;
}
.cc-newHub__sectionHead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cc-hub-border);
}
.cc-newHub__sectionMeta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.cc-newHub__sectionTitle {
  margin: 0;
  font-family: var(--cc-hub-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cc-newHub__sectionTitle a {
  color: var(--cc-hub-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cc-newHub__sectionTitle a:hover { color: var(--cc-hub-muted) }
.cc-newHub__sectionRule {
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, var(--cc-hub-border) 0%, transparent 100%);
}
.cc-newHub__sectionCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--cc-hub-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cc-newHub__seeAll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-hub-ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--cc-hub-border);
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cc-newHub__seeAll:hover {
  background: var(--cc-hub-surface);
  border-color: #d0d0d4;
  transform: translateX(2px);
  text-decoration: none;
  color: var(--cc-hub-ink);
}
.cc-newHub__seeAll .fa { font-size: 14px; opacity: 0.65 }
.cc-newHub__empty {
  padding: 48px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed var(--cc-hub-border);
  background: var(--cc-hub-surface);
}

/* 5-column product grid */
.content .cc-productGridWrap .cc-productGrid.cc-productGrid--hub,
.content .cc-productGrid.cc-productGrid--hub,
.cc-productGrid.cc-productGrid--hub {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

/* Loading */
.cc-newHub--loading { padding-bottom: 48px }
.cc-newHub__hero--skeleton {
  min-height: 260px;
  margin-bottom: 40px;
  border-radius: 24px;
  background: linear-gradient(110deg, #ececef 8%, #f5f5f7 18%, #ececef 33%);
  background-size: 200% 100%;
  animation: ccHubShimmer 1.4s ease-in-out infinite;
}
.cc-newHub__sectionSkeleton {
  height: 320px;
  margin-bottom: 32px;
  border-radius: 22px;
  background: linear-gradient(110deg, #ececef 8%, #f5f5f7 18%, #ececef 33%);
  background-size: 200% 100%;
  animation: ccHubShimmer 1.4s ease-in-out infinite;
}
@keyframes ccHubShimmer {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

@media (max-width: 1400px) {
  .content .cc-productGridWrap .cc-productGrid.cc-productGrid--hub,
  .content .cc-productGrid.cc-productGrid--hub,
  .cc-productGrid.cc-productGrid--hub { grid-template-columns: repeat(4, minmax(0, 1fr)) }
}
@media (max-width: 1200px) {
  .content .cc-productGridWrap .cc-productGrid.cc-productGrid--hub,
  .content .cc-productGrid.cc-productGrid--hub,
  .cc-productGrid.cc-productGrid--hub { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 992px) {
  .cc-newHub__heroInner { grid-template-columns: 1fr; gap: 20px }
  .cc-newHub__heroBadge { display: none }
  .cc-newHub__section { padding: 22px 20px 24px 20px }
  .cc-newHub__sectionHead { flex-wrap: wrap; align-items: flex-start }
}
/* Mobile hub: 1 product per row (Best Sellers / New) */
@media (max-width: 880px) {
  .content .cc-productGridWrap .cc-productGrid.cc-productGrid--hub,
  .content .cc-productGrid.cc-productGrid--hub,
  .cc-productGrid.cc-productGrid--hub {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .content .inside .cc-newHub { padding-top: 24px; padding-bottom: 48px }
  .cc-newHub__hero {
    margin-bottom: 28px;
    padding: 36px 24px 0 24px;
    border-radius: 18px;
  }
  .cc-newHub__marquee { margin: 0 -24px }
  .cc-newHub__title { font-size: 32px }
  .cc-newHub__lead { font-size: 14px; margin-bottom: 16px }
  .cc-newHub__section { margin-bottom: 24px; border-radius: 16px }
  .cc-newHub__sectionTitle { font-size: 18px }
  .cc-newHub__watermark { font-size: 80px; top: -4px; right: 12px }
}
@media (prefers-reduced-motion: reduce) {
  .cc-newHub__heroMesh,
  .cc-newHub__heroOrb--a,
  .cc-newHub__heroOrb--b,
  .cc-newHub__marqueeTrack,
  .cc-newHub__heroBadgeRing,
  .cc-newHub__hero--skeleton,
  .cc-newHub__sectionSkeleton { animation: none }
}
