.checkout-add { display: none; }
body.checkout-ready .checkout-add { display: inline-flex; margin: .75rem; }
#cart-open[hidden], .checkout-dialog [hidden] { display: none; }
.checkout-dialog { width: min(94vw, 36rem); max-height: 90dvh; overflow: auto; overflow-wrap: anywhere; }
.checkout-dialog h2 { padding-right: 1.5rem; }
.checkout-dialog label { display: grid; gap: .3rem; margin-block: .55rem; }
.checkout-dialog input, .checkout-dialog select {
  width: 100%; min-width: 0; color: var(--text); background: var(--surface);
  padding: .6rem; border: 1px solid var(--muted); border-radius: .4rem; font: inherit;
}
.checkout-lines { list-style: none; padding: 0; }
.checkout-lines li { border-bottom: 1px solid var(--line); padding-block: .6rem; }
.checkout-lines p { margin: .2rem 0; }
.checkout-lines label { max-width: 7rem; }
.checkout-lines button { margin-left: .6rem; }
.checkout-fields { display: grid; gap: .25rem; }
.checkout-delivery { margin-top: 1rem; }
.checkout-delivery p { margin: .25rem 0 .75rem; }
.christmas-prices { display: grid; gap: .3rem; margin-block: .75rem; font-size: .9rem; }
.christmas-prices div { display: flex; justify-content: space-between; gap: .5rem; }
.christmas-prices strong { color: var(--orange); white-space: nowrap; }
.christmas-prices + .checkout-add { margin: .25rem 0 0; }
.catalog-photo > span, .text-status { display: none !important; }
.catalog-purchase { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-block: 1rem; }
.catalog-purchase label { display: grid; gap: .25rem; font-size: .9rem; }
.catalog-purchase input { width: 5rem; border: 1px solid var(--muted); border-radius: .4rem; padding: .5rem; background: var(--surface); color: var(--text); font: inherit; }
.catalog-body > * { min-width: 0; }
.results-heading { gap: .5rem; }
.results-heading small { flex-shrink: 0; }
@media (max-width: 760px) {
  .header { gap: 8px; }
  .header .brand { flex: 1 1 auto; min-width: 0; }
  .header .brand-box { max-width: 100%; overflow: hidden; }
  .header .brand-box img { max-width: 100%; }
  .header .btn { flex: 0 0 auto; margin-left: 0; min-height: 40px; padding-inline: 8px; }
  .header .mobile-toggle { flex: 0 0 40px; min-height: 40px; }
  .hero-actions, .main-filters { flex-wrap: wrap; }
  .catalog-body, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .sub-filters { max-width: 100%; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .header .brand { margin-right: auto; }
  .header .mobile-toggle { display: block; min-width: 40px; min-height: 40px; }
  .header .nav { display: none; }
  .header .nav.open {
    display: flex; position: absolute; inset: 84px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #171d2f; border: 1px solid #ffffff25; border-radius: 14px;
    padding: 10px 18px; max-height: 70dvh; overflow: auto;
  }
  .header .nav summary { justify-content: space-between; padding-block: 13px; font-size: 15px; }
  .header .nav-shortcut { padding-block: 13px; font-size: 15px; }
  .header .nav details + details, .header .nav-shortcut { border-top: 1px solid #ffffff10; }
  .header .nav .dropdown {
    position: static; min-width: 0; border: 0; background: #0d1323;
    box-shadow: none; margin-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .header .account-label { display: none; }
  .header a[href="/acceso"] { min-width: 40px; }
}
