body.rp-product-page {
    background: var(--rp-paper) !important;
    color: var(--rp-ink);
    font-family: var(--rp-sans);
}

.rp-product-page .topbar {
    background: var(--rp-white) !important;
    border-color: var(--rp-line);
    box-shadow: none;
    backdrop-filter: none;
}

.rp-product-page .topbar-shell { max-width: 1248px; }
.rp-product-page .topbar-inner { padding-block: var(--rp-space-2) !important; }
.rp-product-page .brand-logo img { height: 50px !important; }
.rp-product-page .topbar-actions,
.rp-product-page .mobile-header-status { display: none !important; }
.rp-product-page .breadcrumbs span { color: var(--rp-muted); }

.rp-product-page main.product-page {
    width: min(100% - 2 * var(--rp-gutter), var(--rp-content));
    min-width: 0;
    padding: var(--rp-space-5) 0 var(--rp-space-7) !important;
}

.rp-product-overview {
    display: grid;
    gap: var(--rp-space-4);
    margin: 0 0 var(--rp-space-5);
}

.rp-product-identity,
.rp-product-quote {
    min-width: 0;
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius-card);
    overflow-wrap: anywhere;
}

.rp-product-identity {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 39%) minmax(0, 1fr);
    gap: var(--rp-space-3);
    background: var(--rp-white);
    padding: clamp(12px, 3vw, 32px);
}

.rp-product-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; min-width: 0; color: var(--rp-muted); }
.rp-product-photo img { width: 100%; height: 100%; max-height: 280px; object-fit: contain; }
.rp-product-identity .product-page-title {
    font: 400 clamp(1.45rem, 4vw, 3.35rem)/1.06 var(--rp-display) !important;
    letter-spacing: -0.03em !important;
    color: var(--rp-ink);
    margin: var(--rp-space-1) 0 var(--rp-space-2) !important;
}
.rp-product-name p { color: var(--rp-muted); margin: var(--rp-space-1) 0 var(--rp-space-2); }
.rp-product-share { display: flex; flex-wrap: wrap; gap: var(--rp-space-3); margin: var(--rp-space-2) 0; }
.rp-product-share a { color: var(--rp-primary); }
.rp-product-extra summary { color: var(--rp-primary); cursor: pointer; padding-block: var(--rp-space-1); font-size: var(--rp-small); }
.rp-product-extra p { margin: var(--rp-space-1) 0; overflow-wrap: anywhere; }

.rp-product-quote {
    background: var(--rp-rose);
    padding: clamp(16px, 3vw, 26px);
}

.rp-product-quote h2 { color: var(--rp-burgundy); margin: 0; font-size: var(--rp-text); }
.rp-product-quote .rp-product-quote__price {
    margin: var(--rp-space-1) 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 720;
    line-height: 1.03;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.rp-product-quote__store { font-weight: 650; margin: var(--rp-space-2) 0 var(--rp-space-1); }
.rp-product-quote__context { color: var(--rp-muted); font-size: var(--rp-small); margin: var(--rp-space-1) 0 var(--rp-space-3); }
.rp-product-shop,
.rp-product-alert { width: 100%; text-align: center; }
.rp-product-alert { margin-top: var(--rp-space-2); cursor: pointer; }
.rp-product-all-offers { color: var(--rp-primary); display: inline-block; font-weight: 650; font-size: var(--rp-small); padding-block: var(--rp-space-1); }
.rp-product-history-link { display: inline-flex; align-items: center; min-height: var(--rp-target); color: var(--rp-primary); font-size: var(--rp-small); }

.rp-product-page .product-page .stores-card {
    width: 100%;
    min-width: 0;
    background: var(--rp-white);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius-card) !important;
    padding: clamp(12px, 2.3vw, 28px) !important;
    margin-bottom: var(--rp-space-5) !important;
    box-shadow: none !important;
}

.rp-product-page :is(#historial, #ofertas, #resenas, #escribir-resena, #caracteristicas) { scroll-margin-top: 150px; }
.rp-product-reviews { display: grid; gap: var(--rp-space-4); overflow-wrap: anywhere; }
.rp-product-reviews__head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: var(--rp-space-3); }
.rp-product-reviews__head p { margin-bottom: 0; }
.rp-product-reviews__head strong { color: var(--rp-ink); }
.rp-product-reviews__form { max-width: 46rem; padding: clamp(14px, 3vw, 24px); background: var(--rp-paper); }
.rp-product-reviews__form h3 { margin: 0; }
.rp-product-reviews__rating { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.rp-product-reviews__scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: calc(5 * var(--rp-target) + 4 * var(--rp-space-1)); gap: var(--rp-space-1); }
.rp-product-reviews__scale label { position: relative; cursor: pointer; }
.rp-product-reviews__scale input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.rp-product-reviews__scale span { display: grid; place-items: center; width: 100%; height: var(--rp-target); color: var(--rp-primary); background: var(--rp-white); border: 1px solid var(--rp-field-line); border-radius: var(--rp-radius-control); font-weight: 650; }
.rp-product-reviews__scale input:checked + span { color: var(--rp-white); background: var(--rp-primary); border-color: var(--rp-primary); }
.rp-product-reviews__scale input:focus-visible + span { outline: 2px solid var(--rp-primary); outline-offset: 2px; }
.rp-product-reviews__recent { color: var(--rp-ink); margin: 0; font: 400 1.2rem/1.2 var(--rp-display); }
.rp-product-reviews__list { display: grid; max-width: 56rem; margin: 0; padding: 0; list-style: none; }
.rp-product-reviews__list li { padding: var(--rp-space-4) 0; border-top: 1px solid var(--rp-line); }
.rp-product-reviews__item-head { display: flex; gap: var(--rp-space-2); align-items: baseline; justify-content: space-between; }
.rp-product-reviews__score { color: var(--rp-burgundy); font-weight: 650; white-space: nowrap; }
.rp-product-reviews__list p { margin: var(--rp-space-2) 0; color: var(--rp-ink); white-space: pre-wrap; }
.rp-product-reviews__list time { color: var(--rp-muted); font-size: var(--rp-small); }
.rp-detail-section-head h2,
.rp-product-page .stores-card-head h2 {
    margin: 0;
    color: var(--rp-ink);
    font: 400 clamp(1.65rem, 3vw, 2.55rem)/1.08 var(--rp-display);
    letter-spacing: -0.02em;
}
.rp-detail-section-head p { margin: var(--rp-space-2) 0; color: var(--rp-muted); font-size: var(--rp-small); }
.rp-history .rp-detail-section-head h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.rp-history-current {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--rp-space-1) var(--rp-space-3);
    margin: var(--rp-space-4) 0 0;
    color: var(--rp-burgundy);
}
.rp-history-current dt { font-size: var(--rp-small); font-weight: 650; }
.rp-history-current dd { margin: 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-offers__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--rp-space-3); }
.rp-offers__head button { cursor: pointer; }
.rp-offers__head button:hover { background: var(--rp-rose); }

.rp-history-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rp-space-2);
    margin: var(--rp-space-4) 0;
}
.rp-history-ranges .chart-range-btn { min-height: var(--rp-target); font-family: var(--rp-sans); }
.rp-history-ranges .chart-range-btn[aria-pressed="true"] {
    background: var(--rp-primary);
    color: var(--rp-white);
    border-color: var(--rp-primary);
}
.rp-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rp-space-2);
    margin: 0;
    background: var(--rp-paper);
    padding: var(--rp-space-3);
    border-radius: var(--rp-radius-control);
}
.rp-history-stats dt { font-size: var(--rp-label); color: var(--rp-muted); }
.rp-history-stats dd { margin: var(--rp-space-1) 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rp-history-status { color: var(--rp-muted); font-size: var(--rp-small); margin: var(--rp-space-3) 0; }
.rp-history .price-chart-frame { height: clamp(160px, 23vw, 272px); }
.rp-history .price-history-data summary { color: var(--rp-primary); padding-block: var(--rp-space-2); }
.rp-history .price-history-data table { font-size: var(--rp-small); }
.rp-history .price-history-data caption { text-align: start; color: var(--rp-muted); }
.rp-history .price-history-data td:nth-child(2) { font-variant-numeric: tabular-nums; }
.rp-history [hidden], .rp-offers [hidden] { display: none !important; }

.rp-product-page .rp-offer-table-wrap {
    display: block !important;
    margin-top: var(--rp-space-4);
    overflow: visible;
}

.rp-offer-table.stores-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0;
    font-size: var(--rp-small);
}

.rp-offer-table :is(td, th) {
    padding: var(--rp-space-3);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--rp-line);
}

.rp-offer-table th { color: var(--rp-muted); background: var(--rp-paper); }
.rp-offer-table .rp-offer-lowest { background: var(--rp-surface); }
.rp-offer-merchant strong { display: block; color: var(--rp-ink); }
.rp-offer-table .open-store-rating {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--rp-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-size: var(--rp-label);
}
.rp-offer-table .store-price { font-weight: 700; font-size: 1.14rem; font-variant-numeric: tabular-nums; color: var(--rp-ink); }
.rp-offer-lowest-label { display: block; font-size: var(--rp-label); font-weight: 650; color: var(--rp-positive); margin-top: var(--rp-space-1); }
.rp-offer-table .stock-ok,
.rp-offer-table .stock-no {
    border: 0;
    background: none;
    padding: 0;
    font-size: var(--rp-small);
    color: var(--rp-muted);
    white-space: normal;
}
.rp-offer-table .stock-ok { color: var(--rp-positive); }
.rp-offer-date { color: var(--rp-muted); }
.rp-offer-action .rp-button { padding-inline: 0; }
.rp-offers-empty { color: var(--rp-muted); padding-block: var(--rp-space-3); margin: 0; }
.rp-product-page .report-problem-link {
    color: var(--rp-primary);
    border: 0;
    background: transparent;
    font: 650 var(--rp-small)/1.3 var(--rp-sans);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    min-height: var(--rp-target);
    cursor: pointer;
}
.rp-product-page .product-feature-item { background: var(--rp-surface); border-color: var(--rp-line); }
.rp-product-page .product-feature-links { display: flex; flex-wrap: wrap; gap: 0 var(--rp-space-3); }
.rp-product-page .product-feature-links a {
    display: inline-flex;
    align-items: center;
    min-block-size: 28px;
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    color: var(--rp-primary);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.rp-product-page .product-feature-links a:hover { color: var(--rp-primary-hover); }
.rp-product-page .report-problem-panel {
    max-width: 46rem;
    margin-inline: auto;
    padding: clamp(14px, 3vw, 28px);
    background: var(--rp-paper);
}
.report-problem-panel .rp-form-title { margin: 0 0 var(--rp-space-4); }
.rp-product-dialog .rp-form-panel { overscroll-behavior: contain; }
.rp-product-dialog :is(.price-alert-box, .rating-modal-dialog) { padding: clamp(16px, 4vw, 28px); }
.rp-product-dialog .rp-form-close {
    flex: 0 0 var(--rp-target);
    width: var(--rp-target);
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.rp-product-dialog .rp-form-close:hover { background: var(--rp-rose); text-decoration: none; }
.price-alert-box .rp-form-title { padding-inline-end: var(--rp-target); }
.price-alert-box .price-alert-close { top: var(--rp-space-2); right: var(--rp-space-2); }
.price-alert-box .premium-alert-product { color: var(--rp-muted); margin: 0 0 var(--rp-space-4); }
.price-alert-box .premium-alert-current {
    background: var(--rp-rose);
    color: var(--rp-burgundy);
    border-color: var(--rp-line);
    border-radius: var(--rp-radius-control);
}
.price-alert-box .premium-alert-current :is(span,strong) { color: inherit; }
.price-alert-box .rp-form-control { border-color: var(--rp-field-line); border-radius: var(--rp-radius-control); padding: var(--rp-space-2) var(--rp-space-3); }
.price-alert-box button.rp-button--primary[type="submit"] {
    margin: 0;
    padding: var(--rp-space-2) var(--rp-space-4);
    border-radius: var(--rp-radius-control);
    background: var(--rp-primary);
    font-weight: 650;
}
.price-alert-box button.rp-button--primary[type="submit"]:hover { background: var(--rp-primary-hover); }
.price-alert-box button.rp-button--primary[type="submit"]:disabled { color: var(--rp-muted); background: var(--rp-paper); cursor: wait; }
.rp-product-dialog .store-filter-dialog { max-height: calc(100dvh - 32px); overflow: auto; }
.rp-product-dialog :is(.store-filter-head, .store-filter-body, .store-filter-footer) { padding: clamp(14px, 4vw, 24px); }
.rp-product-dialog :is(.store-filter-head, .store-filter-footer) { border-color: var(--rp-line); }
.store-filter-head h3.rp-form-title { font: 400 clamp(1.5rem, 3vw, 2rem)/1.15 var(--rp-display); color: var(--rp-ink); }
.store-filter-head p.rp-form-note { color: var(--rp-muted); }
.store-filter-body .store-filter-check { padding: var(--rp-space-1) 0; color: var(--rp-ink); font: 400 var(--rp-small)/1.4 var(--rp-sans); }
.store-filter-body .store-filter-check input { accent-color: var(--rp-primary); }
.rp-product-dialog .store-filter-footer { display: flex; }
.rating-modal-dialog .rating-stars { margin: 0; gap: var(--rp-space-1); }
.rating-modal-dialog .rating-star-btn {
    flex: 0 1 var(--rp-target);
    min-width: 0;
    min-height: var(--rp-target);
    color: var(--rp-primary);
    font-size: 1.6rem;
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius-control);
}
.rating-modal-dialog .rating-star-btn:hover,
.rating-modal-dialog .rating-star-btn[aria-pressed="true"] { background: var(--rp-rose); transform: none; }
.rating-modal-dialog .rating-modal-head { margin-bottom: var(--rp-space-4); }
.rating-modal-dialog .rating-review-card { background: var(--rp-paper); border-color: var(--rp-line); border-radius: var(--rp-radius-card); }
.rating-modal-dialog .rating-review-stars { color: var(--rp-primary); }

@media (min-width: 900px) {
    .rp-product-overview { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr); gap: var(--rp-space-5); }
}

@media (min-width: 768px) {
    .rp-offer-table.stores-table { table-layout: fixed; }
    .rp-offer-table th:nth-child(1) { width: 27%; }
    .rp-offer-table th:nth-child(2) { width: 20%; }
    .rp-offer-table th:nth-child(3),
    .rp-offer-table th:nth-child(4),
    .rp-offer-table th:nth-child(6) { width: 12%; }
    .rp-offer-table th:nth-child(5) { width: 17%; }
}

@media (max-width: 767px) {
    .rp-product-page main.product-page { padding-top: var(--rp-space-3) !important; }
    .rp-product-identity .product-page-title { font-size: clamp(1.325rem, 5vw, 1.8rem) !important; }
    .rp-offer-table.stores-table,
    .rp-offer-table tbody { display: block; }
    .rp-offer-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .rp-offer-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        grid-template-areas: "merchant price" "stock date" "identifiers identifiers" "action action";
        gap: var(--rp-space-1) var(--rp-space-2);
        padding: var(--rp-space-3);
        border: 1px solid var(--rp-line);
        border-radius: var(--rp-radius-card);
        margin-bottom: var(--rp-space-3);
    }
    .rp-offer-table td { display: block; border: 0; padding: var(--rp-space-1) 0; }
    .rp-offer-merchant { grid-area: merchant; }
    .rp-offer-table .store-price { grid-area: price; text-align: right; }
    .rp-offer-stock { grid-area: stock; }
    .rp-offer-date { grid-area: date; text-align: right; font-size: var(--rp-label); }
    .rp-offer-identifiers { grid-area: identifiers; }
    .rp-offer-action { grid-area: action; }
    .rp-offer-action .rp-button { width: 100%; border-color: var(--rp-line); }
}

@media (max-width: 450px) {
    .rp-history-ranges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rp-history-ranges .chart-range-btn { padding-inline: var(--rp-space-1); font-size: 0.8125rem; }
}

.rp-product-page .product-feature-item .product-feature-label { color: var(--rp-muted); }
.rp-product-page .product-card .price-row > .price { color: var(--rp-ink); }

.rp-related-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--rp-space-4);
}

@media (max-width: 560px) {
    #relatedProductsGrid.rp-related-grid .rp-card {
        border-radius: var(--rp-radius-card) !important;
        box-shadow: none !important;
    }
}

@media (min-width: 600px) {
    .rp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .rp-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .rp-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
