:root {
  --primary: #f48fb1;
  --primary-dark: #e06d95;
  --primary-light: #ffe3ee;
  --text-main: #222;
  --text-sub: #555;
  --border: #f0d5e2;
  --bg: #fff7fb;
  --link: var(--primary);
  --link-hover: var(--primary-dark);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background-color: var(--bg);
  background-image: url("../svg/cherry-blossom-bg.svg");
  background-repeat: repeat;
  margin: 0;
  top: 0 !important;
  color: var(--text-main);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

/* 페이지 로딩 전면 오버레이 */
.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  padding: 50px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 227, 238, 0.40);
  transition: opacity 0.3s ease;
}

.page-loading--hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-loading-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgb(255, 255, 255, 0.6);
  box-sizing: border-box;
  drop-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.page-loading-flower {
  display: block;
  color: var(--primary);
  animation: pageLoadingRotate 1.2s linear infinite;
  margin-bottom: -4px;
}

.page-loading-text {
  margin: 0;
  font-size: 1.0rem;
  line-height: 1;
  color: var(--primary);
}

@keyframes pageLoadingRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 언어 선택 바 */
.translate-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.translate-label {
  font-size: 0.85rem;
  color: var(--text-sub);
  flex-shrink: 0;
}

.translate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.translate-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--text-sub);
  font-size: 0.8rem;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.translate-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.translate-chip.active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.google-translate-placeholder,
.google-translate-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body .skiptranslate,
body .goog-te-gadget,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Header */
.page-header {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}

.header-logo {
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  padding: 12px 0;
}

.header-icon {
  flex-shrink: 0;
  color: var(--primary);
  line-height: 0;
  padding: 12px 0;
}

.header-icon svg {
  display: block;
}

.header-text {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.header-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0em;
  margin: 0;
  padding: 0 0 12px 0;
  border-bottom: 1px solid var(--border);
}

.header-text-sub {
  white-space: nowrap;
}

.header-text-content {
  display: flex;
  flex-direction: column;
  padding: 12px 0 0 0;
}

.header-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-sub);
}

.header-text-logo {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--primary-dark);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  display: block;
}

.header-text-brand {
  color: var(--primary-dark);
  font-size: 4rem;
  font-weight: bold;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  display: block;
  line-height: 1;
}

main {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.notice {
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* 페이지 전체 컨테이너 */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 14px 60px;
  background: transparent;
}

/* Brand Nav */
.brand-nav {
  background: var(--bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.brand-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  background-color: #fff;
  color: var(--primary-dark);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.brand-chip:hover {
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: #fff;
}

.brand-chip--empty {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* Brand Section Tag Bar (inside each brand) */
.brand-tag-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.brand-tag-bar-top {
  display: flex;
  justify-content: flex-end;
}

.brand-tag-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.brand-tag-inner--collapsed {
  max-height: 3.3em;
  overflow: hidden;
}

.brand-tag-more-btn {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.7rem;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-tag-more-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.tag-filter-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid var(--border);
  background-color: #fff;
  color: var(--text-main);
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.tag-filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-filter-chip.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #fff;
}

/* Brand Section */
.brand-section {
  background: white;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.brand-section-sticky {
  position: sticky;
  top: 0;
  z-index: 11;
  background: #fff;
  margin: -16px -14px 12px;
  padding: 16px 14px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
}

.brand-section--empty {
  opacity: 0.5;
  pointer-events: none;
}

.between-banner {
  margin-top: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.between-banner iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-img {
  max-height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  vertical-align: middle;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffe3ee'/%3E%3Cstop offset='100%25' stop-color='%23f8c5d4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' ry='12' fill='url(%23g)'/%3E%3C/svg%3E");
  background-color: var(--primary-light);
  background-size: 100% 100%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.brand-more-btn {
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 500;
}

.brand-more-btn:hover {
  color: var(--link-hover);
}

.scroll-top-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.scroll-top-float:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.scroll-top-float--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.brand-text-title {
  color: var(--text-main);
  font-weight: bold;
}

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

/* Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-img-wrap {
  width: 100%;
  padding-top: 100%;
  position: relative;
}

.product-img-wrap img {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 10px;
}

.product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.product-brand,
.product-name,
.product-tagline {
  margin: 0;
}

.product-name {
  font-weight: bold;
  font-size: 0.85rem;
}

.product-tagline {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.product-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.product-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.product-content a {
  display: inline-block;
}

.product-content img {
  display: block;
  vertical-align: middle;
}

.tag {
  background: var(--primary-light);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.65rem;
  color: var(--primary);
}

.product-cta a {
  display: block;
  text-align: center;
  padding: 6px 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.75rem;
}

.product-cta a:hover {
  background: var(--primary-dark);
  color: #fff;
}

.product-brand {
  color: var(--primary);
  font-size: 0.75rem;
}

.product-empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.9rem;
  padding: 24px 16px;
  margin: 0;
}

footer {
  font-size: 0.8rem;
  color: var(--text-sub);
}
