/* Emart theme — homepage layout in the style of emart44.com, on top of Mart and the site's palette.
   Colours come from the palette variables (--pal-*) with Rose Pink fallbacks; only body.theme-home is affected,
   so product, category and checkout pages keep the Mart look. */
body.emart-store.theme-home{--em-brand:var(--pal-nav,#d6336c);--em-dark:var(--pal-dark,#a8204f);--em-tint:var(--pal-tint,#fff1f6);--em-tint2:var(--pal-tint2,#ffe0eb);--em-border:var(--pal-border,#f4b4ca);--em-ink:#1f2328;--em-muted:#6b7280;--em-line:#ececef;background:#f6f6f8}
body.emart-store.theme-home main#app{padding-bottom:30px}
/* Header stays a full-width white band on the grey page */
body.emart-store.theme-home .site-header{background:#fff;box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax)}

/* Big banner only, full width */
body.emart-store.theme-home .mt-hero{grid-template-columns:1fr!important;margin-top:16px}
body.emart-store.theme-home .mt-slider{border-radius:14px;aspect-ratio:2.1/1;min-height:200px;background:#fff;box-shadow:0 1px 3px #0000000d}

/* Section headings: bold title on the left, small "সব দেখুন →" link on the right */
body.emart-store.theme-home .section{margin-top:26px}
body.emart-store.theme-home .section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:0;margin-bottom:12px;padding:0}
body.emart-store.theme-home .section-title h2,body.emart-store.theme-home .section-title h1{font-size:19px;font-weight:700;color:var(--em-ink);margin:0;display:flex;align-items:center;gap:8px}
body.emart-store.theme-home .category-shelf .section-title h2::before,body.emart-store.theme-home #hot-deals .section-title h2::before,body.emart-store.theme-home #all-products .section-title h2::before{content:"";width:18px;height:18px;border-radius:5px;background:var(--em-brand);box-shadow:inset 0 0 0 5px var(--em-tint2);flex:none}
body.emart-store.theme-home .section-title>a{margin-left:auto;font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--em-brand);text-decoration:none;white-space:nowrap}
body.emart-store.theme-home .shelf-arrows{display:none}
body.emart-store.theme-home .mt-center{justify-content:center}
body.emart-store.theme-home .mt-center h2{font-size:22px}

/* Categories: white boxes, picture in a soft round tile, name below */
body.emart-store.theme-home .category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;overflow:visible}
body.emart-store.theme-home .category-card{background:#fff;border:1px solid var(--em-line);border-radius:12px;padding:16px 10px 14px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;box-shadow:none;transition:border-color .15s,transform .15s}
body.emart-store.theme-home .category-card:hover{border-color:var(--em-border);transform:translateY(-2px)}
body.emart-store.theme-home .category-card .category-art{width:68px;height:68px;border-radius:50%;background:var(--em-tint)!important;display:grid;place-items:center;overflow:hidden;margin:0}
body.emart-store.theme-home .category-card .category-art img{width:100%;height:100%;object-fit:cover}
body.emart-store.theme-home .category-card b{font-size:13px;font-weight:600;color:var(--em-ink)}
body.emart-store.theme-home .category-card small{display:none}

/* Product cards */
body.emart-store.theme-home .product-grid,body.emart-store.theme-home .product-grid.shelf-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;overflow:visible;padding:0}
body.emart-store.theme-home .em-card{background:#fff;border:1px solid var(--em-line);border-radius:10px;padding:10px;display:flex;flex-direction:column;min-width:0;box-shadow:none;transition:box-shadow .15s}
body.emart-store.theme-home .em-card:hover{box-shadow:0 6px 18px #0000000f}
body.emart-store.theme-home .em-card .em-photo{position:relative;aspect-ratio:1;border-radius:8px;background:#f7f7f8;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:0}
body.emart-store.theme-home .em-card .em-photo::before{display:none}
body.emart-store.theme-home .em-card .em-photo img{width:100%;height:100%;object-fit:cover}
body.emart-store.theme-home .em-tag{position:absolute;top:8px;right:8px;background:var(--em-dark);color:#fff;font-size:10.5px;font-weight:700;line-height:1;padding:5px 7px;border-radius:5px;letter-spacing:.01em;z-index:1}
body.emart-store.theme-home .em-card .product-body{display:flex;flex-direction:column;flex:1;padding:10px 2px 0;min-width:0}
body.emart-store.theme-home .em-card .product-title{font-size:13.5px;font-weight:600;line-height:1.4;color:var(--em-ink);margin:0 0 6px;min-height:2.8em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
body.emart-store.theme-home .em-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:0 0 10px}
body.emart-store.theme-home .em-price b{font-size:16px;font-weight:800;color:var(--em-brand)!important}
body.emart-store.theme-home .em-price del{font-size:12px;color:#9ca3af}
body.emart-store.theme-home .em-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:auto}
body.emart-store.theme-home .em-actions button{min-height:34px;border-radius:6px;font-size:12px;font-weight:700;padding:6px 4px;cursor:pointer;line-height:1.2;white-space:nowrap}
body.emart-store.theme-home .em-actions .em-add{background:#fff;border:1.5px solid var(--em-brand);color:var(--em-brand)}
body.emart-store.theme-home .em-actions .em-add:hover{background:var(--em-tint)}
body.emart-store.theme-home .em-actions .em-buy{background:var(--em-brand)!important;border:1.5px solid var(--em-brand)!important;color:#fff!important}
body.emart-store.theme-home .em-actions .em-buy:hover{background:var(--em-dark)!important;border-color:var(--em-dark)!important}
body.emart-store.theme-home .em-actions .em-off{grid-column:1/-1;background:#f3f4f6;border:1px solid #e5e7eb;color:#9ca3af;cursor:not-allowed}

/* Top selling: two wide cards per row */
body.emart-store.theme-home .mt-wide-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.emart-store.theme-home .em-wide{position:relative;display:grid;grid-template-columns:42% 1fr;gap:16px;align-items:center;background:#fff;border:1px solid var(--em-line);border-radius:12px;padding:14px;min-width:0}
body.emart-store.theme-home .em-wide-photo{aspect-ratio:1;border-radius:10px;background:#f7f7f8;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:pointer}
body.emart-store.theme-home .em-wide-photo img{width:100%;height:100%;object-fit:cover}
body.emart-store.theme-home .em-wide-body{display:flex;flex-direction:column;min-width:0}
body.emart-store.theme-home .em-best{position:absolute;top:10px;right:10px;background:var(--em-dark);color:#fff;font-size:10.5px;font-weight:700;padding:5px 8px;border-radius:5px}
body.emart-store.theme-home .em-wide h3{font-size:15.5px;font-weight:700;line-height:1.4;margin:14px 0 8px;color:var(--em-ink);cursor:pointer}
body.emart-store.theme-home .em-wide .em-price b{font-size:18px}
body.emart-store.theme-home .em-saved{align-self:flex-start;background:#e7f6ee;color:#13795b;font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:5px;margin:-4px 0 12px}

/* Promo band */
body.emart-store.theme-home .mt-promo-inner{background:linear-gradient(110deg,var(--em-dark),var(--em-brand))!important;border-left:0!important;border-radius:12px;padding:26px 32px}
body.emart-store.theme-home .mt-promo-button{color:var(--em-dark)!important}

/* "আপনার জন্য" load more */
body.emart-store.theme-home #loadMore{display:block;margin:18px auto 0;background:var(--em-brand);border:0;color:#fff;font-weight:700;font-size:13px;padding:11px 26px;border-radius:8px}

@media(max-width:1100px){
 body.emart-store.theme-home .product-grid,body.emart-store.theme-home .product-grid.shelf-track{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.emart-store.theme-home .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
 body.emart-store.theme-home .mt-slider{aspect-ratio:2.1/1;min-height:0;border-radius:10px}
 body.emart-store.theme-home .section{margin-top:20px}
 body.emart-store.theme-home .section-title h2,body.emart-store.theme-home .section-title h1{font-size:16px}
 body.emart-store.theme-home .product-grid,body.emart-store.theme-home .product-grid.shelf-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.emart-store.theme-home .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 body.emart-store.theme-home .category-card{padding:12px 6px 10px}
 body.emart-store.theme-home .category-card .category-art{width:56px;height:56px}
 body.emart-store.theme-home .category-card b{font-size:12px}
 body.emart-store.theme-home .em-card{padding:8px}
 body.emart-store.theme-home .em-card .product-title{font-size:12.5px}
 body.emart-store.theme-home .em-price b{font-size:15px}
 body.emart-store.theme-home .em-actions{gap:5px}
 body.emart-store.theme-home .em-actions button{font-size:11px;min-height:32px;padding:5px 2px}
 body.emart-store.theme-home .mt-wide-grid{grid-template-columns:1fr}
 body.emart-store.theme-home .em-wide{grid-template-columns:38% 1fr;gap:12px;padding:10px}
 body.emart-store.theme-home .em-wide h3{font-size:14px;margin-top:30px}
 body.emart-store.theme-home .mt-promo-inner{padding:18px}
}
