/* Stacy Home Products shortcode. Product-card styling itself is inherited from shop.css. */
.stacy-home-products,
.stacy-home-products *{
    box-sizing:border-box;
}

.stacy-home-products.stshop{
    width:100%;
    max-width:100%;
    left:auto;
    transform:none;
    overflow:hidden;
    margin:var(--stacy-home-desktop-margin-top,0) var(--stacy-home-desktop-margin-right,0) var(--stacy-home-desktop-margin-bottom,0) var(--stacy-home-desktop-margin-left,0)!important;
    padding:var(--stacy-home-desktop-padding-top,96px) var(--stacy-home-desktop-padding-right,0) var(--stacy-home-desktop-padding-bottom,104px) var(--stacy-home-desktop-padding-left,0)!important;
    background:#f9f6f2;
}

.stacy-home-products__container{
    width:min(calc(100% - 48px),1440px);
    margin-inline:auto;
}

.stacy-home-products__heading{
    max-width:980px;
    margin-inline:auto;
    text-align:center;
}

.stacy-home-products__eyebrow{
    margin:0 0 14px;
    color:var(--brown);
    font-size:11px;
    line-height:1.4;
    font-weight:700;
    letter-spacing:.18em;
    text-transform:uppercase;
}

.stacy-home-products__heading h2{
    margin:0;
    color:var(--ink);
    font-family:"Castoro",Georgia,serif;
    font-size:clamp(40px,3.8vw,58px);
    line-height:1.08;
    font-weight:400;
    letter-spacing:-.035em;
}

.stacy-home-products__heading h2 em{
    color:var(--brown);
    font-weight:400;
    font-style:italic;
}

.stacy-home-products__description{
    max-width:790px;
    margin:20px auto 0;
    color:#6b5c53;
    font-size:16px;
    line-height:1.7;
}

.stacy-home-products__grid{
    margin-top:52px;
    grid-template-columns:repeat(var(--stacy-home-columns,5),minmax(0,1fr));
}

/* The shop template includes list-only elements inside the shared card markup. */
.stacy-home-products .stshop-product-desc,
.stacy-home-products .stshop-list-heart{
    display:none!important;
}

.stacy-home-products .stshop-card-content form{
    width:100%;
    margin:0;
}

.stacy-home-products .stshop-heart{
    border-radius:0;
}

.stacy-home-products__bottom{
    margin-top:48px;
    display:flex;
    justify-content:center;
}

.stacy-home-products__cta{
    min-height:50px;
    padding:0 25px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:13px;
    border:1px solid var(--brown);
    background:var(--brown);
    color:#fff!important;
    text-decoration:none!important;
    font-size:12px;
    line-height:1;
    font-weight:700;
    letter-spacing:.07em;
    text-transform:uppercase;
    transition:background .22s ease,color .22s ease,transform .22s ease;
}

.stacy-home-products__cta svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .2s ease;
}

.stacy-home-products__bottom--mobile{
    display:none!important;
}

.stacy-home-products__cta--mobile{
    display:none!important;
}

.stacy-home-products__cta:hover,
.stacy-home-products__cta:focus{
    background:var(--brown-dark);
    color:#fff!important;
    transform:translateY(-2px);
}

.stacy-home-products__cta:hover svg{
    transform:translateX(3px);
}

/* Requested pressed/active button colour for the Home Products shortcode only. */
.stacy-home-products .stshop-add-cart:active,
.stacy-home-products__cta:active{
    background:#806854!important;
    border-color:#806854!important;
    color:#fff!important;
}

@media(max-width:1100px){
    .stacy-home-products__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:800px){
    .stacy-home-products.stshop{margin:var(--stacy-home-tablet-margin-top,0) var(--stacy-home-tablet-margin-right,0) var(--stacy-home-tablet-margin-bottom,0) var(--stacy-home-tablet-margin-left,0)!important;padding:var(--stacy-home-tablet-padding-top,76px) var(--stacy-home-tablet-padding-right,0) var(--stacy-home-tablet-padding-bottom,84px) var(--stacy-home-tablet-padding-left,0)!important}
    .stacy-home-products__container{width:calc(100% - 36px)}
    .stacy-home-products__grid{margin-top:42px}
    .stacy-home-products__description{font-size:15px}
    .stacy-home-products__bottom{margin-top:40px}
}

/* Mobile layout is selectable from Stacy Cookies > Pages > Home Products.
   v2.10.3: Legacy slider output now follows the category-page 2-column grid. */
@media(max-width:700px){
    .stacy-home-products__grid,
    .stacy-home-products__grid--mobile-slider,
    .stacy-home-products__grid--mobile-two-columns{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        grid-auto-flow:row!important;
        gap:24px 14px;
        overflow:visible!important;
        padding:0!important;
        scroll-snap-type:none!important;
        scrollbar-width:auto!important;
        touch-action:auto!important;
    }

    .stacy-home-products__grid--mobile-slider > .stshop-card,
    .stacy-home-products__grid--mobile-two-columns > .stshop-card{
        width:100%!important;
        scroll-snap-align:none!important;
    }

    .stacy-home-products__grid--mobile-one-column{
        display:grid!important;
        grid-template-columns:1fr!important;
        grid-auto-flow:row!important;
        overflow:visible!important;
        gap:30px;
    }

    /* Mobile keeps the desktop query intact but shows only the first four cards. */
    .stacy-home-products__grid > .stshop-card:nth-child(n+5){
        display:none!important;
    }

    .stacy-home-products__bottom--desktop{
        display:none!important;
    }

    /* Exact mobile-note treatment from Shop by Category → “Swipe to explore”. */
    .stacy-home-products__bottom--mobile{
        margin:var(--stacy-home-mobile-cta-top-space,16px) var(--stacy-home-mobile-cta-side-space,16px) var(--stacy-home-mobile-cta-bottom-space,40px)!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
    }

    .stacy-home-products__cta--desktop{
        display:none!important;
    }

    /* View All owns the mobile space below it; prevent section padding from double-counting. */
    .stacy-home-products.stshop.stacy-home-products--has-mobile-cta{
        padding-bottom:0!important;
    }

    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile{
        width:auto!important;
        min-width:0!important;
        min-height:0!important;
        height:auto!important;
        margin:0!important;
        padding:0!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        gap:7px!important;
        border:0!important;
        border-radius:0!important;
        background:transparent!important;
        background-color:transparent!important;
        background-image:none!important;
        box-shadow:none!important;
        color:var(--stacy-home-mobile-note-color,#806854)!important;
        font-family:var(--stacy-home-mobile-note-font-family,"Hanken Grotesk",Arial,sans-serif)!important;
        font-size:var(--stacy-home-mobile-note-font-size,12px)!important;
        font-weight:var(--stacy-home-mobile-note-font-weight,700)!important;
        line-height:normal!important;
        letter-spacing:.1em!important;
        text-transform:uppercase!important;
        text-decoration:none!important;
        transform:none!important;
        -webkit-appearance:none!important;
        appearance:none!important;
    }

    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile svg{
        width:17px!important;
        height:17px!important;
        flex:0 0 17px!important;
        display:block!important;
        fill:none!important;
        stroke:currentColor!important;
        stroke-width:1.7!important;
        stroke-linecap:round!important;
        stroke-linejoin:round!important;
        transform:none!important;
        transition:none!important;
    }

    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile::before,
    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile::after{
        content:none!important;
        display:none!important;
        background:none!important;
    }

    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile:hover,
    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile:focus,
    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile:active,
    .stacy-home-products .stacy-home-products__bottom--mobile > a.stacy-home-products__cta--mobile:visited{
        border:0!important;
        background:transparent!important;
        background-color:transparent!important;
        background-image:none!important;
        box-shadow:none!important;
        color:var(--stacy-home-mobile-note-color,#806854)!important;
        transform:none!important;
        text-decoration:none!important;
    }
}

@media(max-width:520px){
    .stacy-home-products.stshop{margin:var(--stacy-home-mobile-margin-top,0) var(--stacy-home-mobile-margin-right,0) var(--stacy-home-mobile-margin-bottom,0) var(--stacy-home-mobile-margin-left,0)!important;padding:var(--stacy-home-mobile-padding-top,60px) var(--stacy-home-mobile-padding-right,0) var(--stacy-home-mobile-padding-bottom,40px) var(--stacy-home-mobile-padding-left,0)!important}
    .stacy-home-products__container{width:calc(100% - 28px)}
    .stacy-home-products__heading h2{font-size:clamp(34px,10vw,44px)}
    .stacy-home-products__grid{margin-top:34px}
    .stacy-home-products__bottom--desktop{margin-top:34px}
    .stacy-home-products__cta{min-height:46px;padding:0 20px;font-size:11px}
    .stacy-home-products__cta--mobile{min-height:0!important;padding:0!important}
}
