/* ===== Velocity Weave Product Detail ===== */

#product-info.vw-product-page {
  padding-bottom: 0.5rem;
}

#product-info.vw-product-page #content {
  padding-bottom: 0.75rem;
}

.vw-product-page .vw-breadcrumb {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1rem 0 0.5rem;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .vw-product-page .vw-breadcrumb,
  #product-info .breadcrumb,
  #product-info .vw-breadcrumb {
    display: none !important;
  }
}

.vw-product-page .vw-breadcrumb .breadcrumb-item,
.vw-product-page .vw-breadcrumb .breadcrumb-item a {
  font-size: 0.8125rem;
  color: #666666;
}

.vw-product-page .vw-breadcrumb .breadcrumb-item a:hover {
  color: var(--brand-accent);
}

.vw-product-gallery {
  margin-bottom: 1.5rem;
}

.vw-product-gallery-main {
  background: #f8f8f8;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.vw-product-gallery-main a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.vw-product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product image lightbox */
body.vw-lightbox-open {
  overflow: hidden;
}

.vw-product-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}

.vw-product-lightbox.is-open {
  display: flex;
}

.vw-product-lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
  pointer-events: auto;
}

.vw-product-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: auto;
}

.vw-product-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.vw-product-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.vw-product-thumb-item {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
  padding: 0;
}

.vw-product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vw-product-thumb-item.active,
.vw-product-thumb-item:hover {
  border-color: #1d1f21;
}

.vw-product-info {
  padding: 0 0 1rem;
}

@media (min-width: 992px) {
  .vw-product-info {
    padding: 0 0 0 1rem;
  }
}

.vw-product-info .product-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1d1f21;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.vw-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.vw-product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #666666;
}

.vw-product-rating .fa-star {
  font-size: 0.75rem;
  color: #f5a623;
}

.vw-wishlist-btn {
  border: none;
  background: none;
  color: #cccccc;
  font-size: 1.25rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.vw-wishlist-btn:hover,
.vw-wishlist-btn.is-active {
  color: #e74c3c;
}

.vw-product-price-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ebebeb;
}

.vw-product-price-block .price-main-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d1f21;
  line-height: 1.2;
}

.vw-product-price-block .price-old-val {
  font-size: 0.95rem;
  color: #999999;
  text-decoration: line-through;
  margin-bottom: 0.25rem;
}

.vw-product-price-block .price-tax {
  font-size: 0.8125rem;
  color: #888888;
  margin-top: 0.35rem;
}

.vw-product-options .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d1f21;
  margin-bottom: 0.65rem;
}

.vw-product-options .form-check-button .vw-option-btn {
  border-radius: 8px;
  min-width: 50px;
  text-align: center;
  border-color: #cbd5e1;
  color: #1d1f21;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.vw-product-options .form-check-button .vw-option-btn:hover {
  background-color: #f8f8f8;
  border-color: #94a3b8;
  color: #1d1f21;
}

.vw-product-options .form-check-button .btn-check:checked + .vw-option-btn {
  background-color: #e8f7f4;
  border-color: #29bb9d;
  color: #1d1f21;
  font-weight: 600;
}

.vw-product-options .form-check-button .btn-check:focus-visible + .vw-option-btn {
  outline: 2px solid rgba(41, 187, 157, 0.35);
  outline-offset: 2px;
}

.vw-product-options .vw-option-price {
  font-size: 0.75rem;
}

.vw-product-options .vw-option-image {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
}

.vw-product-options .is-invalid ~ .invalid-feedback,
.vw-product-options [id^="input-option-"].is-invalid ~ .invalid-feedback {
  display: block;
}

.vw-purchase-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ebebeb;
}

.vw-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vw-qty-row label {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.vw-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.vw-qty-control button {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8f8f8;
  color: #1d1f21;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vw-qty-control button:hover {
  background: #eeeeee;
}

.vw-qty-control input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
}

.vw-purchase-actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.vw-btn-add-cart,
.vw-btn-buy-now {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.vw-btn-add-cart {
  background: transparent !important;
  border: 1px solid #1d1f21 !important;
  color: #1d1f21 !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  letter-spacing: 0.02em;
}

.vw-btn-add-cart:hover {
  background: #f8f8f8 !important;
}

.vw-btn-buy-now {
  background: #1d1f21 !important;
  border-color: #1d1f21 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
}

.vw-btn-buy-now:hover {
  background: #000000 !important;
  border-color: #000000 !important;
}

.vw-product-tabs {
  margin-top: 3rem;
  border-top: 1px solid #ebebeb;
  padding-top: 2rem;
}

.vw-product-tabs .nav-tabs {
  border-bottom: 1px solid #ebebeb;
  gap: 0.5rem;
}

.vw-product-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: #666666;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 0;
  margin-right: 1.5rem;
  border-radius: 0;
  background: transparent;
}

.vw-product-tabs .nav-link.active,
.vw-product-tabs .nav-link:hover {
  color: #1d1f21;
  border-bottom-color: #1d1f21;
  background: transparent;
}

.vw-product-tabs .tab-content {
  padding: 1.5rem 0;
  font-size: 0.9375rem;
  color: #444444;
  line-height: 1.7;
}

.vw-product-tabs .table {
  font-size: 0.875rem;
}

.vw-size-guide-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.05rem 0 0.05rem;
  min-height: 40px;
}

.vw-size-guide-link {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d1f21;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.15rem;
  -webkit-tap-highlight-color: transparent;
}

.vw-size-guide-link:hover,
.vw-size-guide-link:focus {
  color: #c8102e;
}

.vw-size-guide-body {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.vw-size-guide-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vw-size-guide-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

.vw-size-guide-body table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.vw-size-guide-body table th,
.vw-size-guide-body table td {
  padding: 0.5rem 0.65rem;
  vertical-align: middle;
}

#vw-modal-size-guide .modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

@media (max-width: 575.98px) {
  .vw-product-info {
    padding: 0;
  }

  .vw-size-guide-bar {
    margin: 0.05rem 0 0.05rem;
    min-height: 36px;
  }

  .vw-size-guide-link {
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .vw-product-options .form-check-button .vw-option-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
    min-width: 44px;
    min-height: 40px;
  }

  .vw-product-options [id^="input-option-"] {
    gap: 0.45rem !important;
  }

  #vw-modal-size-guide .modal-content {
    border-radius: 0;
    min-height: 100%;
  }

  #vw-modal-size-guide .modal-header {
    padding: 0.85rem 1rem;
  }

  #vw-modal-size-guide .modal-title {
    font-size: 1.05rem;
  }

  #vw-modal-size-guide .modal-body {
    padding: 1rem;
  }

  .vw-size-guide-body {
    font-size: 0.875rem;
  }

  .vw-size-guide-body table {
    min-width: 520px;
    font-size: 0.8125rem;
  }

  .vw-size-guide-body table th,
  .vw-size-guide-body table td {
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .vw-purchase-actions {
    flex-direction: column;
  }

  .vw-btn-add-cart,
  .vw-btn-buy-now {
    flex: 0 0 auto;
    width: 100%;
  }

  .vw-customization-fields {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .vw-customization-field {
    width: 100%;
    justify-content: space-between;
  }

  .vw-customization-input,
  .vw-customization-input--number {
    max-width: none;
    flex: 1 1 auto;
    width: auto;
  }
}

/* Jersey name/number customization (independent of Color/Size options) */
.vw-product-customization {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid #ebebeb;
}

.vw-customization-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1d1f21;
  margin-bottom: 0.65rem;
}

.vw-customization-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.vw-customization-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vw-customization-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d1f21;
  white-space: nowrap;
}

.vw-customization-input {
  width: 9rem;
  max-width: 40vw;
}

.vw-customization-input--number {
  width: 4.5rem;
  max-width: 22vw;
}

/* Related products on product detail */
.vw-related-section {
  margin-top: 2rem;
  margin-bottom: 0;
  padding-top: 1.5rem;
  padding-bottom: 0;
  border-top: 1px solid #ebebeb;
}

.vw-related-section .vw-module-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1f21;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.vw-related-section .vw-related-col.col-xl-1-5,
.vw-related-section .vw-related-col.col-lg-1-5 {
  flex: 0 0 20%;
  max-width: 20%;
}

/* Large: 5 products; small: 6 (2×3) */
@media (min-width: 992px) {
  .vw-related-section .vw-related-col:nth-child(n+6) {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .vw-related-section .vw-related-col:nth-child(n+7) {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .vw-related-section .vw-related-col.col-lg-1-5 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 991.98px) {
  .vw-related-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .vw-related-section .vw-module-title {
    font-size: 1.125rem;
  }

  .vw-related-section .vw-related-col.col-lg-1-5,
  .vw-related-section .vw-related-col.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 767.98px) {
  .vw-related-section .vw-related-col,
  .vw-related-section .vw-related-col.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 991.98px) {
  .vw-product-info .product-title {
    font-size: 1.15rem;
  }

  .vw-product-price-block .price-main-val {
    font-size: 1.5rem;
  }
}
