/* ============================================
   STYLUM - Cambodia Brand Outlet
   Main Stylesheet
   ============================================ */

/* === RESET & BASE === */
* {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 2px; }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.anim-fade { animation: fadeIn .3s ease; }
.anim-up { animation: slideUp .4s ease; }
.anim-right { animation: slideRight .3s ease; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* === PRODUCT CARDS === */
.prod-card {
  transition: all .2s ease;
}
.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}
.prod-card:hover .prod-img {
  transform: scale(1.05);
}
.prod-img {
  transition: transform .4s ease;
}

/* === PAGE SECTIONS === */
.page-section {
  display: none;
  opacity: 0;
}
.page-section.active {
  display: block;
  animation: fadeIn .25s ease forwards;
}

/* === SCROLL HORIZONTAL === */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* === BRAND TABS === */
.brand-tab {
  transition: all .15s ease;
  position: relative;
}
.brand-tab.active {
  color: #ea580c;
  font-weight: 700;
}
.brand-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ea580c;
}

/* === CATEGORY CHIPS === */
.cat-chip {
  transition: all .15s ease;
}
.cat-chip.active {
  background: #171717;
  color: #fff;
}

/* === SIZE BUTTONS === */
.sz-btn {
  transition: all .15s;
}
.sz-btn.sel {
  background: #171717;
  color: #fff;
  border-color: #171717;
}
.sz-btn.rec::before {
  content: 'AI';
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 8px;
  background: #ea580c;
  color: #fff;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
  line-height: 13px;
}

/* === FITTING PROGRESS === */
.fit-progress {
  background: linear-gradient(90deg, #ea580c, #fb923c);
  transition: width .5s ease;
}

/* === TOAST === */
.toast {
  animation: slideUp .3s ease, fadeIn .3s ease;
}

/* === BANNER (Infinite Loop Carousel) === */
#banner-viewport {
  overflow: hidden;
  position: relative;
}
#banner-track {
  display: flex;
  will-change: transform;
}
#banner-track.animating {
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
#banner-track .banner-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

/* === LINE CLAMP (for product names) === */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
