/* Ecommerce v1: shared card finish for search, years, subjects and kits.
   Load after home-v24/home.css. Does not touch the hero or Library portrait. */
body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo {
  --commerce-ink: #26343c;
  --commerce-muted: #606b65;
  --commerce-paper: #fffefb;
  --commerce-line: #e3dacb;
  --commerce-gold: #f1c56d;
  --commerce-bronze: #704d20;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--commerce-line);
  border-radius: 18px;
  background: var(--commerce-paper);
  box-shadow: 0 5px 18px #59452b07;
  overflow: hidden;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .material-volume-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 0;
  padding: 22px 24px 20px;
  background: var(--commerce-paper);
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-title-block {
  display: block;
  min-width: 0;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume :is(h3,h4) {
  width: 100%;
  min-height: 0;
  margin: 0;
  color: var(--commerce-ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-title-block :is(h3,h4) a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* The format is part of the product name, never a small eyebrow label. */
body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-format-title,
body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-subject-title {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-format-title::after {
  content: " ";
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-facts {
  min-height: 0;
  margin: 0 0 12px;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-facts:empty {
  display: none;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-era {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--commerce-bronze);
  font: 600 12px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: 0;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .volume-offer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  margin-top: auto;
  padding: 25px 0 0;
  border: 0;
  background: transparent;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .volume-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  color: var(--commerce-ink);
  font: 700 30px/1.18 Manrope, Arial, sans-serif;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--commerce-ink);
  white-space: nowrap;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-currency {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-price-line strong {
  font-size: 30px;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .volume-price-note {
  display: inline;
  margin: 0;
  color: var(--commerce-muted);
  font-size: 12px !important;
  font-weight: 450;
  line-height: 1.5 !important;
  letter-spacing: 0;
  text-align: start;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-actions a {
  min-width: 0;
  min-height: 46px;
  margin: 0;
  text-decoration: none;
  white-space: normal;
  text-align: start;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d4a34e;
  border-radius: 10px;
  background: var(--commerce-gold);
  color: #493117;
  box-shadow: inset 0 1px 0 #fff7e4a6;
  font: 700 13px/1.4 Manrope, Arial, sans-serif;
  letter-spacing: -.01em;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-buy svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  border-radius: 0;
  background: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b665f;
  box-shadow: none;
  font: 550 12px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: 0;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-detail svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  padding: 0;
  background: none;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .volume-open {
  width: 44px;
  height: 44px;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .kit-contents-inline {
  margin: 18px 0 0;
  border: 1px solid #e8dfcf;
  border-radius: 10px;
  background: #fffdf8;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .kit-contents-inline summary {
  min-height: 46px;
  color: var(--commerce-bronze);
  font-size: 12px;
}

body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume :is(a,summary):focus-visible {
  outline: 3px solid #8b642e;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .material-volume-copy {
    padding: 20px 22px 18px;
  }
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume :is(h3,h4) {
    font-size: 25px;
  }
}

@media (max-width: 360px) {
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .material-volume-copy {
    padding-inline: 18px;
  }
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume :is(h3,h4) {
    font-size: 23px;
    letter-spacing: -.03em;
  }
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .product-price-line strong {
    font-size: 28px;
  }
}

@media (hover: hover) {
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-buy:hover {
    border-color: #bb8735;
    background: #eebd5e;
    color: #493117;
    box-shadow: inset 0 1px 0 #fff7e4a6;
  }
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume .official-product-detail:hover {
    background: #f5f1e8;
    color: var(--commerce-bronze);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume,
  body:is(.home-page,.catalog-page).card-design-pilot[data-catalog-mode="library"] #catalogo .material-volume * {
    animation: none !important;
    transition: none !important;
  }
}
