/* ==========================================================================
   Project / Product Detail Page Styling (Seahorse Theme)
   ========================================================================== */

.sh-project-detail {
  background: #ffffff;
  color: #26272b;
  padding-bottom: 96px;
}

.sh-project-detail__hero {
  height: 117px;
  background: #ffffff;
  color: #26272b;
}

.sh-project-detail > .container:first-of-type {
  background: #ffffff;
  border-bottom: 1px solid #eaecf0;
}

.sh-project-detail .container {
  width: 100%;
  max-width: none;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

.sh-project-detail__breadcrumb {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 8px;
  color: #6c737f;
  background: #ffffff;
  font: 400 15px/24px "Be Vietnam Pro", sans-serif;
  margin-bottom: 24px;
}

.sh-project-detail__breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.36s var(--sh-ease-brand);
}

.sh-project-detail__breadcrumb a:hover,
.sh-project-detail__breadcrumb a:focus-visible {
  color: #26272b;
  text-decoration: none;
}

.sh-project-detail__breadcrumb span {
  color: #26272b;
  font-weight: 600;
}

.sh-project-detail__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Sidebar Card */
.sh-project-detail__sidebar {
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 24px;
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  align-self: start;
  z-index: 10;
  box-sizing: border-box;
}

.sh-project-detail__sidebar-title {
  margin: 0 0 12px;
  font: 700 20px/28px "Be Vietnam Pro", sans-serif;
  color: #111827;
}

.sh-project-detail__sidebar-desc {
  margin: 0 0 20px;
  font: 400 14px/22px "Be Vietnam Pro", sans-serif;
  color: #4b5563;
}

.sh-project-detail__specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.sh-project-detail__spec-item {
  font: 400 13px/18px "Be Vietnam Pro", sans-serif;
  color: #374151;
}

.sh-project-detail__spec-label {
  font-weight: 500;
  color: #4b5563;
  margin-right: 4px;
}

.sh-project-detail__spec-value {
  font-weight: 700;
  color: #111827;
}

/* Main Detail Content */
.sh-project-detail__main {
  min-width: 0;
}

.sh-project-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.sh-project-detail__title {
  margin: 0;
  font: 400 36px/44px "Russo One", sans-serif;
  color: #18181b;
}

.sh-project-detail__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 14px/20px "Be Vietnam Pro", sans-serif;
  color: #6b7280;
}

.sh-project-detail__date svg {
  color: #9ca3af;
}

.sh-project-detail__featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #f3f4f6;
}

.sh-project-detail__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-project-detail__body {
  font: 400 16px/28px "Be Vietnam Pro", sans-serif;
  color: #4b5563;
  margin-bottom: 36px;
}

.sh-project-detail__body p {
  margin: 0 0 16px;
}

.sh-project-detail__body h3 {
  font: 700 20px/28px "Be Vietnam Pro", sans-serif;
  color: #111827;
  margin: 28px 0 16px;
}

.sh-project-detail__body table {
  width: 100%!important;
  border-collapse: separate!important;
  border-spacing: 16px 0!important;
  border: 0!important;
  margin: 16px 0 24px!important;
}

.sh-project-detail__body table td {
  border: 0!important;
  padding: 0!important;
  vertical-align: top;
  width: 33.333%!important;
}

.sh-project-detail__body table img {
  width: 100%!important;
  height: auto!important;
  aspect-ratio: 16 / 10!important;
  object-fit: cover!important;
  border-radius: 8px!important;
  display: block!important;
}

.sh-project-detail__gallery-title {
  margin: 0 0 16px;
  font: 700 20px/28px "Be Vietnam Pro", sans-serif;
  color: #111827;
}

.sh-project-detail__gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sh-project-detail__gallery-item {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.sh-project-detail__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sh-project-detail__gallery-item:hover img {
  transform: scale(1.05);
}

/* Other Projects Section */
.sh-project-detail__divider {
  margin: 64px 0 48px;
  height: 1px;
  background: #e5e7eb;
}

.sh-other-projects__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 16px;
}

.sh-other-projects__subtitle {
  margin: 0 0 8px;
  font: 600 16px/24px "Be Vietnam Pro", sans-serif;
  color: #51525c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sh-other-projects__title {
  margin: 0;
  font: 400 36px/48px "Russo One", sans-serif;
  color: #18181b;
}

.sh-other-projects__controls {
  display: flex;
  gap: 12px;
}

.sh-other-projects__controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #26272b;
  background: #ffffff;
  color: #26272b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.sh-other-projects__controls button:hover {
  background: #26272b;
  color: #ffffff;
}

.sh-other-projects__controls button.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.sh-other-projects-swiper {
  overflow: hidden;
  padding: 8px 0 16px;
}

.sh-other-projects-swiper.is-locked .swiper-wrapper {
  transform: none !important;
}

.sh-other-projects-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.sh-other-projects-swiper .sh-project-card {
  width: 100%;
}

/* ==========================================================================
   Unified Project Card Styling
   ========================================================================== */

.sh-project-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1), transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.sh-project-card[hidden] {
  display: none;
}

.sh-project-card__media {
  position: relative;
  aspect-ratio: 406 / 276;
  border-radius: 12px;
  overflow: hidden;
}

.sh-project-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.sh-project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.36s ease;
}

.sh-project-card:hover .sh-project-card__media img {
  transform: scale(1.04);
}

.sh-project-card:focus-within,
.sh-project-card:hover {
  border-color: #26272b;
  box-shadow: 0 16px 36px rgba(17, 25, 39, 0.12);
  transform: translateY(-4px);
}

.sh-project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px 8px 8px;
}

.sh-project-card__body h3 {
  margin: 0;
  color: #18181b;
  font: 400 24px/32px "Russo One", sans-serif;
  overflow-wrap: anywhere;
}

.sh-project-card__body h3 a {
  color: #18181b!important;
  text-decoration: none!important;
  transition: color 0.25s ease;
}

.sh-project-card__body h3 a:hover,
.sh-project-card__body h3 a:focus {
  color: #51525c!important;
  text-decoration: none!important;
}

.sh-project-card__body p {
  margin: 0;
  color: #51525c;
  font: 400 16px/24px "Be Vietnam Pro", sans-serif;
}

@media (max-width: 1440px) {
  .sh-project-detail__hero {
    height: 96px;
  }
}

@media (max-width: 1199px) {
  .sh-project-detail .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .sh-project-detail__hero {
    height: 84px;
  }
  .sh-project-detail__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sh-project-detail__sidebar {
    position: static;
  }
  .sh-project-detail__gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .sh-project-detail .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sh-project-detail__hero {
    height: 72px;
  }
  .sh-project-detail__breadcrumb {
    height: 44px;
    font-size: 13px;
  }
  .sh-project-detail__gallery-grid {
    grid-template-columns: 1fr;
  }
  .sh-project-detail__title {
    font-size: 28px;
    line-height: 36px;
  }
  .sh-other-projects__title {
    font-size: 28px;
    line-height: 36px;
  }
}
