/* ─── brand.css ─── */

/* ── Navbar: force white text on dark hero background ── */
#mainNav .navbar-brand {
  color: #fff !important;
}

#mainNav.nav-scrolled .navbar-brand {
  color: var(--primary-color) !important;
}



#mainNav .custom-toggler .navbar-toggler-icon {
  filter: invert(1);
}

#mainNav.nav-scrolled .custom-toggler .navbar-toggler-icon {
  filter: none;
}

/* ── Section 1: Brand Swiper ── */
.brand-swiper-section {
  padding-top: 70px;
  /* navbar height */
  background: var(--primary-color);
}

.brand-main-swiper {
  width: 100%;
  padding: 2rem 0 3rem;
}

.brand-slide {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.brand-slide-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.brand-slide-bg-wrap picture,
.brand-slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.brand-slide-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6));
  z-index: 2;
}

.brand-slide:hover .brand-slide-bg-img {
  transform: scale(1.06);
}

.brand-slide:active {
  cursor: pointer;
}

.brand-slide:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.swiper-slide-active .brand-slide,
.brand-slide:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.brand-slide-content {
  text-align: center;
  color: #fff;
  padding: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand-slide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.15rem;
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  border-radius: 50px;
  margin-bottom: clamp(0.5rem, 1.2vw, 0.85rem);
}

.brand-slide-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.6rem;
  min-height: clamp(2.5rem, 6vw, 4rem);
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-logo--badge {
  height: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: min(140px, 40vw);
}

.brand-logo--title {
  height: clamp(70px, 12vw, 150px);
  max-width: 85%;
}

.brand-logo--title.brand-logo--burningfeel {
  height: clamp(50px, 9vw, 110px);
}


.brand-logo--category {
  height: 120px;
  max-width: min(280px, 70vw);
  margin: 0 auto;
  filter: none;
}

.brand-logo-fallback {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
}

.brand-slide-badge .brand-logo-fallback {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.brand-slide-title .brand-logo-fallback {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
}

.category-brand-name .brand-logo-fallback {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--primary-color);
}

.brand-slide-desc {
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.brand-slide-btn {
  background: #fff;
  color: var(--primary-color);
  border: none;
  padding: 0.55rem 1.85rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-slide-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* 모바일 화면에서 버튼 크기 및 브랜드 슬라이드 카드 비율 조정 */
@media (max-width: 767.98px) {
  .brand-slide {
    aspect-ratio: 3 / 4;
  }
  .brand-slide-btn {
    padding: 0.35rem 1.1rem;
    font-size: 0.75rem;
  }
}

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

.brand-swiper-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

.brand-swiper-next,
.brand-swiper-prev {
  color: #fff !important;
}

/* ── Section 2: Category Filter ── */
.category-filter-section {
  background: #faf7f5;
  padding: 3rem 0 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.category-filter-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.category-brand-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.5rem, 5vw, 3.5rem);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.category-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.category-btn {
  background: #fff;
  color: var(--text-muted);
  border: 1.5px solid #e2e8f0;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.category-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ── Section 3: Product Grid ── */
.products-section {
  padding: 3rem 0 5rem;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Product Card */
.product-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: #f0ece8;
  cursor: pointer;
  animation: cardFadeIn 0.4s ease both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-img-wrap {
  width: 100%;
  height: 100%;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: padding 0.3s ease;
}

.product-card:hover .product-card-overlay {
  padding-bottom: 1.25rem;
}

.product-card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.product-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.product-card-category {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.1rem;
}
