/* Fotografía de estudio para la bolsa lisa con cordón. */
.bag-style-card[href="#estilo/kraft-lisa-cordon"] .bag-style-photo {
  padding: 0;
  overflow: hidden;
  background: #c6a783;
}
.bag-style-card[href="#estilo/kraft-lisa-cordon"] .bag-style-photo img {
  object-fit: cover;
  object-position: center;
}
.bag-detail-hero figure:has(> img[src$="bolsa-kraft-lisa-cordon-v1.jpg"]) {
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}
.bag-detail-hero img[src$="bolsa-kraft-lisa-cordon-v1.jpg"],
.bag-row-photo img[src$="bolsa-kraft-lisa-cordon-v1.jpg"] {
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}
/* Catalog-only layout. No selectors for cart, payment, checkout or admin. */
.nav-links { gap: clamp(15px, 2.2vw, 30px); }
.bag-styles-section[data-view="home"] .catalog-families { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bag-style-photo, .catalog-families .family-card-photo { background: #fff; }
.bag-style-photo img, .catalog-families .family-card-photo img { mix-blend-mode: normal; }
.bag-detail-hero figure { background: #fff; border-color: #eee7de; }
.bag-detail-hero img { mix-blend-mode: normal; }
.catalog-detail-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #ded8ce; margin: 24px 0 0; }
.catalog-detail-tabs button { min-height: 50px; padding: 12px; border: 0; border-bottom: 3px solid transparent; background: #f4f0ea; color: #625447; font: 600 14px var(--font-sans); cursor: pointer; }
.catalog-detail-tabs button + button { border-left: 1px solid #ded8ce; }
.catalog-detail-tabs button[aria-selected="true"] { background: #fff; border-bottom-color: #805b36; color: #47321e; }
.catalog-detail-tabs button:focus-visible, .reference-quote-button:focus-visible { outline: 3px solid #805b36; outline-offset: -4px; }
#catalogProductsPanel[hidden], #catalogDescriptionPanel[hidden] { display: none; }
.catalog-description-panel { padding: 32px 0; max-width: 720px; line-height: 1.8; font-size: 15px; }
.catalog-description-panel h2 { font-size: 25px; font-weight: 600; margin-bottom: 16px; }
.catalog-description-panel h3 { margin-top: 24px; font-size: 18px; }
.catalog-description-panel ul { padding: 16px 0 16px 22px; }
.catalog-description-panel a { display: inline-block; padding: 15px 0; text-decoration: underline; text-underline-offset: 4px; }
.bag-detail-section .bag-order-head, .bag-detail-section .bag-order-row { grid-template-columns: 100px minmax(0, 1.7fr) minmax(0, .85fr) minmax(0, 1fr) 142px minmax(0, .8fr); gap: 16px; }
.bag-detail-section .bag-order-row { background: #fff; }
.bag-detail-section .bag-order-row.is-selected { background: #fcf6ed; }
.bag-row-photo { margin: 0; min-width: 0; align-self: start; }
.bag-row-photo img { display: block; width: 100%; height: 110px; object-fit: contain; background: #fff; }
.bag-row-photo figcaption { margin-top: 8px; text-align: center; color: #71675e; font: 10px var(--font-mono); overflow-wrap: anywhere; }
.bag-detail-section .bag-order-size { min-width: 0; }
.bag-detail-section .bag-order-size > small { display: none; }
.variant-extra-specs { font-size: 11px; line-height: 1.5; margin-top: 8px; }
.variant-extra-specs > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #efebe5; padding: 4px 0; }
.variant-extra-specs dt { color: #786c5f; font-weight: 400; }
.variant-extra-specs dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.bag-order-size .variant-extra-specs { max-width: 330px; }
.supplemental-catalog { margin-top: 40px; border-top: 1px solid #ded8ce; padding-top: 28px; }
.supplemental-catalog > h2 { font-size: 24px; font-weight: 600; }
.supplemental-catalog > p { color: #786c5f; font-size: 13px; line-height: 1.7; margin: 10px 0 24px; }
.reference-product-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; background: #fff; border-top: 1px solid #e9e3da; padding: 24px; }
.reference-product-info { min-width: 0; max-width: 650px; }
.reference-product-info h3 { font-size: 15px; line-height: 1.5; color: #503920; }
.reference-product-info .variant-extra-specs { font-size: 12px; }
.reference-quote-button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: max-content; max-width: 100%; min-height: 44px; margin-top: 14px; padding: 10px 16px; border: 1px solid #b49a7b; border-radius: 3px; color: #694a2c; font-size: 12px; font-weight: 600; }
.reference-quote-button:hover { background: #f8f0e5; }
@media (min-width: 761px) and (max-width: 1050px) {
  .bag-detail-section .bag-order-row, .bag-detail-section .bag-order-head { grid-template-columns: 75px minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1fr) 134px minmax(0, .65fr); gap: 10px; }
  .bag-detail-section .bag-quantity { width: 134px; }
}
@media (max-width: 760px) {
  .bag-styles-section[data-view="home"] .catalog-families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bag-style-grid, .bag-style-grid:last-child, .home-picks .bag-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .bag-style-card { border: 0; background: #fff; border-radius: 0; box-shadow: none; }
  .bag-style-card:hover { box-shadow: none; transform: none; }
  .bag-style-photo { padding: 8px 4px; }
  .bag-style-photo img, .bag-style-grid:last-child .bag-style-photo img, .home-picks .bag-style-photo img { height: clamp(135px, 41vw, 230px); width: 100%; }
  .bag-style-photo .bag-style-tag { display: none; }
  .bag-style-body { text-align: center; padding: 10px 5px 12px; }
  .bag-style-body .style-family-label { display: none; }
  .bag-style-body h3 { color: #503920; font-size: 13px; line-height: 1.45; font-weight: 600; overflow-wrap: normal; }
  .bag-style-body p { margin: 7px 0 10px; font-size: 10px; }
  .bag-style-price { margin-bottom: 10px; }
  .bag-style-price > span { display: none; }
  .bag-style-price strong { font-size: 13px; }
  .bag-style-price small { font-size: 10px; line-height: 1.5; }
  .bag-style-link { font-size: 10px; justify-content: center; gap: 6px; padding-top: 10px; }
  .style-quote-label { font-size: 10px; margin-bottom: 10px; }
  .bag-collection-heading { border-bottom: 1px solid #e5ded4; padding-bottom: 12px; margin-top: 26px; }
  .bag-collection-heading h3 { font-size: 17px; line-height: 1.4; }
  .bag-detail-section { background: #fff; }
  .bag-detail-hero { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border: 0; }
  .bag-detail-intro { order: -1; width: 100%; text-align: center; }
  .bag-detail-intro h1 { font-size: 23px; line-height: 1.3; margin: 10px 0 8px; overflow-wrap: normal; }
  .bag-detail-intro > p, .bag-detail-intro > ul, .bag-detail-intro .bag-detail-help, .bag-detail-intro .eyebrow { display: none; }
  .bag-detail-hero figure { width: 100%; border: 0; padding: 6px 16px; }
  .bag-detail-hero img { height: 245px; object-fit: contain; }
  .bag-back { margin-top: 0; margin-bottom: 0; font-size: 12px; }
  .bag-breadcrumb { font-size: 10px; gap: 7px; line-height: 1.6; }
  .catalog-detail-tabs { margin-top: 6px; }
  .catalog-detail-tabs button { font-size: 13px; }
  .bag-order-heading { margin: 22px 0 16px; }
  .bag-order-heading .eyebrow { display: none; }
  .bag-order-heading h2 { font-size: 19px; margin: 0; }
  .bag-order-heading p { font-size: 11px; line-height: 1.6; }
  .bag-detail-section .bag-order-group { border-radius: 0; border-left: 0; border-right: 0; }
  .bag-order-group > h3 { padding: 12px 4px; font-size: 12px; line-height: 1.5; }
  .bag-reference-group > summary { padding: 14px 4px; gap: 12px; }
  .bag-reference-group > summary strong { font-size: 12px; line-height: 1.5; }
  .bag-reference-group > summary span { font-size: 9px; flex-shrink: 0; }
  .bag-detail-section .bag-order-head { display: none; }
  .bag-detail-section .bag-order-row { grid-template-columns: minmax(75px, 29%) minmax(0, 1fr); grid-template-areas: "photo size" "photo pack" "photo price" "photo quantity" "photo total"; gap: 8px 13px; padding: 18px 0; align-items: start; }
  .bag-order-row .bag-row-photo { grid-area: photo; padding-top: 4px; }
  .bag-order-row .bag-order-size { grid-area: size; }
  .bag-order-row .bag-order-pack { grid-area: pack; display: flex; align-items: baseline; gap: 5px; border-bottom: 1px solid #efebe5; padding-bottom: 5px; font-size: 11px; }
  .bag-order-row .bag-order-price { grid-area: price; }
  .bag-order-row .bag-row-quantity { grid-area: quantity; }
  .bag-order-row .bag-row-total { grid-area: total; text-align: left; padding: 0; align-self: auto; font-size: 12px; }
  .bag-order-row .bag-row-total::before { content: "Importe: "; color: #786c5f; font-size: 10px; font-weight: 400; }
  .bag-order-row .bag-order-pack .mobile-label { margin: 0 auto 0 0; font-size: 10px; }
  .bag-order-row .bag-order-pack strong { font-size: 12px; }
  .bag-order-row .bag-order-size strong { font-size: 13px; line-height: 1.45; color: #503920; }
  .bag-order-row .bag-order-size > span { font-size: 12px; margin-top: 5px; line-height: 1.6; }
  .bag-order-row .bag-order-price strong { font-size: 15px; color: #52652e; }
  .bag-order-row .bag-order-price small { font-size: 10px; }
  .bag-row-photo img { height: 125px; }
  .bag-row-photo figcaption { font-size: 9px; line-height: 1.5; }
  .bag-detail-section .bag-quantity { width: 142px; background: #fff; }
  .bag-detail-section .bag-quantity button { background: #805b36; color: #fff; width: 44px; min-width: 44px; height: 44px; }
  .bag-detail-section .bag-quantity input { width: 52px; height: 44px; font-size: 16px; }
  .bag-row-quantity > .mobile-label { font-size: 10px; }
  .bag-row-pieces { font-size: 10px; }
  .reference-product-row { grid-template-columns: minmax(75px, 29%) minmax(0, 1fr); gap: 13px; padding: 18px 0; }
  .reference-product-info h3 { font-size: 13px; }
  .reference-product-info .variant-extra-specs { font-size: 11px; }
  .reference-quote-button { width: 100%; padding: 9px; font-size: 11px; }
  .supplemental-catalog > h2 { font-size: 20px; }
}

/* Compra clara y legible en pantallas pequeñas. */
.card-price-caption { margin: 10px 0 3px; font-size: 12px; color: #6e5c4c; }
.card-price-row { flex-wrap: wrap; gap: 5px 10px; }
.variant-chip { min-height: 44px; }
@media (max-width: 540px) {
  #productGrid { grid-template-columns: minmax(0, 1fr); }
  .product-card .card-media { aspect-ratio: 1.5; }
  .product-card .card-media img { object-fit: contain; }
  .bag-order-heading p, .bag-order-row .bag-order-price small, .bag-row-pieces { font-size: 12px; }
  .bag-detail-section .bag-order-row { row-gap: 10px; }
  .bag-order-row .bag-order-price strong { font-size: 18px; }
  .bag-style-body h3 { font-size: 14px; }
  .bag-style-price small, .bag-style-link { font-size: 12px; }
}

.bag-review-selection { margin: 0 0 20px; white-space: normal; min-height: 44px; }

/* Compra por presentación sin salir de la lista. */
.cup-sleeve-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0; }
.cup-sleeve-options label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 12px; color: #63513f; }
.cup-sleeve-options select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid #cdbfae; border-radius: 5px; background: #fffdf8; color: #3d2d21; font: inherit; font-size: 14px; cursor: pointer; }
.cup-sleeve-options select:focus-visible { outline: 2px solid #284c3f; outline-offset: 2px; }
.bag-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bag-add-row { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 4px; background: #3d2d21; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bag-add-row:hover:not(:disabled) { background: #805b36; }
.bag-add-row:disabled { background: #e5dfd7; color: #75695b; cursor: not-allowed; }
.bag-row-feedback { margin: 7px 0 0; font-size: 12px; color: #365424; }
.bag-row-feedback:empty { display: none; }
.bag-row-feedback button { border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; padding: 8px 4px; font: inherit; }
.bag-row-color { display: block; margin-bottom: 8px; font-size: 12px; }
.bag-row-color input { display: block; width: 100%; min-height: 44px; border: 1px solid #cdbfae; padding: 8px; border-radius: 4px; }
@media (max-width: 600px) {
  .bag-detail-section .bag-order-row { grid-template-areas: "photo size" "photo pack" "photo price" "quantity quantity" "total total"; }
  .bag-row-actions { flex-wrap: nowrap; }
  .bag-row-actions .bag-quantity { flex-shrink: 0; }
  .bag-add-row { flex: 1; min-width: 0; padding: 10px 6px; }
}
