/* Hero banner — full-height swiper, no gap below image */
.hero-banner {
  width: 100%;
  height: clamp(520px, 85vh, 920px);
  overflow: hidden;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-swiper .swiper-pagination {
  bottom: 1.5rem !important;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #ffd700;
}

[x-cloak] {
  display: none !important;
}

/* Rich HTML from admin TinyMCE on product detail */
.product-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.product-detail-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.product-detail-content table th,
.product-detail-content table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
}

.product-detail-content table th {
  background: #f9fafb;
  font-weight: 600;
}

/* Category card hover colors (fallback when Tailwind utilities not rebuilt) */
a.hover\:border-yoga:hover { border-color: #8B5CF6; }
a.hover\:border-running:hover { border-color: #FF6B35; }
a.hover\:border-hiking:hover { border-color: #10B981; }
a.hover\:border-fitness:hover { border-color: #3B82F6; }
a.hover\:border-outdoor:hover { border-color: #F59E0B; }
a.hover\:border-sport-secondary:hover { border-color: #DC143C; }
.group:hover .group-hover\:text-yoga { color: #8B5CF6; }
.group:hover .group-hover\:text-running { color: #FF6B35; }
.group:hover .group-hover\:text-hiking { color: #10B981; }
.group:hover .group-hover\:text-fitness { color: #3B82F6; }
.group:hover .group-hover\:text-outdoor { color: #F59E0B; }
.group:hover .group-hover\:text-sport-secondary { color: #DC143C; }

/* Social links (header + footer) */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
}

.social-link-header {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.social-link-header:hover {
  background: rgba(255, 255, 255, 0.22);
}

.social-link-footer {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-link-footer:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Search autocomplete */
.search-autocomplete .search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
  background: #fef2f2;
  color: #dc143c;
}

.search-suggestion-meta {
  color: #6b7280;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Product detail — Alibaba International B2B style */
.detail-layout {
  display: block;
}

.section-detail {
  background: #fff;
}

.ali-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #6b7280;
}

.ali-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.ali-breadcrumb a:hover {
  color: #dc143c;
}

.ali-breadcrumb-sep {
  color: #d1d5db;
}

.pd-top,
.ali-pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.ali-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  min-width: 0;
}

.ali-gallery {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ali-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.ali-thumbs-h {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.ali-thumb-h {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ali-thumb-h img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ali-thumb-h.active,
.ali-thumb-h:hover {
  border-color: #111827;
  box-shadow: 0 0 0 1px #111827;
}

.ali-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.ali-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
}

.ali-main-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0d10;
  display: block;
}

.ali-main-img[hidden],
.ali-main-video[hidden],
.ali-stage-tool[hidden] {
  display: none !important;
}

.ali-thumb-h.is-video {
  background: #111;
}

.ali-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.ali-thumb-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}

.ali-stage-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.ali-stage-tool {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease;
}

.ali-stage-tool:hover {
  background: #fff;
  color: #dc143c;
}

.ali-stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ali-stage-nav--prev { left: 12px; }
.ali-stage-nav--next { right: 12px; }
.ali-stage-nav:hover { color: #dc143c; }

.ali-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ali-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.ali-zoom-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  z-index: 1;
}

.ali-zoom-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.ali-zoom-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.ali-buy-box {
  padding: 4px 0 0;
}

.ali-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.ali-meta-row {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ali-meta-dot {
  color: #d1d5db;
}

.ali-cat-link {
  color: #dc143c;
  text-decoration: none;
}

.ali-cat-link:hover {
  text-decoration: underline;
}

.ali-price-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.ali-price-tier {
  min-width: 0;
}

.ali-tier-price {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.ali-tier-range {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.ali-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ali-qty-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  min-width: 60px;
}

.ali-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.ali-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f9fafb;
  color: #374151;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ali-qty-btn:hover {
  background: #f3f4f6;
}

.ali-qty-input {
  width: 56px;
  height: 36px;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.ali-qty-input::-webkit-outer-spin-button,
.ali-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ali-qty-hint {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.ali-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.ali-attr-box {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 14px;
}

.ali-attr-key {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.ali-attr-val {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.ali-glance {
  margin-bottom: 20px;
}

.ali-glance-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

.ali-glance-list {
  margin: 0;
  padding-left: 1.125rem;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.7;
}

.ali-glance-list li + li {
  margin-top: 4px;
}

.ali-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ali-order-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px !important;
  font-size: 1rem !important;
  border-radius: 999px !important;
}

.ali-order-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.pd-subline {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.pd-bottom {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.pd-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 14px;
  margin: 20px 0 0;
  position: sticky;
  top: 64px;
  z-index: 19;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.pd-anchor-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7280;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pd-anchor-nav a:hover {
  color: #dc143c;
}

.pd-anchor-nav a.active {
  color: #dc143c;
  background: #fef2f2;
  border-color: #dc143c;
}

.pd-module {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  padding: 16px;
}

.pd-module[id] {
  scroll-margin-top: 120px;
}

.pd-module h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pd-spec-table th,
.pd-spec-table td {
  border-top: 1px solid #e5e7eb;
  padding: 9px 8px;
  text-align: left;
}

.pd-spec-table th {
  width: 230px;
  color: #6b7280;
  font-weight: 700;
}

.pd-pack-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #374151;
  line-height: 1.8;
}

.pd-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pd-detail-grid img,
.pd-detail-grid video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.pd-detail-grid img {
  object-fit: cover;
}

.pd-detail-grid video {
  object-fit: contain;
  background: #0b0d10;
}

.pd-calculator {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.pd-calculator-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
}

.pd-calculator-fields--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-calculator-fields > div {
  padding: 16px;
  border-right: 1px solid #e5e7eb;
}

.pd-calculator-fields > div:last-child {
  border-right: none;
}

.pd-calculator-fields label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.pd-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9375rem;
}

.pd-input:focus {
  outline: none;
  border-color: #dc143c;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
}

.pd-calculator-result {
  background: linear-gradient(135deg, #1a1a2e 0%, #dc143c 100%);
  color: #fff;
  text-align: center;
  padding: 24px 16px;
}

.pd-calculator-label {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.pd-calculator-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.pd-calculator-sub {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.pd-tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pd-tier-table th,
.pd-tier-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: left;
}

.pd-tier-table th {
  background: #f9fafb;
  font-weight: 600;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-badge--green { background: #dcfce7; color: #15803d; }
.product-badge--blue { background: #dbeafe; color: #1d4ed8; }

@media (max-width: 1020px) {
  .pd-top,
  .ali-pd-top {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ali-stage {
    flex: none;
    aspect-ratio: 1 / 1;
    max-height: 480px;
  }
  .ali-main-img,
  .ali-main-video {
    position: static;
    height: 100%;
  }
}

@media (max-width: 900px) {
  .ali-stage {
    max-height: 400px;
  }
  .ali-attrs {
    grid-template-columns: 1fr;
  }
  .pd-anchor-nav {
    top: 64px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .pd-anchor-nav a {
    flex: 0 0 auto;
  }
  .pd-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pd-calculator-fields,
  .pd-calculator-fields--2 {
    grid-template-columns: 1fr;
  }
  .pd-calculator-fields > div {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .pd-calculator-fields > div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .ali-price-tiers {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pd-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* OEM page — equal-height alternating bands */
.oem-band {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
}

.oem-band--dark {
  background: #000;
  color: #fff;
  border-bottom-color: #1f1f1f;
}

.oem-band--light {
  background: #fff;
  color: #111827;
}

.oem-band__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.oem-band__inner--narrow {
  max-width: 36rem;
}

.oem-band__title {
  margin: 0;
  font-family: Oswald, Montserrat, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #000;
}

.oem-band__title--light {
  color: #fff;
}

.oem-band__lead {
  margin: 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.6;
}

.oem-band__lead--dark {
  color: #6b7280;
}

.oem-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.oem-band__stats {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 48rem;
}

.oem-band__stats--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .oem-band {
    min-height: 340px;
  }
  .oem-band__stats--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.oem-stat {
  padding: 0.875rem 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

.oem-stat--dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.oem-stat__num {
  font-family: Oswald, Montserrat, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: #ffd700;
}

.oem-stat__num--accent {
  color: #dc143c;
}

.oem-stat__label {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
  .oem-stat__label {
    font-size: 0.75rem;
  }
}

.oem-band__cards {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 56rem;
}

.oem-band__cards--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .oem-band__cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oem-card {
  padding: 1.25rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fafafa;
  text-align: center;
}

.oem-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.oem-card__title {
  margin: 0;
  font-family: Oswald, Montserrat, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
}

.oem-card__desc {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.oem-band__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  max-width: 48rem;
}

.oem-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.oem-pill__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.oem-pill--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.oem-band__pills--light .oem-pill--light {
  background: rgba(255, 255, 255, 0.1);
}
