/* Homepage starts directly with categories and product listings below the main navbar. */

/* বাংলা: ক্যাটাগরি চিপ */
.chip-row{overflow-x:auto;white-space:nowrap;padding-bottom:8px}
.chip-row::-webkit-scrollbar{height:6px}
.chip-row::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:999px}
.chip{
  display:inline-flex;align-items:center;gap:8px;padding:10px 14px;margin:0 8px 8px 0;border-radius:999px;
  background:#fff;box-shadow:var(--shadow);text-decoration:none;color:#111827;font-weight:600;transition:.25s;border:1px solid #eef2f7;
}
.chip:hover{transform:translateY(-2px);color:#0f172a;border-color:#cbd5e1}

/* বাংলা: প্রোডাক্ট কার্ড */
.product-card{background:var(--card);border:1px solid #edf2f7;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);transition:.25s ease;height:100%;position:relative}
.product-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px rgba(16,24,40,.12)}
.product-thumb{position:relative;aspect-ratio:4/3;overflow:hidden;background:#eef2ff}
.product-thumb img{width:100%;height:100%;object-fit:cover;transition:.35s}
.product-card:hover .product-thumb img{transform:scale(1.04)}
.price-pill{position:absolute;top:12px;left:12px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700;box-shadow:0 10px 18px rgba(37,99,235,.25)}
.card-actions{position:absolute;top:12px;right:12px;display:flex;flex-direction:column;gap:8px;z-index:2}
.icon-btn{width:38px;height:38px;border:none;border-radius:50%;background:#fff;color:#111827;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(0,0,0,.12);text-decoration:none;transition:.2s}
.icon-btn:hover{transform:translateY(-2px);color:var(--brand)}
.seller-row{display:flex;align-items:center;gap:10px}
.seller-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid #e5e7eb;background:#fff}

/* বাংলা: ফিচার ব্লক */
.section-title{font-weight:800;letter-spacing:-.3px}
.features{margin-top:36px;margin-bottom:44px;position:relative;z-index:1}
.feature-box{background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:5px;height:100%;border:1px solid #eef2f7;display:flex;align-items:center;text-align:left}
.feature-box i{
  width:48px;height:48px;flex-shrink:0;border-radius:14px;background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(124,58,237,.12));
  display:inline-flex;align-items:center;justify-content:center;color:var(--brand);font-size:20px;margin-right:15px;
}
.feature-box h6{margin-bottom:2px;line-height:1.2}
.feature-box p{line-height:1.3}

.price-pill .old-price{opacity:.75;font-size:.75em;margin-right:5px;text-decoration-thickness:2px}


#product-grid{align-items:stretch}
.product-card{border-radius:20px;height:100%;display:flex;flex-direction:column}
.product-card .card-content{padding:14px 14px 13px;display:flex;flex-direction:column;gap:10px;flex:1}
.product-title{font-size:1rem;font-weight:700;line-height:1.35;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;text-align:left}
.product-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0}
.product-seller-info{min-width:0}
.product-seller-name{font-size:.93rem;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-category{font-size:.8rem;color:#6b7280;line-height:1.2}
.card-actions-row{display:flex;gap:8px;margin-top:auto}
.card-actions-row .btn{min-height:38px;border-radius:12px;font-size:.84rem;font-weight:700;padding:.42rem .7rem}
.card-actions-row .btn i{font-size:.8rem}
.product-card .btn-success{border-radius:12px;min-height:40px;font-size:.88rem;font-weight:700}
.price-pill{max-width:72%;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media (min-width:1400px){.product-title{font-size:1.02rem}.card-actions-row .btn{font-size:.82rem}}


/* Tasks 01-05: design title stays hidden on image until hover */
.product-title-overlay{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:34px 54px 10px 12px;background:linear-gradient(to top,rgba(2,6,23,.92),rgba(2,6,23,.58),transparent);color:#fff;opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease;pointer-events:none}
.product-title-overlay span{display:block;font-size:.9rem;font-weight:800;line-height:1.3;text-shadow:0 1px 2px rgba(0,0,0,.35);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-thumb:hover .product-title-overlay,.product-card:focus-within .product-title-overlay{opacity:1;transform:translateY(0)}
@media (hover:none){.product-title-overlay{opacity:1;transform:none;padding-top:28px}.product-title-overlay span{font-size:.82rem}}


/* Tasks 06-10: clean image-first product cards */
.compact-product-card{background:transparent;border:0;border-radius:18px;box-shadow:none;overflow:visible;height:auto}
.compact-product-card:hover{transform:translateY(-3px);box-shadow:none}
.compact-product-thumb{position:relative;aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:#eef2ff;box-shadow:0 10px 26px rgba(15,23,42,.10);border:1px solid #e5eaf2}
.compact-product-thumb .product-image-link{display:block;width:100%;height:100%}
.compact-product-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.compact-product-card .card-content,.compact-product-card .product-meta,.compact-product-card .seller-row{display:none!important}
.vertical-actions{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px;z-index:5}
.vertical-actions .action-form{margin:0;padding:0;line-height:1}
.vertical-actions .action-btn{width:35px;height:35px;min-width:35px;min-height:35px;border-radius:50%;padding:0;font-size:.82rem;background:rgba(255,255,255,.96);color:#0f172a;box-shadow:0 6px 16px rgba(15,23,42,.18);border:1px solid rgba(226,232,240,.95);display:flex;align-items:center;justify-content:center;transition:transform .18s ease,background .18s ease,color .18s ease}
.vertical-actions .action-btn:hover{transform:scale(1.06);background:#fff;color:#2563eb}
.vertical-actions .purchase-action{background:#2563eb;color:#fff;border-color:#2563eb}
.vertical-actions .purchase-action:hover{background:#1d4ed8;color:#fff}
.vertical-actions .details-action{background:#0f172a;color:#fff;border-color:#0f172a}
.vertical-actions .details-action:hover{background:#111827;color:#fff}
.compact-product-thumb .price-pill{top:10px;left:10px;max-width:calc(100% - 62px);padding:6px 9px;font-size:11px;line-height:1.15;border-radius:999px;display:flex;align-items:center;gap:5px;flex-wrap:wrap;z-index:4}
.compact-product-thumb .price-pill .old-price{opacity:.82;font-size:.72rem;text-decoration-thickness:1.5px}
.compact-product-thumb .price-pill .sale-price{font-weight:800}
.compact-product-thumb .product-title-overlay{padding:38px 52px 10px 11px;z-index:3}
@media (max-width:575.98px){.vertical-actions{right:6px;gap:5px}.vertical-actions .action-btn{width:32px;height:32px;min-width:32px;min-height:32px;font-size:.75rem}.compact-product-thumb .price-pill{top:7px;left:7px;font-size:10px;padding:5px 7px}.compact-product-thumb .product-title-overlay{padding-right:44px}}


/* Mobile storefront cleanup */
@media (max-width:767.98px){.features{display:none!important}}


/* v2.5.9 hover-reveal product controls */
.compact-product-thumb .vertical-actions{top:8px!important;right:8px!important;transform:none!important;gap:3px!important;opacity:0;visibility:hidden;transition:opacity .18s ease,transform .18s ease;pointer-events:none}
.compact-product-thumb .vertical-actions .action-btn{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;font-size:.66rem!important;background:rgba(15,23,42,.88)!important;color:#fff!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 4px 10px rgba(15,23,42,.20)!important}
.compact-product-thumb .vertical-actions .action-btn:hover{background:#2563eb!important;color:#fff!important;transform:scale(1.05)!important}
.compact-product-thumb .price-pill{opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease;padding:5px 8px!important;font-size:10px!important;box-shadow:0 5px 12px rgba(37,99,235,.18)!important}
.compact-product-thumb:hover .vertical-actions,.compact-product-card:focus-within .vertical-actions{opacity:1;visibility:visible;transform:none!important;pointer-events:auto}
.compact-product-thumb:hover .price-pill,.compact-product-card:focus-within .price-pill{opacity:1;visibility:visible;transform:none}
.compact-product-thumb .product-title-overlay{padding-right:42px!important}
@media(hover:none){
 .compact-product-thumb .vertical-actions{opacity:1;visibility:visible;pointer-events:auto;top:6px!important;right:5px!important;gap:2px!important}
 .compact-product-thumb .vertical-actions .action-btn{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;font-size:.58rem!important}
 .compact-product-thumb .price-pill{opacity:1;visibility:visible;transform:none;top:6px!important;left:6px!important;padding:4px 6px!important;font-size:9px!important}
 .compact-product-thumb .product-title-overlay{opacity:1!important;visibility:visible!important;transform:none!important;padding:24px 35px 7px 8px!important}
 .compact-product-thumb .product-title-overlay span{font-size:.72rem!important;line-height:1.2!important}
}

/* Multi-image product card slider */
.product-image-slider{position:absolute;inset:0;display:block;overflow:hidden}
.product-image-slider .product-slide-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:translateX(8%);transition:opacity .45s ease,transform .45s ease}
.product-image-slider .product-slide-image.is-active{opacity:1;transform:translateX(0)}

/* Multiplier-adjusted visit badge appears when a visitor hovers/focuses a design. */
.compact-product-thumb{position:relative}
.product-hover-views{position:absolute;z-index:8;left:118px;top:8px;display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:rgba(15,23,42,.82);border:1px solid rgba(255,255,255,.55);color:#fff;font-size:.68rem;font-weight:700;line-height:1.1;opacity:0;transform:translateY(-3px);pointer-events:none;transition:opacity .16s ease,transform .16s ease}
.compact-product-thumb:hover .product-hover-views,.compact-product-thumb:focus-within .product-hover-views{opacity:1;transform:translateY(0)}

@media(max-width:575.98px){.compact-product-thumb .product-hover-views{left:7px;top:34px;max-width:calc(100% - 14px);padding:3px 5px;font-size:.56rem;white-space:nowrap}}

/* v2.7.10 bilingual product title */
.product-title-bilingual{display:flex;flex-direction:column;gap:2px;line-height:1.2}.product-title-bilingual strong{font-weight:800}.product-title-bilingual small{font-size:.78em;font-weight:500;opacity:.9}

/* Ensure both localized product names remain visible in the home design overlay. */
.product-title-overlay span.product-title-bilingual{display:flex!important;flex-direction:column;gap:2px;line-height:1.2;-webkit-line-clamp:unset;-webkit-box-orient:initial;overflow:hidden}
.product-title-overlay .product-title-bilingual strong{display:block;font-weight:800}
.product-title-overlay .product-title-bilingual small{display:block;font-size:.76em;font-weight:500;opacity:.92;line-height:1.15}
