/* Home page (site 21): only what the legacy theme does not draw - the HTML text over banners whose legacy picture
 * carried AED / Plus Points / Emirates NBD copy, and the four "best place to buy" cards (legacy: pictures).
 * The crops keep the CLEAN part of each picture: desktop hero -> top band; phone hero and tiles -> bottom band. */

/* ---------------------------------------------------------------- hero */
.ias-hero-overlay a { position: relative; display: flex; flex-direction: column; background: #000; border-radius: 30px; overflow: hidden; }
/* desktop picture: keep the top 68% (the product); its lower band carried the AED / Plus Points line */
.ias-hero-overlay img { display: block; width: 100%; aspect-ratio: 1368 / 416; object-fit: cover; object-position: top; }
.ias-hero-overlay .ias-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 4px 16px 26px; }
.ias-hero-title { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.ias-hero-tag { font-size: 15px; opacity: .9; }
.ias-hero-price { font-size: 17px; }
.ias-hero-buy { margin-top: 10px; min-width: 90px; font-size: 11px !important; letter-spacing: .08em; }
.ias-theme-dark .ias-hero-copy { color: #fff; }
.ias-hero-overlay.ias-theme-light a { background: #fff; }
.ias-theme-light .ias-hero-copy { color: #1D1D1F; }

@media (max-width: 685px) {
    /* the phone picture has its (Emirates NBD) copy in the top band: show the product below it, text on black */
    .ias-hero-overlay a { display: flex; flex-direction: column-reverse; border-radius: 20px; }
    .ias-hero-overlay img { aspect-ratio: 440 / 290; object-position: bottom; }
    .ias-hero-overlay .ias-hero-copy { padding: 26px 16px 18px; }
    .ias-hero-title { font-size: 22px; }
}

/* ---------------------------------------------------------------- "The latest." tiles */
.ias-tile-overlay a { position: relative; display: block; background: #fff; border-radius: 16px; overflow: hidden; }
.ias-tile-overlay.ias-theme-dark a { background: #000; }
.ias-tile-overlay img { display: block; width: 100%; aspect-ratio: 400 / 300; object-fit: cover; object-position: bottom;
    /* the legacy picture is a whole card: push its own border and corners out of the tile */
    transform: scale(1.04); transform-origin: center top; }
.ias-tile-copy { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 8px; min-height: 190px; color: #1D1D1F; }
.ias-theme-dark .ias-tile-copy { color: #fff; }
.ias-tile-title { font-size: 21px; font-weight: 600; }
.ias-tile-tag { font-size: 13px; font-weight: 600; max-width: 75%; }
.ias-tile-price { font-size: 12px; margin-top: 14px; }

/* ---------------------------------------------------------------- the four promise cards (legacy listitem_img1-4) */
.ias-promise { background: #fff; border-radius: 12px; padding: 18px 16px 16px; min-height: 124px; margin-right: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.ias-promise-title { font-size: 15px; font-weight: 600; margin: 12px 0 4px; }
.ias-promise p { font-size: 11px; line-height: 1.35; color: #6E6E73; margin: 0; max-width: 90%; }
.ias-green { color: #0A7A2F; }
.ias-blue { color: #0071E3; }
.ias-purple { color: #A020F0; }

.ias-mrp { font-size: 12px; color: #6E6E73; white-space: nowrap; }

/* ================================================================ alignment (home page only)
 * The theme was written for a home page without <main>; its `main` / `main h2` rules (style-custom.css, demo.css)
 * are for inner pages and must not reach this one. */
@media (max-width: 960px) {
    .home_page main.ias-main { padding: 0 !important; }
}
.home_page main.ias-main .title-category { padding: 0; color: #1D1D1F; }

/* One left edge for the header, hero, section headings, card rails and footer: the container's content edge. */
@media (min-width: 1400px) {
    .home_page .category-heading-section { padding: 0 .75rem !important; }
    .home_page .product-slider .slick-list { padding-left: calc(90px + .75rem); }
}
@media (min-width: 1021px) and (max-width: 1399.98px) {
    .home_page .product-slider .slick-list { padding-left: max(.75rem, calc((100% - 1120px) / 2 + .75rem)); }
}
@media (max-width: 768px) {
    /* the legacy cards were pictures with their own inset; these are drawn, so the rail needs it */
    .home_page .nmbd-mamber-slider .slick-list { padding-left: .75rem !important; }
    /* the theme insets only the category rail (15px) and runs the "latest" tiles edge to edge */
    .home_page .main-p-left { padding-left: 0; }
    .home_page .slider-sm-full .slick-list { padding: 0 .75rem !important; }
}

/* ---------------------------------------------------------------- hero: every slide the same height and corners */
.home_page .slick-banner-slider .slick-track { display: flex; }
.home_page .slick-banner-slider .slick-slide { float: none; flex: 0 0 auto; height: auto; }
.home_page .slick-banner-slider .bannerdiv > a { height: 100%; border-radius: 30px; overflow: hidden; }
.home_page .slick-banner-slider .bannerdiv:not(.ias-hero-overlay) picture { display: block; height: 100%; }
.home_page .slick-banner-slider .bannerdiv:not(.ias-hero-overlay) img { width: 100%; height: 100%; object-fit: cover; }
.home_page .ias-hero-overlay picture { display: block; flex: 0 0 auto; }
.home_page .ias-hero-overlay .ias-hero-copy { flex: 1 1 auto; justify-content: center; gap: 4px; padding: 4px 16px 20px; }
.home_page .ias-hero-buy { margin-top: 8px; }
/* the dots sit under the picture, not over the BUY button (the slider already keeps 30px for them) */
.home_page .slick-banner-slider .slick-dots { left: 0; bottom: -30px !important; }
.home_page .slick-banner-slider.slick-dotted { margin-bottom: 46px; }
/* the theme's active dot is near-white (made for dots over a dark picture) */
.home_page .slick-banner-slider .slick-dots li button:before { color: #1D1D1F; opacity: .25; }
.home_page .slick-banner-slider .slick-dots li.slick-active button:before { color: #1D1D1F; opacity: .85; }

@media (max-width: 685px) {
    .home_page .slick-banner-slider .bannerdiv > a { border-radius: 20px; }
    .home_page .ias-hero-overlay .ias-hero-copy { padding: 22px 16px 16px; }
}
@media (max-width: 600px) {
    /* the theme leaves 88px for the legacy two-line header; this header is 59px. Sides = the header's inset. */
    .home_page #home-banner-mobile.slider-banner-full { padding: 71px .75rem 0 !important; }
}

/* ---------------------------------------------------------------- promise cards: one height, four across the container */
.home_page .ias-promise { margin-right: .75rem; }
@media (min-width: 1400px) {
    .home_page .nmbd-mamber-slider .slick-list { padding-right: 90px; }
}
@media (min-width: 1021px) and (max-width: 1399.98px) {
    .home_page .nmbd-mamber-slider .slick-list { padding-right: max(0px, calc((100% - 1120px) / 2)); }
}
.home_page .nmbd-mamber-slider .slick-track { display: flex; }
.home_page .nmbd-mamber-slider .slick-slide { float: none; flex: 0 0 auto; height: auto; }
.home_page .nmbd-mamber-slider .ias-promise { height: 100%; }

/* ---------------------------------------------------------------- accessories: prices and BUY on one line across cards */
.home_page .accessories-product-slider .product_card_aed { min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
.home_page .accessories-product-slider .product_card_aed br { display: none; }
.home_page .accessories-product-slider .row { flex-wrap: nowrap; }
.home_page .accessories-product-slider .row > .col-8 { flex: 1 1 0; width: auto; min-width: 0; }
.home_page .accessories-product-slider .row > .col-4 { flex: 0 0 auto; width: auto; }
.home_page .accessories-product-slider .accesssories_btn_buy .btn { white-space: nowrap; min-width: 72px; }
