/* ========================================================
   FORGIRLS - E-COMMERCE & TIKTOK SHOP NATIVE PDP STYLES
   Design System: Playfair Display + Montserrat / Plus Jakarta Sans
   Brand Colors: Soft Pink (#F5D6DC), Rose (#E8A9B8), Cream (#FFF7F8)
   TikTok Commerce Accents: #FE2C55, #FF6A00, #00B578
   ======================================================== */

:root {
  /* ForGirls Brand Palette */
  --fg-pink: #F5D6DC;
  --fg-rose: #E8A9B8;
  --fg-blush: #FADFE5;
  --fg-cream: #FFF7F8;
  --fg-dark: #1F1F1F;
  --fg-charcoal: #2A2A2A;
  --fg-gray: #6D6D6D;
  --fg-light-gray: #F8F8F9;
  --fg-border: #EFEFEF;
  --fg-white: #FFFFFF;

  /* TikTok Shop Vibrant Commerce Accents */
  --tt-red: #FE2C55;
  --tt-red-dark: #E02047;
  --tt-orange: #FF6A00;
  --tt-green: #00B578;
  --tt-yellow: #FFB800;
  --tt-bg: #F4F4F6;

  /* Typography: Chuẩn 100% tiếng Việt với Be Vietnam Pro */
  --font-serif: 'Playfair Display', 'Be Vietnam Pro', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --app-max-width: 480px;
  --header-height: 54px;
  --bottom-bar-height: 60px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #E8E5E8;
  color: var(--fg-dark);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Device Viewport Wrapper (Desktop Simulator & Mobile Native) */
.device-container {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  background: #FFFFFF;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: max-width 0.3s ease;
}

.device-container.mode-wide {
  max-width: 1000px;
}

/* Device Switcher Bar (For testing desktop vs mobile) */
.device-switcher-bar {
  width: 100%;
  background: var(--fg-dark);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
}

.switcher-brand {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.switcher-brand span.sparkle {
  color: #FFD700;
}

.switcher-buttons {
  display: flex;
  gap: 6px;
}

.switcher-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 11px;
  transition: var(--transition);
}

.switcher-btn.active, .switcher-btn:hover {
  background: var(--fg-rose);
  color: #fff;
  border-color: var(--fg-rose);
}

/* ========================================================
   STOREFRONT: TOP NAVIGATION BAR
   ======================================================== */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fg-border);
  padding: 10px 14px;
}

.store-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fg-dark);
  line-height: 1;
}

.brand-logo-text span {
  color: var(--fg-rose);
}

.brand-monogram-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-rose);
  background: var(--fg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: bold;
  color: var(--fg-dark);
  position: relative;
}

.brand-monogram-circle::after {
  content: '✦';
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 9px;
  color: var(--fg-rose);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.header-icon-btn:hover {
  background: var(--fg-light-gray);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--tt-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

/* Search capsule */
.store-search-bar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  background: var(--fg-light-gray);
  border: 1px solid var(--fg-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  gap: 8px;
}

.store-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: var(--fg-dark);
  outline: none;
  font-family: var(--font-sans);
}

.store-search-bar input::placeholder {
  color: var(--fg-gray);
}

/* ========================================================
   STOREFRONT: HERO BANNER & CAMPAIGN
   ======================================================== */
.hero-campaign-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FDF0F3 0%, #F5D6DC 50%, #FFF7F8 100%);
  padding: 20px 16px 24px;
  border-bottom: 1px solid var(--fg-border);
}

.hero-campaign-slider::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(232, 169, 184, 0.25);
  filter: blur(20px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(254, 44, 85, 0.1);
  color: var(--tt-red);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--fg-dark);
  margin-bottom: 6px;
}

.hero-title span {
  color: var(--fg-rose);
  font-style: italic;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--fg-gray);
  margin-bottom: 14px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-primary {
  background: var(--fg-dark);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(31, 31, 31, 0.25);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--fg-dark);
  border: 1px solid var(--fg-rose);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ========================================================
   STOREFRONT: TRUST BADGES (4 CAM KẾT)
   ======================================================== */
.trust-badges-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--fg-border);
  padding: 10px 8px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-item .trust-icon {
  font-size: 18px;
}

.trust-item .trust-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-charcoal);
  line-height: 1.2;
}

/* ========================================================
   STOREFRONT: CATEGORIES TABS
   ======================================================== */
.category-nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  background: #fff;
  scrollbar-width: none;
  border-bottom: 1px solid var(--fg-border);
}

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

.category-tab {
  white-space: nowrap;
  background: var(--fg-light-gray);
  border: 1px solid var(--fg-border);
  color: var(--fg-dark);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.category-tab.active {
  background: var(--fg-dark);
  color: #fff;
  border-color: var(--fg-dark);
}

/* ========================================================
   STOREFRONT: FLASH SALE COUNTDOWN BANNER
   ======================================================== */
.store-flash-sale-box {
  margin: 12px 14px 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FF4565 0%, #FF6A00 100%);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.25);
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.flash-sale-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.timer-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ========================================================
   STOREFRONT: PRODUCT GRID
   ======================================================== */
.section-header {
  padding: 16px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 800;
  color: var(--fg-dark);
}

.section-more-link {
  font-size: 12px;
  color: var(--fg-rose);
  text-decoration: none;
  font-weight: 600;
}

.product-grid,
.device-container.mode-wide .product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px;
  padding: 0 12px 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--fg-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg-rose);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect ratio */
  background: #f7f7f7;
  overflow: hidden;
}

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

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

.badge-mall-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--tt-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-discount-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #FFD700;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.product-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-sku-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--fg-rose);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.product-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 34px;
  margin-bottom: 6px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.product-card-price {
  color: var(--tt-red);
  font-size: 15px;
  font-weight: 800;
}

.product-card-old-price {
  color: #999;
  font-size: 11px;
  text-decoration: line-through;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--fg-border);
  font-size: 10px;
  color: var(--fg-gray);
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.btn-card-add-cart {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 8px;
  background: #FFF0F3;
  color: var(--tt-red);
  border: 1px solid rgba(254, 44, 85, 0.35);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.btn-card-add-cart:hover {
  background: #FFE0E6;
  border-color: var(--tt-red);
  transform: translateY(-1px);
}

.btn-card-add-cart:active {
  transform: scale(0.96);
}

.btn-card-buy-fast {
  flex: 1;
  height: 32px;
  background: var(--fg-cream);
  color: var(--tt-red);
  border: 1px solid rgba(254, 44, 85, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-card-buy-fast:hover {
  background: var(--tt-red);
  color: #fff;
  border-color: var(--tt-red);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.3);
}

.btn-card-buy-fast:active {
  transform: scale(0.97);
}

/* ========================================================
   STOREFRONT: OUTFIT MIX & MATCH SECTION
   ======================================================== */
.outfit-combos-wrap {
  padding: 0 14px 20px;
}

.outfit-combo-card {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--fg-cream) 100%);
  border: 1.5px solid var(--fg-pink);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.outfit-combo-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--fg-dark);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.outfit-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.outfit-thumb-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--fg-border);
}

.outfit-plus {
  font-weight: bold;
  color: var(--fg-rose);
  font-size: 14px;
}

.outfit-info {
  flex-grow: 1;
}

.outfit-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-dark);
  margin-bottom: 2px;
}

.outfit-desc {
  font-size: 11px;
  color: var(--fg-gray);
  margin-bottom: 4px;
}

.outfit-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--tt-red);
}

.outfit-btn {
  background: var(--tt-red);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

/* ========================================================
   TIKTOK SHOP NATIVE PDP (PRODUCT DETAIL PAGE)
   ======================================================== */
.pdp-view-container {
  display: none;
  background: var(--tt-bg);
  min-height: 100vh;
  padding-bottom: 70px;
}

.pdp-view-container.active {
  display: block;
}

/* 1. TOP NAV BAR CHUẨN TIKTOK SHOP */
.tt-top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--fg-border);
  gap: 10px;
}

.tt-nav-back {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.tt-nav-capsule-search {
  flex-grow: 1;
  background: #EFEFEF;
  border-radius: var(--radius-full);
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-nav-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--fg-dark);
  cursor: pointer;
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. 1:1 SLIDER ẢNH KÈM OVERLAYS */
.tt-slider-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Square */
  background: #000;
  overflow: hidden;
}

.tt-slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease-out;
}

.tt-slider-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.tt-slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Overlays */
.tt-slider-seen-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tt-slider-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  z-index: 5;
}

.tt-slider-video-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(254, 44, 85, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Nút Điều Hướng Trái / Phải 2 Bên Slider */
.tt-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.tt-slider-arrow.prev {
  left: 10px;
}

.tt-slider-arrow.next {
  right: 10px;
}

.tt-slider-arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: var(--tt-red);
}

.tt-slider-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

/* 3. FLASH SALE BANNER VÁT CHÉO 2 MẢNG MÀU (FIX TRIỆT TIÊU VỆT TRẮNG) */
.tt-flash-sale-banner {
  width: 100%;
  height: 52px;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #FE2C55; /* Nền đỏ đồng nhất triệt tiêu hoàn toàn vệt trắng */
}

.tt-flash-left {
  flex: 1.25;
  background: #FE2C55;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.tt-discount-chip {
  background: #fff;
  color: #FE2C55;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 5px;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.tt-price-main-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}

.tt-price-big {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 3px;
  letter-spacing: -0.3px;
}

.tt-price-big .price-prefix {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.95;
}

.tt-price-original {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: line-through;
  margin-top: 2px;
  font-weight: 500;
  line-height: 1;
}

.tt-flash-right {
  flex: 1;
  background: linear-gradient(135deg, #FF9500 0%, #FF5A00 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0 12px 0 24px;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -18px;
  position: relative;
  z-index: 2;
}

.tt-flash-label {
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.tt-flash-timer-pdp {
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.98;
}

/* 4. KHỐI VÉ VOUCHER RĂNG CƯA KHUYẾT CẠNH */
.tt-voucher-row {
  background: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--fg-border);
}

.tt-voucher-row::-webkit-scrollbar {
  display: none;
}

.tt-ticket-voucher {
  background: #FFF0F2;
  border: 1px solid #FFCCD3;
  color: var(--tt-red);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Scalloped notches */
.tt-ticket-voucher::before, .tt-ticket-voucher::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.tt-ticket-voucher::before {
  left: -4px;
  border-right: 1px solid #FFCCD3;
}

.tt-ticket-voucher::after {
  right: -4px;
  border-left: 1px solid #FFCCD3;
}

/* 5. TIÊU ĐỀ SẢN PHẨM & SOCIAL PROOF */
.tt-product-intro-card {
  background: #fff;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fg-border);
}

.tt-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tt-pdp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-dark);
  line-height: 1.35;
}

.tt-pdp-title .badge-mall-inline {
  background: var(--tt-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.tt-btn-bookmark {
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  padding: 2px;
  transition: var(--transition);
}

.tt-btn-bookmark.bookmarked {
  color: var(--tt-red);
}

.tt-stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg-gray);
}

.tt-stars {
  color: var(--tt-yellow);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.tt-divider-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ccc;
}

/* 6. KHỐI VẬN CHUYỂN TIKTOK SHOP */
.tt-shipping-block {
  background: #fff;
  margin-top: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fg-border);
}

.tt-ship-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-dark);
}

.tt-badge-fast {
  background: rgba(0, 181, 120, 0.1);
  color: var(--tt-green);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
}

.tt-ship-desc {
  font-size: 12px;
  color: var(--fg-gray);
  margin-top: 4px;
  line-height: 1.4;
}

.tt-ship-fee {
  margin-top: 6px;
  font-size: 12px;
  color: var(--tt-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-ship-fee span.old {
  color: #999;
  text-decoration: line-through;
  font-weight: normal;
}

/* 7. HÀNG CHỌN PHÂN LOẠI (TRIGGER DRAWER) */
.tt-variant-trigger-row {
  background: #fff;
  margin-top: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--fg-border);
}

.tt-variant-label {
  font-size: 12px;
  color: var(--fg-gray);
  width: 80px;
}

.tt-variant-current-selection {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dark);
  flex-grow: 1;
}

.tt-arrow-icon {
  font-size: 14px;
  color: #999;
}

/* 8. SHOP PROFILE CARD */
.tt-shop-card {
  background: #fff;
  margin-top: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-shop-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-shop-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-rose);
  object-fit: cover;
}

.tt-shop-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tt-shop-metrics {
  font-size: 11px;
  color: var(--fg-gray);
  margin-top: 2px;
}

.tt-shop-btn-visit {
  background: #fff;
  color: var(--fg-dark);
  border: 1px solid var(--fg-border);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* 9. THÔNG SỐ SẢN PHẨM & MÔ TẢ CHUYỂN ĐỔI CAO */
.tt-details-section {
  background: #fff;
  margin-top: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--fg-border);
}

.tt-block-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--fg-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 14px;
}

.tt-spec-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--fg-border);
}

.tt-spec-table td.label {
  color: var(--fg-gray);
  width: 35%;
}

.tt-spec-table td.val {
  font-weight: 600;
  color: var(--fg-dark);
}

.tt-rich-description {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.tt-rich-description p {
  margin-bottom: 10px;
}

.tt-rich-description ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.tt-rich-description li {
  margin-bottom: 4px;
}

.tt-size-guide-box {
  background: var(--fg-cream);
  border: 1px dashed var(--fg-rose);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin: 12px 0;
}

.tt-size-guide-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-rose);
  margin-bottom: 6px;
}

/* 10. ĐÁNH GIÁ KHÁCH HÀNG (UGC REVIEWS) */
.tt-reviews-section {
  background: #fff;
  margin-top: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--fg-border);
}

.tt-review-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}

.tt-review-chip {
  background: var(--fg-light-gray);
  border: 1px solid var(--fg-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.tt-review-chip.active {
  background: #FFF0F2;
  border-color: var(--tt-red);
  color: var(--tt-red);
  font-weight: 600;
}

.tt-review-item {
  border-bottom: 1px solid var(--fg-border);
  padding: 10px 0;
}

.tt-review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tt-reviewer-name {
  font-size: 12px;
  font-weight: 700;
}

.tt-review-date {
  font-size: 10px;
  color: #999;
}

.tt-review-content {
  font-size: 12px;
  color: #333;
  margin: 4px 0 6px;
  line-height: 1.4;
}

.tt-review-photos {
  display: flex;
  gap: 6px;
}

.tt-review-photos img {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--fg-border);
}

/* ========================================================
   STICKY BOTTOM ACTION BAR (4 PHẦN TỬ CHUẨN TIKTOK SHOP)
   ======================================================== */
.tt-bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  height: var(--bottom-bar-height);
  background: #FFFFFF;
  border-top: 1px solid var(--fg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  gap: 8px;
  z-index: 500;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.device-container.mode-wide .tt-bottom-action-bar {
  max-width: 1000px;
}

.tt-bar-left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-bar-icon-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--fg-dark);
  font-size: 10px;
  font-weight: 600;
  width: 44px;
  cursor: pointer;
  gap: 2px;
}

.tt-bar-icon-btn svg {
  width: 19px;
  height: 19px;
}

.tt-bar-right-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  justify-content: flex-end;
}

/* Pink square cart button */
.tt-btn-cart-square {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #FFF0F2;
  border: 1px solid #FFD4DA;
  color: var(--tt-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.tt-btn-cart-square:hover {
  background: #FFE4E8;
}

/* Red Capsule Buy Now button */
.tt-btn-buy-capsule {
  flex-grow: 1;
  height: 44px;
  background: linear-gradient(90deg, #FE2C55 0%, #FF0050 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 12px;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.35);
  transition: var(--transition);
}

.tt-btn-buy-capsule:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(254, 44, 85, 0.45);
}

.tt-buy-capsule-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.1;
}

.tt-buy-capsule-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1px;
}

/* ========================================================
   2-STEP DRAWER BOTTOM SHEET (CHỌN COMBO -> ĐIỀN FORM COD)
   ======================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: var(--app-max-width);
  max-height: 88vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  z-index: 1001;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.device-container.mode-wide .bottom-sheet-drawer {
  max-width: 600px;
}

.bottom-sheet-drawer.active {
  transform: translate(-50%, 0);
}

.drawer-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--fg-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.drawer-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--fg-border);
  flex-shrink: 0;
}

.drawer-header-info {
  flex-grow: 1;
  min-width: 0;
}

.drawer-price {
  color: var(--tt-red);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.drawer-stock-badge {
  font-size: 10.5px;
  color: var(--fg-gray);
  margin-top: 1px;
}

.drawer-selected-summary {
  font-size: 11px;
  color: var(--fg-dark);
  margin-top: 1px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  padding: 4px;
  line-height: 1;
}

.drawer-body {
  padding: 10px 14px 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Step 1: Select Combo, Color, Size */
.drawer-group-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg-dark);
  margin: 8px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-combo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.combo-card-option {
  border: 1.5px solid var(--fg-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fg-light-gray);
}

.combo-card-option.active {
  border-color: var(--tt-red);
  background: #FFF7F8;
}

.combo-option-left {
  display: flex;
  flex-direction: column;
}

.combo-name {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-badge-rec {
  background: var(--tt-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
}

.combo-desc {
  font-size: 10.5px;
  color: var(--fg-gray);
  margin-top: 2px;
}

.combo-price-tag {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tt-red);
}

/* Color Chips */
.variant-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-variant {
  border: 1px solid var(--fg-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  background: var(--fg-light-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.chip-variant.active {
  border-color: var(--tt-red);
  background: #FFF0F2;
  color: var(--tt-red);
  font-weight: 700;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Stepper Quantity */
.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fg-border);
}

.stepper-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--fg-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  background: var(--fg-light-gray);
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover {
  background: #E5E5E5;
}

.stepper-input {
  width: 44px;
  height: 32px;
  text-align: center;
  border: none;
  font-size: 13px;
  font-weight: 700;
}

/* Step 2: Shipping Form & Summary (Compact & Tidy) */
.order-summary-box {
  background: var(--fg-cream);
  border: 1px dashed var(--fg-rose);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.summary-row.total {
  border-top: 1px dashed #ccc;
  margin-top: 5px;
  padding-top: 5px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tt-red);
}

.shipping-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-dark);
}

.form-input {
  width: 100%;
  border: 1px solid var(--fg-border);
  border-radius: var(--radius-sm);
  padding: 7.5px 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  outline: none;
  background: #fff;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--tt-red);
  box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.12);
}

.cod-badge-statement {
  background: #E8F8F2;
  border: 1px solid #B8EBD8;
  color: #00875A;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Drawer Footer CTA */
.drawer-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--fg-border);
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.btn-drawer-next, .btn-drawer-confirm {
  width: 100%;
  height: 46px;
  background: linear-gradient(90deg, #FE2C55 0%, #FF0050 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
  transition: var(--transition);
}

.btn-drawer-next:hover, .btn-drawer-confirm:hover {
  transform: translateY(-1px);
}

/* ========================================================
   FLOATING ORDER NOTIFICATION TOAST (FOMO CONVERSION - NEAT & COMPACT)
   ======================================================== */
.floating-order-toast {
  position: fixed;
  bottom: 68px;
  left: max(10px, calc(50% - 230px));
  max-width: 285px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 169, 184, 0.5);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(254, 44, 85, 0.06);
  border-radius: 12px;
  padding: 6px 10px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 450;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  cursor: pointer;
}

.device-container.mode-wide .floating-order-toast {
  left: max(16px, calc(50% - 484px));
  max-width: 320px;
}

.floating-order-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-rose);
  object-fit: cover;
  flex-shrink: 0;
}

.toast-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.toast-user-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #555;
}

.toast-name {
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-badge-dot {
  color: var(--tt-green);
  font-size: 9px;
}

.toast-time {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}

.toast-product-row {
  font-size: 11px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-product-name {
  color: var(--tt-red);
  font-weight: 700;
}

/* ========================================================
   MODAL ĐẶT HÀNG THÀNH CÔNG
   ======================================================== */
.success-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.success-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.success-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 380px;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  background: #E8F8F2;
  border-radius: 50%;
  color: var(--tt-green);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg-dark);
  margin-bottom: 6px;
}

.success-order-code {
  background: var(--fg-light-gray);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tt-red);
  display: inline-block;
  margin-bottom: 12px;
}

.success-msg {
  font-size: 12px;
  color: var(--fg-gray);
  line-height: 1.45;
  margin-bottom: 16px;
}

.btn-success-close {
  width: 100%;
  height: 42px;
  background: var(--fg-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ========================================================
   STOREFRONT FOOTER
   ======================================================== */
.store-footer {
  background: var(--fg-dark);
  color: #fff;
  padding: 24px 16px 80px;
  font-size: 12px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg-pink);
  margin-bottom: 6px;
}

.footer-slogan {
  color: #aaa;
  font-size: 11.5px;
  margin-bottom: 16px;
}

.footer-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.footer-policy-item {
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  color: #777;
  font-size: 10px;
  text-align: center;
}

/* ========================================================
   1. MINI CART DRAWER (GIỎ HÀNG MINI & FREE SHIPPING BAR)
   ======================================================== */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Free Shipping Goal Bar */
.freeship-goal-box {
  background: #FFF7F8;
  border-bottom: 1px solid #FFE4E8;
  padding: 10px 16px;
  font-size: 12px;
}

.freeship-goal-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--fg-dark);
  margin-bottom: 6px;
}

.freeship-progress-track {
  width: 100%;
  height: 6px;
  background: #EFEFEF;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.freeship-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FE2C55 0%, #FF6A00 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fg-border);
  position: relative;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--fg-border);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg-dark);
  line-height: 1.3;
}

.cart-item-variant {
  font-size: 11px;
  color: var(--fg-gray);
  margin: 2px 0 4px;
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tt-red);
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 14px;
}

.cart-drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--fg-border);
  background: #FFFFFF;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.cart-summary-row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--tt-red);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--fg-border);
}

.btn-cart-checkout {
  width: 100%;
  height: 46px;
  background: linear-gradient(90deg, #FE2C55 0%, #FF0050 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
}

/* ========================================================
   2. WISHLIST MODAL & ACCOUNT MODAL
   ======================================================== */
.generic-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.generic-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.generic-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.25s ease;
  position: relative;
}

.generic-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--fg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.generic-modal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg-dark);
}

.generic-modal-body {
  padding: 16px 18px;
}

/* ========================================================
   WELCOME PROMO MODAL (TẶNG MÃ GIẢM 10% ĐƠN ĐẦU TIÊN)
   ======================================================== */
.welcome-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.welcome-modal-card {
  background: linear-gradient(180deg, #FFF7F8 0%, #FFFFFF 100%);
  border: 1.5px solid var(--fg-rose);
  border-radius: 20px;
  padding: 24px 20px 20px;
  max-width: 390px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(254, 44, 85, 0.18);
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
}

.welcome-badge-tag {
  background: linear-gradient(90deg, #FE2C55, #FF6A00);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.welcome-gift-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.welcome-modal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: #1F1F1F;
  margin-bottom: 8px;
  line-height: 1.3;
}

.welcome-modal-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.45;
}

.welcome-promo-code-box {
  background: #FFF0F2;
  border: 1.5px dashed var(--tt-red);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.promo-code-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--tt-red);
  letter-spacing: 1.5px;
}

.promo-code-sub {
  font-size: 11px;
  color: #888;
}

.btn-welcome-register {
  width: 100%;
  height: 44px;
  background: linear-gradient(90deg, #FE2C55 0%, #FF0050 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
  transition: var(--transition);
}

.btn-welcome-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(254, 44, 85, 0.45);
}

.btn-welcome-skip {
  background: none;
  border: none;
  color: #888;
  font-size: 11.5px;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
}

/* ========================================================
   AUTH MODAL TABS & CALLOUTS
   ======================================================== */
.auth-tabs-nav {
  display: flex;
  gap: 6px;
  background: var(--fg-light-gray);
  border-radius: 999px;
  padding: 3px;
}

.auth-tab-btn {
  border: none;
  background: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg-gray);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.auth-tab-btn.active {
  background: #fff;
  color: var(--tt-red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-voucher-callout {
  background: #FFF7E6;
  border: 1px solid #FFE7BA;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #D46B08;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

/* Header Account Pill */
.header-account-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--fg-cream);
  border: 1px solid var(--fg-pink);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-dark);
  cursor: pointer;
  transition: var(--transition);
}

.header-account-pill:hover {
  background: var(--fg-pink);
}

/* Returning Customer Notice in Drawer */
.returning-customer-card {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #166534;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.returning-customer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-edit-saved-address {
  background: #fff;
  border: 1px solid #86EFAC;
  color: #166534;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

/* ========================================================
   3. MULTI-ITEM COMBO PICKER IN DRAWER
   ======================================================== */
.combo-multi-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.combo-item-box {
  background: #FFFFFF;
  border: 1.5px solid var(--fg-border);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  transition: var(--transition);
}

.combo-item-box.active-focus {
  border-color: var(--tt-red);
  box-shadow: 0 2px 10px rgba(254, 44, 85, 0.1);
}

.combo-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.combo-item-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-item-badge {
  background: var(--fg-dark);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ========================================================
   4. SMART SIZE RECOMMENDER WIDGET (PDP)
   ======================================================== */
.size-recommender-card {
  background: linear-gradient(135deg, #FFF0F2 0%, var(--fg-cream) 100%);
  border: 1.5px solid var(--fg-rose);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 14px 0;
}

.size-rec-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.size-rec-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.size-input-field {
  background: #fff;
  border: 1px solid var(--fg-border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.btn-calc-size {
  background: var(--fg-dark);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.size-rec-result {
  margin-top: 10px;
  padding: 8px 10px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--tt-red);
  font-size: 12px;
  display: none;
}

/* ========================================================
   5. CASCADING VIETNAM ADDRESS SELECTORS
   ======================================================== */
.address-selectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.form-select {
  width: 100%;
  border: 1px solid var(--fg-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  outline: none;
  background: #fff;
  cursor: pointer;
  color: var(--fg-dark);
}

.form-select:focus {
  border-color: var(--tt-red);
}

/* ========================================================
   6. INTERACTIVE COUPON SYSTEM IN DRAWER STEP 2
   ======================================================== */
.drawer-coupon-box {
  background: #FFF7F8;
  border: 1px dashed var(--fg-rose);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.drawer-coupon-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-chips-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coupon-item-chip {
  background: #fff;
  border: 1px solid #FFD4DA;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.coupon-item-chip.applied {
  border-color: var(--tt-green);
  background: #F0FDF4;
}

.btn-apply-coupon {
  background: var(--tt-red);
  color: #fff;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.btn-apply-coupon.applied {
  background: var(--tt-green);
}

/* ========================================================
   7. LIVE SEARCH SUGGESTIONS & SEARCH TAGS
   ======================================================== */
.search-results-banner {
  padding: 8px 14px;
  background: #FFF0F2;
  font-size: 12px;
  color: var(--tt-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--fg-border);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--fg-gray);
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
}

.search-tags-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 14px 8px;
  background: #fff;
  border-bottom: 1px solid var(--fg-border);
}

.search-tags-row::-webkit-scrollbar {
  display: none;
}

.search-tag-pill {
  background: var(--fg-light-gray);
  border: 1px solid var(--fg-border);
  color: var(--fg-gray);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
}

.search-tag-pill:hover {
  border-color: var(--fg-rose);
  color: var(--fg-dark);
}

/* 8. ANIMATION CART BADGE BUMP */
@keyframes cartBadgeBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.45); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.cart-bump-anim {
  animation: cartBadgeBump 0.4s ease-out;
}

/* 9. MANUAL WARD INPUT TOGGLE */
.ward-toggle-row {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-toggle-ward {
  font-size: 11px;
  color: var(--tt-red);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-toggle-ward:hover {
  color: #c9183b;
}

.input-manual-ward {
  margin-top: 6px;
  border: 1.5px solid var(--tt-red) !important;
  background: #FFF9FA;
  display: none;
  animation: fadeIn 0.25s ease;
}

/* ========================================================
   GỢI Ý MUA CÙNG THEO SET (BUNDLE & SAVE) DƯỚI PHÂN LOẠI PDP
   ======================================================== */
.pdp-bundle-wrap {
  margin: 12px 14px;
  padding: 12px;
  background: linear-gradient(135deg, #FFF6F7 0%, #FFF0F3 100%);
  border: 1.5px dashed var(--fg-rose);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(230, 0, 77, 0.06);
}

.pdp-bundle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pdp-bundle-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--tt-red);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdp-bundle-discount-badge {
  background: var(--tt-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.pdp-bundle-items-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pdp-bundle-item-card {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--fg-border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.pdp-bundle-item-card.selected {
  border-color: var(--tt-red);
  background: #FFFDFC;
}

.pdp-bundle-item-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  accent-color: var(--tt-red);
  cursor: pointer;
}

.pdp-bundle-thumb-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.pdp-bundle-thumb-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.pdp-bundle-thumb-wrapper .pdp-bundle-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
  transition: opacity 0.25s ease;
}

.pdp-bundle-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.bundle-cycle-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 2px;
  text-align: center;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.pdp-bundle-item-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-dark);
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pdp-bundle-item-name.clickable {
  cursor: pointer;
  transition: color 0.15s ease;
}

.pdp-bundle-item-name.clickable:hover {
  color: var(--tt-red);
}

.bundle-view-hint {
  display: block;
  font-size: 9px;
  color: var(--tt-red);
  font-weight: 700;
  margin-top: 1px;
}

.pdp-bundle-item-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--tt-red);
  margin-top: 4px;
}

.pdp-bundle-plus-icon {
  font-size: 18px;
  font-weight: 900;
  color: var(--tt-red);
  user-select: none;
}

.pdp-bundle-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(230, 0, 77, 0.15);
}

.pdp-bundle-pricing {
  display: flex;
  flex-direction: column;
}

.pdp-bundle-total-label {
  font-size: 11px;
  color: #666;
}

.pdp-bundle-total-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--tt-red);
}

.pdp-bundle-original-price {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
  margin-left: 4px;
}

.btn-bundle-add-cart {
  background: linear-gradient(135deg, var(--tt-red) 0%, #D80032 100%);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(230, 0, 77, 0.25);
  transition: all 0.2s ease;
}

.btn-bundle-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(230, 0, 77, 0.35);
}

/* ========================================================
   SẢN PHẨM NỔI BẬT KHÁC Ở CUỐI TRANG PDP
   ======================================================== */
.pdp-related-section {
  padding: 16px 14px 28px;
  background: #fbfbfb;
  border-top: 8px solid #f0f0f0;
}

.pdp-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pdp-related-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px;
}



