/* ==========================================================================
   Tiệm Nhà Gốm - Product Detail V2 (Updated: ElleGaborStd Font & Original Button Palette)
   ========================================================================== */

/* Font ElleGaborStd definition */
@font-face {
  font-family: 'Elle Gabor Std Light';
  src: url('../Asset/fonts/ElleGaborStd-Light.woff') format('woff'),
       url('../Asset/fonts/ElleGaborStd-Light.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ellegaborstd';
  src: url('../Asset/fonts/ElleGaborStd-Light.woff') format('woff'),
       url('../Asset/fonts/ElleGaborStd-Light.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --v2-bg-main: #fcfbf9;
  --v2-bg-card: #ffffff;
  --v2-bg-soft: #f8f8f6;
  --v2-text-black: #000000;
  --v2-text-main: #1a1a1a;
  --v2-text-muted: #555555;
  --v2-text-light: #888888;
  --v2-border: #e8e8e8;
  --v2-border-dashed: #ded9cf;
  
  /* Brand Original Button Palette: Black & White & Charcoal */
  --v2-btn-dark: #000000;
  --v2-btn-dark-hover: #2c3e50;
  --v2-btn-outline-border: #000000;
  --v2-btn-outline-text: #000000;
  
  --v2-sale-red: #c0392b;
  --v2-sale-red-bg: rgba(192, 57, 43, 0.08);

  --v2-radius-sm: 4px;
  --v2-radius-md: 8px;
  --v2-radius-lg: 12px;
  --v2-radius-full: 9999px;

  --v2-font-serif: 'Elle Gabor Std Light', serif;
  --v2-font-sans: 'Elle Gabor Std Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.detail-v2-body {
  font-family: var(--v2-font-serif);
  font-weight: 600;
  background-color: var(--v2-bg-main);
  color: var(--v2-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  padding-top: 85px; /* Offset for fixed navbar */
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body.detail-v2-body {
    padding-top: 75px;
  }
}

.v2-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top Navigation & Breadcrumb (Hàng Quay lại & Breadcrumb Trang chủ)
   ========================================================================== */
.v2-top-bar-container {
  padding: 18px 0 12px;
}

.v2-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v2-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #888;
  text-decoration: none;
  font-family: var(--v2-font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.25s ease;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.v2-btn-back svg {
  transition: transform 0.25s ease;
}

.v2-btn-back:hover {
  color: var(--v2-text-black);
  transform: translateX(-4px);
}

.v2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--v2-font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: #888;
  flex-wrap: wrap;
}

.v2-breadcrumb a {
  color: #888;
  text-decoration: none;
  font-family: var(--v2-font-serif);
  font-weight: 400;
  transition: color 0.2s ease;
}

.v2-breadcrumb a:hover {
  color: var(--v2-text-black);
}

.v2-breadcrumb .separator {
  color: #aaa;
  margin: 0 3px;
}

.v2-breadcrumb .current {
  color: var(--v2-text-black);
  font-family: var(--v2-font-serif);
  font-weight: 400;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Hero Stage (Gallery + Purchase Panel)
   ========================================================================== */
.v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  margin-top: 20px;
  align-items: start;
}

.v2-hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .v2-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   FIXED GALLERY SECTION (Horizontal Slider Under Main Image - Never Crushed!)
   ========================================================================== */
.v2-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.v2-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.v2-main-image-box {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: var(--v2-radius-md);
  border: 1px solid var(--v2-border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.v2-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.v2-main-image-box:hover .v2-main-img {
  transform: scale(1.02);
}

.v2-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: var(--v2-text-black);
}

.v2-gallery-nav:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-50%) scale(1.06);
}

.v2-gallery-nav.prev { left: 14px; }
.v2-gallery-nav.next { right: 14px; }

.v2-badge-pills {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}

.v2-pill-badge {
  font-family: 'Elle Gabor Std Light', serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.v2-pill-badge.hot {
  background: rgba(254, 243, 199, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.v2-pill-badge.new {
  background: rgba(220, 252, 231, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.3);
}

.v2-pill-badge.sale {
  background: #c0392b;
  color: #ffffff;
  border: 1px solid rgba(192, 57, 43, 0.4);
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3);
}

.v2-img-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: var(--v2-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--v2-radius-full);
  backdrop-filter: blur(4px);
  z-index: 5;
}

/* Horizontal Thumbnail Carousel under main image */
.v2-thumbnail-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.v2-thumb-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 4px 2px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.v2-thumb-track::-webkit-scrollbar {
  height: 5px;
}
.v2-thumb-track::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.v2-thumb-item {
  width: 70px;
  height: 70px;
  flex: 0 0 70px !important;
  min-width: 70px !important;
  min-height: 70px !important;
  border-radius: 6px;
  border: 1.5px solid var(--v2-border);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}

.v2-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-thumb-item.active {
  border-color: #000000;
  box-shadow: 0 0 0 1.5px #000000;
  opacity: 1;
}

.v2-thumb-item:hover {
  border-color: #000;
}

.v2-thumb-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  color: #333;
  transition: all 0.2s;
}

.v2-thumb-arrow-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Guarantee Card under gallery */
.v2-guarantee-card {
  background: #ffffff;
  border: 1px solid #ebe7df;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  margin-top: 18px;
}

.v2-guarantee-header {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #e8e3d9;
}

.v2-guarantee-title {
  font-family: var(--v2-font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.v2-guarantee-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f4efe6;
  color: #1a1a1a;
  flex-shrink: 0;
}

.v2-guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

@media (max-width: 600px) {
  .v2-guarantee-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.v2-guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 0;
}

.v2-guarantee-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f7f5f0;
  border: 1px solid #ede8de;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-guarantee-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-guarantee-text strong {
  font-family: var(--v2-font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: #000000;
  line-height: 1.35;
}

.v2-guarantee-text span {
  font-family: var(--v2-font-serif);
  font-size: 0.8rem;
  font-weight: 400;
  color: #666666;
  line-height: 1.4;
}

/* ==========================================================================
   Right Panel: Product Information & Purchase Action
   ========================================================================== */
.v2-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-md);
  padding: 28px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  min-width: 0;
  width: 100%;
}

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

.v2-category-tag {
  font-family: var(--v2-font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: var(--v2-text-black);
  padding: 4px 10px;
  border-radius: 2px;
}

.v2-sku-text {
  font-family: var(--v2-font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: #aaaaaa;
  letter-spacing: 2px;
}

.v2-product-title {
  font-family: var(--v2-font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--v2-text-black);
  margin: 0 0 1.5rem 0;
}

.v2-sold-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--v2-font-sans);
  font-size: 0.85rem;
  color: #888888;
  margin: 0 0 0.8rem 0;
  font-weight: 400;
}

.v2-sold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 0;
  border: none;
  font-family: var(--v2-font-sans);
  font-weight: 400;
  color: #888888;
  font-size: 0.85rem;
}

.v2-sold-badge strong {
  color: inherit;
  font-weight: 400;
}

.v2-sold-badge svg {
  color: #888888;
}

.v2-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--v2-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
}

.v2-stock-status.in-stock {
  color: #16a34a;
}

.v2-stock-status.out-of-stock {
  color: #dc2626;
}

.v2-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Price Box - Exact Match with .product-price-row in style.css */
.v2-price-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0 0 1.5rem 0;
}

.v2-price-main-row {
  display: flex;
  align-items: baseline;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.v2-main-price {
  font-size: 2.2rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--v2-text-black, #1a1a1a);
  font-family: var(--v2-font-serif);
  line-height: 1.2;
}

.v2-price-sub-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 12px 16px;
}

.v2-old-price {
  font-family: var(--v2-font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: #999999;
  text-decoration: line-through;
  white-space: nowrap;
  line-height: 1.2;
}

.v2-sale-pill {
  font-family: var(--v2-font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #c0392b;
  white-space: nowrap;
  background: rgba(192, 57, 43, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.v2-price-saving-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #15803d;
  font-family: var(--v2-font-sans);
  font-weight: 400;
}

.v2-price-saving-row strong {
  font-weight: 700;
  color: #166534;
}

/* Membership dynamic price badge */
.v2-member-price-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #fafaf8;
  border: 1px dashed #dcd7ce;
  border-radius: var(--v2-radius-sm);
  font-family: var(--v2-font-serif);
  font-size: 0.95rem;
  font-weight: 400;
}

.v2-member-price-badge .tier-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.v2-member-price-badge .tier-price {
  font-weight: 400;
  color: #c0392b;
  font-size: 1.15rem;
}

/* Variants Section */
.v2-variants-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-variant-title {
  font-family: var(--v2-font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #444444;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.v2-variant-title span {
  font-family: var(--v2-font-sans);
  font-weight: 500;
  color: var(--v2-text-black);
  text-transform: uppercase;
}

.v2-color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.v2-color-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  background: #ffffff;
  font-family: var(--v2-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s ease;
}

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

.v2-color-item:hover {
  border-color: #000000;
}

.v2-color-item.active {
  border-color: #000000 !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 600;
  box-shadow: 0 0 0 1px #000000;
}

.v2-pattern-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-pattern-chip {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #ffffff;
  font-family: var(--v2-font-sans);
  font-size: 0.85rem;
  color: #333333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v2-pattern-chip:hover {
  border-color: #000000;
}

.v2-pattern-chip.active {
  background: #f8f9fa !important;
  color: #000000 !important;
  border-color: #000000 !important;
  font-weight: 600;
  box-shadow: 0 0 0 1px #000000;
}

/* Combo Selector - Pill Chips matching original detail page */
.v2-combo-chips,
.v2-combo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-combo-chip,
.v2-combo-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  font-family: var(--v2-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s ease;
}

.v2-combo-chip:hover,
.v2-combo-card:hover {
  border-color: #000000;
}

.v2-combo-chip.active,
.v2-combo-card.active {
  border: 2px solid #000000 !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 600;
  box-shadow: none;
}

.v2-combo-chip img,
.v2-combo-card img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Stock status */
.v2-stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--v2-font-sans);
  font-size: 0.82rem;
  color: #27ae60;
}

.v2-stock-status.out {
  color: #e74c3c;
}

.v2-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ==========================================================================
   BUTTONS: EXACT MATCH WITH ORIGINAL PAGE (Black, White, Slate)
   ========================================================================== */
.v2-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.v2-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.v2-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.v2-stepper-btn {
  width: 40px;
  height: 42px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v2-text-black);
  transition: background 0.2s;
}

.v2-stepper-btn:hover:not(:disabled) {
  background: #f0f0f0;
}

.v2-stepper-input {
  width: 50px;
  height: 42px;
  border: none;
  text-align: center;
  font-family: var(--v2-font-sans);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  background: transparent;
}

.v2-buttons-grid {
  display: flex;
  gap: 10px;
  width: 100%;
}

@media (max-width: 500px) {
  .v2-buttons-grid {
    flex-wrap: wrap;
  }
  .v2-btn-buy-now,
  .v2-btn-add-cart {
    flex: 1 1 100% !important;
  }
}

/* Nút Mua Ngay - Original .btn-dark style */
.v2-btn-buy-now {
  flex: 2;
  height: 52px;
  background: var(--v2-btn-dark) !important;
  color: #ffffff !important;
  border: 1px solid var(--v2-btn-dark) !important;
  border-radius: 999px !important;
  font-family: var(--v2-font-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.v2-btn-buy-now:hover:not(:disabled) {
  background: var(--v2-btn-dark-hover) !important;
  border-color: var(--v2-btn-dark-hover) !important;
  transform: translateY(-1px);
}

/* Nút Thêm vào giỏ - Original .btn-outline style */
.v2-btn-add-cart {
  flex: 1.2;
  height: 52px;
  background: #ffffff !important;
  color: var(--v2-btn-outline-text) !important;
  border: 1.5px solid var(--v2-btn-outline-border) !important;
  border-radius: 999px !important;
  font-family: var(--v2-font-serif) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
  padding: 0 20px;
}

.v2-btn-add-cart:hover:not(:disabled) {
  background: var(--v2-text-black) !important;
  color: #ffffff !important;
  border-color: var(--v2-text-black) !important;
}

/* Nút Icon Fav & Share - Original style */
.v2-icon-btn {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ccc;
  color: #666;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.v2-icon-btn:hover {
  border-color: var(--v2-text-black);
  color: var(--v2-text-black);
}

.v2-icon-btn.active {
  color: #e74c3c !important;
  border-color: #fca5a5 !important;
  background: #fff5f5 !important;
}

/* Compact Coupon Drawer Trigger */
.v2-coupon-pill-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #fafaf8;
  border: 1px dashed var(--v2-border-dashed);
  border-radius: 999px;
  font-family: var(--v2-font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v2-coupon-pill-trigger:hover {
  background: #f5f5f0;
  border-color: #000;
}

/* ==========================================================================
   Middle Stage: Structured Tabs Layout
   ========================================================================== */
.v2-middle-section {
  margin-top: 50px;
  padding-bottom: 60px;
  border-top: 1px solid var(--v2-border);
  background: #ffffff;
}

.v2-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--v2-border);
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 16px;
}

.v2-tabs-nav::-webkit-scrollbar {
  display: none;
}

.v2-tab-btn {
  padding: 14px 22px;
  font-family: var(--v2-font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #777;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.v2-tab-btn:hover {
  color: #000;
}

.v2-tab-btn.active {
  color: #000 !important;
  border-bottom-color: #000 !important;
  font-weight: 600;
}

.v2-tabs-content {
  padding: 32px 0;
}

.v2-tab-pane {
  display: none;
  animation: v2FadeIn 0.3s ease;
}

.v2-tab-pane.active {
  display: block;
}

@keyframes v2FadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Rich Description styling - Matching .product-description in style.css */
.v2-rich-text {
  max-width: 900px;
  font-family: var(--v2-font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
  color: #555555;
}

.v2-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--v2-radius-md);
  margin: 20px 0;
}

.v2-rich-text h2, .v2-rich-text h3 {
  font-family: var(--v2-font-serif);
  font-weight: 600;
  color: var(--v2-text-black);
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Care guide cards */
.v2-care-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.v2-care-card {
  padding: 24px;
  background: var(--v2-bg-main);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.v2-care-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.v2-care-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.v2-care-card h4 {
  font-family: var(--v2-font-serif);
  font-size: 1.2rem;
  color: var(--v2-text-black);
  margin: 0 0 8px 0;
}

.v2-care-card p {
  font-family: var(--v2-font-sans);
  font-size: 0.88rem;
  color: var(--v2-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Sticky Bottom Bar (Mobile & Scroll)
   ========================================================================== */
.v2-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--v2-border);
  padding: 10px 20px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-sticky-bar.visible {
  transform: translateY(0);
}

.v2-sticky-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.v2-sticky-prod {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.v2-sticky-prod img {
  width: 44px;
  height: 44px;
  border-radius: var(--v2-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--v2-border);
}

.v2-sticky-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-sticky-name {
  font-family: var(--v2-font-serif) !important;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--v2-text-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.v2-sticky-price {
  font-family: var(--v2-font-serif) !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--v2-text-black);
  line-height: 1.2;
  white-space: nowrap !important;
}

.v2-sticky-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.v2-sticky-btn-cart {
  padding: 10px 20px;
  background: #ffffff;
  color: #000000;
  border: 1.5px solid #000000;
  border-radius: 999px;
  font-family: var(--v2-font-serif) !important;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.v2-sticky-btn-cart:hover {
  background: #f5f5f5;
}

.v2-sticky-btn-buy {
  padding: 10px 22px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 999px;
  font-family: var(--v2-font-serif) !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.v2-sticky-btn-buy:hover {
  background: #2c3e50;
  border-color: #2c3e50;
}

/* --- Mobile Responsive Sticky Bottom Bar --- */
@media (max-width: 768px) {
  .v2-sticky-bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  .v2-sticky-inner {
    gap: 8px;
    width: 100%;
  }

  .v2-sticky-prod {
    gap: 8px;
    flex-shrink: 0; /* Giữ nguyên khối ảnh + giá, tuyệt đối không bị nút đè */
  }

  .v2-sticky-prod img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .v2-sticky-name {
    display: none !important; /* Ẩn tên sản phẩm trên mobile để tối ưu hàng ngang cho giá */
  }

  .v2-sticky-price {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    color: #111111;
  }

  .v2-sticky-actions {
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  .v2-sticky-btn-cart,
  .v2-sticky-btn-buy {
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    flex: 1;
    max-width: 130px;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .v2-sticky-btn-cart svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .v2-sticky-bar {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .v2-sticky-inner {
    gap: 6px;
  }

  .v2-sticky-prod {
    gap: 6px;
  }

  .v2-sticky-prod img {
    width: 34px;
    height: 34px;
  }

  .v2-sticky-price {
    font-size: 0.85rem !important;
  }

  .v2-sticky-btn-cart,
  .v2-sticky-btn-buy {
    font-size: 0.75rem !important;
    padding: 7px 6px !important;
  }
}

/* Recommendations Section */
.v2-recommend-section {
  padding: 50px 0;
}

.v2-section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.v2-subheading {
  font-family: var(--v2-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  display: block;
  margin-bottom: 6px;
}

.v2-section-heading h2 {
  font-family: var(--v2-font-serif);
  font-size: 2.1rem;
  color: var(--v2-text-black);
  margin: 0;
}

.v2-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .v2-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .v2-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Lightbox Modal */
.v2-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 24px;
}

.v2-lightbox.active {
  display: flex;
}

.v2-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--v2-radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.v2-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

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

/* ==========================================================================
   Product Cards Typography (Match other pages 100%)
   ========================================================================== */
.product-card,
.product-card * {
  font-family: var(--v2-font-serif) !important;
}

.product-card-info h3 {
  font-family: var(--v2-font-serif) !important;
  font-size: 1rem;
  font-weight: 600 !important;
  color: var(--text-black);
  line-height: 1.3;
}

.product-card .price {
  font-family: var(--v2-font-serif) !important;
  font-size: 1.05rem;
  font-weight: 700 !important;
  color: var(--text-black);
}

.product-card .price .current-price {
  font-family: var(--v2-font-serif) !important;
  font-weight: 700 !important;
  color: #e53935;
}

.product-card .price .old-price {
  font-family: var(--v2-font-serif) !important;
  font-size: 0.82rem;
  font-weight: 400 !important;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-sku-row {
  font-family: var(--v2-font-serif) !important;
}

.product-sku-row .product-sku {
  font-family: var(--v2-font-serif) !important;
  font-size: 0.72rem;
  color: #888888;
}

.product-sku-row .product-sold-mini {
  font-family: var(--v2-font-serif) !important;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.product-card .discount-badge-circle {
  font-family: var(--v2-font-serif) !important;
}

.product-card .express-2h-badge {
  font-family: var(--v2-font-serif) !important;
}
