/* ==========================================================================
   PRODUCT DETAILS PAGE STYLESHEET - product-details.css
   Custom external styles for the standalone Product Details page
   ========================================================================== */

/* Breadcrumb Banner */
.mve-breadcrumb-section {
  background-color: #121212;
  color: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid #262626;
}

.mve-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #a3a3a3;
  margin-bottom: 8px;
}

.mve-breadcrumb a {
  color: #e5e5e5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mve-breadcrumb a:hover {
  color: #dc2626;
}

.mve-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
}

/* Product Main Image & Gallery Thumbnails */
.mve-details-img-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px !important;
  padding: 16px;
}

.mve-details-main-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  background-color: #f8fafc;
  cursor: crosshair;
  user-select: none;
}

.mve-zoom-lens-square {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 2px solid #fd6e01;
  background-repeat: no-repeat;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 20;
  display: none;
  border-radius: 0px !important;
  background-color: #ffffff;
}

.mve-details-main-img-box:hover .mve-zoom-lens-square {
  display: block;
}

.mve-details-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mve-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 0px !important;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mve-details-main-img-box:hover .mve-zoom-badge {
  opacity: 0;
}

.mve-details-gallery-row {
  display: flex;
  gap: 12px;
}

.mve-gallery-thumb {
  width: 75px;
  height: 75px;
  border: 2px solid #e2e8f0;
  border-radius: 0px !important;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.mve-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mve-gallery-thumb.active,
.mve-gallery-thumb:hover {
  border-color: #fd6e01;
}

/* Product Info Right Column */
.mve-details-info-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px !important;
  padding: 30px;
}

.mve-vendor-badge {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.mve-details-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 14px;
}

.mve-details-price-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.mve-details-price-current {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fd6e01;
}

.mve-details-price-old {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.mve-details-discount-tag {
  background-color: #fd6e01;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 0px !important;
}

.mve-details-short-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Key Features Bullet List */
.mve-spec-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mve-spec-bullets li {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mve-spec-bullets li i {
  color: #dc2626;
}

/* Quantity & Action Buttons */
.mve-details-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.mve-details-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0px !important;
  overflow: hidden;
  height: 44px;
}

.mve-details-qty-btn {
  background-color: #f8fafc;
  border: none;
  width: 36px;
  height: 100%;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mve-details-qty-btn:hover {
  background-color: #e2e8f0;
}

.mve-details-qty-input {
  border: none;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  width: 44px;
  height: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  background-color: #ffffff;
}

.mve-btn-add-cart {
  background-color: #fd6e01;
  color: #ffffff;
  border: 1px solid #fd6e01;
  border-radius: 0px !important;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mve-btn-add-cart:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.mve-btn-buy-now {
  background-color: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 0px !important;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mve-btn-buy-now:hover {
  background-color: #fd6e01;
  border-color: #fd6e01;
  color: #ffffff;
}

/* Social Share Bar */
.mve-social-share-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.mve-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.mve-share-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  color: #475569;
  border-radius: 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mve-share-icon:hover {
  background-color: #fd6e01;
  border-color: #fd6e01;
  color: #ffffff;
}

/* Tabs Section (Description, Specs, Reviews) */
.mve-details-tabs-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px !important;
  margin-top: 30px;
}

.mve-tabs-nav {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  background-color: #f8fafc;
}

.mve-tab-link {
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mve-tab-link.active,
.mve-tab-link:hover {
  color: #fd6e01;
  border-bottom-color: #fd6e01;
  background-color: #ffffff;
}

.mve-tab-pane {
  padding: 30px;
}

/* Specs Table */
.mve-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.mve-specs-table th,
.mve-specs-table td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
}

.mve-specs-table th {
  background-color: #f8fafc;
  width: 30%;
  color: #0f172a;
  font-weight: 700;
}

.mve-specs-table td {
  color: #475569;
}

/* Reviews & Comments Section */
.mve-review-item {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.mve-reviewer-avatar {
  width: 44px;
  height: 44px;
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0px !important;
  font-size: 1.1rem;
}

.mve-comment-form-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 24px;
  margin-top: 30px;
}

.mve-form-field {
  border: 1px solid #cbd5e1;
  border-radius: 0px !important;
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
  width: 100%;
}

.mve-form-field:focus {
  border-color: #dc2626;
}

/* Responsive Mobile Fixes for Product Details Page (< 767.98px) */
@media (max-width: 767.98px) {
  .mve-details-img-card {
    padding: 12px !important;
  }

  .mve-details-gallery-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mve-details-gallery-row::-webkit-scrollbar {
    display: none;
  }

  .mve-gallery-thumb {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
  }

  .mve-details-info-box {
    padding: 16px !important;
    margin-top: 16px !important;
  }

  .mve-details-title {
    font-size: 1.25rem !important;
  }

  .mve-details-price-current {
    font-size: 1.5rem !important;
  }

  .mve-details-price-old {
    font-size: 0.95rem !important;
  }

  .mve-details-action-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .mve-details-qty-selector {
    width: 100% !important;
    justify-content: center !important;
  }

  .mve-btn-add-cart,
  .mve-btn-buy-now {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .mve-social-share-box {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Tabs Section Mobile Wrapping Fix */
  .mve-details-tabs-card {
    margin-top: 20px !important;
  }

  .mve-tabs-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 6px !important;
    background-color: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
  }

  .mve-tab-link {
    flex: 1 1 calc(33.333% - 6px) !important;
    min-width: fit-content !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 6px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: 0 !important;
  }

  .mve-tab-link.active {
    background-color: #ffffff !important;
    border-bottom-color: #dc2626 !important;
    color: #dc2626 !important;
  }

  .mve-tab-pane {
    padding: 16px !important;
  }

  .mve-tab-pane .border-end {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
  }

  .mve-specs-table th,
  .mve-specs-table td {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }

  .mve-comment-form-box {
    padding: 16px !important;
  }
}
