/*
 * Sharp_LandingPage - landing page additions on top of the Sharp/Custom category page.
 * Loaded only on landing pages (layout handle sharp_landingpage_view). Plain CSS, no LESS build.
 *
 * Grid facts measured on the live category page: 4 columns (21px gap) on desktop,
 * 2 columns on tablet and phone, 1 column in list mode (the mobile "1 across" toggle).
 */

/* ---------- Hero: full-bleed, no text ---------- */
.sharp-landing-page .sharp-lp-top {
    width: 100%;
    margin: 0;
    padding: 0;
}
.sharp-landing-page .sharp-lp-hero {
    width: 100%;
    margin: 0;
    line-height: 0;
    background: #f2f2f2;
}
.sharp-landing-page .sharp-lp-hero picture {
    display: block;
    width: 100%;
}
.sharp-landing-page .sharp-lp-hero__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ---------- Featured row ---------- */
/* Grid mode: each featured card takes 2 columns (half the row on desktop, the full row on 2-column layouts). */
.sharp-landing-page .products-grid .product-items > .product-item.sharp-lp-featured {
    grid-column: span 2;
}
/* List mode (1 across): the full row. */
.sharp-landing-page .products-list .product-items > .product-item.sharp-lp-featured {
    grid-column: 1 / -1;
    width: 100%;
}

/* Landscape 900:660 image box. Same container/wrapper markup as the normal cards,
   so the theme's hover swap (.main-image / .hover-image) applies unchanged. */
.sharp-landing-page .product-items .sharp-lp-featured .sharp-lp-featured__media {
    display: block;
    width: 100% !important;
}
.sharp-landing-page .product-items .sharp-lp-featured .sharp-lp-featured__media .product-image-wrapper {
    display: block;
    position: relative;
    height: 0;
    overflow: hidden;
    padding-bottom: 73.3333% !important; /* 660 / 900 */
}
.sharp-landing-page .product-items .sharp-lp-featured .sharp-lp-featured__media .product-image-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0 !important;
    object-fit: cover;
    object-position: center top;
}

/* List mode lays cards out as tables; keep the featured image above the details. */
.sharp-landing-page .products-list .sharp-lp-featured .product-item-info {
    display: block;
    width: 100%;
}
.sharp-landing-page .products-list .sharp-lp-featured .product-item-photo {
    display: block;
    width: 100%;
    padding: 0;
}
.sharp-landing-page .products-list .sharp-lp-featured .product-item-details {
    display: block;
    padding: 0;
    text-align: center;
}
