/* Global rounded corners system active */
button, input, select, textarea { border-radius: 8px; }
/* K-Beauty B2B Wholesale Design System & Layout - Matching kbeautyhub.vn */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-be-vietnam: 'Be Vietnam Pro', sans-serif;
  --font-inter: 'Inter', sans-serif;
  --font-noto-sans-kr: 'Noto Sans KR', sans-serif;
  --font-sans: 'Be Vietnam Pro', 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-text-main: #000000;
  --color-text-sub: #4B5563;
  --color-text-muted: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-bg-light: #F9FAFB;
  --color-bg-footer: #F9F9F9;
  --color-red: #DC2626;
  --color-green: #15803D;
  --max-w: 1440px;
  --header-top-h: 48px;
  --header-main-h: 80px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Utility classes */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none !important; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-red { color: var(--color-red); }

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Desktop Top Bar */
.desktop-top-bar {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-top-h);
  position: relative;
  z-index: 3000;
}

@media (min-width: 1024px) {
  .desktop-top-bar {
    display: block;
  }
}

.top-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-box-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.top-search-input {
  width: 224px;
  background-color: #F3F4F6;
  border: 1px solid transparent;
  border-radius: 8px;
  height: 32px;
  font-size: 11px;
  font-family: inherit;
  padding: 0 2rem 0 0.75rem;
  outline: none;
  transition: all 0.2s ease;
}

.top-search-input:focus {
  background-color: #FFFFFF;
  border-color: #D1D5DB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  width: 260px;
}

.top-search-submit {
  position: absolute;
  right: 0.5rem;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.top-search-submit:hover {
  color: #000000;
}

.icon-btn-clock {
  width: 32px;
  height: 32px;
  background-color: #F3F4F6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: background-color 0.2s, color 0.2s;
}

.icon-btn-clock:hover {
  background-color: #E5E7EB;
  color: #000000;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 11px;
  color: #6B7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.top-nav-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav-group button, .top-nav-group a {
  color: #6B7280;
  transition: color 0.2s ease;
}

.top-nav-group button:hover, .top-nav-group a:hover {
  color: #000000;
}

.top-nav-group a.reg-link {
  color: #DC2626;
}

.top-divider {
  width: 1px;
  height: 12px;
  background-color: #E5E7EB;
}

.cart-count-badge {
  background: #000000;
  color: #FFFFFF;
  border-radius: 9999px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  margin-left: 2px;
}

.dot-notification {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 6px;
  height: 6px;
  background-color: #DC2626;
  border-radius: 50%;
}

/* Desktop Main Nav */
.desktop-main-header {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-main-h);
  position: relative;
  z-index: 1000;
}

@media (min-width: 1024px) {
  .desktop-main-header {
    display: block;
  }
}

.main-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.brand-logo-btn {
  flex-shrink: 0;
  margin-right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease;
}

.brand-logo-btn:active {
  transform: scale(0.97);
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brand-logo-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #000000;
  line-height: 1.1;
}

.brand-logo-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.main-nav-bar {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}

.nav-item-btn {
  height: 100%;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-item-btn:hover, .nav-item-btn.active {
  color: var(--color-primary);
}

.nav-indicator-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-btn:hover .nav-indicator-line,
.nav-item-btn.active .nav-indicator-line {
  transform: scaleX(1);
}

/* Mobile Header */
.mobile-header {
  display: block;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }
}

.mobile-top-search-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  align-items: center;
}

.mobile-search-form {
  position: relative;
  width: 100%;
}

.mobile-k-symbol {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  border-radius: 6px;
}

.mobile-search-input {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: #F9FAFB;
  padding-left: 2.75rem;
  padding-right: 2.5rem;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.mobile-search-input:focus {
  border-color: var(--color-primary);
  background-color: #FFFFFF;
}

.mobile-search-submit {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
}

.mobile-cart-btn {
  position: relative;
  height: 40px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
  color: #374151;
}

.mobile-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
}

.mobile-category-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.6rem 1rem 0.75rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mobile-category-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-cat-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  padding-bottom: 2px;
  position: relative;
  transition: color 0.2s ease;
}

.mobile-cat-pill.active {
  color: var(--color-primary);
}

.mobile-cat-pill.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* ==========================================================================
   HERO BANNER CAROUSEL
   ========================================================================== */
.hero-slider-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #F3F4F6;
  margin-bottom: 0.5rem;
}

.hero-slider-track {
  display: flex;
  height: calc(55.55vw - 18px);
  max-height: 390px;
  min-height: 200px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

@media (min-width: 768px) {
  .hero-slider-track {
    height: 390px;
  }
}

.hero-slide-item {
  position: relative;
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-badge-container {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-badge-container {
    bottom: 2.5rem;
    right: 3rem;
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #000000;
  padding: 0.4rem 0.9rem;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .hero-badge-pill {
    padding: 0.9rem 2.75rem;
    font-size: 12px;
    letter-spacing: 0.2em;
  }
}

.hero-badge-pill:hover {
  background: #000000;
  color: #FFFFFF;
}

.slider-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: all 0.2s ease;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .slider-nav-arrow {
    display: flex;
  }
}

.slider-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow-prev { left: 1rem; }
.slider-arrow-next { right: 1rem; }

.slider-indicators {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 30;
}

@media (min-width: 768px) {
  .slider-indicators {
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.6rem;
  }
}

.indicator-dot {
  height: 6px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  width: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.indicator-dot.active {
  background: #000000;
  width: 28px;
}

@media (min-width: 768px) {
  .indicator-dot.active {
    width: 40px;
  }
}

/* ==========================================================================
   PRODUCT TOOLBAR & FILTERS
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #9CA3AF;
  padding-bottom: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.product-count-label {
  font-size: 11px;
  font-weight: 900;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.product-count-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .product-count-num {
    font-size: 1.5rem;
  }
}

/* Desktop Filter Tabs Handled in css/catalog.css */

.mobile-filter-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 900;
  color: #374151;
  background: #FFFFFF;
}

@media (min-width: 768px) {
  .mobile-filter-select-btn {
    display: none;
  }
}

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.25rem;
    row-gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 1.5rem;
    row-gap: 2rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease;
}

.product-thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #FFFFFF;
  margin-bottom: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #F3F4F6;
}

.product-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

.wishlist-heart-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 10;
}

.wishlist-heart-btn:hover {
  background: #FFFFFF;
  color: #EF4444;
  transform: scale(1.1);
}

.wishlist-heart-btn.liked {
  color: #EF4444;
}

.wishlist-heart-btn.liked svg {
  fill: #EF4444;
}

.product-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 20px;
  margin-bottom: 0.35rem;
  align-items: center;
}

.tag-badge {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.tag-badge.green {
  background-color: #F0FDF4;
  color: #15803D;
  border-color: #BBF7D0;
}

.tag-badge.blue {
  background-color: #EFF6FF;
  color: #2563EB;
  border-color: #DBEAFE;
}

.tag-badge.red {
  background-color: #FEF2F2;
  color: #DC2626;
  border-color: #FEE2E2;
}

.product-title-wrap {
  display: block;
  color: inherit;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 13px;
  color: #1F2937;
  line-height: 1.35;
  height: 2.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
  transition: color 0.2s;
  cursor: pointer;
}

.product-title:hover {
  text-decoration: underline;
}

.product-brand-prefix {
  font-weight: 800;
  color: #111827;
  margin-right: 0.4rem;
}

.product-price-bottom {
  margin-top: auto;
  padding-top: 0.35rem;
}

.price-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: nowrap;
  width: 100%;
}

.shopee-price-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  min-width: 0;
}

.shopee-badge {
  font-size: 8.5px;
  font-weight: 800;
  color: #374151;
  background-color: #F3F4F6;
  padding: 0.1rem 0.3rem;
  border-radius: 6px;
}

.shopee-price-val {
  font-size: 13px;
  font-weight: 900;
  color: #000000;
}

.b2b-wholesale-btn {
  background-color: #2563EB;
  color: #FFFFFF;
  border: 1px solid #1D4ED8;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 900;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.b2b-wholesale-btn:hover {
  background-color: #1D4ED8;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

/* Load More Section */
.load-more-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.load-more-count {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
}

.load-more-btn {
  border: 1px solid #000000;
  padding: 0.75rem 2.5rem;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: #FFFFFF;
  color: #000000;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: #000000;
  color: #FFFFFF;
}

.load-more-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-footer);
  border-top: 1px solid var(--color-border);
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  color: #4B5563;
  margin-top: 4rem;
}

@media (min-width: 1024px) {
  .site-footer {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 5fr 2fr 2fr 3fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
  }
}

.footer-company-logo {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 60px;
  margin-bottom: 1.25rem;
}

.footer-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  color: #4B5563;
}

.footer-info-text .company-name {
  font-weight: 800;
  font-size: 13px;
  color: #1F2937;
  margin-bottom: 0.25rem;
}

.bct-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  width: fit-content;
  color: #1D4ED8;
  font-weight: 800;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bct-badge-icon {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background-color: #1D4ED8;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 11px;
  font-weight: 500;
}

.footer-nav-list a, .footer-nav-list button {
  color: #4B5563;
  transition: color 0.2s;
  text-align: left;
}

.footer-nav-list a:hover, .footer-nav-list button:hover {
  color: #000000;
}

.cs-phone-huge {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 11px;
  color: #6B7280;
}

@media (min-width: 1024px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
  }
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 700;
}

.footer-policy-links a:hover {
  color: #000000;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  transition: color 0.15s;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: #000000;
}

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 74px;
  right: 1rem;
  z-index: 85;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .back-to-top-btn {
    bottom: 2rem;
    right: 2rem;
  }
}

/* ==========================================================================
   MODAL & CART DRAWER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  color: #4B5563;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #000000;
  color: #FFFFFF;
}

.cart-close-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

.cart-continue-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  z-index: 10001;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--color-border-light);
  border-radius: 8px; overflow: hidden;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.qty-btn:hover {
  background-color: #F3F4F6;
}

.qty-input {
  width: 36px;
  height: 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
}

.cart-total-amount {
  font-size: 1.2rem;
  font-weight: 900;
  color: #000000;
}

.checkout-btn {
  width: 100%;
  background: #000000;
  color: #FFFFFF;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
}

.checkout-btn:hover {
  background: var(--color-primary);
}

/* Tier Pricing Table inside Product Modal */
.tier-pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 12px;
}

.tier-pricing-table th, .tier-pricing-table td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.tier-pricing-table th {
  background-color: #F9FAFB;
  font-weight: 700;
  color: #374151;
}

.tier-pricing-table td.discount {
  color: var(--color-primary);
  font-weight: 700;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  background: #111827;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: toastFadeIn 0.3s ease, toastFadeOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Single Product Details */
.sp-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .sp-layout-grid {
    grid-template-columns: 460px 1fr;
    gap: 3.5rem;
  }
}
.sp-gallery-box {
  width: 100%;
}
.sp-main-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #E5E7EB;
  border-radius: 12px; overflow: hidden;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.sp-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.sp-thumbs-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.sp-thumb-item {
  width: 72px;
  height: 72px;
  border: 2px solid #E5E7EB;
  border-radius: 8px; overflow: hidden;
  overflow: hidden;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s ease;
}
.sp-thumb-item.active, .sp-thumb-item:hover {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.sp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sp-info-box {
  display: flex;
  flex-direction: column;
}
.sp-product-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.sp-verify-code-link {
  font-size: 12px;
  color: #6B7280;
  text-decoration: underline;
  margin-bottom: 1rem;
  display: inline-block;
}
.sp-offer-card {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.sp-offer-title {
  font-size: 12px;
  font-weight: 800;
  color: #DC2626;
  text-transform: uppercase;
}
.sp-offer-badge-red {
  background: #DC2626;
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.sp-divider-line {
  height: 1px;
  background: #E5E7EB;
  margin-bottom: 1.25rem;
}
.sp-specs-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.sp-spec-row {
  display: flex;
  align-items: center;
  font-size: 13.5px;
}
.sp-spec-label {
  width: 150px;
  color: #6B7280;
  font-weight: 600;
}
.sp-spec-val {
  color: #1F2937;
  font-weight: 700;
}
.sp-spec-row.shopee-row .sp-spec-val {
  color: #9CA3AF;
  text-decoration: line-through;
}
.sp-spec-row.wholesale-row .sp-spec-val {
  color: #DC2626;
  font-size: 1.25rem;
  font-weight: 900;
}
.sp-stepper-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  overflow: hidden;
  width: 140px;
  height: 40px;
  margin-bottom: 1.25rem;
}
.sp-stepper-btn {
  width: 40px;
  height: 100%;
  background: #F9FAFB;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-stepper-input {
  flex: 1;
  height: 100%;
  border: none;
  border-left: 1px solid #D1D5DB;
  border-right: 1px solid #D1D5DB;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  outline: none;
  background: #FFFFFF;
}
.sp-total-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 1.5rem;
}
.sp-total-label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}
.sp-total-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111827;
}
.sp-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 48px;
  gap: 0.65rem;
  align-items: center;
}
.sp-btn-cart {
  height: 48px;
  border: 1px solid #111827;
  background: #FFFFFF;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}
.sp-btn-order {
  height: 48px;
  background: #111827;
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}
.sp-btn-consult {
  height: 48px;
  background: #1E3A8A;
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}
.sp-btn-wishlist {
  height: 48px;
  width: 48px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #6B7280;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sp-btn-wishlist.liked {
  border-color: #EF4444;
  color: #EF4444;
  background: #FEF2F2;
}
.sp-detail-tabs-nav {
  display: flex;
  border-bottom: 2px solid #E5E7EB;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.sp-tab-item-btn {
  padding: 0.85rem 1.5rem;
  font-size: 13.5px;
  font-weight: 800;
  color: #6B7280;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.sp-tab-item-btn.active, .sp-tab-item-btn:hover {
  color: #111827;
  border-bottom-color: #111827;
}
.tab-content-detail {
  display: none;
}
.tab-content-detail.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}
