/* Pinganillo Exámenes: corrections from the October 2026 storefront review.
 * Load after rd-site, rd-exam, rd-interiors and rd-commerce. Presentation only:
 * native variation, comparison, cart, consent and payment handlers remain intact.
 */
body.rd-brand-exam {
  --rd-width: 1440px;
}

/* Keep readable side gutters even after the old 1400px zero-padding rule. */
body.rd-brand-exam .rd-home {
  max-width: var(--rd-width);
  padding-inline: clamp(20px, 3vw, 48px);
}

body.rd-brand-exam :is(.rd-hero-note, .rd-home .rd-price small,
  .rd-product-help, .rd-product-help p, .rd-product-help .rd-link,
  .rd-filter-status, .rd-manual-grid p, .rd-manual-grid span,
  .rd-interior-art figcaption) {
  font-size: 14px;
  line-height: 1.7;
}

body.rd-brand-exam .rd-hero-note {
  max-width: 52ch;
}

body.rd-brand-exam :is(.rd-home .rd-product p, .rd-home .rd-product-link,
  .rd-guide p, .rd-guide-points p, .rd-help-links p, .rd-help-links span,
  .rd-home .rd-faq details p, .rd-service-nav) {
  font-size: 16px;
}

body.rd-brand-exam .rd-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--rd-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  vertical-align: middle;
}

body.rd-brand-exam .rd-guide-detail {
  min-width: 0;
}

body.rd-brand-exam .rd-guide-visual {
  display: block;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 18px;
}

body.rd-brand-exam .rd-guide-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

body.rd-brand-exam .rd-guide-points strong .rd-icon {
  margin-inline-end: 10px;
}

body.rd-brand-exam :is(.rd-home, .rd-recommendations) .rd-products {
  align-items: stretch;
}

body.rd-brand-exam :is(.rd-home, .rd-recommendations) .rd-product {
  display: flex;
  flex-direction: column;
}

body.rd-brand-exam :is(.rd-home, .rd-recommendations) .rd-product-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.rd-brand-exam :is(.rd-home, .rd-recommendations) .rd-product-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 15px;
}

body.rd-brand-exam .rd-recommendations {
  padding: 48px 0;
  border-top: 1px solid var(--rd-border);
}

body.rd-brand-exam .rd-recommendations .rd-section-head p {
  font-size: 16px;
}

body.rd-brand-exam .rd-recommendations .rd-price small {
  font-size: 14px;
}

body.rd-brand-exam .rd-recommendations .rd-price {
  font-size: 17px;
  margin-bottom: 18px;
}

/* The top bar uses the accent as its background; the active link stays white. */
body.rd-brand-exam .whb-top-bar .wd-nav > li > a {
  color: var(--rd-paper);
  min-height: 44px;
  font-size: 14px;
}

body.rd-brand-exam .whb-top-bar .wd-nav > li > a:is(:hover, :focus-visible),
body.rd-brand-exam .whb-top-bar .wd-nav :is(.current-menu-item, .current-menu-ancestor) > a {
  color: var(--rd-paper);
  background: var(--rd-accent-hover);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

body.rd-brand-exam .whb-top-bar a:focus-visible {
  outline-color: var(--rd-paper);
  outline-offset: -3px;
}

/* Four reassuring points, each a single full-area link with its own separator. */
body.rd-brand-exam .rd-trust {
  max-width: none;
  gap: 0;
  padding: 0;
  border: 1px solid var(--rd-border);
  border-radius: 18px;
  background: var(--rd-tint);
  overflow: hidden;
}

body.rd-brand-exam .rd-trust > a {
  min-width: 0;
  padding: 26px 24px;
  gap: 8px;
  color: var(--rd-ink);
  text-decoration: none;
}

body.rd-brand-exam .rd-trust > a + a {
  border-inline-start: 1px solid var(--rd-border);
}

body.rd-brand-exam .rd-trust strong {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

body.rd-brand-exam .rd-trust span {
  margin: 0;
  color: var(--rd-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.rd-brand-exam .rd-trust > a:is(:hover, :focus-visible) strong {
  color: var(--rd-accent-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* A stretching card contains the image and leaves space around every word. */
body.rd-brand-exam .rd-paths {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

body.rd-brand-exam .rd-paths > a.rd-path {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px;
  border: 1px solid var(--rd-border);
  border-bottom: 3px solid var(--rd-border);
  border-radius: 18px;
  background: var(--rd-tint);
}

body.rd-brand-exam .rd-paths > a.rd-path:is(:hover, :focus-visible) {
  border-color: var(--rd-accent);
}

body.rd-brand-exam .rd-path-image {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  margin-bottom: 22px;
}

body.rd-brand-exam .rd-path-image img {
  height: 100%;
  padding: 12px;
}

body.rd-brand-exam .rd-paths > a.rd-path h3 {
  font-size: clamp(20px, 1.65vw, 24px);
}

body.rd-brand-exam .rd-paths > a.rd-path p {
  margin-bottom: 20px;
  font-size: 16px;
}

body.rd-brand-exam .rd-paths > a.rd-path > span {
  margin-top: auto;
  padding-top: 4px;
  font-size: 15px;
  font-weight: 750;
}

/* Equal frames in native grids; full titles remain visible at every width.
 * Lists keep their existing horizontal layout. Hover panels remain absolute.
 */
body.rd-brand-exam .wd-products.elements-grid {
  align-items: stretch;
}

body.rd-brand-exam .wd-products.wd-grid-g.elements-grid {
  grid-auto-rows: 1fr;
}

body.rd-brand-exam .wd-products.elements-grid .wd-carousel-wrap {
  align-items: stretch;
}

body.rd-brand-exam .wd-products.elements-grid .wd-carousel-item {
  height: auto;
}

body.rd-brand-exam .wd-products.elements-grid .wd-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

body.rd-brand-exam .wd-products.elements-grid .wd-product .product-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

body.rd-brand-exam .wd-products.elements-grid .wd-product .product-element-top {
  flex: 0 0 auto;
}

body.rd-brand-exam .wd-products.elements-grid .wd-product .product-element-bottom {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

body.rd-brand-exam .wd-products.elements-grid .wd-product .wd-entities-title {
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  white-space: normal;
  font-size: 16px;
  line-height: 1.5;
}

/* A wrapped title is one tappable area, including the space between lines. */
body.rd-brand-exam .wd-products.elements-grid .wd-product .wd-entities-title > a {
  display: block;
}

body.rd-brand-exam .wd-products.elements-grid .wd-product .product-rating-price {
  margin-top: auto;
  padding-top: 8px;
}

body.rd-brand-exam .wc-block-grid__products {
  align-items: stretch;
}

body.rd-brand-exam .wc-block-grid__product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.rd-brand-exam .wc-block-grid__product > a {
  display: flex;
  flex-direction: column;
}

body.rd-brand-exam .wc-block-grid__product .wc-block-grid__product-price {
  margin-top: auto;
}

body.rd-brand-exam .wc-block-grid__product .wc-block-grid__product-title {
  font-size: 16px;
  line-height: 1.5;
}

/* SKU is an internal reference; keep its native value for integrations. */
body.rd-brand-exam.single-product .product_meta .sku_wrapper {
  display: none;
}

body.rd-brand-exam .rd-catalog-filters {
  margin-block: 0 32px;
}

body.rd-brand-exam .rd-catalog-filters .rd-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 0 32px;
}

body.rd-brand-exam .rd-catalog-filters .rd-filter-grid > details {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--rd-border);
  border-radius: 14px;
  background: var(--rd-tint);
  font-size: 15px;
}

body.rd-brand-exam .rd-catalog-filters summary {
  cursor: pointer;
  color: var(--rd-ink);
  font-size: 16px;
  font-weight: 750;
}

body.rd-brand-exam .rd-catalog-filters .widget {
  margin: 20px 0 0;
}

body.rd-brand-exam .rd-catalog-filters h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

body.rd-brand-exam .rd-catalog-filters .rd-active-filters {
  margin-block: 18px 24px;
}

body.rd-brand-exam .rd-catalog-filters :is(ul, li) {
  margin-bottom: 0;
}

body.rd-brand-exam .rd-catalog-filters a {
  min-height: 44px;
  line-height: 1.7;
}

/* Increase the shell, keeping reading columns and checkout forms bounded. */
body.rd-brand-exam :is(.rd-interior, .rd-manual-index) {
  max-width: 1440px;
  padding-inline: clamp(20px, 3vw, 48px);
}

body.rd-brand-exam .rd-document p {
  max-width: 80ch;
}

body.rd-brand-exam.woocommerce-cart .main-page-wrapper > .wd-content-layout,
body.rd-brand-exam.woocommerce-cart .wp-block-woocommerce-cart,
body.rd-brand-exam.rd-utility-page .main-page-wrapper > .wd-content-layout {
  width: 100%;
  max-width: 1440px;
}

body.rd-brand-exam.woocommerce-cart .wd-content-layout > .wd-content-area {
  min-width: 0;
}

body.rd-brand-exam.woocommerce-cart :is(.woocommerce-cart-form, .cart_totals) {
  margin-bottom: 28px;
}

body.rd-brand-exam.woocommerce-cart .shop_table :is(th, td) {
  padding-block: 20px;
}

body.rd-brand-exam .rd-contact .rd-topic-nav {
  justify-content: center;
  gap: 14px;
  margin-inline: auto;
  text-align: center;
}

body.rd-brand-exam .rd-contact .rd-topic-nav > a {
  justify-content: center;
  min-height: 48px;
  font-size: 15px;
}

/* Group navigation has native fragment links and no dependency on JavaScript. */
body.rd-brand-exam .rd-manual-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 28px 36px;
}

body.rd-brand-exam .rd-manual-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--rd-border);
  border-radius: 999px;
  color: var(--rd-ink);
  font-size: 16px;
}

body.rd-brand-exam .rd-manual-nav a:is(:hover, :focus-visible) {
  border-color: var(--rd-accent);
  color: var(--rd-accent-hover);
}

body.rd-brand-exam .rd-manual-group {
  margin-block: 44px;
  scroll-margin-top: 140px;
}

body.rd-brand-exam .rd-manual-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--rd-border);
}

body.rd-brand-exam .rd-manual-group-heading > :is(h2, p) {
  margin: 0;
}

body.rd-brand-exam .rd-manual-group-heading > div > :is(h2, p) {
  margin: 0;
}

body.rd-brand-exam .rd-manual-group-heading p {
  margin-top: 8px;
  font-size: 16px;
}

body.rd-brand-exam .rd-manual-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.5;
}

body.rd-brand-exam .rd-manual-group .rd-manual-grid {
  grid-auto-rows: 1fr;
}

body.rd-brand-exam .rd-manual-group .rd-manual-grid a {
  display: flex;
  flex-direction: column;
}

body.rd-brand-exam .rd-manual-group .rd-manual-grid a > span {
  margin-top: auto;
}

body.rd-brand-exam .rd-manual-group[hidden],
body.rd-brand-exam .rd-manual-grid a[hidden] {
  display: none;
}

/* Colour belongs to the full-width native footer, content to the inner shell. */
body.rd-brand-exam .footer-container {
  width: 100%;
  background: var(--rd-accent-hover);
  color: var(--rd-paper);
}

body.rd-brand-exam .footer-container > .main-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.rd-brand-exam .rd-footer {
  max-width: 1440px;
  padding: 56px clamp(20px, 3vw, 48px) 32px;
  color: var(--rd-paper);
  font-size: 16px;
}

body.rd-brand-exam .rd-footer :is(.rd-footer-heading, .rd-footer-bottom) {
  border-color: var(--rd-paper);
}

body.rd-brand-exam .rd-footer :is(h2, a, p, .rd-footer-bottom) {
  color: var(--rd-paper);
}

body.rd-brand-exam .rd-footer-heading > a {
  font-size: clamp(23px, 2.2vw, 30px);
}

body.rd-brand-exam .rd-footer-heading p,
body.rd-brand-exam .rd-footer nav a {
  font-size: 16px;
}

body.rd-brand-exam .rd-footer nav h2 {
  font-size: 18px;
}

body.rd-brand-exam .rd-footer nav a {
  width: fit-content;
  min-height: 32px;
  margin-bottom: 8px;
}

body.rd-brand-exam .rd-footer a:is(:hover, :focus-visible) {
  color: var(--rd-paper);
  text-decoration: underline;
  text-underline-offset: 5px;
}

body.rd-brand-exam .rd-footer a:focus-visible {
  outline-color: var(--rd-paper);
}

body.rd-brand-exam .rd-footer-bottom {
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  font-size: 14px;
}

/* GTranslate requests native menulist appearance; remove the theme's second arrow. */
body.rd-brand-exam .footer-container select.gt_selector {
  min-height: 46px;
  background-image: none;
  border: 1px solid var(--rd-border);
  font-size: 16px;
}

@media (max-width: 1024px) {
  body.rd-brand-exam .rd-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.rd-brand-exam .rd-trust > a {
    padding: 22px;
  }

  body.rd-brand-exam .rd-trust > a:nth-child(3) {
    border-inline-start: 0;
  }

  body.rd-brand-exam .rd-trust > a:nth-child(n + 3) {
    border-top: 1px solid var(--rd-border);
  }

  body.rd-brand-exam .rd-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.rd-brand-exam .rd-trust,
  body.rd-brand-exam .rd-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  body.rd-brand-exam .rd-trust > a + a {
    border-inline-start: 0;
    border-top: 1px solid var(--rd-border);
  }

  body.rd-brand-exam .rd-paths {
    grid-auto-rows: auto;
    gap: 20px;
  }

  body.rd-brand-exam .rd-path-image {
    aspect-ratio: 16 / 10;
  }

  body.rd-brand-exam .rd-paths > a.rd-path h3 {
    font-size: 23px;
  }

  body.rd-brand-exam .rd-footer-heading p {
    margin-top: 12px;
  }

  body.rd-brand-exam .rd-footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 30px;
  }

  body.rd-brand-exam .rd-footer nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }

  body.rd-brand-exam .rd-footer-bottom p + p {
    margin-top: 0;
  }

  body.rd-brand-exam .rd-contact .rd-topic-nav > a {
    width: 100%;
  }

  body.rd-brand-exam .rd-manual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.rd-brand-exam .rd-catalog-filters .rd-filter-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* Keep the native filters reachable if JavaScript is unavailable. */
body.rd-brand-exam .rd-catalog-filters > .rd-filter-toggle {
  display: none;
}

@media (max-width: 600px) {
  html.rd-catalog-disclosure body.rd-brand-exam .rd-catalog-filters > .rd-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    background: var(--rd-tint);
    color: var(--rd-ink);
    font-size: 16px;
    text-align: start;
  }

  html.rd-catalog-disclosure body.rd-brand-exam
  .rd-catalog-filters > .rd-filter-toggle[aria-expanded="false"] + .rd-filter-grid {
    display: none;
  }

  body.rd-brand-exam .rd-catalog-filters .rd-filter-grid > details {
    padding-block: 0;
  }

  body.rd-brand-exam .rd-catalog-filters .rd-filter-grid > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding-block: 8px;
  }

  body.rd-brand-exam .rd-catalog-filters .rd-filter-grid > details[open] {
    padding-bottom: 14px;
  }

  body.rd-brand-exam .rd-catalog-filters
  :is(.rd-filter-toggle, .rd-filter-grid > details > summary)::after {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
  }

  body.rd-brand-exam .rd-catalog-filters
  :is(.rd-filter-toggle[aria-expanded="true"], .rd-filter-grid > details[open] > summary)::after {
    transform: rotate(225deg);
  }
}

/* Keep the archive comparison action in the keyboard sequence. */
@media (min-width: 769px) {
  body.rd-brand-exam .wd-shop-product .wd-hover-base:not(:is(.quick-shop-shown, .wd-loading-quick-shop))
  .wrapp-swatches > .wd-compare-btn > a {
    visibility: visible;
    opacity: 0;
    pointer-events: none;
  }

  body.rd-brand-exam .wd-shop-product .wd-hover-base:not(:is(.quick-shop-shown, .wd-loading-quick-shop))
  .wrapp-swatches:focus-within {
    visibility: visible;
    transform: none;
    transition: none;
  }

  body.rd-brand-exam .wd-shop-product .wd-hover-base:not(:is(.quick-shop-shown, .wd-loading-quick-shop))
  .wrapp-swatches:focus-within > .wd-compare-btn > a {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 769px) and (hover: hover) {
  body.rd-brand-exam .wd-shop-product .wd-hover-base:hover:not(:is(.quick-shop-shown, .wd-loading-quick-shop))
  .wrapp-swatches > .wd-compare-btn > a {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Keep portrait and landscape images within the same archive thumbnail frame. */
body.rd-brand-exam.woocommerce.archive .wd-products.wd-grid-g.elements-grid .wd-product
  :is(.product-image-link, .hover-img) > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
