/* Product page — match temlate_cart reference */
.sb-pp { background: #F7F3EC; padding: 0 0 48px; }
.sb-pp .sb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sb-bc { padding: 16px 0 12px; font-size: 13px; color: #8f867e; }
.sb-bc a { color: #8f867e; text-decoration: none; }
.sb-bc a:hover { color: #3B2438; }
.sb-bc span { margin: 0 6px; color: #cfc5bc; }

.sb-pp__hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  background: #fff;
  border: 1px solid #E5DCEB;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 22px;
}
.sb-pp__gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}
.sb-pp__gallery--solo {
  grid-template-columns: 1fr;
}
.sb-pp__thumbs { display: flex; flex-direction: column; gap: 10px; }
.sb-pp__thumbs button {
  width: 72px; height: 72px; padding: 0; border-radius: 10px;
  border: 1px solid #E5DCEB; overflow: hidden; background: #faf6f2; cursor: pointer;
}
.sb-pp__thumbs button.is-on { border-color: #3B2438; }
.sb-pp__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-pp__main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #faf6f2;
  aspect-ratio: 1 / 1;
}
.sb-pp__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-pp__noimg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #EDE6F3;
  padding: 28px;
  box-sizing: border-box;
  text-align: center;
}
.sb-pp__noimg img {
  width: min(72%, 280px);
  height: auto;
  max-height: 55%;
  object-fit: contain;
  display: block;
}
.sb-pp__noimg span {
  font-family: var(--sb-sans, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5c534c;
}
.sb-pp__best {
  position: absolute; top: 14px; right: 14px; width: 74px; height: 74px;
  border-radius: 50%; background: #3B2438; color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .04em; text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.15; box-shadow: 0 8px 20px rgba(184,96,72,.35);
}

.sb-pp__flags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-pp__flag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.sb-pp__flag--hit { background: #3B2438; color: #fff; }
.sb-pp__flag--stock { background: #f0ebe6; color: #1f1916; }
.sb-pp__flag--stock i { width: 8px; height: 8px; border-radius: 50%; background: #3d9a5f; display: inline-block; }
.sb-pp__flag--oos { background: #f3e8e6; color: #8f2f26; }
.sb-pp__flag--oos i { width: 8px; height: 8px; border-radius: 50%; background: #c24b3a; display: inline-block; }

.sb-pp__info h1 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  color: #1f1916;
}
.sb-pp__sub { margin: 0 0 12px; color: #8f867e; font-size: 14px; }
.sb-pp__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 13px; color: #8f867e; }
.sb-pp__stars { color: #3B2438; letter-spacing: 1px; }
.sb-pp__meta a { color: #8f867e; }
.sb-pp__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sb-pp__price b { font-size: 34px; color: #1f1916; }
.sb-pp__price s { color: #8f867e; font-size: 18px; }
.sb-pp__off { background: #EDE6F3; color: #2A1929; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.sb-pp__desc { color: #5a534e; font-size: 14px; line-height: 1.55; margin-bottom: 18px; }

.sb-pp__opts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  background: #faf6f2;
  border: 1px solid #E5DCEB;
  border-radius: 14px;
}
.sb-pp__opt { margin: 0; }
.sb-pp__opt > .control-label,
.sb-pp__opt > label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1f1916;
}
.sb-pp__opt.required > .control-label::after,
.sb-pp__opt.required > label::after {
  content: ' *';
  color: #3B2438;
}
.sb-pp__opt .form-control,
.sb-pp__opt select,
.sb-pp__opt textarea,
.sb-pp__opt input[type="text"] {
  height: 44px;
  border: 1px solid #E5DCEB;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
}
.sb-pp__opt textarea.form-control { height: auto; min-height: 96px; padding: 10px 12px; }
.sb-pp__opt .radio,
.sb-pp__opt .checkbox {
  margin: 0 0 8px;
  padding: 0;
}
.sb-pp__opt .radio label,
.sb-pp__opt .checkbox label {
  font-weight: 500;
  color: #5a534e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-pp__opt .img-thumbnail {
  max-width: 36px;
  max-height: 36px;
  border-radius: 6px;
}
.sb-pp__opt .input-group .btn {
  height: 44px;
  border-radius: 0 10px 10px 0;
  border-color: #E5DCEB;
  background: #fff;
}
.sb-pp__opt .input-group .form-control {
  border-radius: 10px 0 0 10px;
}
.sb-pp__opt .btn-default.btn-block {
  height: 44px;
  border-radius: 10px;
  border-color: #E5DCEB;
  background: #fff;
  color: #1f1916;
}

.sb-pp .alert-danger {
  display: block !important;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f0c4bc;
  background: #F3EAF6;
  color: #8f2f26;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.sb-pp__buy { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.sb-pp__qty {
  display: inline-flex; align-items: center; height: 50px; background: #f1ebe6; border-radius: 10px; overflow: hidden;
}
.sb-pp__qty button { width: 42px; height: 50px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.sb-pp__qty input { width: 46px; height: 50px; border: 0; background: transparent; text-align: center; font-weight: 600; outline: 0; }
.sb-pp__cart {
  flex: 1; min-width: 200px; height: 50px; border: 0; border-radius: 999px;
  background: #3B2438; color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.sb-pp__cart:hover { background: #2A1929; color: #fff; }
.sb-pp__cart.is-in-cart {
  background: #f5ebe3 !important;
  color: #3B2438 !important;
}
.sb-pp__cart.is-in-cart:hover { background: #efe2d7 !important; color: #3B2438 !important; }
.sb-pp__cart.is-oos,
.sb-pp__cart:disabled,
.sb-pp__buy.is-oos .sb-pp__cart {
  background: #e8e2dc !important;
  color: #7A6B7A !important;
  cursor: not-allowed;
  pointer-events: none;
}
.sb-pp__buy.is-oos .sb-pp__qty {
  opacity: 0.55;
  pointer-events: none;
}
.sb-pp__wish {
  width: 50px; height: 50px; border-radius: 10px; border: 1px solid #E5DCEB; background: #fff; color: #3B2438; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.sb-pp__wish:hover { border-color: #3B2438; background: #F7F2FB; }
.sb-pp__wish.is-active,
.sb-pp__wish.is-in-wish {
  background: #3B2438;
  border-color: #3B2438;
  color: #fff;
}
.sb-pp__wish.is-active i,
.sb-pp__wish.is-in-wish i {
  color: #fff;
}

.sb-pp__feats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
}
.sb-pp__feats > div {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f7f1ec; border-radius: 10px; font-size: 12.5px;
}
.sb-pp__feats i { color: #3B2438; width: 16px; text-align: center; }
.sb-pp__trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid #E5DCEB;
}
.sb-pp__trust > div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8f867e; }
.sb-pp__trust i { color: #3B2438; }

.sb-pp__tabs {
  background: #fff; border: 1px solid #E5DCEB; border-radius: 16px; padding: 8px 22px 22px; margin-bottom: 22px;
}
.sb-pp__tabs-nav {
  display: flex; gap: 20px; border-bottom: 1px solid #E5DCEB; margin-bottom: 16px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
}
.sb-pp__tabs-nav::-webkit-scrollbar { display: none; height: 0; width: 0; }
.sb-pp__tabs-nav button {
  border: 0; background: 0; padding: 14px 0; font-weight: 600; font-size: 14px; color: #8f867e;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer;
}
.sb-pp__tabs-nav button.is-on { color: #3B2438; border-bottom-color: #3B2438; }
.sb-pp__panel { display: none; color: #4f4944; font-size: 14px; line-height: 1.6; }
.sb-pp__panel.is-on { display: block; }
.sb-pp__checks { list-style: none; margin: 14px 0 0; padding: 0; }
.sb-pp__checks li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.sb-pp__checks li::before { content: "✓"; position: absolute; left: 0; color: #3B2438; font-weight: 700; }

.sb-pp__reviews { margin-bottom: 18px; }
.sb-pp__review-form h3 {
  font-family: var(--sb-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 28px;
  font-weight: 500;
  color: #3B2438;
  margin: 0 0 18px;
}
.sb-pp__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 16px;
}
.sb-pp__field > label,
.sb-pp__field-label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: #3B2438;
  line-height: 1.3;
}
.sb-pp__field.required > label::after,
.sb-pp__field.required > .sb-pp__field-label::after {
  content: ' *';
  color: #3B2438;
}
.sb-pp__field .form-control {
  width: 100%;
  max-width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 1px solid #E5DCEB;
  border-radius: 10px;
  background: #fff;
  color: #3B2438;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}
.sb-pp__field textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}
.sb-pp__field .form-control:focus {
  border-color: #3B2438;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(184, 96, 72, 0.12);
}
.sb-pp__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.sb-pp__rating-hint {
  font-size: 13px;
  color: #7A6B7A;
  font-weight: 500;
}
.sb-pp__stars-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}
.sb-pp__star {
  position: relative;
  margin: 0;
  cursor: pointer;
  line-height: 1;
}
.sb-pp__star input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.sb-pp__star span {
  display: block;
  font-size: 28px;
  color: #d9d0c8;
  transition: color .15s ease;
  user-select: none;
}
.sb-pp__star input:checked + span,
.sb-pp__star:has(input:checked) ~ .sb-pp__star span {
  color: #3B2438;
}
.sb-pp__stars-input:hover .sb-pp__star span {
  color: #d9d0c8;
}
.sb-pp__stars-input .sb-pp__star:hover span,
.sb-pp__stars-input .sb-pp__star:hover ~ .sb-pp__star span {
  color: #c97a62;
}
.sb-pp__review-btn {
  margin-top: 4px;
  min-width: 180px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #3B2438;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 0 28px;
  transition: background .2s ease;
}
.sb-pp__review-btn:hover { background: #2A1929; }
.sb-pp__review-login { margin: 0; color: #7A6B7A; }

.sb-pp__related {
  margin-top: 36px;
  width: 100%;
}
.sb-pp__related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.sb-pp__related-head h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: #3B2438;
}
.sb-pp__related-head a {
  color: #3B2438;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.sb-pp__related-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}
.sb-pp__card {
  background: #fff;
  border: 1px solid #E5DCEB;
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s ease, transform .15s ease;
}
.sb-pp__card:hover {
  box-shadow: 0 10px 24px rgba(59, 36, 56, 0.08);
  transform: translateY(-2px);
}
.sb-pp__card-media {
  display: flex;
  flex-direction: column;
}
.sb-pp__card-img {
  display: block;
  aspect-ratio: 1;
  background: #faf6f2;
  overflow: hidden;
}
.sb-pp__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sb-pp__card-media--nophoto {
  background: #EDE6F3;
  padding: 10px 10px 8px;
  gap: 6px;
}
.sb-pp__card-media--nophoto .sb-pp__card-img {
  background: transparent;
  flex: 1;
  aspect-ratio: auto;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-pp__card-media--nophoto .sb-pp__card-img img {
  width: 78%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}
.sb-pp__card-nophoto-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #5c534c;
  text-align: center;
  pointer-events: none;
  user-select: none;
  line-height: 1.2;
}
.sb-pp__card h3 {
  margin: 12px 14px 6px;
  font-size: 14px;
  font-weight: 600;
  min-height: 2.6em;
  line-height: 1.35;
}
.sb-pp__card h3 a { color: #1f1916; text-decoration: none; }
.sb-pp__card .sb-stars {
  margin: 0 14px 8px;
  color: #3B2438;
  font-size: 12px;
  letter-spacing: 1px;
}
.sb-pp__card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-top: auto;
}
.sb-pp__card-row strong {
  font-size: 17px;
  color: #3B2438;
}
.sb-pp__card-bag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3B2438;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.sb-pp__card-bag:hover { background: #2A1929; color: #fff !important; }
.sb-pp__card-bag.is-in-cart {
  width: auto !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  gap: 6px;
  background: #f5ebe3 !important;
  color: #3B2438 !important;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.sb-pp__card-bag.is-in-cart:hover { background: #efe2d7 !important; color: #3B2438 !important; }

@media (max-width: 980px) {
  .sb-pp__hero { grid-template-columns: 1fr; }
  .sb-pp__gallery { grid-template-columns: 1fr; }
  .sb-pp__thumbs { flex-direction: row; order: 2; }
  .sb-pp__trust, .sb-pp__feats { grid-template-columns: 1fr; }
  .sb-pp__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .sb-pp__related-grid { grid-template-columns: 1fr !important; }
}
