/* wdmladi - Sản phẩm (Shop Style) */
:root {
  --bp-bg: #f5f5f5;
  --bp-card: #ffffff;
  --bp-text: #222222;
  --bp-text-secondary: #666666;
  --bp-text-muted: #999999;
  --bp-accent: #fe2c55;
  --bp-accent-light: #fff0f3;
  --bp-price: #fe2c55;
  --bp-star: #ffc107;
  --bp-border: #eaeaea;
  --bp-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bp-bg);
  color: var(--bp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.bp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bp-border);
}

.bp-header-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0 !important;
}

.bp-header-btn svg {
  width: 22px;
  height: 22px;
  color: var(--bp-text);
}

.bp-cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3b5c;
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 4px;
  line-height: 1;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bp-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--bp-bg);
  border-radius: 18px;
  color: var(--bp-text-muted);
  font-size: 14px;
  cursor: pointer;
  min-width: 0;
}

.bp-search-bar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bp-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: #00000000 !important;
  outline: none;
  cursor: pointer;
  margin: 0;
  box-shadow: none !important;
}

.bp-search-input::placeholder {
  color: var(--bp-text-muted);
  opacity: 1;
}

/* Main */
.bp-main {
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* Promotional Banner */
.bp-promo-banner {
  background: linear-gradient(135deg, #fff5f7 0%, #ffeef0 100%);
  padding: 20px 16px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.bp-promo-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.bp-promo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.bp-promo-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.bp-promo-text {
  flex: 1;
}

.bp-promo-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bp-accent);
  line-height: 1.4;
}

/* Gallery */
.bp-gallery {
  position: relative;
  background: #fff;
}

.bp-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bp-gallery-track::-webkit-scrollbar {
  display: none;
}

.bp-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.bp-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bp-gallery-empty {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-text-muted);
  background: #fafafa;
}

.bp-gallery-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
}

.bp-gallery-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.bp-badge-xtra {
  padding: 4px 8px;
  background: linear-gradient(135deg, #00c6a0, #00a896);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.bp-badge-extra {
  padding: 4px 8px;
  background: linear-gradient(135deg, #ff6b6b, #fe2c55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

/* Price Section */
.bp-price-section {
  background: linear-gradient(135deg, #ff6b6b 0%, #fe2c55 100%);
  padding: 2px 15px;
  color: #fff;
}

.bp-price-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bp-price-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-price-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 8px;
  text-align: right;
}

.bp-discount-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: #fff;
  color: var(--bp-accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.bp-price {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.bp-flash-sale {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bp-flash-sale svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bp-price-old {
  margin-top: -15px;
  font-size: 14px;
  text-decoration: line-through;
  opacity: 0.5;
  display: block;
}

.bp-flash-timer {
  font-size: 12px;
  opacity: 0.95;
  white-space: nowrap;
}

.bp-flash-timer span {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Coupon Tags */
.bp-coupon-tags {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bp-card);
  overflow-x: auto;
  scrollbar-width: none;
}

.bp-coupon-tags::-webkit-scrollbar {
  display: none;
}

.bp-tag {
  flex-shrink: 0;
  padding: 4px 8px;
  background: #fff;
  color: #fe2c55;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid #fe2c55;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(254, 44, 85, 0.2);
}

.bp-tag-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

/* Title Section */
.bp-title-section {
  background: var(--bp-card);
  padding: 8px 15px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bp-mall-badge {
  flex-shrink: 0;
  padding: 0 6px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--bp-accent);
  border-radius: 3px;
  height: fit-content;
}

.bp-title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.bp-bookmark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.bp-bookmark svg {
  width: 20px;
  height: 20px;
  color: var(--bp-text-muted);
}

.bp-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 13px;
  color: var(--bp-text-secondary);
  flex-wrap: wrap;
}

.bp-star {
  color: var(--bp-star);
  font-size: 14px;
}

.bp-rating-val {
  font-weight: 600;
  color: var(--bp-text);
}

.bp-review-count {
  color: var(--bp-text-muted);
}

.bp-sep {
  color: var(--bp-border);
  margin: 0 4px;
}

.bp-sold {
  color: var(--bp-text-muted);
}

/* Row Items (clickable) */
.bp-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bp-card);
  border-bottom: 1px solid var(--bp-border);
  cursor: pointer;
  transition: background 0.15s;
}

.bp-row-item:active {
  background: #f8f8f8;
}

.bp-row-icon {
  width: 20px;
  height: 20px;
  color: var(--bp-text-secondary);
  flex-shrink: 0;
}

.bp-buy-btn :hover {
  color: #fff !important;
}

.bp-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  min-width: 0;
}

.bp-row-text>span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.bp-shipping-row {
  border-top: 1px solid var(--bp-border);
}

.bp-ship-label {
  color: #00a896;
  font-weight: 600;
  font-size: 14px;
}

.bp-ship-sub {
  color: var(--bp-text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

.bp-row-arrow {
  width: 18px;
  height: 18px;
  color: var(--bp-text-muted);
  flex-shrink: 0;
}

/* Tabs đã loại bỏ theo yêu cầu */

/* Customer Videos Section */
.bp-customer-videos-section {
  background: var(--bp-card);
  padding: 16px;
  margin-top: 8px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-customer-videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bp-customer-videos-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-text);
}

.bp-customer-videos-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.bp-customer-videos-list::-webkit-scrollbar {
  display: none;
}

.bp-customer-video-item {
  flex: 0 0 160px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bp-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.bp-customer-video-item:active {
  transform: scale(0.98);
}

.bp-customer-video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 aspect ratio */
  overflow: hidden;
  background: #000;
}

.bp-customer-video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-customer-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.bp-customer-video-info {
  padding: 8px 12px;
}

.bp-customer-video-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Customer Videos Reels Style (TikTok/Reels) - Vertical Cards */
.bp-customer-videos-reels-container {
  width: 100%;
  background: var(--bp-card);
}

.bp-customer-videos-reels-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bp-customer-videos-reels-scroll::-webkit-scrollbar {
  display: none;
}

.bp-customer-video-reel-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  position: relative;
}

.bp-customer-video-reel-card:active {
  transform: scale(0.95);
}

.bp-customer-video-reel-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 177.78%;
  /* 9:16 aspect ratio (vertical) */
  overflow: hidden;
  background: #000;
}

.bp-customer-video-reel-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-customer-video-reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.bp-customer-video-reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.bp-customer-video-reel-card:hover .bp-customer-video-reel-play,
.bp-customer-video-reel-card:active .bp-customer-video-reel-play {
  opacity: 1;
}

.bp-customer-video-reel-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.bp-customer-video-reel-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
}

.bp-customer-video-reel-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.bp-customer-video-reel-name {
  flex: 1;
  color: white;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Responsive adjustments for Reels */
@media (min-width: 768px) {
  .bp-customer-video-reel-card {
    flex: 0 0 140px;
  }

  .bp-customer-video-reel-name {
    font-size: 12px;
  }

  .bp-customer-video-reel-avatar {
    width: 32px;
    height: 32px;
  }

  .bp-customer-video-reel-info {
    bottom: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .bp-customer-video-reel-card {
    flex: 0 0 160px;
  }
}

.bp-reviews-summary {
  background: var(--bp-card);
  padding: 16px;
  margin-top: 8px;
  cursor: pointer;
}

.bp-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  gap: 12px;
}

.bp-reviews-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.bp-reviews-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.bp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--bp-text-muted);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bp-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bp-reviews-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.bp-score-num {
  font-size: 28px;
  font-weight: 700;
}

.bp-score-max {
  font-size: 16px;
  color: var(--bp-text-muted);
}

.bp-stars {
  color: var(--bp-star);
  font-size: 16px;
  margin-left: 8px;
}

.bp-reviews-score-lg {
  text-align: center;
}

.bp-reviews-score-lg .bp-score-num {
  font-size: 36px;
}

.bp-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-review-item {
  display: flex;
  gap: 12px;
}

.bp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bp-review-body {
  flex: 1;
}

.bp-review-user {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.bp-review-stars {
  color: var(--bp-star);
  font-size: 12px;
  margin-bottom: 4px;
}

.bp-review-variant {
  font-size: 12px;
  color: var(--bp-text-muted);
  margin-bottom: 6px;
}

.bp-review-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Shop Card */
.bp-shop-card {
  display: flex;
  flex-direction: column;
  background: var(--bp-card);
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
}

.bp-shop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 16px;
}

.bp-shop-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bp-shop-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.bp-shop-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  z-index: 1;
}

.bp-logo-top {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1px;
}

.bp-logo-bottom {
  font-size: 6px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

.bp-shop-info {
  flex: 1;
  min-width: 0;
}

.bp-shop-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.bp-shop-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--bp-text);
  line-height: 1.3;
}

.bp-mall-tag {
  padding: 2px 6px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  height: fit-content;
}

.bp-shop-rate {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: #00a896;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  height: fit-content;
}

.bp-shop-sold {
  color: var(--bp-text-muted);
  font-size: 13px;
}

.bp-shop-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 5px 16px;
  background: #fef9e7;
  border-radius: 0;
  font-size: 11px;
  color: var(--bp-text-secondary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bp-shop-badges::-webkit-scrollbar {
  display: none;
}

.bp-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bp-badge-icon {
  width: 16px;
  height: 16px;
  color: #f59e0b;
  flex-shrink: 0;
}

.bp-shop-visit {
  flex-shrink: 0;
  padding: 8px 20px;
  background: #f5f5f5;
  border: none;
  color: var(--bp-text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0;
  height: fit-content;
}

.bp-shop-visit:active {
  background: #e5e5e5;
}

/* Related Products */
.bp-related {
  background: var(--bp-card);
  padding: 16px;
  margin-top: 8px;
}

.bp-related h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
}

.bp-related-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.bp-related-scroll::-webkit-scrollbar {
  display: none;
}

.bp-related-item {
  flex-shrink: 0;
  width: 120px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.bp-related-title {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--bp-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  max-height: 2.8em;
}

.bp-related-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bp-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-related-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bp-related-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-price);
  margin: 0;
}

.bp-related-discount {
  font-size: 10px;
  color: #fff;
  padding: 2px;
  font-weight: 600;
  margin: 0;
  background: red;
  border-radius: 5px;
}

/* Description Tab */
.bp-desc-section {
  background: var(--bp-card);
  padding: 16px;
}

.bp-desc-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
}

.bp-desc-section h4 {
  margin: 20px 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.bp-desc-table {
  margin-bottom: 16px;
}

.bp-desc-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp-desc-label {
  width: 100px;
  flex-shrink: 0;
  color: var(--bp-text-muted);
  font-size: 13px;
}

.bp-desc-value {
  flex: 1;
  font-size: 13px;
}

.bp-desc-content {
  font-size: 14px;
  line-height: 1.7;
}

/* Product Introduction Section (in Overview tab) */
.bp-intro-section {
  background: var(--bp-card);
  padding: 16px;
  margin-top: 8px;
}

.bp-intro-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--bp-text);
}

.bp-intro-details {
  margin-bottom: 20px;
}

.bp-intro-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--bp-border);
  align-items: center;
}

.bp-intro-row:last-child {
  border-bottom: none;
}

.bp-intro-label {
  width: 100px;
  flex-shrink: 0;
  color: var(--bp-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.bp-intro-value {
  flex: 1;
  font-size: 13px;
  color: var(--bp-text);
}

.bp-intro-desc-title {
  margin: 20px 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-text);
}

.bp-intro-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bp-text);
}

.bp-intro-content p {
  margin: 0 0 12px 0;
}

.bp-intro-content p:last-child {
  margin-bottom: 0;
}

.bp-intro-content ul,
.bp-intro-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.bp-intro-content li {
  margin-bottom: 8px;
}

/* Voucher Badge */
.bp-voucher-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Variants Modal */
.bp-variants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-variant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  background: var(--bp-card);
  transition: all 0.2s;
  position: relative;
}

.bp-variant-item.selected {
  border-color: var(--bp-primary);
  background: rgba(255, 59, 92, 0.05);
}

.bp-variant-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bp-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-variant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-variant-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-text-light);
}

.bp-variant-placeholder svg {
  width: 40px;
  height: 40px;
}

.bp-variant-content {
  flex: 1;
  min-width: 0;
}

.bp-variant-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bp-text);
  line-height: 1.4;
}

.bp-variant-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-variant-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-variant-price-current {
  font-size: 16px;
  font-weight: 600;
  color: var(--bp-primary);
  color: var(--bp-price);
}

.bp-variant-price-old {
  font-size: 13px;
  color: var(--bp-text-muted);
  text-decoration: line-through;
}

.bp-variant-savings {
  font-size: 13px;
  color: var(--bp-primary);
  font-weight: 500;
}

.bp-variant-select-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: block !important;
  /* Đảm bảo tất cả nút "Chọn" đều hiển thị */
  visibility: visible !important;
  opacity: 1 !important;
}

.bp-variant-select-btn:hover {
  background: #ff3a5c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 59, 92, 0.3);
}

.bp-variant-select-btn:active {
  transform: translateY(0);
}

.bp-variant-item.selected .bp-variant-select-btn {
  background: #28a745;
}

.bp-variant-item.selected .bp-variant-select-btn:hover {
  background: #218838;
}

/* Cart Modal */
.bp-cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--bp-text-muted);
  font-size: 15px;
}

.bp-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  background: var(--bp-card);
  position: relative;
}

.bp-cart-item-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bp-bg-light);
}

.bp-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-cart-item-info {
  flex: 1;
  min-width: 0;
}

.bp-cart-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-cart-item-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-cart-item-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-cart-item-price-current {
  font-size: 16px;
  font-weight: 600;
  color: red;
}

.bp-cart-item-price-old {
  font-size: 13px;
  color: var(--bp-text-muted);
  text-decoration: line-through;
}

.bp-cart-item-savings {
  font-size: 13px;
  color: var(--bp-primary);
  font-weight: 500;
}

.bp-cart-item-remove {
  position: absolute;
  top: 45px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--bp-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bp-cart-item-remove:hover {
  background: rgba(255, 59, 92, 0.1);
  color: var(--bp-primary);
}

/* Checkout Modal (Slider) */
.bp-modal-checkout {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0;
  display: none;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 10000;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

.bp-modal-checkout.active {
  display: flex;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.bp-modal-checkout-header {
  padding: 5px 16px;
  border-bottom: 1px solid var(--bp-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

.bp-modal-checkout-header h3 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--bp-text);
}

.bp-modal-checkout-header .bp-modal-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.bp-modal-checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.bp-modal-checkout-footer {
  padding: 16px;
  border-top: 1px solid var(--bp-border);
  background: #fff;
  flex-shrink: 0;
}

.bp-checkout-section {
  background: #fff;
  margin: 0;
  padding: 3px 16px;
  border-bottom: 8px solid #f5f5f5;
}

.bp-checkout-section:last-of-type {
  border-bottom: none;
  margin-bottom: 35px;
}

.bp-checkout-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.bp-checkout-product {
  display: flex;
  gap: 12px;
  padding: 0;
}

.bp-checkout-product-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.bp-checkout-product-info {
  flex: 1;
}

.bp-checkout-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

.bp-checkout-product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-checkout-product-price span:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #ff3b5c;
}

.bp-checkout-product-price-old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.bp-checkout-shop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.bp-checkout-shop-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.bp-checkout-shop-info {
  flex: 1;
}

.bp-checkout-shop-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.bp-checkout-shop-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.bp-checkout-product-full {
  padding: 0;
}

.bp-checkout-product-main {
  display: flex;
  gap: 12px;
}

.bp-checkout-product-details {
  flex: 1;
}

.bp-checkout-flash-sale {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #fff3cd;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.bp-checkout-flash-timer {
  color: #ff3b5c;
  font-weight: 700;
}

.bp-checkout-product-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bp-checkout-badge-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.bp-checkout-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bp-checkout-price-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.bp-checkout-price-row-top {
  display: flex;
  align-items: center;
}

.bp-checkout-price-row-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-checkout-price-current {
  font-size: 20px;
  font-weight: 700;
  color: #ff3b5c;
}

.bp-checkout-product-price-old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.bp-checkout-discount {
  padding: 2px 6px;
  background: #ff3b5c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.bp-checkout-quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bp-checkout-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
  margin: 0 !important;
}

.bp-checkout-qty-btn:hover {
  background: #f5f5f5;
  border-color: #ff3b5c;
}

.bp-checkout-qty-btn:active {
  transform: scale(0.95);
}

#bp-checkout-quantity {
  width: 40px;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  line-height: 24px;
}

.bp-checkout-mall-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-right: 8px;
}

.bp-checkout-delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.bp-checkout-delivery-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #666;
}

.bp-checkout-delivery-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.bp-checkout-delivery-free {
  color: #28a745;
  font-weight: 600;
  margin-top: 4px;
}

.bp-checkout-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  display: none;
}

.bp-checkout-form-group-half {
  flex: 1;
  margin-bottom: 0;
}

.bp-checkout-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

input.bp-checkout-input {
  border-radius: 8px !important;
  padding: 12px 16px !important;
  height: 48px !important;
  font-size: 16px !important;
}

.bp-checkout-label .required {
  color: #ff3b5c;
}

.bp-checkout-input,
.bp-checkout-select {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.bp-checkout-input:focus,
.bp-checkout-select:focus {
  outline: none;
  border-color: #ff3b5c;
}

.bp-checkout-input.error,
.bp-checkout-select.error {
  border-color: #ff3b5c;
}

.bp-checkout-error {
  color: #ff3b5c;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.bp-checkout-error.show {
  display: block;
}

.bp-checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bp-checkout-total-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.bp-checkout-total-price {
  font-size: 20px;
  font-weight: 700;
  color: #ff3b5c;
}

.bp-checkout-savings {
  font-size: 13px;
  color: #ff3b5c;
  margin-bottom: 12px;
  text-align: right;
}

.bp-checkout-savings-amount {
  font-size: 14px;
  color: #ff3b5c;
  text-align: right;
  margin-top: 4px;
  margin-bottom: 8px;
  font-weight: 500;
}

.bp-checkout-savings-amount span {
  font-weight: 600;
}

.bp-checkout-submit {
  width: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #fe2c55 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  line-height: 1.2;
  padding: 14px;
  min-height: 52px;
  touch-action: manipulation;
  cursor: pointer;
}

.bp-checkout-submit-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.bp-checkout-voucher-timer {
  font-size: 10px;
  font-weight: 400;
  color: #fff;
  opacity: 0.95;
  text-transform: capitalize;
}

.bp-checkout-submit:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e91e63 100%);
}

.bp-checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Review Images */
.bp-review-images {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.bp-review-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bp-border);
  transition: transform 0.2s;
}

.bp-review-images img:active {
  transform: scale(0.95);
}

.bp-review-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.bp-review-images-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bp-border);
  transition: transform 0.2s;
}

.bp-review-images-grid img:active {
  transform: scale(0.95);
}

.bp-review-modal-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp-review-modal-item:last-child {
  border-bottom: none;
}

.bp-review-date {
  font-size: 12px;
  color: var(--bp-text-muted);
  margin-top: 8px;
}

.bp-desc-content p {
  margin: 0 0 12px 0;
}

/* Related Full */
.bp-related-full {
  background: var(--bp-card);
  padding: 16px;
  color: var(--bp-text-muted);
}

/* Affiliate Row */
.bp-affiliate-row {
  border-top: 1px solid var(--bp-border);
}

.bp-affiliate-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3e0;
  border-radius: 50%;
  flex-shrink: 0;
}

.bp-affiliate-icon svg {
  width: 20px;
  height: 20px;
  color: #ff9800;
}

.bp-aff-label {
  color: var(--bp-text);
  font-size: 14px;
  font-weight: 500;
}

.bp-aff-money {
  color: var(--bp-accent);
  font-weight: 700;
}

.bp-aff-sub {
  display: block;
  color: var(--bp-text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

/* Bottom Bar */
.bp-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--bp-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bp-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--bp-text-secondary);
  font-size: 10px;
  margin: 0 !important;
  padding: 0 8px;
}

.bp-bottom-bar span {
  text-transform: none;
  font-weight: 500;
}

.bp-bar-btn svg {
  width: 22px;
  height: 22px;
}

.bp-bar-cart {
  position: relative;
  padding: 15px 17px;
  background: #ff000024;
  border-radius: 8px;
}

.bp-bar-cart svg {
  width: 24px;
  height: 24px;
  color: #ff0101;
}

.bp-bar-cart .bp-cart-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff3b5c;
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Share Modal - Circular Icons */
.bp-share-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 20px 16px;
  max-width: 100%;
  overflow-x: auto;
}

.bp-share-option-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
  min-width: 70px;
  flex-shrink: 0;
  touch-action: manipulation;
}

.bp-share-option-circle:active {
  transform: scale(0.95);
}

.bp-share-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bp-share-option-circle:hover .bp-share-icon-circle {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bp-share-icon-circle svg,
.bp-share-icon-circle img {
  width: 32px;
  height: 32px;
}

.bp-share-icon-circle img {
  display: block;
  object-fit: contain;
}

.bp-share-label {
  font-size: 12px;
  color: #333;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
  max-width: 70px;
}

/* Copy link icon - default gray */
.bp-share-option-circle[data-share="copy"] .bp-share-icon-circle {
  background: #f5f5f5;
  color: #666;
}

.bp-share-option-circle[data-share="copy"] .bp-share-icon-circle svg {
  stroke: #666;
  fill: none;
}

.bp-buy-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #fe2c55 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  min-height: 48px;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}

.bp-buy-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(254, 44, 85, 0.3);
  color: #fff !important;
}

.bp-buy-text {
  font-size: 18px;
  font-weight: 700 !important;
  line-height: 1.2;
}

.bp-buy-price {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.2;
  margin-top: 1px;
}

.bp-buy-freeship {
  font-size: 10px;
  opacity: 0.9;
  line-height: 1.2;
}

/* Modals */
.bp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.bp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2001;
  background: #fff;
  border-radius: 5px 5px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

.bp-modal.active {
  transform: translateY(0);
}

.bp-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bp-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  min-height: 48px;
}

.bp-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}


.bp-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bp-bg);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--bp-text);
  margin: 0;
  flex-shrink: 0;
  touch-action: manipulation;
}

.bp-modal-body {
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.bp-modal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bp-border);
  font-size: 14px;
}

.bp-modal-row:last-child {
  border-bottom: none;
}

.bp-modal-icon {
  font-size: 18px;
}

/* Modal Header Icon */
.bp-modal-header-icon {
  width: 24px;
  height: 24px;
  color: var(--bp-text);
  flex-shrink: 0;
}

/* Modal Sections */
.bp-modal-section {
  margin-bottom: 5px;
}

.bp-modal-section:last-child {
  margin-bottom: 0;
}

.bp-modal-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--bp-text);
}

/* Benefit Items */
.bp-benefit-item {
  display: flex;
  gap: 12px;
  padding: 2px 16px;
  background: #fffef0;
  border-radius: 8px;
}

.bp-benefit-item:last-child {
  margin-bottom: 0;
}

.bp-benefit-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
}

.bp-benefit-icon svg:first-child {
  width: 24px;
  height: 24px;
  color: var(--bp-text-secondary);
}

.bp-check-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  color: #4caf50;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.bp-benefit-content {
  flex: 1;
  min-width: 0;
}

.bp-benefit-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--bp-text);
}

.bp-benefit-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--bp-text-secondary);
  margin: 0 0 8px 0;
}

.bp-benefit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--bp-accent);
  text-decoration: none;
  font-weight: 500;
}

.bp-benefit-link svg {
  width: 14px;
  height: 14px;
}

.bp-benefit-link:hover {
  text-decoration: underline;
}

/* Service Items */
.bp-service-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-service-item:last-child {
  border-bottom: none;
}

.bp-variant-combo-item {

  margin: 8px;
}

.bp-service-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-service-icon {
  position: relative;
}

.bp-service-icon svg:first-child {
  width: 24px;
  height: 24px;
  color: var(--bp-text-secondary);
}

.bp-arrow-left-icon {
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  color: var(--bp-accent);
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.bp-service-content {
  flex: 1;
  min-width: 0;
}

.bp-service-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--bp-text);
}

.bp-service-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--bp-text-secondary);
  margin: 0 0 12px 0;
}

.bp-payment-methods {
  font-size: 13px;
  color: var(--bp-text-secondary);
  margin: 12px 0 8px 0;
}

.bp-payment-logos {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bp-payment-logo {
  padding: 6px 12px;
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bp-text);
}

.bp-privacy-text {
  font-size: 12px;
  color: var(--bp-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.bp-privacy-link {
  color: #0066cc;
  text-decoration: none;
}

.bp-privacy-link:hover {
  text-decoration: underline;
}

/* Modal Footer */
.bp-modal-footer {
  padding-top: 16px;
  border-top: 1px solid var(--bp-border);
  flex-direction: column;
}

.bp-footer-link {
  display: block;
  font-size: 12px;
  color: var(--bp-text-secondary);
  text-decoration: none;
  text-align: center;
}

.bp-footer-link:hover {
  color: var(--bp-accent);
  text-decoration: underline;
}

.bp-variant-buy-btn {
  margin-bottom: 2px !important;
}

/* Responsive - Mobile First */
@media (max-width: 480px) {
  .bp-modal {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
  }

  .bp-modal-header {
    padding: 14px 16px;
  }

  .bp-modal-header h3 {
    font-size: 17px;
  }

  .bp-modal-body {
    padding: 16px;
  }

  .bp-share-options-grid {
    gap: 12px;
    padding: 16px 12px;
  }

  .bp-share-option-circle {
    min-width: 60px;
  }

  .bp-share-icon-circle {
    width: 56px;
    height: 56px;
  }

  .bp-share-icon-circle svg,
  .bp-share-icon-circle img {
    width: 28px;
    height: 28px;
  }

  .bp-share-label {
    font-size: 11px;
    max-width: 60px;
  }

  .bp-video-modal-content {
    border-radius: 0;
  }

  .bp-checkout-product-img {
    width: 70px;
    height: 70px;
  }

  .bp-checkout-price-current {
    font-size: 18px;
  }

  .bp-checkout-total-price {
    font-size: 18px;
  }

  .bp-cart-item-image {
    width: 70px;
    height: 70px;
  }

  .bp-cart-item-name {
    font-size: 14px;
  }

  /* Variant Modal - Mobile */
  .bp-variants-flavor-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .bp-variant-flavor-item img {
    height: 100px !important;
  }

  .bp-variant-combo-list {
    gap: 8px !important;
  }

  .bp-variant-combo-item {
    margin: 4px !important;
    padding: 8px !important;
  }

  /* Voucher Modal - Mobile */
  .bp-voucher-item {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .bp-voucher-btn {
    width: 100%;
    padding: 12px;
  }

  /* Modal Footer Buttons - Mobile */
  .bp-modal-footer {
    padding: 16px;
    gap: 12px;
  }

  .bp-modal-btn-ok,
  .bp-modal-btn-cancel,
  .bp-modal-btn-apply {
    min-height: 48px;
    font-size: 16px;
    padding: 12px;
  }

  /* Checkout Modal - Mobile */
  .bp-checkout-product-main {
    flex-wrap: wrap;
  }

  .bp-checkout-quantity-controls {
    margin-top: 8px;
  }

  .bp-checkout-delivery {
    flex-wrap: wrap;
  }
}

/* Responsive - Tablet and Desktop */
@media (min-width: 768px) {
  .bp-main {
    max-width: 640px;
    margin: 0 auto;
  }

  .bp-header {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
  }

  .bp-bottom-bar {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
  }

  .bp-modal {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: 12px 12px 0 0;
    max-height: 85vh;
  }

  .bp-modal.active {
    transform: translateX(-50%) translateY(0);
  }

  .bp-video-modal-content {
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 80vh;
    border-radius: 12px;
  }
}

/* Image Lightbox */
.bp-image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.bp-image-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bp-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.bp-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.bp-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.bp-lightbox-close:hover,
.bp-lightbox-close:active {
  background: rgba(255, 255, 255, 0.3);
}

/* Vouchers Modal */
.bp-vouchers-intro {
  color: var(--bp-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.bp-vouchers-section {
  margin-bottom: 24px;
}

.bp-vouchers-section-title,
.bp-offers-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--bp-text);
}

.bp-voucher-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  align-items: flex-start;
}

.bp-voucher-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #fff0f3;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
}

.bp-voucher-icon svg {
  width: 32px;
  height: 32px;
}

.bp-voucher-icon-label {
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  font-weight: 600;
  color: #fe2c55;
  text-align: center;
  width: 100%;
}

.bp-voucher-content {
  flex: 1;
  min-width: 0;
}

.bp-voucher-labels {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.bp-voucher-label {
  font-size: 11px;
  color: var(--bp-text-muted);
  padding: 2px 6px;
  background: #f5f5f5;
  border-radius: 4px;
}

.bp-voucher-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-text);
  margin-bottom: 6px;
}

.bp-voucher-condition {
  font-size: 12px;
  color: #ff3b5c;
  margin-top: 4px;
  font-weight: 500;
}

.bp-voucher-info {
  font-size: 12px;
  color: var(--bp-text-muted);
}

.bp-voucher-terms {
  font-size: 12px;
  color: var(--bp-accent);
  text-decoration: none;
}

.bp-voucher-terms:hover {
  text-decoration: underline;
}

.bp-voucher-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--bp-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  touch-action: manipulation;
  min-height: 44px;
}

.bp-voucher-btn:active {
  background: #d01e3f;
}

.bp-offers-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bp-border);
}

.bp-offer-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
}

.bp-offer-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-accent);
  font-size: 20px;
  line-height: 1;
}

.bp-offer-content {
  flex: 1;
  min-width: 0;
}

.bp-offer-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text);
  margin-bottom: 4px;
}

.bp-offer-source {
  font-size: 12px;
  color: var(--bp-text-muted);
}

.bp-offer-link {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--bp-accent);
  text-decoration: none;
  white-space: nowrap;
}

.bp-offer-link:hover {
  text-decoration: underline;
}

/* Chat Modal Buttons */
.bp-chat-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.bp-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
}

.bp-chat-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bp-chat-phone {
  background: linear-gradient(135deg, #00c6a0, #00a896);
}

.bp-chat-phone:active {
  background: linear-gradient(135deg, #00a896, #008876);
  transform: scale(0.98);
}

.bp-chat-zalo {
  background: linear-gradient(135deg, #83a9df96, #2b70d5);
}

.bp-chat-zalo:active {
  background: linear-gradient(135deg, #0052cc, #003d99);
  transform: scale(0.98);
}

.bp-chat-messenger {
  background: linear-gradient(135deg, #0084ffcc, #8db4db);
}

.bp-chat-messenger:active {
  background: linear-gradient(135deg, #0066cc, #004d99);
  transform: scale(0.98);
}

/* Voucher Error Modal */
.bp-voucher-error-content {
  text-align: center;
  padding: 20px 0;
}

.bp-voucher-error-message {
  font-size: 16px;
  color: var(--bp-text);
  margin: 0;
  line-height: 1.5;
}

.bp-modal-footer {
  padding: 16px;
  border-top: 1px solid var(--bp-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-modal-btn-ok {
  flex: 1;
  padding: 12px 24px;
  background: var(--bp-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
  min-height: 48px;
}

.bp-modal-btn-ok:hover {
  background: #d32f2f;
}

.bp-voucher-variant-change-content {
  text-align: center;
  padding: 20px 0;
}

.bp-voucher-variant-change-message {
  font-size: 14px;
  color: var(--bp-text);
  margin: 0;
  line-height: 1.5;
}

.bp-voucher-variant-info {
  text-align: left;
}

.bp-modal-btn-cancel {
  flex: 1;
  padding: 12px 24px;
  background: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
  min-height: 48px;
}

.bp-modal-btn-cancel:hover {
  background: #d0d0d0;
}

.bp-modal-btn-apply {
  flex: 1;
  padding: 12px 24px;
  background: #32c39a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
  min-height: 48px;
}

.bp-modal-btn-apply:hover {
  background: #d32f2f;
}

/* Loading more indicator (reviews modal) */
.bp-loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 8px;
  color: #888;
  font-size: 14px;
}

.bp-loading-more .bp-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e5e5;
  border-top-color: var(--bp-primary);
  border-radius: 50%;
  animation: bp-spin 0.9s linear infinite;
}

@keyframes bp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fake purchase toast */
.bp-fake-toast {
  position: fixed;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #eee;
}

.bp-fake-toast.show {
  display: flex;
  animation: bp-fade-in 200ms ease-in;
}

.bp-fake-toast.pos-left-bottom {
  left: 12px;
  bottom: 12px;
}

.bp-fake-toast.pos-left-top {
  left: 12px;
  top: 72px;
}

.bp-fake-toast.pos-right-bottom {
  right: 12px;
  bottom: 12px;
}

.bp-fake-toast.pos-right-top {
  right: 12px;
  top: 72px;
}

.bp-fake-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.bp-fake-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 13px;
  color: #333;
}

.bp-fake-name {
  font-weight: 700;
}

.bp-fake-product {
  color: #444;
}

.bp-fake-time {
  color: #777;
  font-size: 12px;
  margin-top: 2px;
}

@keyframes bp-fade-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Video Modal */
.bp-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.bp-video-modal.active {
  display: flex;
}

.bp-video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.bp-video-modal-content {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100vh;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}

.bp-video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bp-video-modal-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  height: 100%;
  /* 16:9 aspect ratio */
}

.bp-video-modal-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Ẩn bottom navigation của theme trên trang CPT */
body.bp-sp .ft-boxnavi,
body.bp-sp .ft-navi {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
