/* ===================================================
   ĐĂNG NHIÊN - 3D PRINT & LASER ENGRAVING STOREFRONT
   Affiliate Marketing Hub for Shopee & TikTok Shop
   =================================================== */

/* Accessibility: Screen Reader Only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-main);

  /* Primary Brand Palette */
  --bg-dark: #0a0e17;
  --bg-card: rgba(18, 25, 41, 0.88);
  --bg-card-hover: rgba(28, 38, 62, 0.98);
  --bg-elevated: #151d30;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);

  /* Vibrant Accents */
  --cyan-3d: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --laser-orange: #f97316;
  --laser-amber: #f59e0b;
  --primary-indigo: #6366f1;
  --success-emerald: #10b981;

  /* Sàn Thương Mại Điện Tử Branding */
  --shopee-color: #ee4d2d;
  --shopee-hover: #ff5722;
  --shopee-glow: rgba(238, 77, 45, 0.35);

  --tiktok-color: #111319;
  --tiktok-accent: #fe2c55;
  --tiktok-cyan: #25f4ee;
  --tiktok-glow: rgba(254, 44, 85, 0.3);

  --zalo-color: #0068ff;
  --zalo-hover: #0052cc;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(238, 77, 45, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* WordPress Block Theme Container Breakout */
.dangnhien-store-wrapper,
.entry-content > .dangnhien-store-wrapper,
.wp-block-post-content > .dangnhien-store-wrapper,
.is-layout-constrained > .dangnhien-store-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--cyan-3d), var(--primary-indigo));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.brand-text h1,
.brand-text .brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: block;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

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

.header-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-header-shopee {
  background: rgba(238, 77, 45, 0.12);
  border: 1px solid rgba(238, 77, 45, 0.35);
  color: #ff6f4b;
}

.btn-header-shopee:hover {
  background: var(--shopee-color);
  color: #fff;
  box-shadow: 0 4px 14px var(--shopee-glow);
  transform: translateY(-2px);
}

.btn-header-tiktok {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-header-tiktok:hover {
  background: #000;
  border-color: var(--tiktok-accent);
  box-shadow: 0 4px 14px var(--tiktok-glow);
  transform: translateY(-2px);
}

.btn-header-zalo {
  background: rgba(0, 104, 255, 0.12);
  border: 1px solid rgba(0, 104, 255, 0.3);
  color: #60a5fa;
}

.btn-header-zalo:hover {
  background: var(--zalo-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-banner {
  padding: 36px 0 20px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(238, 77, 45, 0.12);
  border: 1px solid rgba(238, 77, 45, 0.3);
  color: #fb7185;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text-1 {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .gradient-text-2 {
  background: linear-gradient(135deg, #fb923c, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 22px;
  contain: layout;
}

.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-info h4,
.feature-info .feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.feature-info p {
  font-size: 12px;
  color: var(--text-dim);
}

/* Filter Bar */
.filter-bar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.category-tab.active {
  background: linear-gradient(135deg, var(--cyan-3d), var(--primary-indigo));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.search-box {
  position: relative;
  min-width: 290px;
  flex-grow: 1;
  max-width: 380px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-dim);
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 38px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary-indigo);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-card);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

/* Load More Section & Button */
.load-more-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0 60px 0;
  gap: 12px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(79, 70, 229, 0.6);
  filter: brightness(1.1);
}

.btn-load-more:active {
  transform: translateY(0);
}

.load-more-counter {
  font-size: 13px;
  color: var(--text-muted);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.15);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 86%;
  overflow: hidden;
  background: #0f1523;
  cursor: pointer;
}

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

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

.thumb-overlay-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.product-card:hover .thumb-overlay-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-badge-float {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.badge-hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
}

.badge-laser {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.badge-luxury {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
}

.product-discount-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #d13516; /* High contrast WCAG AA compliant Shopee red */
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(209, 53, 22, 0.4);
}

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

.product-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-category-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-3d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-sold-tag {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s;
  min-height: 48px;
}

.product-title:hover {
  color: var(--cyan-3d);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.stars {
  color: #fbbf24;
}

.rating-num {
  color: #fff;
  font-weight: 700;
}

.deal-tag-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.product-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  white-space: nowrap;
}

.original-price {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
  white-space: nowrap;
}

.btn-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-detail-link:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
  border-color: #818cf8;
}

/* Dual Affiliate CTA Grid */
.affiliate-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.affiliate-cta-grid.single-cta {
  grid-template-columns: 1fr;
}

.affiliate-cta-grid.single-cta .btn-aff {
  justify-content: center;
  padding: 12px 16px;
}

.btn-aff {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-aff-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-aff-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.btn-aff-brand {
  font-size: 13px;
  font-weight: 800;
}

.btn-aff-sub {
  font-size: 10px;
  opacity: 0.85;
}

/* Shopee Button */
.btn-shopee {
  background: linear-gradient(135deg, #f05d40 0%, #ee4d2d 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--shopee-glow);
}

.btn-shopee:hover {
  background: linear-gradient(135deg, #ff6f4b 0%, #f04e28 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(238, 77, 45, 0.5);
}

/* TikTok Button */
.btn-tiktok {
  background: linear-gradient(135deg, #1e2230 0%, #0d111b 100%);
  color: #fff;
  border: 1px solid rgba(254, 44, 85, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-tiktok:hover {
  background: #000;
  border-color: var(--tiktok-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--tiktok-glow);
}

/* Modal Review & Deal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-dialog {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-body {
  padding: 30px;
}

.modal-header-section {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  margin-bottom: 24px;
  align-items: start;
}

.modal-thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.modal-badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.modal-sold-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.modal-deal-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.modal-meta h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-desc-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.modal-pricing-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-current-price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
}

.modal-old-price {
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.modal-saving-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Specs list in modal */
.modal-specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-main);
}

.check-icon {
  color: var(--success-emerald);
  font-weight: 800;
}

/* Modal Tags Preview */
.modal-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-color-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
}

.modal-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-size-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
}

.modal-size-tag small {
  color: var(--text-dim);
  font-size: 10px;
}

/* Modal Action Box */
.modal-affiliate-action-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
}

.aff-box-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-aff-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-btn-aff {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-fast);
}

.modal-shopee {
  background: linear-gradient(135deg, #f05d40 0%, #ee4d2d 100%);
  color: #fff;
  box-shadow: 0 6px 20px var(--shopee-glow);
}

.modal-shopee:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 77, 45, 0.6);
}

.modal-tiktok {
  background: #000;
  color: #fff;
  border: 1px solid var(--tiktok-accent);
  box-shadow: 0 6px 20px var(--tiktok-glow);
}

.modal-tiktok:hover {
  transform: translateY(-2px);
  background: #111;
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.5);
}

.btn-icon-wrap {
  display: flex;
  align-items: center;
}

.btn-text-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-text-content strong {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.btn-text-content small {
  font-size: 11px;
  opacity: 0.85;
}

.btn-copy-share {
  background: transparent;
  border: none;
  color: var(--cyan-3d);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.btn-copy-share:hover {
  background: rgba(6, 182, 212, 0.1);
}

/* Floating Channel Dock */
.floating-contact-dock {
  position: fixed;
  bottom: 24px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.floating-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  font-size: 18px;
}

.floating-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.float-shopee {
  background: var(--shopee-color);
  box-shadow: 0 6px 20px var(--shopee-glow);
}

.float-tiktok {
  background: #000;
  border: 1px solid var(--tiktok-accent);
  box-shadow: 0 6px 20px var(--tiktok-glow);
}

.float-zalo {
  background: var(--zalo-color);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 85px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(22, 31, 51, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideToast 0.3s ease forwards;
}

.toast-success {
  border-left: 4px solid var(--success-emerald);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.95);
  padding: 48px 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4,
.footer-col h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-badge-strip {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.f-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--cyan-3d);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-dim);
}

/* Empty Search Box */
.empty-search-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

/* Responsive Optimization (UI/UX Pro Max standards) */
@media (max-width: 900px) {
  .features-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  .filter-bar-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }
  /* Horizontal Scrollable Category Chips */
  .category-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 6px;
    width: 100% !important;
    gap: 8px;
  }
  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .category-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: var(--radius-full) !important;
  }
  .search-box {
    width: 100% !important;
    max-width: 100% !important;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    padding-bottom: 60px; /* Safe padding for floating dock */
  }
  .product-thumb-wrap {
    padding-top: 95%;
  }
  .product-info {
    padding: 12px;
  }
  .product-title {
    font-size: 13px;
    line-height: 1.35;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-aff {
    padding: 8px 10px;
    font-size: 12px;
  }
  .btn-aff-sub {
    display: none;
  }
  .floating-contact-dock {
    bottom: 20px;
    right: 14px;
    gap: 10px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
  }
  .floating-btn svg {
    width: 18px;
    height: 18px;
  }
  .modal-header-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .modal-thumb {
    margin: 0 auto;
  }
  .modal-specs-list {
    grid-template-columns: 1fr;
  }
  .modal-aff-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    background: rgba(10, 14, 23, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .header-content {
    height: 56px;
    padding: 0 12px;
  }
  .brand-logo {
    gap: 8px;
  }
  .logo-badge {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }
  .brand-text h1,
  .brand-text .brand-name {
    font-size: 16px;
  }
  .brand-text p {
    display: none !important;
  }
  .header-actions {
    gap: 6px;
  }
  .header-channel-btn {
    padding: 6px 10px;
    font-size: 11px;
    gap: 5px;
    border-radius: var(--radius-sm);
  }
  .header-channel-btn svg {
    width: 13px;
    height: 13px;
  }
  .btn-header-zalo {
    display: none !important;
  }
  .hero-banner {
    padding: 24px 0 18px !important;
  }
  .hero-pill {
    font-size: 11px !important;
    padding: 4px 12px !important;
    margin-bottom: 10px !important;
  }
  .hero-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .hero-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }
  .features-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }
  .feature-item {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .feature-icon {
    font-size: 18px !important;
  }
  .feature-info h4,
  .feature-info .feature-title {
    font-size: 11.5px !important;
    margin-bottom: 2px !important;
  }
  .feature-info p {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding-bottom: 70px;
  }
  .product-card {
    border-radius: var(--radius-md) !important;
  }
  .product-info {
    padding: 10px 8px !important;
  }
  .product-title {
    font-size: 12.5px !important;
    height: 34px !important;
  }
  .current-price {
    font-size: 15px !important;
  }
  .orig-price {
    font-size: 11px !important;
  }
  .affiliate-cta-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .btn-aff {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .btn-aff-brand {
    font-size: 11.5px !important;
  }
  .btn-aff svg {
    width: 14px !important;
    height: 14px !important;
  }
  .floating-contact-dock {
    bottom: 16px;
    right: 12px;
    gap: 8px;
  }
  .floating-btn {
    width: 40px;
    height: 40px;
  }
  .floating-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* ===================================================
   PRODUCT DETAIL PAGE & MULTI-IMAGE GALLERY (SEO & GOOGLE SHOPPING)
   =================================================== */

.breadcrumb-nav {
  padding: 18px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}
.breadcrumb-nav a:hover {
  color: var(--cyan-3d);
}
.breadcrumb-separator {
  color: var(--text-dim);
  font-size: 12px;
}
.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
  max-width: 450px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2-Column Product Detail Layout (Responsive & Zero Overflow) */
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  min-width: 0;
  max-width: 100%;
}

/* Gallery Component */
.product-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.gallery-main-view {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  touch-action: pan-y;
  user-select: none;
}
.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  max-width: 100%;
}
.gallery-main-view:hover .gallery-main-img {
  transform: scale(1.03);
}
.gallery-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.gallery-badge-overlay .product-badge-float {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  letter-spacing: 0.3px;
}
.gallery-counter-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.3px;
}
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition-fast);
}
.gallery-nav-btn:hover {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 1);
  transform: translateY(-50%) scale(1.08);
}
.gallery-nav-btn.prev-btn {
  left: 10px;
}
.gallery-nav-btn.next-btn {
  right: 10px;
}

.gallery-thumbs-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-3d) transparent;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.gallery-thumbs-slider::-webkit-scrollbar {
  height: 5px;
}
.gallery-thumbs-slider::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 4px;
}
.gallery-thumb-item {
  flex: 0 0 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1e293b;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: var(--transition-fast);
}
.gallery-thumb-item:hover {
  opacity: 1;
  border-color: rgba(6, 182, 212, 0.5);
}
.gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--cyan-3d);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Column */
.product-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.p-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.p-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.p-cat-badge {
  font-size: 12.5px;
  color: var(--text-muted);
}
.p-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
  word-break: break-word;
}
.p-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  font-size: 13.5px;
}
.p-rating-stars {
  color: #fbbf24;
  font-size: 15px;
  letter-spacing: 1.5px;
}
.p-rating-val {
  font-weight: 700;
  color: #ffffff;
  margin-left: 4px;
}
.p-reviews-count {
  color: var(--text-muted);
}
.p-sold-count {
  color: #34d399;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

/* Pricing Box */
.p-price-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.p-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.p-current-price {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: #f43f5e;
  text-shadow: 0 0 16px rgba(244, 63, 94, 0.3);
}
.p-old-price {
  font-size: 16px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.p-discount-tag {
  background: #f43f5e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.p-deal-banner-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #38bdf8;
  font-weight: 600;
}

/* Key Highlights Bullet points */
.p-highlights-box {
  margin-bottom: 20px;
}
.p-highlights-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.p-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.p-highlights-list li {
  font-size: 13.5px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.p-highlights-list .check {
  color: #10b981;
  font-weight: 800;
  flex-shrink: 0;
}

/* Big Action Conversion Box */
.p-actions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.p-aff-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.p-btn-shopee {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--shopee-glow);
}
.p-btn-shopee:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(238, 77, 45, 0.5);
}
.p-btn-tiktok {
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(254, 44, 85, 0.4);
  box-shadow: 0 8px 20px var(--tiktok-glow);
}
.p-btn-tiktok:hover {
  transform: translateY(-2px);
  border-color: #fe2c55;
  box-shadow: 0 12px 26px rgba(254, 44, 85, 0.4);
}
.p-btn-zalo {
  background: rgba(0, 104, 255, 0.15);
  border: 1px solid rgba(0, 104, 255, 0.4);
  color: #60a5fa;
  font-size: 13.5px;
  padding: 11px 16px;
}
.p-btn-zalo:hover {
  background: rgba(0, 104, 255, 0.25);
  color: #ffffff;
}

/* Trust checklist */
.p-trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.p-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.p-trust-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* Tabbed Detail Section */
.product-tabs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
  min-width: 0;
  max-width: 100%;
}
.tabs-header-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs-header-bar::-webkit-scrollbar {
  display: none;
}
.tab-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.tab-nav-btn.active {
  color: #ffffff;
  background: var(--primary-indigo);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.tab-pane {
  display: none;
  animation: fadeInTab 0.3s ease;
}
.tab-pane.active {
  display: block;
}

.p-narrative-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #cbd5e1;
  white-space: pre-line;
  word-break: break-word;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}
.specs-table tr:last-child {
  border-bottom: none;
}
.specs-table td {
  padding: 13px 14px;
  font-size: 14px;
}
.specs-table td.label-cell {
  width: 32%;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
.specs-table td.val-cell {
  color: #ffffff;
}

/* Google Shopping SEO Badge */
.seo-verified-card {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.seo-verified-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a7f3d0;
}
.seo-verified-badge {
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Modal Gallery Enhancement */
.modal-gallery-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.modal-thumb-item {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: var(--transition-fast);
}
.modal-thumb-item:hover, .modal-thumb-item.active {
  opacity: 1;
  border-color: var(--cyan-3d);
}
.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-open-dedicated-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--cyan-3d);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}
.btn-open-dedicated-page:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===================================================
   MOBILE STICKY ACTION BAR (High-Converting Mobile UX)
   =================================================== */
.mobile-sticky-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-info-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sticky-mini-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.sticky-price-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sticky-price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #f43f5e;
  white-space: nowrap;
}
.sticky-deal-tag {
  font-size: 10.5px;
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sticky-btn-zalo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 104, 255, 0.15);
  border: 1px solid rgba(0, 104, 255, 0.4);
  color: #60a5fa;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.sticky-btn-shopee {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 0 16px;
  height: 44px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 16px var(--shopee-glow);
  white-space: nowrap;
}
.sticky-btn-shopee svg {
  width: 16px;
  height: 16px;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS (Mobile-First Polish)
   =================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
    gap: 24px;
  }
  .product-gallery-wrap {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile & Phablet (max-width: 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 78px; /* Room for sticky bottom bar */
  }
  .mobile-sticky-action-bar {
    display: flex;
  }
  /* On product detail page with bottom action bar, hide floating dock to prevent blocking reading & duplicate CTAs */
  body.product-detail-page .floating-contact-dock {
    display: none !important;
  }
  .floating-contact-dock {
    bottom: 82px !important;
    right: 10px !important;
  }
  .floating-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .product-detail-layout {
    padding: 16px;
    gap: 18px;
    margin-bottom: 20px;
  }
  .product-gallery-wrap {
    max-width: 100%;
  }
  .gallery-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .product-tabs-section {
    padding: 18px 14px;
    margin-bottom: 22px;
    border-radius: 14px;
  }
  .p-narrative-desc {
    font-size: 14px;
    line-height: 1.7;
  }
  .breadcrumb-nav {
    padding: 10px 0;
    font-size: 12px;
  }
  .breadcrumb-current {
    max-width: 150px;
  }
}

/* Small Smartphone (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .header-actions .btn-header-shopee span,
  .header-actions .btn-header-tiktok span {
    display: none;
  }
  .header-actions .header-channel-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .brand-text p {
    display: none;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-name {
    font-size: 16px !important;
  }
  .product-detail-layout {
    padding: 12px;
    gap: 14px;
    border-radius: 12px;
  }
  .gallery-main-view {
    border-radius: 10px;
  }
  .gallery-thumb-item {
    flex: 0 0 52px;
    height: 52px;
  }
  .p-title {
    font-size: 17px;
    line-height: 1.35;
  }
  .p-current-price {
    font-size: 22px;
  }
  .p-old-price {
    font-size: 13.5px;
  }
  .p-meta-strip {
    gap: 6px;
    font-size: 11.5px;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .p-trust-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .p-trust-badge {
    font-size: 10.5px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
  }
  .p-actions-container {
    gap: 10px;
    margin-bottom: 16px;
  }
  .p-aff-btn {
    padding: 12px 14px;
    font-size: 13.5px;
    gap: 8px;
  }
  .specs-table tr {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
  }
  .specs-table td.label-cell {
    width: 100%;
    background: transparent;
    padding: 0 0 3px 0;
    font-size: 12px;
    color: var(--text-muted);
  }
  .specs-table td.val-cell {
    width: 100%;
    padding: 0;
    font-size: 13px;
    color: #ffffff;
  }
  .tab-nav-btn {
    font-size: 12px;
    padding: 6px 11px;
  }
  #related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  #related-products-grid .product-title {
    font-size: 12px !important;
    height: 32px !important;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #related-products-grid .current-price {
    font-size: 13px !important;
  }
  .sticky-mini-thumb {
    width: 38px;
    height: 38px;
  }
  .sticky-price {
    font-size: 14.5px;
  }
  .sticky-deal-tag {
    font-size: 9.5px;
  }
  .sticky-btn-zalo {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .sticky-btn-shopee {
    height: 38px;
    font-size: 12px;
    padding: 0 11px;
    gap: 4px;
  }
}

/* ==========================================================================
   P0 Optimization: Skeleton Shimmer Loading, Rig Link & Trust Guarantee
   ========================================================================== */
@keyframes dnShimmerAnim {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.dn-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 37%, rgba(255, 255, 255, 0.04) 63%);
  background-size: 400% 100%;
  animation: dnShimmerAnim 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.dn-skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.dn-skeleton-title {
  height: 28px;
  margin-bottom: 12px;
  border-radius: 6px;
  width: 85%;
}

.dn-skeleton-box {
  min-height: 100px;
  border-radius: var(--radius-md);
}

/* Interactive Guarantee Banner */
.p-interactive-guarantee {
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px dashed rgba(238, 77, 45, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.p-interactive-guarantee .p-guarantee-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.p-interactive-guarantee .p-guarantee-text {
  line-height: 1.45;
}
.p-interactive-guarantee strong {
  color: #38bdf8;
}

/* Rig Builder Link Button */
.p-btn-rig {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.25) 100%);
  border: 1px solid rgba(6, 182, 212, 0.6);
  color: #38bdf8;
  font-size: 14.5px;
  padding: 13px 18px;
}
.p-btn-rig:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35) 0%, rgba(59, 130, 246, 0.45) 100%);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}



