.sp-spacer {
  height: 80px;
}

.single-product-page {
  min-height: 80vh;
  padding: 0 0 120px;
}

.sp-breadcrumb {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 13px;
  color: rgba(13,38,64,.45);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sp-breadcrumb a {
  color: rgba(13,38,64,.45);
  text-decoration: none;
  transition: color .2s;
}

.sp-breadcrumb a:hover {
  color: #0d2640;
}

.sp-breadcrumb__sep {
  color: rgba(13,38,64,.25);
  font-size: 11px;
}

.sp-breadcrumb__current {
  color: #0d2640;
  font-weight: 500;
}

.sp-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: start;
}

.sp-gallery__main {
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.sp-gallery__main:hover img {
  transform: scale(1.03);
}

.sp-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  flex-shrink: 0;
  background: linear-gradient(150deg, #eef5fb 0%, #dce9f5 100%);
}

.sp-gallery__thumb.is-active,
.sp-gallery__thumb:hover {
  border-color: #6aa3d4;
}

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

.sp-info {
  position: static;
}

.sp-info__title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0d2640;
  margin: 0 0 14px;
}

.sp-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.sp-info__price-label {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
  color: rgba(13,38,64,.5);
}

.sp-info__price {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0d2640;
}

.sp-info__price .woocommerce-Price-amount {
  font-size: inherit;
}

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sp-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef5fb;
  border-radius: 999px;
  padding: 7px 16px;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1a3050;
}

.sp-meta__pill svg {
  width: 14px;
  height: 14px;
  color: #6aa3d4;
  flex-shrink: 0;
}

.sp-info__short-desc {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 15px;
  color: #1a3050;
  line-height: 1.7;
  margin-bottom: 24px;
}

.sp-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
  max-width: 480px;
}

.sp-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(13,38,64,.12);
  border-radius: 14px;
  overflow: hidden;
  height: 48px;
  flex-shrink: 0;
}

.sp-qty__btn {
  width: 48px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 400;
  color: #0d2640;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-qty__btn:hover {
  background: #eef5fb;
}

.sp-qty__input {
  width: 44px;
  height: 100%;
  border: none;
  border-left: 1px solid rgba(13,38,64,.1);
  border-right: 1px solid rgba(13,38,64,.1);
  text-align: center;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0d2640;
  outline: none;
  -moz-appearance: textfield;
}

.sp-qty__input::-webkit-inner-spin-button,
.sp-qty__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.sp-actions a.sp-atc,
a.sp-atc {
  flex: 1;
  max-width: 320px;
  height: 48px;
  background: #b8d4f0;
  border: none;
  border-radius: 14px;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0d2640;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  line-height: 1;
  transition: background .2s, transform .15s;
}

.sp-actions a.sp-atc:hover,
a.sp-atc:hover {
  background: #8ab9e0;
  transform: translateY(-1px);
  color: #0d2640;
}

a.sp-atc:active {
  transform: translateY(0);
}

.sp-view-cart {
  display: none;
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1px solid rgba(13,38,64,.12);
  border-radius: 14px;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0d2640;
  text-align: center;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: border-color .2s, background .2s;
}

.sp-view-cart:hover {
  border-color: #6aa3d4;
  background: #eef5fb;
}

.sp-view-cart.is-visible {
  display: flex;
}

.sp-inline-desc {
  margin-top: 28px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(13,38,64,.07);
  border-radius: 18px;
}

.sp-inline-desc__content {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #1a3050;
  line-height: 1.75;
}

.sp-inline-desc__content p {
  margin: 0 0 12px;
}

.sp-inline-desc__content p:last-child {
  margin: 0;
}

.sp-inline-desc__content strong {
  color: #0d2640;
  font-weight: 600;
}

.sp-inline-desc__content ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 12px;
}

.sp-inline-desc__content ul li {
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px solid #eef5fb;
  font-size: 14px;
}

.sp-inline-desc__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8d4f0;
  border: 2px solid #0d2640;
}

.sp-related {
  margin-top: 100px;
  padding-bottom: 60px;
}

.sp-related__title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  color: #0d2640;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .sp-layout {
    grid-template-columns: 420px 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .sp-layout {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

@media (max-width: 768px) {
  .sp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sp-info__title {
    font-size: 26px;
  }

  .sp-info__price {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .single-product-page {
    padding: 32px 0 80px;
  }

  .sp-actions {
    flex-wrap: wrap;
  }

  .sp-qty {
    width: 100%;
    justify-content: space-between;
  }

  .sp-atc {
    width: 100%;
  }

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

  .sp-gallery__thumb {
    width: 60px;
    height: 60px;
  }

  .sp-info__price-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .sp-inline-desc {
    padding: 18px 16px;
    border-radius: 14px;
  }
}