/* ======================================================= */
/* ====== EXACT PRODUCT DETAIL CSS ======================= */
/* ======================================================= */

.pd-section {
  background-color: white;
  padding: 4rem 0;
}
@media (min-width: 640px) {
  .pd-section {
    padding: 5rem 0;
  }
}

.pd-container {
  /* width: 100%; */
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.pd-block:not(:first-child) {
  margin-top: 5rem;
}

/* --- Reusing Title Styles --- */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: #1f2937;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.title-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #9ca3af;
}

/* --- Product Detail Grid --- */
.pd-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .pd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Left Side: Image --- */
.pd-image-wrapper {
  background-color: #4f46e5;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
@media (min-width: 640px) {
  .pd-image-wrapper {
    padding: 1.5rem;
  }
}
.pd-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* --- Right Side: Info --- */
.pd-info-wrapper {
  background-color: rgba(249, 250, 251, 0.7);
  padding: 2rem;
  border-radius: 0.75rem;
  height: 100%;
}
.pd-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pd-title-decorator {
  display: block;
  width: 1rem;
  height: 1.5rem;
  background-color: #4f46e5;
}
.pd-title-group h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}
.pd-title-group span {
  font-weight: 500;
}
.pd-highlights {
  /* margin-top: 1.5rem; */
  color: #4b5569;
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
}
.pd-highlights p:first-child {
  font-weight: 600;
  color: #374151;
}
.highlight-item {
  font-size: 0.875rem;
}
.pd-description {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #4b5569;
  line-height: 1.75;
}
.pd-contact-button {
  display: inline-block;
  text-decoration: none;
  margin-top: 2rem;
  background-color: #4f46e5;
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: all 0.3s ease-in-out;
}
.pd-contact-button:hover {
  background-color: #4338ca;
}

/* --- Specification Grid/List --- */
.spec-container {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  overflow: hidden;
}
/* Desktop Grid */
.spec-grid-desktop {
  display: none;
}
@media (min-width: 768px) {
  .spec-grid-desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  @media (min-width: 1024px) {
    .spec-grid-desktop {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media (min-width: 1280px) {
    .spec-grid-desktop {
      grid-template-columns: repeat(5, 1fr);
    }
  }
}
.spec-item {
  text-align: center;
}
.spec-key {
  padding: 0.75rem 1rem;
  background-color: #e5e7eb;
  font-weight: 500;
  color: black;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid white;
  border-right: 1px solid white;
}
.spec-value {
  padding: 1rem 1rem;
  background-color: #f3f4f6;
  font-size: 0.875rem;
  color: #1f2937;
  border-right: 1px solid white;
}
.spec-item:last-child .spec-key,
.spec-item:last-child .spec-value {
  border-right: none;
}

/* Mobile List */
.spec-list-mobile {
  display: block;
}
@media (min-width: 768px) {
  .spec-list-mobile {
    display: none;
  }
}
.spec-list-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5e7eb;
}
.spec-list-mobile ul:first-child {
  border-top: none;
}
.spec-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.spec-list-item:last-child {
  border-bottom: none;
}
.spec-list-item span:first-child {
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}
.spec-list-item span:last-child {
  font-size: 0.875rem;
  color: #1f2937;
}

/* --- Product Not Found --- */
.pd-not-found {
  text-align: center;
  padding: 5rem 1rem;
}
.pd-not-found h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
}
.pd-not-found p {
  color: #6b7280;
  margin-top: 1rem;
  font-size: 1.125rem;
}
.pd-not-found a {
  display: inline-block;
  text-decoration: none;
  margin-top: 2rem;
  background-color: #4f46e5;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
}
