/* La lista y la ficha comparten la tipografía de la etiqueta para identificar cada licor. */
#catalog-title,
.products[data-view="producto"] > .product h1,
.attention-intro h1 {
  font: 400 clamp(2.7rem, 10.8vw, 3.65rem)/1.04 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.catalog .section-head p {
  margin-top: .6rem;
  font-size: 1rem;
  line-height: 1.45;
}

.products .product-name-link {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  font: 400 clamp(1.5rem, 5.9vw, 1.85rem)/1.07 var(--display);
  letter-spacing: -.022em;
  text-underline-offset: .17em;
}

.catalog-controls #catalog-view button,
.product-body .case-pack,
.product-facts dt,
.card-quantity label,
.card-order .quantity-units {
  font-size: .9rem;
  line-height: 1.4;
}

.product-facts dd,
.card-quantity .quantity-control,
.minimum-count {
  font-variant-numeric: tabular-nums;
}

.product-facts:has(> :nth-child(3)) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.1rem), 1fr));
}

.product-facts dt, .product-facts dd { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .products[data-view="producto"] > .product { grid-template-columns: minmax(0, 1fr); }
}

.product-body .card-order-action,
.pdp-shortcuts a {
  font-size: .96rem;
}

.products[data-view="producto"] .product-description {
  line-height: 1.5;
  text-wrap: pretty;
}

.pdp-shortcuts {
  column-gap: 1.35rem;
  margin-block: .45rem .2rem;
}

#order-title, #age-title {
  font: 400 clamp(2.05rem, 8vw, 2.7rem)/1.06 var(--display);
  letter-spacing: -.025em;
}

#order .sheet-header { flex-wrap: wrap; row-gap: .25rem; }
#order .sheet-header > div { min-width: 0; overflow-wrap: anywhere; }

.partner-intro h1 {
  font-size: clamp(2.9rem, 11vw, 4rem);
  line-height: 1;
}

.partner-edition h2,
.partner-production h2,
.partner-terms h2 {
  font-size: clamp(2.35rem, 9vw, 3rem);
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.partner-minimum-inner { flex-wrap: wrap; }
.partner-minimum-inner > span { flex: 1 1 min-content; }

.partner-form h3 {
  font-size: clamp(1.8rem, 7.5vw, 2.3rem);
  line-height: 1.08;
}

.partner-form .inquiry-field label,
.partner-form .contact-button,
.attention-reasons .reason-text > span {
  font-size: 1rem;
  line-height: 1.45;
}

.attention-reasons .reason-text strong {
  font-size: 1.13rem;
  line-height: 1.25;
}

.attention-reasons .reason-text { gap: .3rem; }

@media (max-width: 720px) {
  .products[data-view="producto"] .product-facts { order: -2; }
  .products[data-view="producto"] .card-order { order: -1; }
  .products[data-view="producto"] .product-description { margin-block: .5rem; }

  #order .order-product:has(.order-thumb) {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-content: center;
    column-gap: .75rem;
  }
  #order .order-thumb {
    display: block;
    grid-row: 1 / 3;
    align-self: center;
    width: 3.5rem;
    height: 4rem;
    border-radius: 3px;
    object-fit: cover;
  }
  #order .order-product strong { align-self: end; }
  #order .order-product > span { line-height: 1.4; }
  #order .sheet-items:has(.sheet-empty) { padding-block: 1.15rem 2rem; }
  #order .order-summary { margin-bottom: 0; }
  #order .order-line:last-child { border-bottom: 0; }
  #order .sheet-details { min-width: 0; }
  #order .order-terms summary { min-height: 44px; }
}

@media (max-width: 480px) and (max-height: 740px) {
  .products[data-view="producto"] > .product .product-media { width: min(100%, 39svh); }
}

@media (max-width: 720px) and (min-height: 28rem) {
  #order[open] {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }
  #order .sheet-header { flex: none; }
  #order .order-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
  #order #order-details { padding-bottom: 1rem; }
  #order #order-review {
    flex: none;
    gap: .3rem;
    padding-block: .65rem max(.7rem, env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    text-align: center;
  }
}
