/* ============================================================
   TAOBAO-INSPIRED HOMEPAGE — COMPLETE CSS DESIGN SYSTEM
   Unified for Default Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* ── CSS Variables ── */
:root {
  --tb-primary: #ff5000;
  --tb-primary-dark: #e64500;
  --tb-primary-light: #ff6b35;
  --tb-tmall-red: #cc0000;
  --tb-bg-body: #f4f4f4;
  --tb-bg-card: #ffffff;
  --tb-bg-utility: #ffffff;
  --tb-text-primary: #333333;
  --tb-text-secondary: #666666;
  --tb-text-muted: #999999;
  --tb-border-color: #e5e5e5;
  --tb-border-light: #f0f0f0;
  --tb-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --tb-shadow-md: 0 2px 8px rgba(0,0,0,0.12);
  --tb-shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --tb-radius-sm: 4px;
  --tb-radius-md: 8px;
  --tb-radius-lg: 12px;
}

/* ── Base Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.taobao-layout {
  font-family: tahoma, arial, 'Noto Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--tb-text-primary);
  background: var(--tb-bg-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}
/* a:hover {
  color: var(--tb-primary);
} */

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* ── Container ── */
.tb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
}

/* ── Animations ── */
@keyframes tb-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tb-slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tb-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes tb-popIn {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes tb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tb-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ============================================================
   UTILITY BAR
   ============================================================ */

.tb-utility-bar {
  background: var(--tb-bg-utility);
  border-bottom: 1px solid #e0e0e0;
  height: 30px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--tb-text-secondary);
  position: relative;
  z-index: 9999;
}

.tb-utility-bar .tb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-utility-left,
.tb-utility-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tb-utility-bar a {
  color: var(--tb-text-secondary);
  font-size: 12px;
  transition: color 0.2s;
  white-space: nowrap;
}

.tb-utility-bar a:hover { color: var(--tb-primary); }
.tb-utility-bar .tb-login-link { color: var(--tb-primary); font-weight: 500; }

.tb-divider { color: #ddd; margin: 0 2px; }

.tb-dropdown {
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.tb-dropdown:hover .tb-dropdown-menu { display: block; }

.tb-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: var(--tb-shadow-md);
  z-index: 999;
  min-width: 120px;
  border-radius: var(--tb-radius-sm);
  padding: 6px 0;
}

.tb-dropdown-menu a {
  display: block;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--tb-text-primary);
  white-space: nowrap;
}

.tb-dropdown-menu a:hover {
  background: #fff8f5;
  color: var(--tb-primary);
}

.tb-utility-bar .fas,
.tb-utility-bar .far,
.tb-utility-bar .fab {
  font-size: 12px;
  margin-right: 2px;
  width: 14px;
  text-align: center;
}

.tb-utility-bar .tb-dropdown .fas.fa-chevron-down {
  font-size: 9px !important;
  margin-left: 4px !important;
}

.tb-dropdown-menu .fas,
.tb-dropdown-menu .far,
.tb-dropdown-menu .fab {
  width: 16px;
  text-align: center;
  margin-right: 8px;
  font-size: 12px;
  color: #999;
}

.tb-dropdown-menu a:hover .fas,
.tb-dropdown-menu a:hover .far,
.tb-dropdown-menu a:hover .fab {
  color: var(--tb-primary);
}

.tb-cart-badge {
  display: inline-block;
  background: #ff5000;
  color: #fff;
  border-radius: 50%;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
  margin-left: 2px;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */

.tb-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.tb-sticky-header.visible {
  transform: translateY(0);
}

.tb-sticky-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--tb-primary);
  letter-spacing: -1px;
  flex-shrink: 0;
}

.tb-sticky-search {
  flex: 1;
  max-width: 600px;
  display: flex;
  height: 34px;
  border: 2px solid var(--tb-primary);
  border-radius: 2px;
  overflow: hidden;
}

.tb-sticky-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
}

.tb-sticky-search button {
  background: var(--tb-primary);
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}

/* ============================================================
   MAIN HEADER
   ============================================================ */

.tb-main-header {
  background: #fff;
  padding: 12px 0 8px;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.tb-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo */
.tb-logo {
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

.tb-logo-text {
  color: var(--tb-primary);
  font-size: 36px;
  font-weight: 900;
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1;
  letter-spacing: -2px;
}

.tb-logo-sub {
  color: var(--tb-primary);
  font-size: 10px;
  text-align: center;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Search area */
.tb-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 700px;
}

.tb-search-bar {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--tb-primary);
  border-radius: 2px;
  overflow: hidden;
  height: 40px;
}

.tb-search-type {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f9f9f9;
  border-right: 1px solid #e5e5e5;
  font-size: 13px;
  cursor: pointer;
  gap: 3px;
  color: var(--tb-text-secondary);
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.tb-search-type:hover {
  background: #f0f0f0;
}

.tb-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--tb-text-primary);
  background: #fff;
}

.tb-search-input::placeholder {
  color: #bbb;
}

.tb-search-btn {
  background: var(--tb-primary);
  color: #000000;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tb-search-btn:hover {
  background: var(--tb-primary-dark);
}

.tb-hot-words {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-top: 6px;
  font-size: 12px;
}

.tb-hot-words a {
  color: var(--tb-text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
}

.tb-hot-words a:first-child {
  color: var(--tb-primary);
}

.tb-hot-words a:hover {
  color: var(--tb-primary);
}

.tb-hot-words .hot {
  color: var(--tb-primary);
}

/* Header Promo */
.tb-header-promo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff8f0, #fff2e0);
  border: 1px solid #ffe0b2;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  max-width: 230px;
}

.tb-header-promo:hover {
  box-shadow: 0 2px 8px rgba(255, 80, 0, 0.18);
}

.tb-promo-text-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-primary);
  white-space: nowrap;
}

.tb-promo-text-sub {
  font-size: 11px;
  color: #e65100;
  margin-top: 2px;
  white-space: nowrap;
}

.tb-promo-mascot {
  font-size: 30px;
  animation: tb-bounce 2s infinite;
  flex-shrink: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.tb-nav-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 8px 0;
  position: relative;
}

.tb-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 40px;
}

.tb-nav-cat-toggle {
  color: #ff5000;
  padding: 6px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
}

.tb-nav-cat-toggle i {
  margin-right: 6px;
}

/* Category Dropdown */
.tb-cat-dropdown-wrapper {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 8px 0;
  min-width: 260px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 99999999999;
}

.tb-nav-cat-toggle:hover .tb-cat-dropdown-wrapper {
  display: block;
}

.tb-cat-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tb-cat-dropdown-item {
  position: relative;
  border-bottom: 1px solid #f5f5f5;
}

.tb-cat-dropdown-item:last-child {
  border-bottom: none;
}

.tb-cat-dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

.tb-cat-dropdown-link:hover {
  background: #f5f5f5;
  color: #ff5000;
}

.tb-cat-dropdown-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tb-cat-dropdown-name {
  flex: 1;
}

.tb-cat-dropdown-arrow {
  color: #ccc;
  font-size: 16px;
  transition: transform 0.2s;
}

.tb-cat-dropdown-item:hover .tb-cat-dropdown-arrow {
  transform: rotate(90deg);
}

/* Category Flyout */
.tb-cat-flyout {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 16px;
  min-width: 500px;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1001;
}

.tb-cat-dropdown-item:hover .tb-cat-flyout {
  display: block;
}

.tb-flyout-header {
  font-weight: 600;
  color: #ff5000;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.tb-flyout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tb-flyout-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tb-flyout-parent {
  font-weight: 600;
  color: #333;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
}

.tb-flyout-parent img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tb-flyout-parent:hover {
  color: #ff5000;
}

.tb-flyout-child {
  font-size: 12px;
  color: #666;
  padding: 2px 0 2px 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.tb-flyout-child img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.tb-flyout-child:hover {
  color: #ff5000;
}

.tb-nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.tb-nav-links::-webkit-scrollbar {
  display: none;
}

.tb-nav-link {
  padding: 4px 12px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.tb-nav-link:hover {
  background: #f5f5f5;
  color: #ff5000;
}

.tb-nav-link.tmall {
  color: #ff5000;
  font-weight: 600;
}

.tb-nav-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ============================================================
   MOBILE CATEGORY BAR
   ============================================================ */

.tb-mobile-cat-bar {
  display: none;
  background: #fff;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  overflow-x: auto;
  gap: 12px;
  padding-left: 15px;
  padding-right: 15px;
  -webkit-overflow-scrolling: touch;
}

.tb-mobile-cat-bar::-webkit-scrollbar {
  display: none;
}

.tb-mobile-cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 10px;
  flex-shrink: 0;
  gap: 2px;
  min-width: 56px;
}

.tb-mobile-cat-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tb-mobile-cat-chip-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ============================================================
   HERO LAYOUT (3-column)
   ============================================================ */

.tb-home-hero {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 10px;
  display: flex;
  gap: 10px;
}

/* ── LEFT: Category Sidebar ── */
.tb-cat-sidebar {
  width: 190px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--tb-radius-sm);
  overflow: hidden;
  position: relative;
  z-index: 50;
  box-shadow: var(--tb-shadow-sm);
}

.tb-cat-promo-row {
  padding: 8px 14px 6px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #f5f5f5;
}

.tb-cat-promo-link {
  font-size: 12px;
  color: var(--tb-primary);
  cursor: pointer;
  font-weight: 500;
}

.tb-cat-promo-link:hover {
  text-decoration: underline;
}

.tb-cat-sep {
  color: #ddd;
}

.tb-cat-list {
  padding: 2px 0;
}

.tb-cat-item {
  position: relative;
}

.tb-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--tb-text-primary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
}

.tb-cat-link:hover,
.tb-cat-item:hover > .tb-cat-link {
  background: rgba(255, 80, 0, 0.07);
  color: var(--tb-primary);
}

.tb-cat-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tb-cat-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-cat-arrow {
  font-size: 10px;
  color: #bbb;
  flex-shrink: 0;
}

/* Category Flyout in sidebar */
.tb-cat-flyout {
  display: none;
  position: absolute;
  top: -2px;
  left: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.12);
  min-width: 340px;
  max-width: 520px;
  padding: 16px 20px;
  z-index: 200;
  border-radius: 0 4px 4px 0;
  animation: tb-slideIn 0.15s ease;
}

.tb-cat-item:hover .tb-cat-flyout {
  display: block;
}

/* ── CENTER: Banner + sub-promo ── */
.tb-home-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-banner-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* Banner carousel */
.tb-hero-banner {
  position: relative;
  flex: 1;
  min-height: 230px;
  background: #f5f5f5;
  border-radius: var(--tb-radius-sm);
  overflow: hidden;
}

.tb-banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.tb-banner-slide {
  min-width: 100%;
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 20px;
}

.tb-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.tb-banner-slide .tb-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}

.tb-banner-slide .tb-banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.tb-banner-slide .tb-banner-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tb-banner-slide .tb-banner-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.tb-banner-cta {
  background: rgba(255,255,255,0.25);
  border: none;
  padding: 8px 28px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.tb-banner-cta:hover {
  background: rgba(255,255,255,0.4);
  color: #fff;
}

.tb-empty-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f5f5f5;
  color: #999;
  font-size: 16px;
}

.tb-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 26px;
  height: 52px;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.tb-hero-banner:hover .tb-banner-nav {
  opacity: 1;
}

.tb-banner-nav:hover {
  background: rgba(0, 0, 0, 0.55);
}

.tb-banner-nav.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.tb-banner-nav.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.tb-banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.tb-banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.tb-banner-dot.active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

/* ── Side Panels (right of banner) ── */
.tb-home-side-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 190px;
  flex-shrink: 0;
}

.tb-side-card {
  background: #fff;
  border-radius: var(--tb-radius-sm);
  padding: 12px;
  flex: 1;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: var(--tb-shadow-sm);
}

.tb-side-card:hover {
  box-shadow: var(--tb-shadow-hover);
}

.tb-side-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tb-side-card-sub {
  font-size: 11px;
  color: var(--tb-text-muted);
  margin-bottom: 8px;
}

.tb-side-card-body {
  font-size: 12px;
  color: var(--tb-text-secondary);
  line-height: 1.6;
}

.tb-side-card-body a {
  color: var(--tb-text-secondary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 2px 0;
}

.tb-side-card-body a:hover {
  color: var(--tb-primary);
}

.tb-live-preview {
  background: linear-gradient(135deg, #ff9a9e, #ffecd2);
  border-radius: 6px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.tb-live-label {
  font-size: 12px;
  color: var(--tb-primary);
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
}

/* ── RIGHT: User Widget ── */
.tb-user-widget {
  width: 190px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--tb-radius-sm);
  overflow: hidden;
  font-size: 13px;
  box-shadow: var(--tb-shadow-sm);
  display: flex;
  flex-direction: column;
}

.tb-user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 10px;
  background: linear-gradient(135deg, #fff8f5, #fff);
  border-bottom: 1px solid #f0f0f0;
}

.tb-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.tb-user-greeting {
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-text-primary);
  margin-bottom: 4px;
}

.tb-user-info {
  text-align: center;
}

.tb-user-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.tb-benefit-tag {
  font-size: 10px;
  color: var(--tb-primary);
  border: 1px solid #ffe0d0;
  padding: 1px 6px;
  border-radius: 10px;
  background: #fff8f5;
  text-decoration: none;
}

.tb-user-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.tb-btn-login {
  width: 100%;
  background: var(--tb-primary);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tb-btn-login:hover {
  background: var(--tb-primary-dark);
}

.tb-btn-secondary {
  width: 100%;
  background: none;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  padding: 6px;
  font-size: 12px;
  color: var(--tb-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tb-btn-secondary:hover {
  border-color: var(--tb-primary);
  color: var(--tb-primary);
}

.tb-user-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #f0f0f0;
}

.tb-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 2px;
  font-size: 11px;
  color: var(--tb-text-secondary);
  border-right: 1px solid #f0f0f0;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  text-align: center;
}

.tb-stat-item:last-child {
  border-right: none;
}

.tb-stat-item:hover {
  color: var(--tb-primary);
}

.tb-stat-icon {
  font-size: 16px;
  margin-bottom: 2px;
}

.tb-stat-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--tb-text-primary);
}

.tb-user-notice {
  padding: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
}

.tb-notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--tb-text-primary);
}

.tb-notice-header a {
  font-size: 11px;
  color: var(--tb-primary);
  text-decoration: none;
}

.tb-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tb-notice-list li {
  margin-bottom: 4px;
}

.tb-notice-list a {
  font-size: 12px;
  color: var(--tb-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  text-decoration: none;
}

.tb-notice-list a:hover {
  color: var(--tb-primary);
}

.tb-coins-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
  padding: 10px;
  background: #fff8f5;
  border-radius: 8px;
}

.tb-coins-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tb-coins-title {
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.tb-coins-sub {
  font-size: 11px;
  color: #999;
}

.tb-coins-btn {
  margin-top: 4px;
  background: var(--tb-primary);
  color: #fff;
  border: none;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.tb-coins-btn:hover {
  background: var(--tb-primary-dark);
}

.tb-coin-circle {
  width: 44px;
  height: 44px;
  background: #ffd900;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 217, 0, 0.4);
  position: relative;
}

.tb-coin-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--tb-primary);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}

.tb-coin-char {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

/* ============================================================
   PROMO SECTION
   ============================================================ */

.tb-promo-section {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 10px;
}

.tb-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tb-promo-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.tb-promo-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.tb-promo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px;
}

.tb-promo-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-promo-card-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tb-promo-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  border-radius: 2px;
  line-height: 20px;
  color: #fff;
  background: var(--tb-primary);
}

.tb-promo-badge.new { background: #ff4d4f; }
.tb-promo-badge.upgrade { background: #722ed1; }
.tb-promo-badge.limited { background: #fa8c16; }
.tb-promo-badge.special { background: #52c41a; }
.tb-promo-badge.hot { background: #f5222d; }

.tb-promo-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.tb-promo-more:hover {
  color: var(--tb-primary);
}

.tb-promo-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 10px 10px;
}

/* .tb-promo-product {
  text-align: center;
  border-radius: 4px;
  padding: 4px;
  transition: background 0.15s;
} */

.tb-promo-product:hover {
  background: #f5f5f5;
}

.tb-promo-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  background: #f5f5f5;
}

.tb-promo-product-price {
  font-size: 13px;
  color: var(--tb-primary);
  font-weight: 700;
  margin-top: 2px;
}

.tb-promo-live-img {
  width: calc(100% - 20px);
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 10px;
}

.tb-promo-live-label {
  padding: 6px 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e02d2d;
  text-align: center;
}

.tb-promo-single {
  padding: 6px 10px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tb-promo-single img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #eee;
}

.tb-promo-single-info {
  flex: 1;
  min-width: 0;
}

.tb-promo-single-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.tb-promo-single-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--tb-primary);
}

.tb-promo-single-price small {
  font-size: 13px;
}

/* ============================================================
   PRODUCT FEED
   ============================================================ */

.tb-feed-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.tb-product-feed {
  margin-top: 16px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tb-feed-header {
  display: flex;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 12px;
}

.tb-feed-header::-webkit-scrollbar {
  display: none;
}

.tb-feed-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
}

.tb-feed-title-icon {
  color: var(--tb-primary);
}

.tb-feed-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.tb-feed-tabs::-webkit-scrollbar {
  display: none;
}

.tb-feed-tab {
  cursor: pointer;
  color: #666;
  background: none;
  border: none;
  font-family: inherit;
  flex-shrink: 0;
  padding: 4px 0 6px;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.tb-feed-tab:hover {
  color: var(--tb-primary);
}

.tb-feed-tab.active {
  color: var(--tb-primary);
  border-bottom-color: var(--tb-primary);
}

.tb-feed-tab-icon {
  font-size: 14px;
}

.tb-feed-refresh {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.tb-feed-refresh:hover {
  color: var(--tb-primary);
  border-color: var(--tb-primary);
  background: #fff8f5;
}

.tb-refresh-icon {
  display: inline-block;
  font-size: 13px;
}

/* ── Product Grid ── */
.tb-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 16px 8px;
}

.tb-product-card {
  background: #fff;
  cursor: pointer;
  position: relative;
  animation: tb-fadeIn 0.3s ease both;
}

.tb-product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
  border-radius: 12px;
  transition: box-shadow 0.2s;
}

.tb-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.tb-product-img-wrap:hover .tb-product-img {
  opacity: 0.85;
  transform: scale(1.02);
}

.tb-product-img-wrap:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tb-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #f5f5f5, #ececec);
  border-radius: 12px;
}

.tb-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  z-index: 2;
}

.tb-product-badge.tmall {
  background: #cc0000;
  color: #fff;
}

.tb-product-badge.featured {
  background: #3b82f6;
  color: #fff;
}

.tb-product-badge.guarantee {
  background: var(--tb-primary);
  color: #fff;
}

.tb-product-badge.flash {
  background: #e74c3c;
  color: #fff;
  animation: tb-pulse 1.5s infinite;
}

.tb-product-badge.discount {
  background: #e74c3c;
  color: #fff;
  right: 6px;
  left: auto;
  font-size: 11px;
  padding: 2px 10px;
}

.tb-product-info {
  padding: 7px 4px;
}

.tb-product-title {
  font-size: 13px;
  color: var(--tb-text-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  margin-bottom: 5px;
  font-weight: 600;
}

.tb-tmall-label {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 3px;
  font-weight: 600;
}

.tb-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.tb-product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--tb-primary);
  line-height: 1;
}

.tb-product-price .tb-currency {
  font-size: 11px;
}

.tb-original-price {
  font-size: 11px;
  color: var(--tb-text-muted);
  text-decoration: line-through;
}

.tb-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--tb-text-muted);
}

.tb-product-shop {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 58%;
}

.tb-product-sales {
  white-space: nowrap;
}

.tb-product-store {
  margin-top: 4px;
}

.tb-store-badge {
  font-size: 9px;
  color: #999;
  background: #f5f5f5;
  padding: 1px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tb-load-more-wrap {
  text-align: center;
  padding: 18px 0 24px;
  border-top: 1px solid #f0f0f0;
}

.tb-load-more-btn {
  background: #f5f5f5;
  border: none;
  color: #666;
  padding: 8px 36px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.tb-load-more-btn:hover {
  background: var(--tb-primary);
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */

.tb-footer {
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  margin-top: 24px;
  padding-top: 20px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

.tb-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.tb-footer-guarantees {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px 30px;
  padding: 16px 0 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.tb-guarantee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  flex: 1 0 auto;
}

.tb-guarantee-icon {
  font-size: 28px;
  color: var(--tb-primary);
  flex-shrink: 0;
}

.tb-guarantee-text strong {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  display: block;
}

.tb-guarantee-text span {
  font-size: 12px;
  color: #999;
}

.tb-footer-links {
  padding: 16px 0 24px;
  background: #f8f8f8;
}

.tb-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 14px;
}

.tb-footer-nav a {
  color: #666;
  font-size: 13px;
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.tb-footer-nav a:hover {
  color: var(--tb-primary);
}

.tb-footer-family {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.tb-footer-family span {
  font-weight: 700;
  color: #333;
  font-size: 13px;
}

.tb-footer-family a {
  color: #999;
  font-size: 12px;
  transition: color 0.2s;
  text-decoration: none;
}

.tb-footer-family a:hover {
  color: var(--tb-primary);
}

.tb-footer-legal {
  color: #999;
  font-size: 12px;
  line-height: 2;
  padding: 14px 0 8px;
  text-align: center;
}

.tb-footer-legal p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

.tb-footer-copyright {
  font-weight: 500;
  color: #666;
  margin-top: 6px;
}

/* ============================================================
   FLOATING SIDEBAR
   ============================================================ */

.tb-float-sidebar {
  position: fixed !important;
  right: 0px !important;
  bottom: 190px !important;
  z-index: 9999 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: visibility 0.3s ease, opacity 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #ffffff !important;
  padding: 10px;
  border-radius: 40px;
}

.tb-float-sidebar.visible {
  visibility: visible !important;
  opacity: 1 !important;
}

.tb-float-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 35px !important;
  height: 35px !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  cursor: pointer !important;
  font-size: 12px !important;
  color: #333 !important;
  transition: box-shadow 0.2s ease !important;
  padding: 0 !important;
  position: relative;
}

.tb-float-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
}

.tb-float-icon {
  font-size: 15px !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}

.tb-float-btn span:last-child {
  font-size: 14px !important;
  line-height: 1 !important;
}

.tb-back-top {
  background: #ff5000 !important;
  color: #fff !important;
  border-color: #ff5000 !important;
}

.tb-tooltip-text {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  visibility: hidden;
}

.tb-float-btn:hover .tb-tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   MOBILE BOTTOM TAB BAR
   ============================================================ */

.tb-mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  z-index: 700;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom);
}

.tb-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--tb-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
  padding: 4px 0;
}

.tb-tab-icon {
  font-size: 20px;
  margin-bottom: 2px;
  line-height: 1;
}

.tb-tab-label {
  font-size: 10px;
  font-weight: 500;
}

.tb-tab-item.active {
  color: var(--tb-primary);
}

.tb-tab-item.active .tb-tab-icon {
  animation: tb-popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ============================================================
   RESPONSIVE — TABLET (768-1023px)
   ============================================================ */

@media (max-width: 1023px) {
  .tb-utility-right span:nth-child(n+7) {
    display: none;
  }
  
  .tb-header-promo {
    display: none;
  }
  
  .tb-search-wrap {
    max-width: none;
  }
  
  .tb-logo-text {
    font-size: 28px;
  }
  
  .tb-logo-sub {
    display: none;
  }
  
  .tb-home-side-cards {
    width: 160px;
  }
  
  .tb-cat-sidebar {
    width: 160px;
  }
  
  .tb-cat-flyout {
    min-width: 280px;
  }
  
  .tb-promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tb-user-widget {
    width: 150px;
  }
  
  .tb-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .tb-cat-flyout {
    min-width: 300px;
    max-width: 400px;
  }
  
  .tb-flyout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (<768px)
   ============================================================ */

@media (max-width: 767px) {
  body.taobao-layout {
    padding-bottom: 56px;
  }
  
  .tb-utility-bar {
    display: none;
  }
  
  .tb-main-header {
    padding: 8px 0;
  }
  
  .tb-header-inner {
    gap: 10px;
    padding: 0 8px;
    flex-wrap: nowrap;
  }
  
  .tb-logo-text {
    font-size: 24px;
    letter-spacing: -1px;
  }
  
  .tb-logo-sub {
    display: none;
  }
  
  .tb-search-bar {
    height: 36px;
  }
  
  .tb-search-type {
    display: none;
  }
  
  .tb-search-btn {
    padding: 0 14px;
    font-size: 14px;
  }
  
  .tb-hot-words {
    display: none;
  }
  
  .tb-header-promo {
    display: none;
  }
  
  .tb-nav-bar {
    display: none;
  }
  
  .tb-home-hero {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  
  .tb-banner-row {
    flex-direction: column;
    gap: 0;
  }
  
  .tb-home-side-cards {
    display: none;
  }
  
  .tb-cat-sidebar {
    display: none;
  }
  
  .tb-user-widget {
    display: none;
  }
  
  .tb-mobile-cat-bar {
    display: flex;
  }
  
  .tb-hero-banner {
    height: 180px;
    border-radius: 0;
  }
  
  .tb-banner-slide {
    height: 180px;
  }
  
  .tb-banner-nav {
    opacity: 1;
    width: 22px;
    height: 40px;
    font-size: 15px;
  }
  
  .tb-promo-section {
    padding: 0 6px;
  }
  
  .tb-promo-grid {
    gap: 8px;
  }
  
  .tb-feed-area {
    padding: 0;
  }
  
  .tb-product-feed {
    margin-top: 8px;
    border-radius: 0;
  }
  
  .tb-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 10px 4px;
  }
  
  .tb-feed-header {
    padding: 8px 10px 6px;
    gap: 6px;
  }
  
  .tb-feed-title {
    font-size: 14px;
  }
  
  .tb-feed-tab {
    font-size: 12px;
    padding: 3px 8px 5px;
  }
  
  .tb-feed-tabs {
    gap: 0;
  }
  
  .tb-feed-refresh .tb-refresh-label {
    display: none;
  }
  
  .tb-feed-refresh {
    border-radius: 50%;
    padding: 4px;
    width: 26px;
    height: 26px;
    justify-content: center;
  }
  
  .tb-mobile-tabbar {
    display: flex;
  }
  
  .tb-float-sidebar {
    display: none;
  }
  
  .tb-footer-guarantees {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .tb-footer-nav {
    gap: 3px 10px;
  }
  
  .tb-footer-nav a {
    font-size: 11px;
  }
  
  .tb-product-title {
    font-size: 12px;
  }
  
  .tb-product-price {
    font-size: 14px;
  }
  
  .tb-product-info {
    padding: 6px 8px 8px;
  }
  
  .tb-original-price {
    font-size: 10px;
  }
  
  .tb-product-meta {
    font-size: 10px;
    flex-direction: column;
    gap: 2px;
  }
  
  .tb-product-shop {
    max-width: 100%;
  }
  
  .tb-load-more-btn {
    padding: 6px 22px;
    font-size: 12px;
  }
  
  .tb-banner-slide .tb-banner-title {
    font-size: 20px;
  }
  
  .tb-banner-slide .tb-banner-subtitle {
    font-size: 14px;
  }
  
  .tb-banner-cta {
    padding: 6px 20px;
    font-size: 12px;
  }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL (<480px)
   ============================================================ */

@media (max-width: 479px) {
  .tb-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .tb-promo-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .tb-product-meta {
    display: none;
  }
  
  .tb-original-price {
    display: none;
  }
  
  .tb-hero-banner {
    height: 150px;
  }
  
  .tb-banner-slide {
    height: 150px;
  }
  
  .tb-product-price {
    font-size: 13px;
  }
  
  .tb-product-title {
    font-size: 11px;
  }
  
  .tb-promo-badge {
    display: none;
  }
  
  .tb-feed-tab {
    font-size: 11px;
    padding: 2px 6px 4px;
  }
  
  .tb-feed-title {
    font-size: 13px;
  }
  
  .tb-promo-card-title {
    font-size: 12px;
  }
  
  .tb-promo-single-price {
    font-size: 15px;
  }
  
  .tb-promo-single-name {
    font-size: 12px;
  }
}

/* Spinner */
.tb-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: tbSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes tbSpin {
    to { transform: rotate(360deg); }
}

/* Cart count badge */
.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-count-badge.show {
    display: inline-flex;
}

/* Wishlist active state */
.tb-btn-wishlist.active {
    color: #ff5000 !important;
    border-color: #ff5000 !important;
    background: #fff5f0 !important;
}

/* Button loading state */
.tb-btn-add-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}