/*
 * Homepage Builder — Featured Product
 *
 * Open editorial collector spotlight.
 *
 * The homepage is the canvas.
 * This widget deliberately avoids an outer card, border,
 * panel, radius or decorative component shell.
 */


/* =========================================================
   ROOT COMPOSITION
   ========================================================= */

body.home:not(.wp-admin) .llhb-featured-product {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .78fr);
    column-gap: clamp(34px, 5vw, 76px);
    width: min(1120px, calc(100% - 40px));
    min-height: 420px;
    margin: clamp(62px, 7vw, 100px) auto;
    align-items: center;
}


/* =========================================================
   PRODUCT STAGE
   ========================================================= */

body.home:not(.wp-admin) .llhb-featured-product__media {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 420px;
    place-items: center;
    padding: clamp(14px, 2vw, 28px);
    overflow: visible;
}


/*
 * Barely-visible collector spotlight.
 * This lights the object rather than creating a panel.
 */

body.home:not(.wp-admin) .llhb-featured-product__media::before {
    position: absolute;
    top: 49%;
    left: 50%;
    width: min(82%, 540px);
    aspect-ratio: 1;
    content: "";
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(247, 201, 72, .11) 0%,
            rgba(112, 72, 170, .045) 40%,
            transparent 71%
        );
    filter: blur(12px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}


/* Grounding shadow beneath transparent / cut-out product photography. */

body.home:not(.wp-admin) .llhb-featured-product__media::after {
    position: absolute;
    bottom: 6%;
    left: 50%;
    width: min(48%, 300px);
    height: 24px;
    content: "";
    border-radius: 50%;
    background: rgba(0, 0, 0, .30);
    filter: blur(18px);
    transform: translateX(-50%);
    pointer-events: none;
}


body.home:not(.wp-admin) .llhb-featured-product__media a {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}


/*
 * Product is intentionally dominant.
 * contain protects cards, boxes, binders and transparent PNGs.
 */

body.home:not(.wp-admin) .llhb-featured-product__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(94%, 620px);
    max-height: 465px;
    object-fit: contain;
    filter: drop-shadow(0 25px 34px rgba(0, 0, 0, .34));
    transform: translateZ(0);
    transition:
        transform .28s ease,
        filter .28s ease;
}


body.home:not(.wp-admin) .llhb-featured-product__media a:hover .llhb-featured-product__image {
    filter: drop-shadow(0 30px 42px rgba(0, 0, 0, .42));
    transform: translateY(-4px);
}


/* =========================================================
   EDITORIAL CONTENT
   ========================================================= */

body.home:not(.wp-admin) .llhb-featured-product__content {
    position: relative;
    display: flex;
    min-width: 0;
    max-width: 430px;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}


/* Small chapter marker — not a decorative frame. */

body.home:not(.wp-admin) .llhb-featured-product__content::before {
    display: block;
    width: 31px;
    height: 2px;
    margin: 0 0 14px;
    content: "";
    background: var(--ll-home-gold);
}


body.home:not(.wp-admin) .llhb-featured-product__eyebrow,
body.home:not(.wp-admin) .llhb-featured-product__label {
    margin: 0 0 12px;
    color: var(--ll-home-green);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

body.home:not(.wp-admin) .llhb-featured-product__title {
    max-width: 17ch;
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 2.35vw, 2.85rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.035;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
}


body.home:not(.wp-admin) .llhb-featured-product__title a {
    color: var(--ll-home-text);
    text-decoration: none;
    transition: color .2s ease;
}


body.home:not(.wp-admin) .llhb-featured-product__title a:hover {
    color: #fff;
}


/* =========================================================
   COMMERCE META
   ========================================================= */

body.home:not(.wp-admin) .llhb-featured-product__price {
    margin: 0 0 7px;
    color: var(--ll-home-gold);
    font-size: clamp(1.22rem, 1.45vw, 1.48rem);
    font-weight: 850;
    letter-spacing: -.015em;
    line-height: 1.1;
}


body.home:not(.wp-admin) .llhb-featured-product__stock {
    width: fit-content;
    margin: 0 0 19px;
    color: var(--ll-home-green);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .15em;
    line-height: 1.2;
    text-transform: uppercase;
}


/* =========================================================
   SUPPORTING COPY
   ========================================================= */

body.home:not(.wp-admin) .llhb-featured-product__description,
body.home:not(.wp-admin) .llhb-featured-product__excerpt {
    max-width: 42ch;
    margin: 0 0 22px;
    color: rgba(244, 241, 233, .70);
    font-size: .9rem;
    line-height: 1.62;
}


/* =========================================================
   EDITORIAL CTA
   ========================================================= */

/*
 * Deliberately high specificity.
 *
 * Homepage/global WooCommerce button rules must not turn this
 * action back into a boxed gold button. Featured Product owns
 * its internal CTA presentation.
 */

body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content a.button,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .button,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content a.wp-element-button,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .wp-element-button,
body.home:not(.wp-admin) .llhb-featured-product a.llhb-featured-product__cta,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__cta {
    display: inline-flex;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    align-self: flex-start;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin: 0;
    padding: 7px 0 6px;
    border: 0;
    border-bottom: 1px solid rgba(247, 201, 72, .60);
    border-radius: 0;
    outline-offset: 5px;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: var(--ll-home-gold);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .13em;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: uppercase;
    transition:
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content a.button:hover,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .button:hover,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content a.wp-element-button:hover,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .wp-element-button:hover,
body.home:not(.wp-admin) .llhb-featured-product a.llhb-featured-product__cta:hover,
body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__cta:hover {
    border-color: var(--ll-home-green);
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: var(--ll-home-green);
    transform: translateX(3px);
}


/* =========================================================
   WIDE / MEDIUM BUILDER SLOT
   ========================================================= */

@container llhb-slot (max-width: 760px) {

    body.home:not(.wp-admin) .llhb-featured-product {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
        column-gap: clamp(18px, 4cqi, 34px);
        width: 100%;
        min-height: 330px;
        margin: 0;
    }

    body.home:not(.wp-admin) .llhb-featured-product__media {
        min-height: 330px;
        padding: 18px 10px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__image {
        max-width: 96%;
        max-height: 315px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__content {
        max-width: none;
        padding: 22px 4px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__title {
        max-width: 17ch;
        margin-bottom: 13px;
        font-size: clamp(1.5rem, 5cqi, 2.15rem);
    }

    body.home:not(.wp-admin) .llhb-featured-product__stock {
        margin-bottom: 14px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__description,
    body.home:not(.wp-admin) .llhb-featured-product__excerpt {
        margin-bottom: 17px;
        font-size: .84rem;
        line-height: 1.52;
    }

}


/* =========================================================
   NARROW BUILDER SLOT
   ========================================================= */

@container llhb-slot (max-width: 500px) {

    body.home:not(.wp-admin) .llhb-featured-product {
        display: flex;
        width: 100%;
        min-height: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    body.home:not(.wp-admin) .llhb-featured-product__media {
        min-height: 245px;
        padding: 10px 10px 18px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__media::before {
        width: 92%;
    }

    body.home:not(.wp-admin) .llhb-featured-product__media::after {
        bottom: 4%;
    }

    body.home:not(.wp-admin) .llhb-featured-product__image {
        max-width: 91%;
        max-height: 235px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__content {
        max-width: none;
        padding: 16px 6px 20px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__content::before {
        width: 25px;
        margin-bottom: 11px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__title {
        max-width: none;
        margin-bottom: 11px;
        font-size: clamp(1.4rem, 8cqi, 1.9rem);
        line-height: 1.05;
    }

    body.home:not(.wp-admin) .llhb-featured-product__price {
        font-size: 1.17rem;
    }

    body.home:not(.wp-admin) .llhb-featured-product__stock {
        margin-bottom: 13px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__description,
    body.home:not(.wp-admin) .llhb-featured-product__excerpt {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 16px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: .82rem;
        line-height: 1.48;
    }

}


/* =========================================================
   MOBILE ROOT
   ========================================================= */

@media (max-width: 700px) {

    body.home:not(.wp-admin) .llhb-featured-product {
        display: flex;
        width: min(100% - 28px, 520px);
        min-height: 0;
        flex-direction: column;
        gap: 0;
        margin: 54px auto;
    }

    body.home:not(.wp-admin) .llhb-featured-product__media {
        min-height: 300px;
        padding: 12px 14px 22px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__image {
        max-width: min(94%, 420px);
        max-height: 295px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__content {
        max-width: 460px;
        padding: 20px 2px 24px;
    }

    body.home:not(.wp-admin) .llhb-featured-product__title {
        max-width: 19ch;
        font-size: clamp(1.65rem, 7vw, 2.25rem);
    }

}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    body.home:not(.wp-admin) .llhb-featured-product__image,
    body.home:not(.wp-admin) .llhb-featured-product__title a,
    body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .button,
    body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .wp-element-button,
    body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__cta {
        transition: none;
    }

    body.home:not(.wp-admin) .llhb-featured-product__media a:hover .llhb-featured-product__image,
    body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .button:hover,
    body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__content .wp-element-button:hover,
    body.home:not(.wp-admin) .llhb-featured-product .llhb-featured-product__cta:hover {
        transform: none;
    }

}
