/* Hero Carousel */
.hero-carousel {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  max-height: 900px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-slides {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  text-align: left;
  color: var(--color-white);
  padding: 0 var(--spacing-sm) 120px;
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-slide-tag {
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 16px;
  opacity: 0.9;
  text-transform: uppercase;
}

.hero-slide-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
  max-width: 720px;
}

.hero-slide-desc {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.88;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 2;
  transition: background var(--transition);
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 5px;
}

/* Series Cards on Homepage */
.series-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 900px) {
  .section--series-explore .series-cards {
    gap: var(--spacing-lg);
  }

  .section--series-explore .series-card {
    padding: var(--spacing-lg);
  }

  .section--series-explore .series-card-title {
    font-size: 28px;
  }

  .section--series-explore .series-card-desc {
    font-size: 15px;
    margin-bottom: 16px;
  }
}

.series-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
  color: var(--color-white);
  transition: transform var(--transition);
}

.series-card:hover {
  transform: scale(1.02);
}

.series-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.series-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

.series-card-content {
  position: relative;
  z-index: 1;
}

.series-card-label {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.series-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.series-card-desc {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 12px;
}

/* Series Panels (full-width story) */
.series-panels {
  display: flex;
  flex-direction: column;
}

.series-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 70vh;
  color: var(--color-white);
  overflow: hidden;
  text-decoration: none;
}

.series-panel-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.series-panel-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.series-panel--a5 .series-panel-visual::after {
  background: linear-gradient(135deg, rgba(60, 40, 80, 0.65) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.series-panel--a6 .series-panel-visual::after {
  background: linear-gradient(225deg, rgba(20, 50, 100, 0.7) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.series-panel--s1 .series-panel-visual::after {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(80, 60, 20, 0.35) 100%);
}

.series-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 70vh;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--section-story) var(--spacing-sm);
  width: 100%;
}

.series-panel-content {
  max-width: 480px;
}

.series-panel-label {
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.series-panel-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.series-panel-desc {
  font-size: 17px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  .series-panel {
    grid-template-columns: 1fr 1fr;
  }

  .series-panel-inner {
    grid-column: 1;
  }

  .series-panel--reverse .series-panel-inner {
    grid-column: 2;
    justify-content: flex-end;
  }

  .series-panel--reverse .series-panel-content {
    margin-left: auto;
    text-align: right;
  }
}

/* Featured Showcase (Bento) */
.showcase-section {
  overflow: hidden;
}

.showcase-section-head {
  margin-bottom: var(--spacing-lg);
}

.featured-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-sm);
}

.showcase-stack {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--color-bg-light);
  transition: box-shadow var(--transition), transform var(--transition);
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 38%, transparent 72%);
  z-index: 1;
  pointer-events: none;
}

.showcase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.showcase-card--tall {
  min-height: 400px;
}

.showcase-card-text {
  position: relative;
  z-index: 2;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 16px;
  max-width: 280px;
}

.showcase-card-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  margin-bottom: 20px;
}

.showcase-card-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  min-height: 0;
}

.showcase-visual-placeholder {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  position: relative;
}

.showcase-visual-placeholder::after {
  display: none;
}

.showcase-card--yoga::before,
.showcase-card--entertainment::before {
  display: none;
}

.showcase-visual-placeholder--yoga {
  background-image: linear-gradient(165deg, #e8f4fc 0%, #d4ecfa 55%, #fde8d0 100%);
}

.showcase-visual-placeholder--office {
  background-image: linear-gradient(160deg, #f0ecfa 0%, #e4dff5 100%);
}

.showcase-visual-placeholder--nav {
  background-image: linear-gradient(160deg, #eef5fc 0%, #e0edf8 100%);
}

.showcase-visual-placeholder--media {
  background-image: linear-gradient(155deg, #dff5f5 0%, #c8eef0 50%, #b8e8ec 100%);
}

@media (min-width: 768px) {
  .featured-showcase {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    padding: 0;
    gap: var(--spacing-sm);
  }

  .showcase-card--tall {
    min-height: 580px;
  }

  .showcase-card--yoga {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .showcase-card--entertainment {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }

  .showcase-stack .showcase-card {
    flex: 1;
    min-height: 280px;
  }

  .showcase-card-text {
    font-size: 16px;
    max-width: 300px;
  }
}

/* Brand Slogan */
.brand-slogan {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-sm);
  background: var(--color-bg-light);
}

.brand-slogan h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.brand-slogan p {
  font-size: 16px;
  color: var(--color-text-light);
}

/* Series Page Hero — immersive */
.series-hero--immersive {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin-bottom: 0;
  text-align: left;
}

.series-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.series-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.series-hero--immersive .series-hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(var(--header-height) + 24px) var(--spacing-sm) 64px;
  max-width: var(--container-wide);
  margin: 0 auto;
  color: var(--color-white);
}

.series-hero--immersive .breadcrumb {
  color: rgba(255, 255, 255, 0.65);
  padding: 0 0 var(--spacing-md);
}

.series-hero--immersive .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.series-hero--immersive .breadcrumb a:hover {
  color: var(--color-white);
}

.series-hero--immersive .series-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--color-white);
  margin-bottom: 12px;
}

.series-hero--immersive .series-hero-tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0;
}

/* Series Highlights */
.series-highlights {
  display: flex;
  flex-direction: column;
}

.highlight-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  padding: var(--section-story) var(--spacing-sm);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.highlight-block:nth-child(even) {
  background: var(--color-bg-light);
}

.highlight-block-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.highlight-block-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.highlight-block-desc {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.75;
}

.highlight-block-visual {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.highlight-block-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-block--screen .highlight-block-visual { background: linear-gradient(135deg, #e8eef5, #cfd8e3); }
.highlight-block--cpu .highlight-block-visual { background: linear-gradient(135deg, #e4dff5, #c8b8e8); }
.highlight-block--battery .highlight-block-visual { background: linear-gradient(135deg, #dff5f0, #b8e8dc); }

@media (min-width: 768px) {
  .highlight-block-inner {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-block--reverse .highlight-block-inner {
    direction: rtl;
  }

  .highlight-block--reverse .highlight-block-inner > * {
    direction: ltr;
  }
}

/* Series Shop */
.series-shop {
  background: var(--color-bg-light);
  padding: var(--section-story) 0;
}

.series-shop-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.series-shop-header h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.series-shop-header p {
  font-size: 16px;
  color: var(--color-text-light);
}

.series-shop .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.series-shop .product-card {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, #e60012, #4a90d9, #9b59b6, #e60012) border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.series-shop .product-card[data-series="A5"] {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(145deg, #9b59b6, #4a90d9, #8e8e93, #9b59b6) border-box;
}

.series-shop .product-card[data-series="A6"] {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(145deg, #4a90d9, #5090c8, #9b59b6, #4a90d9) border-box;
}

.series-shop .product-card[data-series="S1"] {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(145deg, #1a1a1a, #c8a040, #e60012, #1a1a1a) border-box;
}

.series-shop .product-card:hover {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(145deg, #e60012, #ff4d6a, #4a90d9, #9b59b6, #e60012) border-box;
  box-shadow: 0 8px 24px rgba(230, 0, 18, 0.12);
}

.series-shop .product-card[data-series="S1"]:hover {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(145deg, #c8a040, #e60012, #1a1a1a, #c8a040) border-box;
  box-shadow: 0 8px 24px rgba(200, 160, 64, 0.2);
}

.series-shop .product-card-image {
  aspect-ratio: 1;
}

.series-shop .product-card-price {
  font-size: 16px;
}

/* Catalog compare & collapse */
.compare-section {
  padding: var(--section-story) 0;
}

.compare-table-wrap {
  overflow-x: auto;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  background: var(--color-bg-light);
  font-weight: 600;
}

.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-light);
}

.compare-table .compare-series-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.catalog-collapse {
  background: var(--color-bg-light);
  padding: var(--spacing-lg) 0 var(--section-story);
}

.catalog-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto var(--spacing-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.catalog-collapse-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.catalog-collapse-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.catalog-collapse-panel.is-open {
  max-height: 8000px;
}

.catalog-collapse-panel .container {
  padding-top: var(--spacing-md);
}

/* Legacy series hero (fallback) */
.series-hero {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.series-hero-visual {
  width: 100%;
  max-width: 500px;
  height: 300px;
  margin: 0 auto var(--spacing-md);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-light);
}

.series-hero-img,
.series-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.series-banner-visual {
  overflow: hidden;
}

.series-hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.series-hero-tagline {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Detail Page */
.product-detail {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0 var(--spacing-xl);
}

.product-detail-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.product-detail-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.product-preview-gallery {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-preview-stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-light);
}

.product-preview-track {
  position: absolute;
  inset: 0;
}

.product-preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-preview-slide.active {
  opacity: 1;
  z-index: 1;
}

.product-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-preview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-preview-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-preview-thumb:hover {
  border-color: rgba(230, 0, 18, 0.35);
}

.product-preview-thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

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

.product-preview-slide .tablet-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-image .tablet-icon {
  width: 70%;
  max-width: 360px;
}

.product-detail-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-config {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.product-detail-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.product-detail-price {
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.product-tabs-section {
  padding-bottom: var(--spacing-xl);
}

/* About & Support */
.page-hero {
  background: var(--color-bg-light);
  background-size: cover;
  background-position: center;
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-sm);
}

.content-block h2 {
  font-size: 22px;
  margin-bottom: 12px;
  margin-top: var(--spacing-md);
}

.content-block p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.8;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--color-text-light);
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .hero-carousel {
    min-height: 85vh;
    height: 85vh;
  }

  .hero-slide-content {
    padding-bottom: 80px;
  }

  .hero-slide-title {
    font-size: 32px;
  }

  .series-cards {
    grid-template-columns: 1fr;
  }

  .series-panel-inner {
    min-height: 60vh;
  }

  .series-shop .product-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-main {
    grid-template-columns: 1fr;
  }

  .product-detail-image,
  .product-preview-gallery {
    position: static;
  }

  .product-preview-stage {
    aspect-ratio: 4/3;
  }

  .product-preview-thumbs {
    gap: 8px;
  }
}
