/* INICIO: BASE */
.rlpp-product {
  --rlpp-red: #e30613;
  --rlpp-red-dark: #bd0711;
  --rlpp-navy: #020b3b;
  --rlpp-text: #111827;
  --rlpp-muted: #64748b;
  --rlpp-line: #e5e9ef;
  --rlpp-soft: #f5f7fa;
  --rlpp-white: #fff;
  width: 100%;
  color: var(--rlpp-text);
  font-family: "Baloo Thambi 2", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--rlpp-white);
}

.rlpp-product,
.rlpp-product *,
.rlpp-product *::before,
.rlpp-product *::after {
  box-sizing: border-box;
}

.rlpp-product img {
  display: block;
  max-width: 100%;
}

.rlpp-product a {
  color: inherit;
  text-decoration: none;
}

.rlpp-container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.rlpp-notice {
  padding: 24px;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

/* INICIO: BREADCRUMBS */
.rlpp-breadcrumbs {
  padding: 18px 0;
  color: var(--rlpp-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.rlpp-breadcrumbs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.rlpp-breadcrumbs a:hover {
  color: var(--rlpp-red);
}

/* INICIO: PRODUCTO PRINCIPAL */
.rlpp-hero {
  display: grid;
  gap: 34px;
  padding: 18px 0 56px;
}

.rlpp-gallery {
  min-width: 0;
}

.rlpp-main-media {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rlpp-line);
  border-radius: 18px;
}

.rlpp-main-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.rlpp-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  gap: 10px;
  overflow-x: auto;
  margin-top: 14px;
  padding: 2px 2px 8px;
  scroll-snap-type: inline mandatory;
}

.rlpp-thumbnail {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding: 7px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rlpp-line);
  border-radius: 10px;
  cursor: pointer;
  scroll-snap-align: start;
}

.rlpp-thumbnail.is-active {
  border-color: var(--rlpp-red);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, .12);
}

.rlpp-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rlpp-summary {
  min-width: 0;
}

.rlpp-categories {
  margin-bottom: 12px;
  color: var(--rlpp-red);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rlpp-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.rlpp-price {
  margin-top: 18px;
  color: var(--rlpp-red);
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  font-weight: 850;
  line-height: 1.15;
}

.rlpp-price del {
  margin-right: 9px;
  color: #9aa2ae;
  font-size: .65em;
  font-weight: 600;
}

.rlpp-price ins {
  text-decoration: none;
}

.rlpp-short-description {
  margin-top: 20px;
  color: #384152;
  font-size: .98rem;
  line-height: 1.65;
}

.rlpp-short-description p:last-child {
  margin-bottom: 0;
}

.rlpp-stock {
  margin-top: 16px;
}

.rlpp-product .rlpp-summary .rlpp-stock p.stock,
.rlpp-product .rlpp-summary .rlpp-stock .stock {
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  margin: 0 !important;
  padding: 6px 12px;
  color: #e30613 !important;
  background: #fdebed !important;
  border: 1px solid rgba(227, 6, 19, .12) !important;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
}

.rlpp-product .rlpp-summary .rlpp-stock p.stock.out-of-stock,
.rlpp-product .rlpp-summary .rlpp-stock .stock.out-of-stock {
  color: #991b1b !important;
  background: #fee2e2 !important;
  border-color: rgba(153, 27, 27, .14) !important;
}

.rlpp-cart {
  margin-top: 20px;
}

.rlpp-cart > .stock {
  display: none;
}

.rlpp-cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin: 0;
}

.rlpp-cart .quantity {
  margin: 0 !important;
}

.rlpp-cart .quantity .qty {
  width: 76px;
  min-height: 50px;
  padding: 8px;
  border: 1px solid #cfd5dd;
  border-radius: 8px;
  text-align: center;
}

.rlpp-cart .single_add_to_cart_button,
.rlpp-cart .button {
  min-height: 50px;
  padding: 12px 24px !important;
  color: #fff !important;
  background: var(--rlpp-red) !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

.rlpp-cart .single_add_to_cart_button:hover,
.rlpp-cart .button:hover {
  background: var(--rlpp-red-dark) !important;
}

.rlpp-cart table.variations {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
}

.rlpp-cart table.variations th,
.rlpp-cart table.variations td {
  padding: 7px 0;
  text-align: left;
  vertical-align: middle;
}

.rlpp-cart table.variations select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #cfd5dd;
  border-radius: 8px;
}

.rlpp-cart .reset_variations {
  display: inline-block;
  margin-top: 7px;
  color: var(--rlpp-red);
  font-size: .8rem;
  font-weight: 700;
}

.rlpp-assurances {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rlpp-assurance {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 13px 12px;
  background: var(--rlpp-soft);
  border-radius: 10px;
}

.rlpp-assurance-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--rlpp-red);
}

.rlpp-assurance-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rlpp-assurance strong,
.rlpp-assurance small {
  display: block;
}

.rlpp-assurance strong {
  font-size: .88rem;
  line-height: 1.25;
}

.rlpp-assurance small {
  margin-top: 2px;
  color: var(--rlpp-muted);
  font-size: .76rem;
  line-height: 1.35;
}

.rlpp-meta {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--rlpp-line);
  border-bottom: 1px solid var(--rlpp-line);
}

.rlpp-meta > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.rlpp-meta span {
  color: var(--rlpp-muted);
  font-size: .78rem;
}

.rlpp-meta strong {
  font-size: .82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rlpp-meta a {
  color: var(--rlpp-red);
}

/* INICIO: TABS DE CONTENIDO */
.rlpp-tabs {
  padding: 50px 0;
  border-top: 1px solid var(--rlpp-line);
}

.rlpp-tablist {
  display: flex;
  gap: 10px;
  margin: 0 0 26px;
  padding-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rlpp-line);
}

.rlpp-tab {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #445065;
  background: #f4f7fb;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.rlpp-tab:hover {
  background: #e9eff7;
}

.rlpp-tab[aria-selected="true"],
.rlpp-tab.is-active {
  color: #fff;
  background: var(--rlpp-red);
  border-color: var(--rlpp-red);
}

.rlpp-tabpanel[hidden] {
  display: none !important;
}

.rlpp-panel {
  min-width: 0;
}

.rlpp-subtitle,
.rlpp-related h2 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.rlpp-rich-text {
  color: #2f3745;
  font-size: .96rem;
  line-height: 1.72;
}

.rlpp-rich-text h2,
.rlpp-rich-text h3,
.rlpp-rich-text h4 {
  margin: 1.6em 0 .55em;
  line-height: 1.2;
}

.rlpp-rich-text h2 {
  font-size: 1.65rem;
}

.rlpp-rich-text h3 {
  font-size: 1.35rem;
}

.rlpp-rich-text p,
.rlpp-rich-text ul,
.rlpp-rich-text ol,
.rlpp-rich-text table {
  margin: 0 0 1em;
}

.rlpp-rich-text ul,
.rlpp-rich-text ol {
  padding-left: 1.3em;
}

.rlpp-rich-text table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid var(--rlpp-line);
  border-radius: 10px;
}

.rlpp-rich-text th,
.rlpp-rich-text td {
  padding: 10px 12px;
  border: 1px solid var(--rlpp-line);
  text-align: left;
}

.rlpp-rich-text tr:nth-child(odd) {
  background: #f8fafc;
}

.rlpp-additional-section + .rlpp-additional-section {
  margin-top: 28px;
}

.rlpp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rlpp-line);
  border-radius: 16px;
  background: #fff;
}

.rlpp-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rlpp-data-table th,
.rlpp-data-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

.rlpp-data-table thead th {
  color: #667085;
  background: #f4f6fb;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
}

.rlpp-data-table tbody td {
  color: #243040;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.55;
  border-top: 1px solid #e3e8ef;
}

.rlpp-data-table tbody tr:nth-child(odd) td {
  background: #f8fafc;
}

.rlpp-data-table tbody tr:nth-child(even) td {
  background: #ffffff;
}

.rlpp-additional-section--attributes {
  border-top: 1px solid var(--rlpp-line);
  border-bottom: 1px solid var(--rlpp-line);
}

.rlpp-attribute-row {
  display: grid;
  grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
  background: #f8fafc;
}

.rlpp-attribute-row + .rlpp-attribute-row {
  border-top: 1px solid var(--rlpp-line);
}

.rlpp-attribute-label,
.rlpp-attribute-value {
  min-width: 0;
  padding: 16px 18px;
  color: #243040;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rlpp-attribute-label {
  border-right: 1px solid var(--rlpp-line);
}

.rlpp-data-table--fitment {
  min-width: 680px;
}

.rlpp-data-table--fitment thead th:nth-child(1),
.rlpp-data-table--fitment tbody td:nth-child(1) {
  width: 24%;
}

.rlpp-data-table--fitment thead th:nth-child(2),
.rlpp-data-table--fitment tbody td:nth-child(2) {
  width: 54%;
}

.rlpp-data-table--fitment thead th:nth-child(3),
.rlpp-data-table--fitment tbody td:nth-child(3) {
  width: 22%;
}

.rlpp-data-table--fitment tbody td:nth-child(2) {
  color: #334155;
  font-weight: 700;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* INICIO: PRODUCTOS RELACIONADOS */
.rlpp-related {
  padding: 52px 0 72px;
  border-top: 1px solid var(--rlpp-line);
}

.rlpp-section-header {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.rlpp-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--rlpp-red);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rlpp-section-header > a {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #fff;
  background: var(--rlpp-red);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 800;
}

.rlpp-related-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 82%);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: inline mandatory;
}

.rlpp-related-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rlpp-line);
  border-radius: 14px;
  scroll-snap-align: start;
}

.rlpp-related-image {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 16px;
}

.rlpp-related-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rlpp-related-body {
  display: flex;
  min-height: 180px;
  flex: 1;
  flex-direction: column;
  padding: 0 16px 16px;
}

.rlpp-related-name {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rlpp-related-price {
  margin: 10px 0 13px;
  font-size: 1.12rem;
  font-weight: 850;
}

.rlpp-related-price del {
  margin-right: 6px;
  color: #929aa6;
  font-size: .75em;
}

.rlpp-related-price ins {
  text-decoration: none;
}

.rlpp-related-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 13px;
  color: #fff !important;
  background: var(--rlpp-red);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 850;
  text-align: center;
}

/* INICIO: TABLET */
@media (max-width: 559px) {
  .rlpp-attribute-row {
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
  }

  .rlpp-attribute-label,
  .rlpp-attribute-value {
    padding: 14px 12px;
  }
}

@media (min-width: 700px) {
  .rlpp-container {
    width: min(100% - 48px, 1280px);
  }

  .rlpp-assurances {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rlpp-assurance {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    padding: 12px 10px;
  }

  .rlpp-assurance-icon {
    width: 32px;
    height: 32px;
  }

  .rlpp-assurance-icon svg {
    width: 25px;
    height: 25px;
  }

  .rlpp-assurance strong {
    font-size: .8rem;
  }

  .rlpp-assurance small {
    font-size: .7rem;
  }

  .rlpp-related-grid {
    grid-auto-columns: minmax(230px, 46%);
  }
}

/* INICIO: ESCRITORIO */
@media (min-width: 1024px) {
  .rlpp-hero {
    grid-template-columns: minmax(0, .96fr) minmax(430px, 1.04fr);
    gap: 48px;
    align-items: start;
    padding: 28px 0 82px;
  }

  .rlpp-main-media {
    min-height: 500px;
    padding: 26px;
  }

  .rlpp-summary {
    position: sticky;
    top: 28px;
  }

  .rlpp-title {
    font-size: clamp(2.6rem, 4vw, 4.25rem);
  }

  .rlpp-assurances {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rlpp-tabs {
    padding: 72px 0;
  }

  .rlpp-related-grid {
    grid-auto-flow: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: initial;
    overflow: visible;
    padding-bottom: 0;
  }
}

/* INICIO: ACCESIBILIDAD */
.rlpp-thumbnail:focus-visible,
.rlpp-cart .button:focus-visible,
.rlpp-related-button:focus-visible,
.rlpp-section-header > a:focus-visible {
  outline: 3px solid rgba(227, 6, 19, .28);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .rlpp-product *,
  .rlpp-product *::before,
  .rlpp-product *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
