* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #f2f2f2;
  color: #000;
  line-height: 1.5;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 56px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  gap: 48px;
}

/* Header transparent trên trang chủ - video chạy full lên cả header */
.header--overlay {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.header--overlay .logo path {
  fill: #fff;
}

.header--overlay .nav a {
  color: #fff;
}

/* Khi scroll xuống (qua hero) - header có nền để đọc được trên section sáng */
.header--overlay.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.header--overlay.header--scrolled .logo path {
  fill: #231f20;
}

.header--overlay.header--scrolled .nav a {
  color: #000;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#cogibando-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
}

.logo path {
  transform-origin: center;
}

#cogibando-logo path {
  transform-box: fill-box;
  transform-origin: left top;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a,
.footer-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.nav a:hover,
.footer-nav a:hover {
  text-decoration: underline;
}

.nav a.nav-active {
  font-weight: 600;
}

/* Main */
.main {
  padding: 40px 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ===== Homepage - Fantik-style ===== */
.home-main {
  padding: 0;
}

/* Hero - full viewport media (image/video) */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero--media .hero-media,
.hero--media .hero-media-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--media .hero-media {
  z-index: 1;
}

.hero--media .hero-media-fallback {
  z-index: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Horizontal scroll section - Fantik style */
.horizontal-section {
  height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
}

.horizontal-track {
  display: flex;
  gap: 80px;
  padding: 0 56px;
  white-space: nowrap;
  will-change: transform;
}

.horizontal-panel {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.horizontal-text {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  opacity: 0.9;
}

/* Categories section */
.categories-section {
  padding: 120px 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.categories-section .section-title {
  margin-bottom: 32px;
}

/* CTA section */
.cta-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 80px 56px;
  background: #f2f2f2;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-btn {
  padding: 18px 40px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
}

.cta-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Product page */
.main--product {
  padding: 40px 56px 48px;
  margin-top: 80px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
}

.subsection-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Categories */
.cat-row {
  display: flex;
  gap: 24px;
}

.cat-card {
  width: 200px;
  height: 120px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Filters */
.fashion-lv1,
.tshirt-lv2,
.sport-lv3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tags--small {
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  background: #e5e5e5;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tag:hover {
  background: #d0d0d0;
}

.tag.active {
  background: #000;
  color: #fff;
}

.tag--small {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
}

.sport-lv3 {
  margin-top: 8px;
}

/* Products */
.products {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-img {
  width: 100%;
  height: 240px;
  background: #e5e5e5;
  border-radius: 12px 12px 0 0;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
}

.product-price {
  font-size: 14px;
  color: #666;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.footer-copy {
  font-size: 12px;
  color: #999;
}
