/* Pop-up de produto SlimVida */
.sv-modal-open {
  overflow: hidden;
}

.sv-product-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.sv-product-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.sv-product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 26, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sv-product-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(44, 26, 26, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
}

.sv-product-modal.is-open .sv-product-modal__dialog {
  transform: translateY(0) scale(1);
}

.sv-product-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #f0e0e8;
  flex-shrink: 0;
}

.sv-product-modal__head h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #2c1a1a;
  margin: 0 0 4px;
  line-height: 1.25;
}

.sv-product-modal__promo {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c2185b;
  background: #fff0f5;
  border-radius: 999px;
}

.sv-product-modal__subtitle {
  font-size: 14px;
  color: #5c3d3d;
  margin: 0 0 6px;
  line-height: 1.45;
  font-weight: 400;
}

.sv-product-modal__sku {
  font-size: 12px;
  color: #7a6060;
  letter-spacing: 0.5px;
  margin: 0;
}

.sv-product-modal__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #f0e0e8;
  border-radius: 50%;
  background: #fff;
  color: #5c3d3d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sv-product-modal__close:hover {
  background: #c2185b;
  color: #fff;
  border-color: #c2185b;
}

.sv-product-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
  -webkit-overflow-scrolling: touch;
}

.sv-product-modal__layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 28px;
  padding-top: 8px;
}

.sv-product-modal__visual {
  position: sticky;
  top: 0;
  align-self: start;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff0f5, #f8bbd9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sv-product-modal__visual.has-slideshow {
  position: sticky;
  top: 0;
  aspect-ratio: 1;
  max-height: min(380px, 42vh);
  overflow: hidden;
  padding: 0;
  background: linear-gradient(160deg, #fff8fb 0%, #fff0f5 45%, #fdf6f0 100%);
}

.sv-product-modal__slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff0f5;
}

.sv-product-modal__slideshow.is-single {
  display: block;
}

.sv-product-modal__slideshow.is-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-product-modal__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease-in-out;
  pointer-events: none;
}

.sv-product-modal__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.sv-product-modal__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sv-product-modal__emoji[hidden],
.sv-product-modal__img-hint[hidden] {
  display: none !important;
}

.sv-product-modal__section[hidden] {
  display: none !important;
}

.sv-product-modal__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.sv-product-modal__gallery-main {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
  border-radius: 14px;
  border: 1px solid rgba(194, 24, 91, 0.08);
}

.sv-product-modal__gallery-main img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(44, 26, 26, 0.12));
}

.sv-product-modal__gallery-lifestyle {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 24px rgba(44, 26, 26, 0.1);
}

.sv-product-modal__gallery-lifestyle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-product-modal__single {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-product-modal__single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-product-modal__single--contain img {
  object-fit: contain;
  max-height: 100%;
  padding: 16px;
}

.sv-product-modal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-product-modal__visual.is-placeholder .sv-product-modal__emoji .sv-icon--xl {
  margin: auto;
}

.sv-product-modal__visual.is-placeholder .sv-product-modal__img-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  font-size: 11px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  color: #7a6060;
}

.sv-product-modal__summary {
  font-size: 15px;
  line-height: 1.65;
  color: #5c3d3d;
  margin-bottom: 20px;
}

.sv-product-modal__section {
  margin-bottom: 22px;
}

.sv-product-modal__section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #2c1a1a;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #fff0f5;
}

.sv-product-modal__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-product-modal__highlights li {
  font-size: 14px;
  color: #5c3d3d;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.sv-product-modal__highlights li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #c2185b;
  font-size: 10px;
}

.sv-product-modal__tech,
.sv-product-modal__composition,
.sv-product-modal__usage {
  font-size: 14px;
  line-height: 1.7;
  color: #5c3d3d;
}

.sv-product-modal__tech h4,
.sv-product-modal__composition h4,
.sv-product-modal__usage h4 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #2c1a1a;
  margin: 18px 0 8px;
}

.sv-product-modal__tech h4:first-child,
.sv-product-modal__composition h4:first-child {
  margin-top: 0;
}

.sv-product-modal__tech ul,
.sv-product-modal__composition ul,
.sv-product-modal__usage ul,
.sv-product-modal__tech ol {
  margin: 8px 0 12px;
  padding-left: 1.25rem;
}

.sv-product-modal__tech ol li {
  margin-bottom: 6px;
}

.sv-product-modal__tech li,
.sv-product-modal__composition li {
  margin-bottom: 4px;
}

.sv-pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}

.sv-pm-table th,
.sv-pm-table td {
  border: 1px solid #f0e0e8;
  padding: 8px 10px;
  text-align: left;
}

.sv-pm-table th {
  background: #fff0f5;
  font-weight: 700;
  color: #2c1a1a;
}

.sv-product-modal__compare {
  font-size: 14px;
  color: #7a6060;
  text-decoration: line-through;
  margin-right: 8px;
}

.sv-product-modal__foot {
  flex-shrink: 0;
  padding: 16px 24px 20px;
  border-top: 2px solid #f0e0e8;
  background: #fdf6f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -8px 24px rgba(44, 26, 26, 0.06);
}

.sv-product-modal__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}

.sv-product-modal__qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-product-modal__qty-wrap label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a6060;
}

.sv-product-modal__qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e8d0dc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.sv-product-modal__qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: #fff0f5;
  color: #c2185b;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.sv-product-modal__qty-btn:hover {
  background: #f8bbd9;
}

.sv-product-modal__qty-input {
  width: 52px;
  height: 44px;
  border: none;
  border-left: 1px solid #f0e0e8;
  border-right: 1px solid #f0e0e8;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #2c1a1a;
  -moz-appearance: textfield;
}

.sv-product-modal__qty-input::-webkit-outer-spin-button,
.sv-product-modal__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sv-product-modal__price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sv-product-modal__unit {
  font-size: 12px;
  color: #7a6060;
}

.sv-product-modal__unit strong,
.sv-product-modal__total strong {
  color: #c2185b;
  font-family: "Playfair Display", serif;
}

.sv-product-modal__total {
  font-size: 13px;
  color: #5c3d3d;
}

.sv-product-modal__total strong {
  font-size: 1.5rem;
}

.sv-product-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.sv-product-modal__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid #c2185b;
  background: #fff;
  color: #c2185b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.sv-product-modal__buy:hover {
  background: #fff0f5;
}

.sv-product-modal__add {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  background: #c2185b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: "Lato", sans-serif;
}

.sv-product-modal__add:hover {
  background: #a00046;
}

.sv-product-modal__add.is-success {
  background: #2e7d32;
}

@media (max-width: 720px) {
  .sv-product-modal {
    padding: 0;
    align-items: flex-end;
  }

  .sv-product-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }

  .sv-product-modal__head {
    padding: 14px 16px 10px;
  }

  .sv-product-modal__head h2 {
    font-size: 1.2rem;
  }

  .sv-product-modal__close {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .sv-product-modal__body {
    padding: 0 16px 14px;
  }

  .sv-product-modal__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
  }

  /* sticky no desktop faz o slideshow cobrir o texto no scroll mobile */
  .sv-product-modal__visual,
  .sv-product-modal__visual.has-slideshow {
    position: relative;
    top: auto;
    align-self: stretch;
    flex-shrink: 0;
    width: 100%;
    max-height: min(200px, 36vh);
    aspect-ratio: 4 / 3;
    margin: 0 0 12px;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
  }

  .sv-product-modal__visual.has-slideshow {
    padding: 0;
    max-height: min(200px, 36vh);
  }

  .sv-product-modal__slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 12px;
  }

  .sv-product-modal__content {
    position: relative;
    z-index: 1;
    min-width: 0;
  }

  .sv-product-modal__summary {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .sv-product-modal__section {
    margin-bottom: 16px;
  }

  .sv-product-modal__section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .sv-product-modal__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .sv-product-modal__pricing {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
  }

  .sv-product-modal__qty-wrap {
    gap: 2px;
    margin: 0;
  }

  .sv-product-modal__qty-wrap label {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .sv-product-modal__qty-control {
    border-radius: 10px;
  }

  .sv-product-modal__qty-btn {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .sv-product-modal__qty-input {
    width: 40px;
    height: 34px;
    font-size: 14px;
  }

  .sv-product-modal__price-block {
    justify-self: end;
    text-align: right;
    gap: 0;
  }

  .sv-product-modal__unit {
    font-size: 11px;
  }

  .sv-product-modal__total {
    font-size: 12px;
  }

  .sv-product-modal__total strong {
    font-size: 1.2rem;
  }

  .sv-product-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .sv-product-modal__add,
  .sv-product-modal__buy {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    border-radius: 10px;
  }

  .sv-product-modal__buy {
    border-width: 1.5px;
  }
}

@media (max-width: 480px) {
  .sv-product-modal__visual,
  .sv-product-modal__visual.has-slideshow {
    max-height: min(180px, 32vh);
    margin-bottom: 10px;
  }

  .sv-product-modal__add,
  .sv-product-modal__buy {
    padding: 9px 6px;
    font-size: 11px;
  }
}
