/* =====================================================
   SAIXI BRANDS PAGE DESIGN SYSTEM
   ===================================================== */
:root {
  --brands-blue: #0077ff;
  --brands-navy: #0f172a;
  --brands-muted: #475569;
  --brands-red: #c53030;
  --brands-orange: #dd6b20;
}

.saixi-brands-page {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: var(--brands-navy);
}

.brands-main {
  overflow: hidden;
  background: #ffffff;
  padding-bottom: 40px;
}

/* =====================================================
   TOP BANNER CAROUSEL
   ===================================================== */
.brands-top-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: #f4f8fc;
}

.brands-top-banner .brands-carousel-wrap,
.brands-top-banner .brands-swiper,
.brands-top-banner .swiper-wrapper,
.brands-top-banner .brand-slide {
  width: 100%;
  height: 100%;
}

.brands-top-banner .brands-carousel-wrap {
  position: relative;
}

.brands-top-banner .brands-swiper {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.brands-top-banner .brand-slide {
  position: relative;
  min-height: 0;
  display: block;
  overflow: hidden;
}

.brands-top-banner .brand-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.brands-carousel-tools {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brands-carousel-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d0e2ff;
  border-radius: 50%;
  color: #0077ff;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
}

.brands-carousel-btn:hover,
.brands-carousel-btn:focus-visible {
  color: #ffffff;
  border-color: #0077ff;
  background: #0077ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.25);
  outline: none;
}

.brands-carousel-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 68px;
  font-weight: 800;
}

.brands-current {
  color: #0077ff;
  font-size: 20px;
  line-height: 1;
}

.brands-divider,
.brands-total {
  color: #a0aec0;
  font-size: 16px;
  line-height: 1;
}

.brands-carousel-pagination {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.brands-carousel-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: #d9dfe8;
  opacity: 1;
  transition: background .22s ease, transform .22s ease;
  cursor: pointer;
}

.brands-carousel-pagination .swiper-pagination-bullet-active {
  background: #0077ff;
  transform: scale(1.08);
}

/* Accent Line with Paw */
.brands-mini-accent,
.brands-header-accent {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brands-blue);
  font-size: 12px;
}

.brands-mini-accent .line,
.brands-header-accent .line {
  width: 36px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

/* =====================================================
   ① HERO SECTION
   ===================================================== */
.brands-hero {
  padding-top: clamp(40px, 6vh, 64px);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  gap: 48px;
  position: relative;
}

.brands-hero-copy {
  position: relative;
  z-index: 2;
}

.brands-hero-copy h1 {
  margin: 16px 0 16px;
  color: var(--brands-navy);
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brands-hero-copy h1 span {
  color: var(--brands-blue);
}

.brands-hero-copy p {
  max-width: 440px;
  margin: 0;
  color: var(--brands-muted);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.brands-hero-paw {
  position: absolute;
  left: -20px;
  bottom: -40px;
  color: rgba(0, 119, 255, 0.05);
  font-size: 110px;
  transform: rotate(-15deg);
  pointer-events: none;
}

.brands-hero-visual {
  position: relative;
}

.brands-hero-card {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #eaf4ff;
  box-shadow: 0 16px 40px rgba(0, 119, 255, 0.07);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.brands-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 119, 255, 0.12);
}

.brands-hero-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =====================================================
   ② STATS COUNTER BAR
   ===================================================== */
.brands-stats {
  margin-top: 10px;
  margin-bottom: 48px;
  padding: 26px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.brands-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brands-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e2e8f0;
}

.brands-stat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 19px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.brands-stat-icon.blue   { background: linear-gradient(135deg, #0077ff, #0055cc); }
.brands-stat-icon.green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.brands-stat-icon.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.brands-stat-icon.pink   { background: linear-gradient(135deg, #ec4899, #db2777); }

.brands-stat-item strong {
  display: block;
  color: var(--brands-navy);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
}

.brands-stat-item p {
  margin: 3px 0 0;
  color: var(--brands-muted);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

/* =====================================================
   ③ WANPY BRAND STORY SECTION (Using brands-1.png)
   ===================================================== */
.brands-story {
  margin-bottom: 56px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 52px;
  align-items: center;
  border-radius: 24px;
  background: #faf8f5;
  border: 1px solid #f0eae1;
  box-shadow: none;
  margin-top: 56px;
}

.brands-story-media {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.brands-story-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
}

.brands-story-figure:hover {
  transform: none;
}

.brands-story-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.brands-story-copy h2 {
  margin: 0 0 16px;
  color: var(--brands-navy);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brands-story-copy h2 .highlight-red {
  color: var(--brands-red);
  font-weight: 900;
}

.brands-story-line {
  width: 48px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--brands-blue);
  border-radius: 999px;
}

.brands-story-copy p {
  margin: 0 0 24px;
  color: var(--brands-muted);
  font-size: 14.5px;
  line-height: 1.75;
  font-weight: 500;
}

.brands-story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brands-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.brands-story-link:hover {
  transform: translateX(5px);
}

/* =====================================================
   ④ PRODUCT CATEGORY SECTION
   ===================================================== */
.brands-category {
  padding: 10px 0 40px;
}

.brands-header {
  text-align: center;
  margin-bottom: 36px;
}

.brands-header-title {
  margin: 0 0 10px;
  color: var(--brands-navy);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.brands-header-title span {
  color: var(--brands-blue);
}

.brands-header-accent {
  justify-content: center;
  margin-bottom: 12px;
}

.brands-header-sub {
  margin: 0;
  color: var(--brands-muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.brands-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.brands-category-swiper {
  min-width: 0;
  padding: 8px 0;
  overflow: hidden;
}

.brands-category-swiper .swiper-slide {
  height: auto;
}

.brands-category-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.brands-category-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--brands-blue);
  border-radius: 50%;
  background: #fff;
  color: var(--brands-blue);
  cursor: pointer;
}

.brands-category-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.brands-category-controls .swiper-button-lock {
  display: none;
}

.brands-category-card {
  position: relative;
  border-radius: 24px;
  padding: 0;
  display: block;
  overflow: hidden;
  aspect-ratio: 1676 / 914;
  background: #eef6ff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.brands-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.brands-category-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brands-category-card:hover img {
  transform: scale(1.06);
}

.brands-story-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brands-story-figure:hover img {
  transform: scale(1.04);
}

.brands-cta-btn {
  position: relative;
  overflow: hidden;
}

.brands-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: shimmerBtn 4.5s infinite;
}

@keyframes shimmerBtn {
  0% { transform: translateX(-150%) skewX(-25deg); }
  25%, 100% { transform: translateX(250%) skewX(-25deg); }
}

.brands-category-copy {
  position: relative;
  z-index: 2;
}

.brands-category-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  font-size: 18px;
}

.wet-food-card .brands-category-icon {
  color: var(--brands-blue);
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.15);
}

.treat-card .brands-category-icon {
  color: var(--brands-orange);
  box-shadow: 0 4px 14px rgba(221, 107, 32, 0.15);
}

.brands-category-copy h3 {
  margin: 0 0 6px;
  color: var(--brands-navy);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.wet-food-card .brands-category-copy h3 span {
  color: var(--brands-blue);
}

.treat-card .brands-category-copy h3 span {
  color: var(--brands-orange);
}

.brands-category-rule {
  width: 40px;
  height: 2px;
  margin-bottom: 14px;
  border-radius: 999px;
}

.wet-food-card .brands-category-rule { background: var(--brands-blue); }
.treat-card .brands-category-rule    { background: var(--brands-orange); }

.brands-category-copy p {
  margin: 0 0 20px;
  color: var(--brands-muted);
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 500;
}

.brands-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.wet-food-card .brands-category-btn {
  border: 1.5px solid var(--brands-blue);
  color: var(--brands-blue);
  background: transparent;
}

.treat-card .brands-category-btn {
  border: 1.5px solid var(--brands-orange);
  color: var(--brands-orange);
  background: transparent;
}

.wet-food-card .brands-category-btn:hover {
  background: var(--brands-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.25);
}

.treat-card .brands-category-btn:hover {
  background: var(--brands-orange);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(221, 107, 32, 0.25);
}

.brands-category-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}

.brands-category-media img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

/* =====================================================
   ⑤ BOTTOM CTA BANNER
   ===================================================== */
.brands-cta {
  width: 100%;
  box-sizing: border-box;
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 0;
}

.brands-cta-card {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 48px;
  background: linear-gradient(135deg, #eef6ff 0%, #e0f0ff 100%);
  border: 1px solid #d6e8fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brands-cta-visual {
  margin: 0;
  flex-shrink: 0;
}

.brands-cta-visual img {
  height: 190px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brands-cta-copy {
  flex-grow: 1;
}

.brands-cta-copy h2 {
  margin: 0 0 10px;
  color: var(--brands-navy);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.brands-cta-copy h2 span {
  color: var(--brands-blue);
}

.brands-cta-copy p {
  margin: 0;
  color: var(--brands-muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
  max-width: 600px;
}

.brands-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--brands-blue);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.25);
  transition: all 0.25s ease;
}

.brands-cta-btn:hover {
  background: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 119, 255, 0.35);
}

.brands-cta-paw {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 170px;
  color: rgba(0, 119, 255, 0.08);
  pointer-events: none;
  transform: rotate(-15deg);
}

/* =====================================================
   ANIMATIONS SYSTEM
   ===================================================== */
[data-animate="slide-elastic"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.25, 1.25, 0.5, 1);
  will-change: opacity, transform;
}

[data-animate="slide-elastic"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="pop-in"] {
  opacity: 0;
  transform: scale(0.88) translateY(24px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.25, 1.35, 0.5, 1);
  will-change: opacity, transform;
}

[data-animate="pop-in"].is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="tilt-up"] {
  opacity: 0;
  transform: perspective(1000px) rotateX(16deg) translateY(40px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="tilt-up"].is-visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

[data-animate="clip-reveal"] {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.6s ease, transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="clip-reveal"].is-visible {
  opacity: 1;
  transform: scale(1);
}

.delay-1 { transition-delay: 0.16s !important; }
.delay-2 { transition-delay: 0.32s !important; }

/* =====================================================
   RESPONSIVE DESIGN (Multi-Device Adaptation & Spacing)
   ===================================================== */
.saixi-brands-page .container {
  padding-left: clamp(20px, 4vw, 48px) !important;
  padding-right: clamp(20px, 4vw, 48px) !important;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .brands-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 28px;
    text-align: center;
  }

  .brands-mini-accent {
    justify-content: center;
  }

  .brands-hero-copy p {
    margin: 0 auto;
  }

  .brands-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 28px 28px;
  }

  .brands-stat-item:not(:last-child)::after {
    display: none;
  }

  .brands-story {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 32px;
    text-align: center;
  }

  .brands-story-line {
    margin: 0 auto 20px;
  }

  .brands-story-media {
    max-width: 100%;
  }

  .brands-category-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wet-food-card,
  .treat-card {
    grid-template-columns: 1fr 1fr;
    padding: 32px 28px;
  }

  .brands-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 36px 32px;
    gap: 24px;
  }

  .brands-cta-copy p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .brands-top-banner {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  .brands-top-banner .brands-carousel-wrap,
  .brands-top-banner .brands-swiper,
  .brands-top-banner .swiper-wrapper,
  .brands-top-banner .brand-slide {
    height: 100% !important;
  }

  .brands-top-banner .brand-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .brands-carousel-tools {
    left: 20px;
    bottom: 20px;
    gap: 12px;
  }

  .brands-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .brands-hero {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .brands-hero-copy h1 {
    font-size: clamp(28px, 6.5vw, 40px);
  }

  .brands-hero-copy p {
    font-size: 14px;
  }

  .brands-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 20px;
    margin-top: 24px;
    margin-bottom: 36px;
    border-radius: 18px;
  }

  .brands-stat-item {
    gap: 12px;
  }

  .brands-stat-icon {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .brands-stat-item strong {
    font-size: 22px;
  }

  .brands-stat-item p {
    font-size: 12px;
  }

  .brands-story {
    padding: 32px 24px;
    margin-top: 36px;
    margin-bottom: 36px;
    border-radius: 20px;
  }

  .brands-story-copy h2 {
    font-size: clamp(22px, 5.5vw, 30px);
  }

  .brands-story-copy p {
    font-size: 13.5px;
    margin-bottom: 20px;
  }

  .wet-food-card,
  .treat-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 20px;
    text-align: center;
    border-radius: 20px;
  }

  .wet-food-card .brands-category-copy,
  .treat-card .brands-category-copy {
    padding: 0;
  }

  .brands-category-icon {
    margin: 0 auto 12px;
  }

  .brands-category-rule {
    margin: 0 auto 14px;
  }

  .brands-category-media img {
    height: 190px;
  }

  .treat-card .brands-category-media {
    order: 2;
  }

  .brands-cta {
    margin-top: 2px;
    margin-bottom: 0px;
  }

  .brands-cta-card {
    padding: 32px 24px;
    gap: 20px;
    border-radius: 20px;
  }

  .brands-cta-visual img {
    height: 140px;
  }

  .brands-cta-copy h2 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .brands-cta-copy p {
    font-size: 13.5px;
  }

  .brands-cta-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .saixi-brands-page .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .brands-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px;
  }

  .brands-story {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .wet-food-card,
  .treat-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .brands-cta-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
}
