.ye-product-detail-page .ye-discover-hero {
  background: var(--primary-color);
}

.ye-product-detail-page .ye-store-detail-breadcrumb {
    background: var(--primary-color);
    color: var(--white-color);
    font-size: var(--font-size-18);
    font-weight: 400;
    padding: 17px 0;
    line-height: 26px;
}

.ye-product-detail-page .ye-store-detail-breadcrumb a {
    color: var(--white-color);
    text-decoration: none;
    font-size: var(--font-size-18);
    opacity: 1;
    font-weight: 400;
} 
.ye-product-detail-page .ye-store-detail-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}
.ye-product-detail-page .ye-store-detail-breadcrumb span {
    font-weight: 600;
}

.ye-shell.ye-product-detail-shell {
  padding-bottom: 0;
}

.ye-product-detail-card {
    background: var(--white-color);
    border: 1px solid var(--border-colo);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 25px;
    overflow: visible;
}

.ye-product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 485px) minmax(0, 1fr);
    gap: 32px;
}

.ye-product-gallery {
  position: relative;
}

.ye-product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf3;
}

.ye-product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.ye-product-gallery__category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-color);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ye-product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ye-product-gallery__nav span {
  font-size: 28px;
  line-height: 1;
  margin-top: -2px;
}

.ye-product-gallery__nav:hover {
  background: var(--white-color);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.ye-product-gallery__nav--prev { left: 12px; }
.ye-product-gallery__nav--next { right: 12px; }

.ye-product-detail-page .ye-product-gallery__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  min-height: 14px;
}

.ye-product-detail-page .ye-product-gallery__dots > li {
  display: flex;
  margin: 0;
  padding: 0;
}

.ye-product-detail-page .ye-product-gallery__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.ye-product-detail-page .ye-product-gallery__dot-bullet {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background-color: #94a3b8;
  box-shadow: 0 0 0 1px rgba(8, 27, 51, 0.12);
  transition: width 0.15s ease, background-color 0.15s ease;
}

.ye-product-detail-page .ye-product-gallery__dot.is-active .ye-product-gallery__dot-bullet {
  width: 32px;
  background-color: #081b33;
}

.ye-product-detail-page .ye-product-gallery__dot:hover:not(.is-active) .ye-product-gallery__dot-bullet {
  background-color: #64748b;
}

.ye-product-detail-page .ye-product-title {
    font-size: var(--font-size-28);
    line-height: var(--line-height-38);
    color: var(--gray-color);
    font-weight: 600;
}

.ye-product-soldby {
    margin: 4px 0 10px;
    font-size: var(--font-size-20);
    line-height: 28px;
    color: var(--gray-color);
    font-weight: 400;
}

.ye-product-soldby__link {
    color: var(--primary-color);
    text-decoration: none;
}

.ye-product-soldby__link:hover {
    color: var(--lable-color);
    text-decoration: underline;
}

.ye-product-detail-page .ye-product-price .final-price {
    font-weight: 600;
    font-size: var(--font-size-22);
    color: var(--primary-color);
}

.ye-product-detail-page .ye-product-price {
    margin: 0 0 16px;
    font-size: var(--font-size-18);
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 0.5px dashed var(--border-color);
    padding-bottom: 16px;
}



.ye-product-detail-page .ye-product-section-title {
    margin: 0 0 8px;
    font-size: var(--font-size-20);
    font-weight: 700;
    color: var(--gray-color);
    line-height: 28px;
}

.ye-product-desc {
    margin: 0 0 25px;
    font-size: var(--font-size-14);
    line-height: 22px;
     color: var(--gray-color);
    font-weight: 400;
}
.ye-product-spec {
    margin-top: 0;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.ye-product-spec table {
  width: 100%;
  border-collapse: collapse;
}

.ye-product-spec td {
    padding: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--gray-color);
}

.ye-product-spec tr:first-child td { border-top: none; }
.ye-product-detail-page .ye-product-spec td:first-child {
    width: 122px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-color);
    border-right: 1px solid var(--border-color);
    padding: 8px;
}

.ye-product-actions {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ye-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ye-product-detail-page .ye-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;    
  background: var(--white-color);
  cursor: pointer;
  line-height: 0;
}

.ye-product-detail-page .ye-qty__btn img {
  display: block;
  width: 24px;
  height: 24px;
}

.ye-product-detail-page .ye-qty__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ye-product-detail-page .ye-qty__btn:disabled img {
  opacity: 0.6;
}

.ye-product-detail-page .ye-qty__val {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--primary-color);
}

.ye-product-detail-page .ye-add-to-cart-form {
  margin: 0;
  display: contents;
}

.ye-product-detail-page .ye-add-to-cart {
    min-height: auto;
    padding: 0px 20px;
    border: none;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    line-height: 50px;
}

.ye-product-detail-page .ye-add-to-cart:hover {
   background: var(--primary-light);
    color:  var(--primary-color);
}

.ye-product-detail-page .ye-add-to-cart:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ye-product-reviews {
  margin-top: 18px;
  overflow: visible;
}

.ye-reviews-head {
  overflow: visible;
}

.ye-reviews-head__row {
  overflow: visible;
}

.ye-review-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ye-review-rating img {
  width: 16px;
  height: 16px;
  display: block;
}

.ye-review-rating img.is-off {
  filter: grayscale(1) brightness(1.2);
  opacity: 0.35;
}

.ye-reviews-head {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.ye-reviews-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ye-product-detail-page .ye-reviews-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.ye-review-sort {
  position: relative;
  flex-shrink: 0;
}

.ye-review-sort > summary {
  list-style: none;
}

.ye-review-sort > summary::-webkit-details-marker {
  display: none;
}

.ye-review-sort__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--gray-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.ye-review-sort__trigger:hover,
.ye-review-sort[open] .ye-review-sort__trigger {
  color: #64748b;
}

.ye-review-sort__chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(135deg);
    margin-top: -2px;
    transition: transform 0.2s ease, margin-top 0.2s ease;
}

.ye-review-sort[open] .ye-review-sort__chevron {
    transform: rotate(-45deg);
    margin-top: 2px;
}

.ye-review-sort__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  min-width: 148px;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  background: var(--white-color);
  border: 1px solid var(--border-colo);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(8, 27, 51, 0.12);
}

.ye-review-list__sentinel {
  height: 1px;
  width: 100%;
}

.ye-review-list__loading {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.ye-review-list__loading[hidden] {
  display: none !important;
}

.ye-review-sort__option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ye-review-sort__option:hover,
.ye-review-sort__option.is-selected {
  color: var(--primary-color);
  background: #f8fafc;
}

.ye-review-item {
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
}
.ye-review-item .ye-review-item__meta {
    margin: 12px 0 8px;
}

.ye-review-item:first-child { border-top: none; }

.ye-review-item__meta {
    margin-top: 0;
    font-size: 14px;
    color: var(--gray-color);
    font-weight: 500;
    line-height: 24px;
}

.ye-review-item__comment {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-color);
}


/* product table */
.ye-product-specs-container .ye-product-section-title {
    background: var(--primary-light);
    padding: 8px;
    font-size: var(--font-size-16);
    font-weight: 600;
    line-height: normal;
    margin: 0;
}
.ye-product-detail-page .ye-qty .ye-product-section-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

@media (max-width: 1100px) {
  .ye-product-detail-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width:640px) {
  .ye-product-detail-page .ye-add-to-cart{line-height: 40px;font-size: 14px;}
}
@media (max-width:480px) {
  .ye-product-actions {
    gap:10px;
    flex-direction: column;
    align-items: self-start;
}
}