/* ==========================================================
   SPORTY – Trang chủ
   ========================================================== */

/* ---------- HERO ---------- */
.hero {
  --sky: linear-gradient(180deg, #afd3f1 0%, #cfe4f7 38%, #e6f0f9 72%, #edf2f7 100%);
  position: relative; overflow: hidden; background: var(--sky);
}
.hero-slide {
  position: relative; overflow: hidden;
  height: clamp(440px, 31vw, 600px);
  background: var(--sky);
}

/* Ảnh chủ thể: nằm bên phải, giữ nguyên tỷ lệ, viền mờ dần vào nền trời */
.hero-media img {
  position: absolute; bottom: 0; left: 42.5%;
  width: auto; max-width: none; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 88%, transparent 100%);
  transform-origin: 60% 100%;
}
.hero-slide--2 .hero-media img {
  left: 49%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 32%, #000 86%, transparent 100%);
}
.hero-slide--3 .hero-media img {
  left: 42%;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 52% 58%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 62% at 52% 58%, #000 62%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero-label {
  position: relative; padding-bottom: 12px;
  font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: .2em; color: var(--dark);
}
.hero-label::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 58%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .2) 100%);
  transform: rotate(-1.5deg);
}
.hero-title { margin-top: 22px; font-weight: 900; text-transform: uppercase; line-height: 1; }
.hero-title span { display: block; font-size: clamp(40px, 3.9vw, 58px); color: var(--dark); letter-spacing: -.01em; }
.hero-title em {
  display: block; margin-top: 10px; padding-right: .1em;
  font-size: clamp(38px, 3.4vw, 52px); font-style: italic; letter-spacing: -.03em;
  background: linear-gradient(95deg, #1a7cf0 0%, #2a9bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: rotate(-3deg); transform-origin: left bottom;
}
.hero-desc { margin-top: 26px; font-size: 16px; font-weight: 500; line-height: 1.65; color: #1f2937; }
.hero-cta { margin-top: 30px; min-height: 48px; padding: 0 30px; text-transform: uppercase; }

/* Đặc tính sản phẩm bên phải */
.hero-features {
  position: absolute; z-index: 3; top: 15%; right: 7.5%;
  display: flex; flex-direction: column; gap: 18px;
  pointer-events: none;
}
.hero-features li { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--dark); }
.hf-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--dark); border-radius: 50%;
  background: rgba(255, 255, 255, .25); backdrop-filter: blur(2px);
}
.hf-icon svg { width: 22px; height: 22px; }

.hero-script {
  position: absolute; z-index: 3; right: 3.5%; bottom: 7%;
  font-family: var(--font-script); font-size: clamp(30px, 2.8vw, 44px); font-weight: 700;
  line-height: .95; color: var(--white);
  transform: rotate(-10deg); text-shadow: 0 2px 12px rgba(16, 27, 41, .25);
  pointer-events: none;
}

/* Điều hướng */
.hero-nav {
  position: absolute; z-index: 4; top: 50%;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(70, 80, 92, .55); color: var(--white);
  transform: translateY(-50%);
  transition: background var(--ease), transform var(--ease);
}
.hero-nav svg { width: 20px; height: 20px; }
.hero-nav:hover { background: var(--primary); transform: translateY(-50%) scale(1.06); }
.hero-prev { left: 1.8%; }
.hero-next { right: 1.8%; }

.hero-pagination.swiper-pagination-bullets {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; margin: 0 !important; border-radius: 8px;
  background: var(--white); opacity: .75; transition: width var(--ease), background var(--ease), opacity var(--ease);
}
.hero-pagination .swiper-pagination-bullet-active { width: 24px; background: var(--primary); opacity: 1; }

/* Hiệu ứng chuyển slide – chỉ ẩn khi Swiper đã chạy, nên nội dung vẫn đọc được nếu JS/animation tắt */
.hero-swiper.swiper-initialized .hero-content > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.25, .8, .25, 1);
}
.hero-swiper.swiper-initialized .hero-title em { transform: translateY(24px) rotate(-3deg); }
.hero-swiper .swiper-slide-active .hero-content > * { opacity: 1; transform: none; }
.hero-swiper .swiper-slide-active .hero-content .hero-title em { transform: rotate(-3deg); }
.hero-swiper .swiper-slide-active .hero-content > :nth-child(1) { transition-delay: .25s; }
.hero-swiper .swiper-slide-active .hero-content > :nth-child(2) { transition-delay: .4s; }
.hero-swiper .swiper-slide-active .hero-content > :nth-child(3) { transition-delay: .55s; }
.hero-swiper .swiper-slide-active .hero-content > :nth-child(4) { transition-delay: .7s; }
.hero-swiper.swiper-initialized .hero-media img { transform: scale(1.05); transition: transform 1.6s cubic-bezier(.25, .8, .25, 1); }
.hero-swiper .swiper-slide-active .hero-media img { transform: scale(1); }

/* ---------- SERVICES ---------- */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 30px; padding-bottom: 30px; }
.service-item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 12px; }
.service-item + .service-item { border-left: 1px solid var(--line); }
.service-item svg { width: 36px; height: 36px; color: var(--dark); }
.service-item h3 { font-size: 14px; font-weight: 600; color: var(--dark); }
.service-item p { font-size: 12px; color: var(--muted); }

/* ---------- PROMO ---------- */
.section-promo { padding: 8px 0 24px; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 416 / 186; border-radius: var(--radius);
  color: var(--white);
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.promo--summer::before { background: linear-gradient(90deg, #5aaae9 0%, #66b2ec 50%, rgba(110, 185, 240, .8) 56%, rgba(110, 185, 240, 0) 66%); }
.promo--sale::before { background: linear-gradient(90deg, #202226 0%, #24262a 42%, rgba(36, 38, 42, .7) 50%, rgba(36, 38, 42, 0) 60%); }
.promo-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 8%;
}
.promo-kicker, .promo-title, .promo-text { transform: rotate(-6deg); transform-origin: left center; font-style: italic; }
.promo-kicker { font-size: clamp(16px, 1.6vw, 22px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.promo-title { font-size: clamp(38px, 4vw, 54px); font-weight: 900; text-transform: uppercase; line-height: 1; margin-top: 2px; }
.promo-title--big {
  font-size: clamp(56px, 6.2vw, 86px); letter-spacing: -.02em;
  background: linear-gradient(95deg, #1a7cf0, #3aa6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.promo-text { margin-top: 6px; font-size: 13px; font-weight: 500; }
.promo .btn { margin-top: 22px; }
.promo--sale .promo-text { margin-top: 0; }

/* ---------- WHY ---------- */
.why { padding: 32px 0 0; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: end; }
.why-main { padding-bottom: 30px; }
.why .section-head { margin-bottom: 26px; }
.why-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.why-item { padding: 6px 18px 10px; text-align: center; }
.why-item + .why-item { border-left: 1px solid var(--line); }
.why-item svg { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--dark); transition: color var(--ease), transform var(--ease); }
.why-item:hover svg { color: var(--primary); transform: translateY(-3px); }
.why-item h3 { font-size: 13px; font-weight: 700; color: var(--dark); }
.why-item p { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.why-media img { width: 100%; }

/* ---------- CATEGORY SLIDER ---------- */
.slider-controls { display: flex; align-items: center; gap: 10px; }
.slider-controls .link-more { margin-right: 8px; }
.slider-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--dark);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.slider-btn svg { width: 16px; height: 16px; }
.slider-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.slider-btn.swiper-button-disabled { opacity: .4; pointer-events: none; }
/* chừa chỗ cho hiệu ứng nhấc thẻ + bóng khi hover */
.category-swiper { padding: 6px 4px 14px; margin: -6px -4px -14px; }
.category-swiper .swiper-slide { height: auto; }
.category-swiper .category-card { height: 100%; }

/* ---------- LOOKBOOK / CATALOG ---------- */
.lookbook-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 210px;
  grid-template-areas:
    "a a b b c c"
    "a a d d e e";
}
.lookbook-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: #eef0f3; color: var(--white); }
.lookbook-item:nth-child(1) { grid-area: a; }
.lookbook-item:nth-child(2) { grid-area: b; }
.lookbook-item:nth-child(3) { grid-area: c; }
.lookbook-item:nth-child(4) { grid-area: d; }
.lookbook-item:nth-child(5) { grid-area: e; }
.lookbook-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lookbook-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 27, 41, 0) 45%, rgba(16, 27, 41, .78) 100%);
  transition: background var(--ease);
}
.lookbook-item:hover::after { background: linear-gradient(180deg, rgba(16, 27, 41, .1) 30%, rgba(16, 27, 41, .85) 100%); }
.lookbook-caption {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.lookbook-caption small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #9fd0ff; }
.lookbook-caption strong { font-size: 18px; font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.2; }
.lookbook-item--big .lookbook-caption { left: 28px; bottom: 26px; }
.lookbook-item--big .lookbook-caption strong { font-size: clamp(26px, 2.6vw, 38px); }
.lookbook-caption em {
  display: inline-flex; gap: 6px; margin-top: 6px;
  font-size: 12px; font-weight: 600; font-style: normal;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--ease), opacity var(--ease);
}
.lookbook-item:hover .lookbook-caption em, .lookbook-item:focus-visible .lookbook-caption em { max-height: 24px; opacity: 1; }

/* ---------- HOME NEWS ---------- */
.home-news-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--white);
  box-shadow: 0 2px 10px rgba(16, 27, 41, .05);
  transition: transform var(--ease), box-shadow var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-thumb { display: block; aspect-ratio: 16 / 10; background: #eef0f3; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card--lead .news-thumb { aspect-ratio: 16 / 9.2; }
.news-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 22px 24px; }
.news-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.news-tag { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.news-body h3 { font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--dark); }
.news-card--lead .news-body h3 { font-size: 18px; }
.news-card:hover h3 { color: var(--primary); }
.news-body p {
  font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body .link-more { margin-top: auto; padding-top: 6px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1199px) {
  .hero-features { display: none; }
  .hero-content { padding-left: 76px; }
  .hero-media img { left: 44%; }
  .hero-slide--2 .hero-media img, .hero-slide--3 .hero-media img { left: 52%; }
  /* nền trời mờ phía sau text để không đè lên chủ thể */
  .hero-slide::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(214, 233, 249, .92) 0%, rgba(214, 233, 249, .75) 42%, rgba(214, 233, 249, 0) 62%);
  }
}

@media (max-width: 991px) {
  .hero-slide { height: 420px; }
  .hero-content { max-width: 58%; margin-left: 0; padding-left: 60px; }
  .hero-desc br { display: none; }
  .hero-desc { font-size: 15px; max-width: 340px; }
  .hero-prev { left: 12px; } .hero-next { right: 12px; }
  .hero-nav { width: 38px; height: 38px; }
  .hero-slide--2 .hero-media img, .hero-slide--3 .hero-media img { left: 50%; }
  .hero-title span { font-size: 40px; }
  .hero-title em { font-size: 34px; }
  .hero-script { font-size: 30px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .service-item { justify-content: flex-start; padding-left: 24px; }
  .service-item:nth-child(3) { border-left: 0; }

  .promo-body { padding: 0 6%; }
  .promo-text { font-size: 12px; }
  .promo .btn { margin-top: 14px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-media { max-width: 520px; margin: 0 auto; }
  .why-main { padding-bottom: 0; }

  .lookbook-grid {
    grid-template-columns: 1fr 1fr; grid-auto-rows: 200px;
    grid-template-areas: "a a" "a a" "b c" "d e";
  }
  .home-news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--lead { grid-column: 1 / -1; flex-direction: row; }
  .news-card--lead .news-thumb { flex: 1.1; aspect-ratio: auto; min-height: 260px; }
  .news-card--lead .news-body { flex: 1; justify-content: center; }
}

@media (max-width: 767px) {
  .hero-slide { height: auto; display: flex; flex-direction: column; }
  .hero-slide::before { display: none; }
  .hero-content { order: 1; max-width: none; padding: 34px 16px 0; }
  .hero-label { font-size: 11px; letter-spacing: .14em; }
  .hero-title { margin-top: 16px; }
  .hero-title span { font-size: 34px; }
  .hero-title em { font-size: 30px; margin-top: 6px; }
  .hero-desc { margin-top: 16px; font-size: 14px; }
  .hero-cta { margin-top: 20px; min-height: 48px; }
  .hero-media { order: 2; position: relative; flex: 0 0 270px; margin-top: 10px; }
  .hero-media img,
  .hero-slide--2 .hero-media img,
  .hero-slide--3 .hero-media img {
    left: 0; width: 100%; object-fit: cover; object-position: 50% 20%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
            mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  }
  .hero-slide--3 .hero-media img {
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 60%, transparent 100%);
            mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 60%, transparent 100%);
  }
  .hero-nav { display: none; }
  .hero-script { right: 16px; bottom: 26px; font-size: 26px; }
  .hero-pagination.swiper-pagination-bullets { bottom: 10px; }

  .services-grid { grid-template-columns: 1fr 1fr; padding-top: 22px; padding-bottom: 22px; gap: 16px 8px; }
  .service-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 0 4px 14px; }
  .service-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .service-item svg { width: 30px; height: 30px; }
  .service-item h3 { font-size: 13px; }

  .promo-grid { grid-template-columns: 1fr; gap: 14px; }
  .promo-title { font-size: 36px; }
  .promo-title--big { font-size: 58px; }

  .why-list { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .why-item { padding: 6px 10px; }
  .why-item:nth-child(3) { border-left: 0; }

  .slider-btn { display: none; }
  .lookbook-grid { gap: 10px; grid-auto-rows: 150px; }
  .lookbook-caption { left: 14px; right: 14px; bottom: 12px; }
  .lookbook-caption strong { font-size: 14px; }
  .lookbook-caption small { font-size: 10px; letter-spacing: .1em; }
  .lookbook-caption em { display: none; }
  .home-news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-card--lead { flex-direction: column; }
  .news-card--lead .news-thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-swiper.swiper-initialized .hero-content > *,
  .hero-swiper.swiper-initialized .hero-media img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-swiper.swiper-initialized .hero-title em { transform: rotate(-3deg) !important; }
}
