/* ==========================================================================
   Kids Brand Catalog - Brand & Product Catalog Layouts
   브랜드 쇼룸 그리드 및 신제품 룩북 갤러리 스타일
   ========================================================================== */

/* --------------------------------------------------------------------------
   메인 헤더 (꼬마옷장 시그니처 곰돌이 마스코트 & 브랜드 헤더)
   -------------------------------------------------------------------------- */
.main-header {
  padding: 16px 0 20px;
  text-align: center;
}

/* 꼬마옷장 시그니처 곰돌이 마스코트 히어로 카드 */
.brand-mascot-hero-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(54, 40, 30, 0.05);
  overflow: hidden;
  margin-bottom: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-banner-wrap {
  width: 100%;
  background-color: #FDFBF7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 6px;
  border-bottom: 1px solid #F5EEE6;
}

.brand-banner-image {
  width: 100%;
  max-width: 680px;
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

@media (max-width: 600px) {
  .brand-banner-image {
    max-height: 125px;
  }
}

.brand-header-text-block {
  padding: 18px 20px 22px;
}

.brand-tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brand-cute-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #F5ECE3;
  color: #8C5338;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
}

.brand-by-tag {
  display: inline-flex;
  align-items: center;
  background-color: #EFE9E2;
  color: #6E665D;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.brand-catalog-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 6px;
}

.brand-catalog-subtitle {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-sub);
  font-weight: 500;
}

/* 누구나 보기 쉬운 친절 이용 안내 배너 */
.welcome-guide-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFDF9;
  border: 1px solid #EFE4D6;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(194, 116, 83, 0.04);
}

.welcome-guide-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.welcome-guide-text {
  font-size: 0.88rem;
  color: #554A42;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.welcome-guide-text strong {
  color: var(--accent-terracotta);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   브랜드 검색창 & 원터치 바로가기 칩 (Brand Search & Quick Filters)
   -------------------------------------------------------------------------- */
.search-bar-wrap {
  margin: 16px auto 28px;
  max-width: 600px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  box-shadow: 0 2px 10px rgba(45, 42, 38, 0.04);
  transition: all 0.2s ease;
}

.search-input-box:focus-within {
  border-color: var(--accent-terracotta);
  box-shadow: 0 4px 16px rgba(194, 116, 83, 0.16);
}

.search-icon {
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-clear-btn {
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

/* 누구나 누르기 쉬운 원터치 브랜드 바로가기 칩 */
.brand-quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.brand-quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.quick-filter-chip:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
  transform: translateY(-1px);
}

.quick-filter-chip.active {
  background: #36281E;
  color: #FFFFFF;
  border-color: #36281E;
  box-shadow: 0 3px 10px rgba(54, 40, 30, 0.25);
}

.quick-filter-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  display: inline-block;
}

.quick-filter-chip.active .chip-dot {
  background: #FFD285;
}

/* --------------------------------------------------------------------------
   NEW ARRIVAL / NEW BRAND 하이라이트 섹션 (최신 브랜드 퀵 뷰)
   -------------------------------------------------------------------------- */
.new-arrival-section {
  margin-bottom: 32px;
}

.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-terracotta);
  border-radius: 50%;
  display: inline-block;
}

.section-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.new-brands-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  -webkit-overflow-scrolling: touch;
}

.new-brands-scroll::-webkit-scrollbar {
  display: none;
}

.new-brand-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 16px 6px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.new-brand-pill:hover,
.new-brand-pill:active {
  border-color: var(--accent-terracotta);
  transform: translateY(-1px);
}

.new-brand-pill-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.new-brand-pill-info {
  display: flex;
  flex-direction: column;
}

.new-brand-pill-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.new-brand-pill-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   메인 브랜드 카드 그리드 (Brand Cards Grid)
   모바일: 2열 / 태블릿·PC: 3~4열
   -------------------------------------------------------------------------- */
.brand-grid-section {
  margin-bottom: 48px;
}

.brand-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .brand-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .brand-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* 브랜드 단일 카드 */
.brand-card {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: pointer;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.brand-card:active {
  transform: scale(0.985);
}

/* 브랜드 커버 이미지 래퍼 */
.brand-card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.brand-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover .brand-card-cover {
  transform: scale(1.04);
}

/* 배지 그룹 (카드 상단 좌측) */
.card-badge-group {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background-color: var(--badge-new);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(194, 116, 83, 0.35);
  text-transform: uppercase;
}

.badge-items-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

/* 즐겨찾기(하트) 버튼 */
.brand-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 3;
}

.brand-fav-btn:hover {
  transform: scale(1.1);
  color: var(--heart-color);
}

.brand-fav-btn.active {
  color: var(--heart-color);
  background: #ffffff;
}

.brand-fav-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-fav-btn.active svg {
  fill: var(--heart-color);
  stroke: var(--heart-color);
  transform: scale(1.08);
}

/* 브랜드 카드 텍스트 정보 */
.brand-card-body {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .brand-card-body {
    padding: 16px 16px 18px;
  }
}

.brand-card-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.brand-card-name {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-card-en-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-left: 2px;
}

.brand-card-kr-name {
  display: none; /* 한글명을 카드 타이틀에 직접 통합 */
}

.brand-card-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.brand-card-view-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px 0;
  background-color: #FAF6F0;
  color: #36281E;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #EFE4D6;
  transition: all 0.2s ease;
}

.brand-card:hover .brand-card-view-btn {
  background-color: #36281E;
  color: #FFFFFF;
  border-color: #36281E;
}

.brand-card-view-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.brand-card:hover .brand-card-view-btn svg {
  transform: translateX(2px);
}

/* 검색 결과 없을 때 */
.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
}

.no-results-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--text-muted);
}

.no-results-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.no-results-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* ==========================================================================
   브랜드 전용 상세 페이지 헤더 (Brand Dedicated Detail Page)
   ========================================================================== */
.brand-page-nav {
  padding: 16px 0 24px;
}

.btn-back-brandlist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  text-transform: uppercase;
  padding: 6px 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-back-brandlist:hover,
.btn-back-brandlist:active {
  color: var(--text-main);
  border-color: var(--text-main);
  background-color: var(--bg-subtle);
}

.btn-back-brandlist svg {
  width: 14px;
  height: 14px;
}

/* 브랜드 히어로 소개 영역 */
.brand-detail-hero {
  text-align: center;
  padding: 10px 0 32px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.brand-detail-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.brand-detail-hero-kr {
  font-size: 0.95rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-bottom: 12px;
}

.brand-detail-hero-desc {
  max-width: 580px;
  margin: 0 auto 18px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.brand-detail-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-terracotta);
}

.brand-detail-meta-pill span {
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   브랜드 신제품 룩북 그리드 (Product Lookbook Grid)
   모바일: 2열 / PC: 4열
   -------------------------------------------------------------------------- */
.product-lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .product-lookbook-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .product-lookbook-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* 개별 상품 카드 */
.product-card {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45, 42, 38, 0.04);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card:active {
  transform: scale(0.98);
}

/* 상품 이미지 컨테이너 (3:4 비율) */
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 품절 오버레이 */
.soldout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(35, 32, 29, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.badge-soldout-lg {
  background-color: var(--badge-soldout);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 상품 카드 텍스트 */
.product-info {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .product-info {
    padding: 14px 14px 16px;
  }
}

.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.product-card.is-sold-out .product-price {
  color: var(--text-muted);
  text-decoration: line-through;
}


/* ===== 모바일 카탈로그 가독성 개선 / 가격 숨김 ===== */
.product-price,.modal-price{display:none!important}@media(max-width:700px){.brand-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.brand-card{border-radius:15px!important}.brand-card-image-wrap{aspect-ratio:4/5!important}.brand-card-content{padding:11px 10px 13px!important}.brand-card-title{font-size:1rem!important}.brand-card-desc,.brand-card-tagline{font-size:.75rem!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-lookbook-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.product-card-image-wrap{aspect-ratio:3/4!important}.product-card-info{padding:9px!important}.product-name{font-size:.88rem!important}.brand-detail-hero{padding:24px 8px!important}.brand-detail-hero-title{font-size:2rem!important}.modal-container{width:100%!important;max-height:94vh!important;border-radius:20px 20px 0 0!important;margin-top:auto!important}.modal-content-grid{grid-template-columns:1fr!important}.modal-gallery-area{padding:12px!important}.modal-info-area{padding:14px 18px 24px!important}.modal-hero-photo-wrap{max-height:52vh!important}.modal-hero-photo{max-height:52vh!important;object-fit:contain!important}}
