/* Step 48: all-products home section — reuses the existing product catalogue data */
.tm-home-all-products-section{padding:34px 0 58px!important;scroll-margin-top:105px}
.tm-home-all-products-section .section-header{margin-bottom:22px!important;gap:7px!important}
.tm-home-all-products-section .section-title{margin:0!important}
.tm-home-all-products-subtitle{color:var(--muted,var(--tm-brand-8b5c6d,#8b5c6d));font-size:13px;line-height:1.5;margin:0}
.tm-home-all-products-grid{
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
 gap:13px!important;align-items:stretch!important;width:100%;min-width:0
}
.tm-home-all-product-card{
 min-width:0!important;display:block!important;background:var(--card,var(--tm-brand-fffafc,#fffafc))!important;
 border:1px solid rgba(240,208,220,.75)!important;border-radius:12px!important;
 overflow:hidden!important;box-shadow:0 3px 13px rgba(58,26,37,.055)!important;
 transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important
}
.tm-home-all-product-card[hidden]{display:none!important}
.tm-home-all-product-card:hover{transform:translateY(-3px);border-color:rgba(224,92,138,.35)!important;box-shadow:0 8px 20px rgba(224,92,138,.12)!important}
.tm-home-all-product-link{display:flex!important;flex-direction:column!important;height:100%;min-width:0;color:inherit;text-decoration:none!important}
.tm-home-all-product-image{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:linear-gradient(135deg,var(--tm-brand-fff0f5,#fff0f5),var(--tm-brand-f7d2e1,#f7d2e1))}
.tm-home-all-product-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;max-width:none!important}
.tm-home-all-product-badge{position:absolute;top:6px;left:6px;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.9);color:var(--tm-brand-b83d73,#b83d73);font-size:9px;font-weight:750;line-height:1.3}
.tm-home-all-product-info{display:flex;flex:1;flex-direction:column;gap:6px;min-width:0;padding:9px 8px 10px}
.tm-home-all-product-info h3{margin:0!important;color:var(--tm-brand-532636,#532636);font-size:12px!important;font-weight:700!important;line-height:1.4!important;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;overflow-wrap:anywhere}
.tm-home-all-product-prices{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;min-width:0}
.tm-home-all-product-prices strong{font-size:12px;color:var(--tm-brand-c94070,#c94070);font-weight:800;line-height:1.3}
.tm-home-all-product-prices del{font-size:10px;color:var(--tm-brand-af7a90,#af7a90);line-height:1.3}
.tm-home-products-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:24px auto 0}
.tm-home-products-pagination button{min-width:94px;padding:9px 16px;border:1px solid var(--tm-brand-efc7d7,#efc7d7);border-radius:8px;background:#fff;color:var(--tm-brand-9d3e68,#9d3e68);font:700 12px/1.4 'Noto Sans Bengali',sans-serif;cursor:pointer}
.tm-home-products-pagination button:not(:disabled):hover{background:var(--tm-brand-e05c8a,#e05c8a);color:#fff;border-color:var(--tm-brand-e05c8a,#e05c8a)}
.tm-home-products-pagination button:disabled{opacity:.4;cursor:not-allowed}
.tm-home-products-pagination span{min-width:48px;text-align:center;color:var(--tm-brand-805b6b,#805b6b);font-size:12px;font-weight:700}
.tm-home-products-empty{padding:24px;text-align:center;border:1px dashed var(--tm-brand-e8c6d4,#e8c6d4);border-radius:12px;color:var(--tm-brand-8b5c6d,#8b5c6d);background:var(--tm-brand-fffafc,#fffafc)}
@media(min-width:769px) and (max-width:1100px){
 .tm-home-all-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
}
@media(max-width:768px){
 .tm-home-all-products-section{padding:26px 0 42px!important;scroll-margin-top:82px}
 .tm-home-all-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
 .tm-home-all-product-info{padding:7px 6px 8px;gap:4px}
 .tm-home-all-product-info h3{font-size:10px!important;line-height:1.35!important;min-height:27px}
 .tm-home-all-product-prices strong{font-size:10px}
 .tm-home-all-product-prices del{font-size:9px}
 .tm-home-all-product-badge{font-size:8px;top:4px;left:4px;padding:2px 4px}
 .tm-home-products-pagination{gap:10px;margin-top:18px}
 .tm-home-products-pagination button{min-width:82px;padding:8px 10px;font-size:11px}
}

/* Step 50: product cards use a 6-column desktop grid and fully contained content */
.tm-home-all-products-grid{grid-auto-rows:1fr!important}
.tm-home-all-product-card{height:100%!important;min-height:0!important}
.tm-home-all-product-link{min-height:100%!important}
.tm-home-all-product-image{flex:0 0 auto!important}
.tm-home-all-product-info{box-sizing:border-box!important;min-height:82px!important;overflow:hidden!important}
.tm-home-all-product-info h3{
  width:100%!important;max-width:100%!important;white-space:normal!important;
  overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;
  min-height:34px!important;max-height:36px!important;
}
.tm-home-all-product-prices{width:100%!important;max-width:100%!important;overflow:hidden!important;align-items:baseline!important}
.tm-home-all-product-prices strong,.tm-home-all-product-prices del{
  max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
.tm-home-all-product-badge{z-index:1!important;max-width:calc(100% - 12px)!important}
@media(min-width:1101px){
 .tm-home-all-products-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
 .tm-home-all-product-info{padding:10px 10px 11px!important;min-height:86px!important}
 .tm-home-all-product-info h3{font-size:13px!important;line-height:1.4!important;min-height:36px!important;max-height:37px!important}
 .tm-home-all-product-prices strong{font-size:13px!important}
 .tm-home-all-product-prices del{font-size:11px!important}
}
@media(max-width:768px){
 .tm-home-all-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
 .tm-home-all-product-info{min-height:68px!important;padding:7px 6px 8px!important}
 .tm-home-all-product-info h3{font-size:10px!important;line-height:1.35!important;min-height:27px!important;max-height:28px!important}
 .tm-home-all-product-prices strong{font-size:10px!important}
 .tm-home-all-product-prices del{font-size:9px!important}
}
