/* ==========================================================================
   PRODUCT DETAIL PAGE - FULL CSS
   ========================================================================== */

/* ---------- GALLERY ---------- */
.vb-product-wrap {
  padding: 20px 0 20px;
}
.vb-product-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.vb-gallery-col {
  flex: 0 0 36%;
  width: 36%;
}
.vb-product-gallery {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Thumbnails */
.vb-thumb-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 72px;
  flex-shrink: 0;
}
.vb-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s;
  position: relative;
  padding: 3px;
}
.vb-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vb-thumb-item.active,
.vb-thumb-item:hover {
  border-color: #f2871b;
}
.vb-thumb-item.active::after {
  content: '✓';
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: #f2871b;
  color: #fff;
  font-size: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Main Image */
.vb-main-img-container {
  flex: 1;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.vb-main-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Magnify glass */
.vb-magnify-glass {
  display: none;
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow:
    0 0 0 2px rgba(0,0,0,.1),
    inset 0 0 0 1px rgba(255,255,255,.6),
    0 6px 24px rgba(0,0,0,.18);
  pointer-events: none;
  z-index: 10;
  background-repeat: no-repeat;
  background-color: #fff;
  will-change: left, top, background-position;
}
@media (hover: hover) and (pointer: fine) {
  .vb-main-img-container { cursor: none; }
  .vb-main-img-container:hover .vb-magnify-glass { display: block; }
}

/* ---------- DETAILS ---------- */
.vb-info-col {
  flex: 1;
  min-width: 0;
}
.vb-prod-title {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #000 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin: 0 0 5px !important;
  line-height: 1.35 !important;
}
.vb-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.vb-price-now {
  font-size: 26px;
  font-weight: 700;
  color: #f2871b;
}
.vb-price-old {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
}
.vb-prod-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 8px;
}
.vb-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0 0 10px;
}

/* Size options */
.vb-option-group {
  margin-bottom: 10px;
}
.vb-option-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #64748b;
}
.vb-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 9999; justify-content: center; align-items: center;
}
.vb-modal-overlay.show { display: flex; }
.vb-modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 16px; padding: 36px 32px 24px;
  width: 320px; max-width: 90vw; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); z-index: 10000;
}
.vb-modal.show { display: block; }
.vb-modal-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #e74c3c;
  color: #fff; font-size: 28px; font-weight: 700; line-height: 56px;
  margin: 0 auto 16px;
}
.vb-modal-title {
  font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 20px;
}
.vb-modal-btn {
  background: #111010; color: #fff; border: none; border-radius: 8px;
  padding: 10px 32px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .2s;
}
.vb-modal-btn:hover { background: #da5104; }
.vb-size-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vb-size-btn {
  padding: 7px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #1e293b;
  transition: all .15s;
  font-family: inherit;
}
.vb-size-btn:hover {
  border-color: #f2871b;
  color: #f2871b;
}
.vb-size-btn.active {
  border-color: #f2871b;
  background: #fff5ec;
  color: #f2871b;
}

/* Qty + Add to Cart */
.vb-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.vb-qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}
.vb-qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-size: 17px;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  font-family: inherit;
}
.vb-qty-btn:hover {
  background: #f1f5f9;
}
.vb-qty-input {
  width: 46px;
  height: 38px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  color: #1e293b;
  font-family: inherit;
}
.vb-add-cart-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #111010 0%, #2a2a2a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(17,16,16,.2);
  letter-spacing: .3px;
  white-space: nowrap;
  width: auto;
}
.vb-add-cart-btn:hover {
  background: #f2871b;
  box-shadow: 0 6px 20px rgba(242,135,27,.4);
  transform: translateY(-2px) scale(1.02);
}
.vb-add-cart-btn:active {
  transform: translateY(0) scale(.98);
}

/* ==========================================================================
   NEW TAB & REVIEW STYLES (SCREENSHOT SPECIFIC)
   ========================================================================== */
.vb-tabs-container {
  margin-top: 40px;
  background: #fff;
}
.vb-tabs {
  display: flex;
  gap: 0;
  /* border-bottom: 1px solid #e5e5e5; */
  border-radius: 8px 8px 0 0;
  padding: 5px 0px;
}
.vb-tab-btn {
  padding: 12px 20px;
  margin-right: 28px;
  border: none;
  background: #fff;
  color: #999;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  border-radius: 8px;
}
.vb-tab-btn:first-child {
  margin-left: 10px;
}
.vb-tab-btn:last-child {
  margin-right: 0;
}
.vb-tab-btn:hover {
  color: #333;
}
.vb-tab-btn.active {
  color: #fff;
  font-weight: 600;
  background: #111010;
  padding: 10px 18px;
  /* border-radius: 6px 6px 0 0; */
}
.vb-tab-content-panel {
  display: none;
  padding: 24px 0 24px 15px;
  background: #fff;
  margin-top: 5px;
}
.vb-tab-content-panel.active {
  display: block;
}

/* Product Details View */
.vb-detail-heading {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.vb-detail-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #000;
}
.vb-rich-text-content {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

/* Review Layout Section */
.vb-review-section-wrap {
  display: flex;
  gap: 40px;
}
.vb-review-summary-box {
  flex: 0 0 280px;
}
.vb-review-form-box {
  flex: 1;
}
.vb-big-rating-num {
  font-size: 54px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 5px;
}
.vb-rating-meta-txt {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 15px;
}
.vb-stars-row {
  color: #cbd5e1;
  font-size: 14px;
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}
.vb-stars-row i.filled {
  color: #f2871b;
}

/* Star bar list statistics */
.vb-stat-bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.vb-stat-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}
.vb-mini-stars {
  display: flex;
  gap: 1px;
  width: 75px;
  color: #f2871b;
}
.vb-mini-stars i.empty {
  color: #cbd5e1;
}
.vb-progress-line-bg {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}
.vb-progress-line-fill {
  height: 100%;
  background: #cbd5e1;
  width: 0%;
}
.vb-percent-lbl {
  width: 30px;
  text-align: right;
  color: #94a3b8;
}

/* Review Form Specifics */
.vb-review-form-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 10px;
}
.vb-review-form-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #f2871b;
}
.vb-form-notice {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}
.vb-form-group {
  margin-bottom: 18px;
}
.vb-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}
.vb-form-control-textarea {
  width: 100%;
  height: 120px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  resize: vertical;
}
.vb-form-control-textarea:focus, .vb-form-select:focus, .vb-form-input:focus {
  outline: none;
  border-color: #f2871b;
}
.vb-form-select {
  width: 100%;
  max-width: 300px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #475569;
  background: #fff;
}
.vb-form-input {
  width: 100%;
  max-width: 300px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
}
.vb-review-item {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}
.vb-review-item:last-child {
  border-bottom: none;
}
.vb-review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.vb-review-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.vb-review-item-date {
  font-size: 12px;
  color: #94a3b8;
}
.vb-review-item-stars {
  margin-bottom: 6px;
  font-size: 13px;
}
.vb-review-item-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}
.vb-submit-review-btn {
  background: #334155;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
}
.vb-submit-review-btn:hover {
  background: #1e293b;
}

/* ==========================================================================
   MOBILE STYLES
   ========================================================================== */
@media (max-width: 767px) {
  .vb-product-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .vb-gallery-col {
    width: 100% !important;
    flex: none !important;
  }
  .vb-product-gallery {
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .vb-thumb-col {
    width: 55px !important;
    flex-shrink: 0 !important;
    gap: 7px !important;
  }
  .vb-thumb-item {
    width: 55px !important;
    height: 55px !important;
  }
  .vb-main-img-container {
    flex: 1 !important;
    aspect-ratio: 1 / 1 !important;
    padding: 10px !important;
    overflow: visible !important;
    touch-action: pinch-zoom !important;
  }
  .vb-main-img-container img {
    touch-action: pinch-zoom !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform .1s ease !important;
    transform-origin: center center !important;
  }
  .vb-magnify-glass {
    display: none !important;
  }
  .vb-info-col {
    width: 100% !important;
    flex: none !important;
    margin-top: 22px !important;
  }
  .vb-prod-title {
    font-size: 18px !important;
  }
  .vb-price-now {
    font-size: 22px !important;
  }
  .vb-action-row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .vb-qty-selector {
    flex-shrink: 0 !important;
    width: auto !important;
  }
  .vb-qty-btn {
    width: 32px !important;
    height: 38px !important;
  }
  .vb-qty-input {
    width: 36px !important;
  }
  .vb-add-cart-btn {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    letter-spacing: 0 !important;
    gap: 5px !important;
    height: 42px !important;
    line-height: 1 !important;
  }

  /* Review Section Mobile View Resp */
  .vb-review-section-wrap {
    flex-direction: column;
    gap: 30px;
  }
  .vb-review-summary-box {
    flex: none;
    width: 100%;
  }
  .vb-form-select {
    max-width: 100%;
  }
  .vb-tab-content-panel {
    padding: 20px 15px;
  }
}