/* ── Single Product ── */

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

@keyframes psFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Breadcrumb ── */
.ps-breadcrumb {
  padding: 0 4.2%;
  background: #fff;
  border-bottom: 1px solid rgba(5, 24, 43, 0.06);
}

.ps-breadcrumb__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 1rem 0;
}

.ps-breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.ps-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #829aad;
  letter-spacing: -0.01em;
}

.ps-breadcrumb__item--current {
  color: #05182b;
  font-weight: 600;
}

.ps-breadcrumb__link {
  color: #829aad;
  text-decoration: none;
  transition: color 0.2s;
}

.ps-breadcrumb__link:hover {
  color: #0090df;
}

.ps-breadcrumb__sep {
  color: #c8d3dc;
  flex-shrink: 0;
}

/* ── Product Section ── */
.ps-product {
  padding: 3.5rem 4.2% 0;
  max-width: 1680px;
  margin: 0 auto;
  animation: psSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ps-product__layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Gallery ── */
.ps-product__gallery {
  position: relative;
}

.ps-product__stage {
  position: relative;
  background: #f4f6f8;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.ps-product__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 144, 223, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(21, 85, 115, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.ps-product__stage-img {
  position: relative;
  z-index: 2;
  max-width: 85%;
  max-height: 85%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.ps-product__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9edf0 0%, #d1d8de 100%);
}

.ps-product__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.ps-product__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  background: #f4f6f8;
  padding: 0;
  outline: none;
}

.ps-product__thumb:hover {
  border-color: rgba(0, 144, 223, 0.4);
  transform: translateY(-1px);
}

.ps-product__thumb.is-active {
  border-color: #0090df;
  box-shadow: 0 0 0 3px rgba(0, 144, 223, 0.15);
}

.ps-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Product Info ── */
.ps-product__info {
  position: sticky;
  top: 2rem;
}

.ps-product__info-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ps-product__category {
  display: inline-flex;
  align-self: flex-start;
  background: #05365b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.ps-product__category:hover {
  background: #0090df;
}

.ps-product__title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #05182b;
}

/* ── CTA Button ── */
.ps-product__actions {
  padding-top: 0.25rem;
}

.ps-product__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: #0090df;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.25s, gap 0.3s, box-shadow 0.25s;
}

.ps-product__cta:hover {
  background: #007bc2;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(0, 144, 223, 0.25);
}

.ps-product__cta svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.ps-product__cta:hover svg {
  transform: translateX(3px);
}

/* ── Key Features Highlights ── */
.ps-product__highlights {
  padding: 0;
}

.ps-product__highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ps-product__highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #2c3e4f;
}

.ps-product__highlights-list svg {
  flex-shrink: 0;
  color: #0090df;
  margin-top: 0.15em;
}

/* ── Details / Tabs Section ── */
.ps-details {
  margin-top: 4rem;
  padding: 4.5rem 4.2% 5rem;
  background: #05182b;
  position: relative;
  overflow: hidden;
}

.ps-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 144, 223, 0.3) 50%, transparent 100%);
}

.ps-details::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 144, 223, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ps-details__inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ps-details__heading {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
}

/* ── Tab Navigation ── */
.ps-details__nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.ps-details__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
}

.ps-details__tab svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.ps-details__tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.ps-details__tab:hover svg {
  opacity: 0.8;
}

.ps-details__tab.is-active {
  color: #fff;
  background: rgba(0, 144, 223, 0.15);
  border-color: rgba(0, 144, 223, 0.3);
}

.ps-details__tab.is-active svg {
  opacity: 1;
  color: #0090df;
}

/* ── Tab Panels ── */
.ps-details__panel {
  display: none;
}

.ps-details__panel.is-active {
  display: block;
  animation: psFadeIn 0.3s ease both;
}

.ps-details__content {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

.ps-details__content p {
  margin-bottom: 1.25rem;
}

.ps-details__content p:last-child {
  margin-bottom: 0;
}

.ps-details__content ul,
.ps-details__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.ps-details__content li {
  margin-bottom: 0.5rem;
}

.ps-details__content h2,
.ps-details__content h3,
.ps-details__content h4 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.ps-details__content a {
  color: #0090df;
  text-decoration: underline;
  text-decoration-color: rgba(0, 144, 223, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.ps-details__content a:hover {
  text-decoration-color: #0090df;
}

/* ── Features List ── */
.ps-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ps-features__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s, border-color 0.2s;
}

.ps-features__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.ps-features__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: rgba(0, 144, 223, 0.15);
  border-radius: 8px;
  color: #0090df;
  margin-top: -0.1em;
}

/* ── Downloads ── */
.ps-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ps-downloads__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.ps-downloads__item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.ps-downloads__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(192, 57, 43, 0.12);
  border-radius: 10px;
  color: #e74c3c;
}

.ps-downloads__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ps-downloads__label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.ps-downloads__action {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.ps-downloads__arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s, transform 0.2s;
}

.ps-downloads__item:hover .ps-downloads__arrow {
  color: #0090df;
  transform: translateY(2px);
}

/* ── Related Products ── */
.ps-related {
  padding: 5rem 4.2%;
  background: #f8f9fb;
}

.ps-related__inner {
  max-width: 1680px;
  margin: 0 auto;
}

.ps-related__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.ps-related__heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #05182b;
}

.ps-related__view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0090df;
  text-decoration: none;
  transition: gap 0.2s;
}

.ps-related__view-all:hover {
  gap: 0.65rem;
}

.ps-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ps-related__card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #05182b;
  background: #fff;
  border: 1px solid rgba(130, 154, 173, 0.1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.ps-related__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(5, 24, 43, 0.1);
}

.ps-related__card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f6f8;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-related__card-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-related__card:hover .ps-related__card-img img {
  transform: scale(1.05);
}

.ps-related__card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9edf0 0%, #d1d8de 100%);
  border-radius: 6px;
}

.ps-related__card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.ps-related__card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #829aad;
}

.ps-related__card-title {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #05182b;
}

.ps-related__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0090df;
  transition: gap 0.2s;
}

.ps-related__card:hover .ps-related__card-link {
  gap: 0.55rem;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .ps-product__layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .ps-product {
    padding: 2.5rem 1.25rem 0;
  }

  .ps-product__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ps-product__info {
    position: static;
  }

  .ps-product__stage {
    aspect-ratio: 3 / 2;
  }

  .ps-details {
    padding: 3.5rem 1.25rem 4rem;
    margin-top: 3rem;
  }

  .ps-features {
    grid-template-columns: 1fr;
  }

  .ps-related {
    padding: 3.5rem 1.25rem;
  }

  .ps-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ps-breadcrumb {
    padding: 0 1.25rem;
  }

  .ps-product__stage {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
  }

  .ps-product__thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .ps-product__title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .ps-product__cta {
    width: 100%;
    justify-content: center;
  }

  .ps-details__nav {
    flex-wrap: wrap;
  }

  .ps-details__tab {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .ps-related__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .ps-related__header {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .ps-product__thumbs {
    gap: 0.4rem;
  }

  .ps-product__thumb {
    width: 52px;
    height: 52px;
  }

  .ps-related__grid {
    grid-template-columns: 1fr;
  }

  .ps-related__card-img {
    aspect-ratio: 16 / 10;
  }

  .ps-details__tab svg {
    display: none;
  }
}
