/* R6.16.35: product card overflow closure and card/list parity for daily, standard and full modes. */
.r61635-product-library-page .r61634-products-shell{container-type:inline-size;max-width:100%;min-width:0;overflow:visible}
.r61635-product-library-page .r61634-products-heading,.r61635-product-library-page .r61634-products-heading>div,.r61635-product-library-page .r61634-products-heading>.actions{min-width:0}
.r61635-product-library-page .r61634-products-heading>.actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.r61635-product-library-page .r61634-view-switch{flex:0 0 auto;max-width:100%}
.r61635-product-library-page .r61634-view-switch a{white-space:nowrap}
.r61635-product-library-page .r61634-status-overview>*{overflow:hidden}
.r61635-product-library-page .r61634-product-filters>*{min-width:0}
.r61635-product-library-page .r61634-product-filters input,.r61635-product-library-page .r61634-product-filters select{max-width:100%}
.r61635-product-library-page .r61634-category-summary>*{min-width:0}

/* Detailed cards need enough width. Three columns are used only when the content area is truly wide. */
.r61635-product-library-page .r61634-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch;max-width:100%;min-width:0}
.r61635-product-library-page .r61634-product-card{container-type:inline-size;max-width:100%;min-width:0;overflow:clip;contain:layout paint}
.r61635-product-library-page .r61634-product-card *{min-width:0;box-sizing:border-box}
.r61635-product-library-page .r61634-card-visual{display:grid;grid-template-rows:minmax(0,auto) auto;min-height:0;overflow:hidden}
.r61635-product-library-page .r61634-card-image{width:100%;height:clamp(210px,18vw,290px);min-height:210px;overflow:hidden;padding:12px}
.r61635-product-library-page .r61634-card-image img{display:block;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.r61635-product-library-page .r61634-card-placeholder{max-width:100%;overflow:hidden}
/* The old absolute footer covered the product image. It is now a normal row below the image. */
.r61635-product-library-page .r61634-image-meta{position:static;left:auto;right:auto;bottom:auto;min-height:30px;margin:0;padding:7px 11px;border-radius:0;border-top:1px solid var(--fp-border);background:var(--fp-surface-2);overflow:hidden}
.r61635-product-library-page .r61634-image-meta span,.r61635-product-library-page .r61634-image-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r61635-product-library-page .r61634-card-check,.r61635-product-library-page .r61634-card-state{max-width:calc(50% - 14px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r61635-product-library-page .r61634-card-body{max-width:100%;overflow:hidden}
.r61635-product-library-page .r61634-card-title>div{min-width:0;flex:1}
.r61635-product-library-page .r61634-card-title h3{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;word-break:break-word}
.r61635-product-library-page .r61634-card-title p,.r61635-product-library-page .r61634-card-title p strong,.r61635-product-library-page .r61634-card-title p span{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.r61635-product-library-page .r61634-card-category{align-items:flex-start;flex-wrap:wrap}
.r61635-product-library-page .r61634-card-category span{flex:1 1 120px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.r61635-product-library-page .r61634-card-facts>div{overflow:hidden}
.r61635-product-library-page .r61634-card-facts dd{overflow-wrap:anywhere;word-break:break-word}
.r61635-product-library-page .r61634-packaging-line{grid-template-columns:auto minmax(0,1fr);overflow:hidden}
.r61635-product-library-page .r61634-packaging-line strong{white-space:normal;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;word-break:break-word}
.r61635-product-library-page .r61634-card-metrics a{overflow:hidden}
.r61635-product-library-page .r61634-card-metrics small,.r61635-product-library-page .r61634-card-metrics strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r61635-product-library-page .r61634-next-action{overflow:hidden}
.r61635-product-library-page .r61634-next-action strong,.r61635-product-library-page .r61634-next-action small{overflow-wrap:anywhere;word-break:break-word}
.r61635-product-library-page .r61634-card-actions{flex-wrap:wrap}
.r61635-product-library-page .r61634-card-actions .btn{flex:1 1 88px;max-width:100%;white-space:normal;text-align:center}
.r61635-product-library-page .r61634-card-actions .uc-product-action{overflow:hidden;text-overflow:ellipsis}
.r61635-product-library-page .r61634-product-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.r61635-product-library-page .r61634-product-table-wrap table{margin-bottom:0}

@container (max-width:1320px){
 .r61635-product-library-page .r61634-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:800px){
 .r61635-product-library-page .r61634-product-grid{grid-template-columns:1fr}
}
@container (max-width:430px){
 .r61635-product-library-page .r61634-card-facts{grid-template-columns:1fr}
 .r61635-product-library-page .r61634-card-metrics{grid-template-columns:1fr 1fr}
 .r61635-product-library-page .r61634-card-title{align-items:flex-start}
 .r61635-product-library-page .r61634-card-unit{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:1180px){
 .r61635-product-library-page .r61634-products-heading{align-items:flex-start;flex-direction:column}
 .r61635-product-library-page .r61634-products-heading>.actions{width:100%;justify-content:flex-start}
}
@media(max-width:720px){
 .r61635-product-library-page .r61634-view-switch{width:100%;order:0}
 .r61635-product-library-page .r61634-view-switch a{flex:1}
 .r61635-product-library-page .r61634-card-image{height:220px;min-height:220px}
 .r61635-product-library-page .r61634-image-meta{gap:6px}
 .r61635-product-library-page .r61634-card-actions{position:static}
}
