/* ==========================================================
   K-BEAUTY B2B WHOLESALE - MOBILE & TABLET RESPONSIVE OPTIMIZATION
   Strict Sharp Rectangular Theme (0 Border Radius)
   ========================================================== */

/* Touch & Tap Highlights */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   BASE DESKTOP RULES - HIDE ALL MOBILE-ONLY ELEMENTS
   ========================================================== */
.mobile-header {
  display: none;
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-overlay.active .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  height: 54px;
  padding: 0 1rem 0 1.15rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  flex-shrink: 0;
}

.mobile-drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #F1F5F9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-drawer-close-btn:active {
  background: #E2E8F0;
  transform: scale(0.95);
}

.mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0 1rem 0;
  -webkit-overflow-scrolling: touch;
}

/* Auth Card in Drawer */
.mobile-drawer-auth-wrapper {
  padding: 0.35rem 0.85rem 0.65rem;
}

.mobile-drawer-auth-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  transition: all 0.15s ease;
}

.mobile-drawer-auth-card.logged-in {
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  cursor: pointer;
}

.mobile-drawer-auth-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-drawer-auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E0F2FE;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.mobile-drawer-auth-avatar.logged-in {
  background: #0F766E;
  color: #FFFFFF;
}

.mobile-drawer-auth-info {
  flex: 1;
  min-width: 0;
}

.mobile-drawer-auth-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0F766E;
  background: #CCFBF1;
  padding: 1px 5px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.mobile-drawer-auth-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.mobile-drawer-auth-desc {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
}

.mobile-drawer-auth-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #E2E8F0;
}

.mobile-drawer-btn-login {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #0F766E;
  color: #FFFFFF;
  border: 1px solid #0F766E;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-drawer-btn-login:active {
  background: #115E59;
}

.mobile-drawer-btn-reg {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #FFFFFF;
  color: #0F766E;
  border: 1px solid #0F766E;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-drawer-btn-reg:active {
  background: #F0FDFA;
}

/* Drawer Section Header */
.mobile-drawer-section-title {
  padding: 0.75rem 1rem 0.35rem;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Drawer Items */
.mobile-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #F8FAFC;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-drawer-item:hover,
.mobile-drawer-item:active,
.mobile-drawer-item.active {
  background: #F0FDFA;
}

.mobile-drawer-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.mobile-drawer-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.mobile-drawer-item:hover .mobile-drawer-icon-wrap,
.mobile-drawer-item.active .mobile-drawer-icon-wrap {
  background: #CCFBF1;
}

.mobile-drawer-icon {
  width: 16px;
  height: 16px;
  color: #0F766E;
}

.mobile-drawer-item-body {
  flex: 1;
  min-width: 0;
}

.mobile-drawer-item-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-drawer-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}

.mobile-drawer-item-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-drawer-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 5.5px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.badge-teal {
  background: #CCFBF1;
  color: #0F766E;
}

.badge-blue {
  background: #E0F2FE;
  color: #0369A1;
}

.badge-red {
  background: #FEE2E2;
  color: #DC2626;
}

.badge-purple {
  background: #EDE9FE;
  color: #6D28D9;
}

/* 3-Column Brand Grid in Drawer */
.mobile-drawer-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.25rem 1rem 0.65rem 1rem;
}

.mobile-drawer-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FAFAFA;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.mobile-drawer-brand-card:active {
  transform: scale(0.96);
}

.brand-card-acropass {
  border-color: #A7F3D0;
  background: #F0FDF4;
}

.brand-card-dewycel {
  border-color: #C7D2FE;
  background: #EEF2FF;
}

.brand-card-verobene {
  border-color: #FDE68A;
  background: #FFFBEB;
}

.brand-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-bottom: 3px;
}

.brand-card-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.brand-card-tag {
  font-size: 9px;
  color: #64748B;
  margin-top: 1px;
}

/* Footer & Hotline */
.mobile-drawer-footer {
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.mobile-drawer-hotline-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.mobile-drawer-hotline-title {
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.mobile-drawer-hotline-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-drawer-hotline-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #0F766E;
  color: #FFFFFF;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mobile-drawer-hotline-btn:active {
  background: #115E59;
}

.mobile-drawer-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0068FF;
  color: #FFFFFF;
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 6px;
  transition: all 0.15s ease;
}

.mobile-drawer-contact-btn:active {
  background: #0052CC;
  transform: scale(0.99);
}

.mobile-drawer-sub-hours {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================
   TABLET & MOBILE BREAKPOINT (<= 1024px)
   ========================================================== */
@media (max-width: 1024px) {
  .desktop-top-bar,
  .desktop-main-header,
  .top-utility-bar {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .mobile-header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 0.85rem;
    border-bottom: 1px solid #F1F5F9;
  }

  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .mobile-hamburger-btn {
    background: none;
    border: none;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    cursor: pointer;
  }

  .mobile-hamburger-btn:hover {
    background: #F1F5F9;
  }

  .mobile-brand-logo-link {
    display: flex;
    align-items: center;
  }

  .mobile-brand-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
  }

  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-lang-btn {
    height: 34px;
    padding: 0.2rem 0.5rem;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
  }

  .mobile-cart-btn {
    position: relative;
    width: 36px;
    height: 34px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    cursor: pointer;
  }

  .mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 900;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    padding: 0 3px;
  }

  /* Full-width Search Bar Under Header Top Bar */
  .mobile-header-search-bar {
    padding: 0.45rem 0.85rem 0.6rem;
    background: #FFFFFF;
  }

  .mobile-search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .mobile-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #94A3B8;
    pointer-events: none;
  }

  .mobile-search-input {
    width: 100%;
    height: 36px;
    font-size: 12.5px;
    padding: 0 0.75rem 0 2.25rem;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    outline: none;
  }

  .mobile-search-input:focus {
    border-color: #0F766E;
    background: #FFFFFF;
  }
}

/* ==========================================================
   MOBILE SCREEN BREAKPOINT (<= 768px)
   ========================================================== */
@media (max-width: 768px) {
  html {
    font-size: 13.5px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Responsive Table Wrapper with Horizontal Scroll */
  .table-responsive-wrap,
  .compare-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border: 1px solid #E2E8F0;
  }

  .compare-table {
    min-width: 540px;
    margin-bottom: 0 !important;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.65rem 0.75rem !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* ==========================================================
     HERO BANNER CAROUSEL ON MOBILE
     ========================================================== */
  .hero-banner-carousel {
    margin-top: 0.5rem;
    border: 1px solid #E2E8F0;
  }

  .carousel-slide-item {
    aspect-ratio: 2172 / 724;
    min-height: auto;
  }

  .carousel-slide-item picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .carousel-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .carousel-nav-arrow {
    width: 32px;
    height: 32px;
    opacity: 0.85;
  }

  .carousel-nav-arrow.prev { left: 6px; }
  .carousel-nav-arrow.next { right: 6px; }

  .carousel-dots-row {
    bottom: 8px;
    gap: 6px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }
}

/* ==========================================================
   MOBILE VIEWPORT <= 767px (VERTICAL BANNER 4:5)
   ========================================================== */
@media (max-width: 767px) {
  .hero-banner-carousel {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .carousel-slide-item {
    aspect-ratio: 4 / 5 !important;
    min-height: auto !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .carousel-slide-item picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .carousel-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .carousel-dot.active {
    width: 20px;
  }

  /* ==========================================================
     CATALOG & SORTING CONTROL ON MOBILE
     ========================================================== */
  .catalog-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem !important;
    padding-top: 0.25rem !important;
  }

  .product-count-label {
    font-size: 11px;
  }

  .product-count-num {
    font-size: 1.3rem;
  }

  .desktop-filter-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0.3rem;
    gap: 0.35rem;
    scrollbar-width: none;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
  }

  .desktop-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem;
    font-size: 12px;
    gap: 0.35rem;
  }

  .filter-tab-btn .sort-icon {
    width: 13px;
    height: 13px;
  }

  /* Product Grid: 2 Columns on Mobile */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .product-card {
    padding: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .product-card-top,
  .product-thumb-wrap {
    padding: 0 !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #F1F5F9 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-card-img-wrap {
    width: 100% !important;
    height: 100% !important;
  }

  .product-card-img-wrap img,
  .product-thumb-img,
  .prod-img-default,
  .prod-img-hover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .product-card-body {
    padding: 10px 10px 14px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
  }

  .product-card-pricing {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
  }

  .product-card-bottom-row {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #F1F5F9 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .btn-wholesale-action {
    width: auto !important;
    max-width: fit-content !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.15) !important;
  }

  .wishlist-heart-btn {
    width: 32px;
    height: 32px;
    top: 4px;
    right: 4px;
  }

  .product-tags-row {
    margin-bottom: 0.4rem;
    gap: 0.25rem;
  }

  .tag-badge {
    font-size: 9.5px;
    padding: 0.15rem 0.35rem;
  }

  .product-title {
    font-size: 12px;
    line-height: 1.35;
    min-height: 32px;
    margin-bottom: 0.5rem;
  }

  .product-brand-prefix {
    font-size: 10.5px;
    margin-bottom: 1px;
  }

  .product-price-bottom {
    margin-top: auto;
  }

  .price-flex-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .shopee-price-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .shopee-price-val {
    font-size: 12px;
  }

  .b2b-wholesale-btn {
    width: 100%;
    padding: 0.45rem 0.25rem;
    font-size: 11px;
    text-align: center;
  }

  /* ==========================================================
     SINGLE PRODUCT VIEW ON MOBILE
     ========================================================== */
  #singleProductView {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding-top: 0.75rem !important;
    padding-bottom: 4rem !important;
  }

  .sp-page-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sp-breadcrumb-nav {
    font-size: 11.5px !important;
    margin-bottom: 1rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .sp-breadcrumb-nav::-webkit-scrollbar {
    display: none !important;
  }

  .sp-grid-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sp-visual-col,
  .sp-info-col {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sp-hero-image-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1 !important;
  }

  .sp-thumbs-gallery-row {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 4px !important;
  }

  .sp-thumbs-gallery-row::-webkit-scrollbar {
    display: none !important;
  }

  .sp-thumb-cell,
  .sp-thumb-box {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    box-sizing: border-box !important;
  }

  .sp-trust-card,
  .sp-brand-banner-box {
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    padding: 0.85rem 1rem !important;
    font-size: 12px !important;
  }

  .sp-product-h1 {
    font-size: 19px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 0.35rem !important;
  }

  .sp-legal-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem 0.5rem !important;
    font-size: 12px !important;
  }

  .sp-legal-code-btn {
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    word-break: break-word !important;
  }

  .sp-pricing-box,
  .sp-order-hub-card {
    padding: 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sp-wholesale-main-row {
    gap: 0.5rem !important;
  }

  .sp-wholesale-price-num {
    font-size: 24px !important;
  }

  .sp-margin-calculator-row {
    padding: 0.6rem 0.75rem !important;
    gap: 0.5rem !important;
    font-size: 11.5px !important;
  }

  .sp-specs-2x2-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-width: 100% !important;
  }

  .sp-spec-card {
    padding: 0.65rem 0.85rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sp-stepper-and-tiers {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
  }

  .sp-tier-preset-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .sp-tier-chip {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
  }

  .sp-buttons-action-row {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sp-cart-btn-outline {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    font-size: 12px !important;
    padding: 0 4px !important;
    gap: 6px !important;
    height: 46px !important;
    white-space: nowrap !important;
  }

  .sp-order-btn-primary {
    flex: 1.25 1 0% !important;
    min-width: 0 !important;
    font-size: 12.5px !important;
    padding: 0 6px !important;
    gap: 6px !important;
    height: 46px !important;
    white-space: nowrap !important;
  }

  .sp-wishlist-icon-btn {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sp-consult-vip-bar {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sp-tabs-nav-bar {
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 2rem !important;
    top: 96px !important;
  }

  .sp-tab-nav-btn {
    padding: 0.75rem 1rem !important;
    font-size: 13px !important;
  }

  .sp-tab-body-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    word-break: break-word !important;
    padding: 1rem !important;
  }

  .sp-tab-body-card img {
    max-width: 100% !important;
    height: auto !important;
  }

  .sp-related-products-section {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* ==========================================================
     COMPANY PROFILE & CAPABILITY VIEW ON MOBILE
     ========================================================== */
  #companyView, #policyView {
    padding-top: 1.25rem !important;
    padding-bottom: 3.5rem !important;
  }

  .company-intro-hero {
    padding: 2rem 1.25rem !important;
    margin-bottom: 2rem !important;
  }

  .company-intro-hero h1 {
    font-size: 1.5rem !important;
    line-height: 1.35 !important;
    margin-top: 0.85rem !important;
  }

  .company-intro-hero p {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .intro-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-top: 1.5rem !important;
  }

  .intro-trust-card {
    padding: 1rem 0.75rem !important;
  }

  .intro-trust-val {
    font-size: 13px !important;
    margin-top: 0.4rem !important;
  }

  .intro-trust-lbl {
    font-size: 11px !important;
  }

  .facility-grid-3,
  .story-grid-3 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .intro-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .intro-cat-card {
    padding: 1rem 0.75rem !important;
  }

  .intro-cat-name {
    font-size: 13px !important;
  }

  .intro-cat-desc {
    font-size: 11.5px !important;
    line-height: 1.5 !important;
  }

  .intro-legal-box {
    padding: 1.5rem 1.25rem !important;
  }

  .intro-legal-box h3 {
    font-size: 1.2rem !important;
  }

  /* ==========================================================
     POLICIES VIEW ON MOBILE
     ========================================================== */
  .smart-policy-toolbar {
    padding: 1rem !important;
  }

  .smart-policy-controls-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .smart-policy-cat-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .smart-policy-cat-scroll::-webkit-scrollbar {
    display: none;
  }

  .smart-policy-cat-btn {
    flex: 0 0 auto;
    font-size: 11.5px;
    padding: 0.4rem 0.75rem;
  }

  .policy-accordion-header {
    padding: 1rem 1.15rem !important;
    font-size: 13.5px !important;
  }

  .policy-accordion-content {
    padding: 1.25rem 1.15rem !important;
    font-size: 13px !important;
  }

  /* ==========================================================
     BRAND STORY VIEW ON MOBILE
     ========================================================== */
  .brand-tab-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem !important;
    scrollbar-width: none;
  }

  .brand-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .brand-tab-btn {
    flex: 0 0 auto;
    font-size: 12px !important;
    padding: 0.65rem 1rem !important;
  }

  .story-hero-banner {
    padding: 2rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  .story-hero-title {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
  }

  .story-hero-subtitle {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
  }

  .brand-overview-box {
    padding: 1.35rem 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .brand-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .brand-stat-val {
    font-size: 1.35rem !important;
  }

  .brand-stat-lbl {
    font-size: 11px !important;
  }

  .brand-feature-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* ==========================================================
     BENEFITS VIEW ON MOBILE
     ========================================================== */
  .benefit-nav-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0.4rem;
    scrollbar-width: none;
  }

  .benefit-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .benefit-tab-btn {
    flex: 0 0 auto;
    padding: 0.85rem 1rem !important;
  }

  .benefit-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .tier-progression-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .tier-card {
    width: 100% !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .tier-card > div:first-child {
    order: 1 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .tier-card .btn-action-order,
  .tier-card > button {
    order: 2 !important;
    margin-top: 1.25rem !important;
    width: 100% !important;
  }

  .pillar-grid-3x2,
  .voucher-grid-3,
  .onboarding-steps-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .agency-reg-banner {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem !important;
    gap: 1.5rem;
  }

  /* ==========================================================
     CART DRAWER & CERT MODAL ON MOBILE
     ========================================================== */
  .cart-drawer-overlay {
    z-index: 10000 !important;
  }

  .cart-drawer {
    z-index: 10001 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  #brandView .tab-badge {
    border-radius: 4px !important;
    font-size: 6px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    padding: 1px 4px !important;
    line-height: 1.2 !important;
  }

  .cart-drawer-header {
    position: sticky !important;
    top: 0 !important;
    background: #FFFFFF !important;
    z-index: 10 !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #E2E8F0 !important;
    flex-shrink: 0 !important;
  }

  .cart-drawer-footer {
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .cert-modal-box {
    width: 94vw !important;
    max-height: 90vh !important;
    padding: 0 !important;
    margin: 1rem auto;
  }

  .cert-modal-header {
    padding: 0.85rem 1rem !important;
  }

  .cert-modal-body {
    padding: 1rem !important;
    font-size: 12px !important;
  }

  .cert-modal-body table td {
    font-size: 11.5px !important;
    padding: 0.3rem 0 !important;
  }

  /* ==========================================================
     REDESIGNED COMPACT B2B FOOTER ON MOBILE
     ========================================================== */
  .site-footer-compact {
    padding: 1.75rem 0 1.25rem 0 !important;
    overflow-x: hidden !important;
  }

  .site-footer-compact .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .footer-compact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .footer-col-item {
    width: 100% !important;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 1.25rem;
  }

  .footer-col-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-compact-bottom {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .footer-bottom-copy {
    text-align: center !important;
    line-height: 1.5 !important;
  }

  .footer-bottom-nav {
    justify-content: center !important;
    gap: 8px 14px !important;
  }

  /* ==========================================================
     PARTNER ECOSYSTEM DUAL-ROW SLIDER ON MOBILE
     Chia đôi mỗi hàng 10 logo và chạy ngược chiều nhau
     ========================================================== */
  .partner-slider-desktop {
    display: none !important;
  }

  .partner-slider-mobile {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .partner-slider-mobile .partner-slider-wrap {
    padding: 3px 0 !important;
  }

  .partner-slider-mobile .partner-slider-track-row1 {
    display: flex !important;
    gap: 12px !important;
    width: max-content !important;
    animation: partnerAutoScrollRow1 26s linear infinite !important;
    will-change: transform;
  }

  .partner-slider-mobile .partner-slider-track-row2 {
    display: flex !important;
    gap: 12px !important;
    width: max-content !important;
    animation: partnerAutoScrollRow2 26s linear infinite !important;
    will-change: transform;
  }

  .partner-slider-mobile .partner-logo-card {
    width: 148px !important;
    height: 72px !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 12px !important;
  }

  .partner-slider-mobile .partner-logo-card img {
    max-height: 38px !important;
  }
}

