/* ==========================================================
   K-BEAUTY B2B WHOLESALE - CATALOG & PRODUCT DISPLAY
   ========================================================== */

/* Banner Carousel */
.banner-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #0F172A;
}

.banner-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.banner-slide {
  min-width: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.6);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

.banner-nav-btn:hover {
  background: #0F766E;
}

.banner-nav-btn.prev { left: 1rem; }
.banner-nav-btn.next { right: 1rem; }

.banner-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 24px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.carousel-dot.active {
  background: #0F766E;
}

/* Category & Filter Tabs */
.filter-tabs-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.desktop-filter-tabs {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.filter-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.filter-tab-btn:hover {
  color: #0F172A;
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.filter-tab-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 800;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.filter-tab-btn .sort-icon {
  width: 14px;
  height: 14px;
  color: #94A3B8;
  transition: color 0.2s;
}

.filter-tab-btn:hover .sort-icon {
  color: #0F172A;
}

.filter-tab-btn.active .sort-icon {
  color: #38BDF8;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.product-card:hover {
  border-color: #0F766E;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  cursor: pointer;
  overflow: hidden;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-img {
  transform: scale(1.04);
}

.wishlist-heart-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #E2E8F0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.product-tags-row {
  padding: 0.75rem 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-title-wrap {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-brand-prefix {
  color: #0F766E;
  font-weight: 900;
  margin-right: 0.35rem;
}

.product-price-bottom {
  padding: 0.75rem;
  border-top: 1px solid #F1F5F9;
  background: #FAFAFA;
}

.price-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shopee-price-group {
  display: flex;
  flex-direction: column;
}

.shopee-badge {
  font-size: 10px;
  font-weight: 800;
  color: #EA580C;
}

.shopee-price-val {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
}

.b2b-wholesale-btn {
  background: #0F766E;
  color: #FFFFFF;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.b2b-wholesale-btn:hover {
  background: #115E59;
}

/* Single Product View */
.single-product-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.sp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .sp-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.sp-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.sp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.sp-thumb-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  background: #F8FAFC;
  overflow: hidden;
}

.sp-thumb-cell.active {
  border: 2px solid #0F766E;
}

.sp-thumb-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-meta-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sp-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #E2E8F0;
  font-size: 13px;
}
