.product-hero {
  padding: 28px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 22px;
  align-items: stretch;
}

.product-gallery-card,
.product-info-card,
.product-section-card {
  border-radius: 22px;
}

.product-gallery-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  padding: 18px;
}

.product-main-image-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: #f8fafc;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 0.92 / 1;
  object-fit: cover;
}

.product-main-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
}

.product-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-gallery-thumb {
  overflow: hidden;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.product-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-info-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(229, 231, 235, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  padding: 24px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-sale-group {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.product-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: #111827;
}

.product-subtext {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-meta-box {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
}

.product-meta-box span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.product-meta-box strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: #111827;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-price {
  font-size: 30px;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.product-score-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-score-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.product-option-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff1f7;
  color: #9d174d;
  border: 1px solid #fbcfe8;
  font-size: 13px;
  font-weight: 800;
}

.product-option-pill em {
  font-style: normal;
  opacity: 0.92;
}

.product-option-pill strong {
  color: #831843;
  font-weight: 900;
}

.product-option-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 10px;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1 1 0;
  justify-content: center;
}

.product-save-form {
  flex: 1 1 0;
  margin: 0;
}

.product-save-form .btn {
  width: 100%;
  justify-content: center;
}

.product-save-btn.is-saved {
  background: #fff6f7;
  border-color: #f4c7cf;
  color: #d94b68;
  box-shadow: inset 0 0 0 1px rgba(244, 199, 207, 0.15);
}


.product-save-btn.is-saved:hover {
  background: #fff2f4;
  border-color: #efb8c3;
  color: #cf3f5f;
}

.shop-save-btn.is-saved {
  background: #fff6f7;
  border-color: #f4c7cf;
  color: #d94b68;
  box-shadow: inset 0 0 0 1px rgba(244, 199, 207, 0.15);
}

.shop-save-btn.is-saved:hover {
  background: #fff2f4;
  border-color: #efb8c3;
  color: #cf3f5f;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
}

.product-section-head {
  margin-bottom: 14px;
}

.product-chip-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-chip-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
}

.product-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.product-chip-soft {
  background: #f1f5f9;
  color: #334155;
}

.product-chip-light {
  background: #f8fafc;
  color: #475569;
}

.product-chip-pink {
  background: #fff1f7;
  color: #db2777;
}

.product-profile-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e8eef8;
}

.product-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-profile-card p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
}

.product-profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.product-profile-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.product-color-box {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.product-color-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #111827;
}

.product-color-box-warn {
  background: #fffafa;
  border-color: #fecaca;
}

.product-color-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.product-color-row-warn {
  background: #fff7f7;
  border-color: #fecaca;
}

.product-color-row-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 24px;
}

.product-color-row strong {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.product-color-empty {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.product-variant-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-variant-row {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.product-variant-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-variant-row-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-variant-row-title {
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.product-variant-row-season {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
}

.product-variant-row-price {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.product-variant-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-variant-score-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

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

  .product-profile-color-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-hero {
    padding: 18px;
  }

  .product-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .product-meta-grid,
  .product-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-actions,
  .product-profile-actions {
    flex-direction: column;
  }

  .product-actions .btn,
  .product-save-form {
    width: 100%;
  }

  .product-variant-row-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-variant-row-price {
    white-space: normal;
  }
}