/* Shared with our-products / home hero: storefront product grid & cards */

#homeProductsSpotlight {
    background: var(--ep-bg);
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    font-family: 'Inter', 'Poppins', 'Open Sans', sans-serif;
}

:root {
    --ep-orange: #ff6600;
    --ep-orange-dark: #e65c00;
    --ep-wa: #25d366;
    --ep-wa-dark: #1ebe5b;
    --ep-seller-blue: #1a3dbe;
    --ep-seller-strip-bg: #f0f4ff;
    --ep-pill-bg: #e8f8ef;
    --ep-pill-text: #15803d;
    --ep-bg: #f8f6f3;
    --ep-card-radius: 14px;
    --ep-img-thumb: 120px;
}

.ep-page-kicker {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    color: #555;
}

.ep-page-kicker .ep-title-hi {
    color: var(--ep-orange);
}

.ep-page-kicker .ep-title-en {
    color: #333;
    font-weight: 600;
}

.ep-top-deals-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
}

@media (min-width: 576px) {
    .ep-top-deals-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem 1rem;
    }
}

.ep-top-deals-title {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    color: #111;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.25;
}

.ep-top-deals-pill {
    display: inline-block;
    font-size: clamp(0.68rem, 2vw, 0.78rem);
    font-weight: 600;
    color: var(--ep-pill-text);
    background: var(--ep-pill-bg);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    line-height: 1.35;
    max-width: 100%;
}

.ep-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .ep-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .ep-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.15rem;
    }

    .ep-price-line {
        padding: 0.42rem 0.6rem;
        border-radius: 10px;
    }

    .ep-card__head .ep-card__prices .ep-price-label {
        font-size: 0.72rem;
    }

    .ep-card__head .ep-card__prices .ep-price-num {
        font-size: 0.95rem;
    }

    .ep-card__head .ep-card__prices .ep-offer-amt {
        font-size: 1.12rem;
    }
}

.ep-card {
    position: relative;
    background: #fff;
    border-radius: var(--ep-card-radius);
    border: 1px solid #e8eaef;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    padding: 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ep-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .ep-card:hover {
        transform: none;
    }
}

.ep-card__grid {
    display: grid;
    grid-template-columns: var(--ep-img-thumb) 1fr;
    grid-template-areas:
        "img head"
        "seller seller"
        "act act";
    column-gap: 0.75rem;
    row-gap: 0.6rem;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    align-items: start;
}

.ep-card__img-wrap {
    grid-area: img;
    position: relative;
    flex: 0 0 var(--ep-img-thumb);
    width: var(--ep-img-thumb);
    height: var(--ep-img-thumb);
    min-width: var(--ep-img-thumb);
    min-height: var(--ep-img-thumb);
    max-width: var(--ep-img-thumb);
    max-height: var(--ep-img-thumb);
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 10px;
    background: linear-gradient(180deg, #f3f4f6 0%, #fff 100%);
    padding: 6px;
    overflow: hidden;
}

.ep-card__img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.ep-card__head {
    grid-area: head;
    flex: 1 1 0;
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
    box-sizing: border-box;
}

.ep-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.32;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.ep-card__head .ep-card__prices {
    margin-top: 0.4rem;
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
    flex-shrink: 0;
}

.ep-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    width: 100%;
    padding: 0.38rem 0.55rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e8eef4;
    border-radius: 10px;
    box-sizing: border-box;
    line-height: 1.25;
}

.ep-price-sep {
    color: #cbd5e1;
    font-weight: 300;
    font-size: 0.7rem;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
    padding: 0 0.1rem;
}

.ep-card__head .ep-card__prices .ep-price-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-right: 0.2rem;
}

.ep-card__head .ep-card__prices .ep-mrp {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.1rem 0.2rem;
    color: #111;
    font-weight: 400;
}

.ep-card__head .ep-card__prices .ep-mrp--strike .ep-price-num {
    text-decoration: line-through;
    text-decoration-color: #94a3b8;
    color: #94a3b8;
    font-weight: 500;
}

.ep-card__head .ep-card__prices .ep-price-num {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
}

.ep-card__head .ep-card__prices .ep-offer-row {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.1rem 0.2rem;
    color: #111;
    font-weight: 400;
}

.ep-card__head .ep-card__prices .ep-offer-row .ep-price-label {
    color: var(--ep-orange);
}

.ep-card__head .ep-card__prices .ep-offer-amt {
    font-weight: 800;
    color: var(--ep-orange);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.ep-card__head .ep-card__prices .ep-disc-hint {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.72rem;
    width: 100%;
}

.ep-card__desc-block {
    margin: 0.35rem 0 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    min-width: 0;
    text-align: left;
    box-sizing: border-box;
}

.ep-card__seller {
    grid-area: seller;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    background: var(--ep-seller-strip-bg);
    border-radius: 10px;
    box-sizing: border-box;
    margin-top: 0.15rem;
}

.ep-card__seller .ep-card__seller-ico {
    flex-shrink: 0;
    color: var(--ep-seller-blue);
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 0.05rem;
}

.ep-card__seller-text {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    container-type: inline-size;
    container-name: ep-seller-text;
}

/* One line each; font scales with seller-text width (container query units) */
.ep-card__seller-by {
    font-weight: 600;
    color: var(--ep-seller-blue);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.78rem;
}

.ep-card__seller-by .ep-seller-prefix {
    font-weight: 600;
}

.ep-card__seller-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.22rem;
    margin-top: 0.15rem;
    min-width: 0;
    max-width: 100%;
}

.ep-card__seller-meta-row .ep-card__seller-meta {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
}

.ep-card__seller-meta-row .ep-card__seller-pin {
    margin-top: 0;
}

.ep-card__seller-meta {
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.72rem;
}

.ep-card__seller-pin {
    flex-shrink: 0;
    color: #22c55e;
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 0.1rem;
}

@supports (font-size: 1cqi) {
    .ep-card__seller-by {
        font-size: clamp(0.56rem, 0.35rem + 2.8cqi, 0.78rem);
    }

    .ep-card__seller-meta {
        font-size: clamp(0.52rem, 0.32rem + 2.4cqi, 0.72rem);
    }
}

.ep-card__desc,
.ep-desc-body {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0;
    text-align: left;
    word-break: break-word;
}

.ep-desc-body.ep-desc-body--collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ep-desc-body.ep-desc-body--expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.ep-desc-toggle,
.ep-desc-toggle-js {
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ep-orange);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ep-desc-toggle:hover,
.ep-desc-toggle-js:hover {
    color: var(--ep-orange-dark);
}

.ep-card__actions {
    grid-area: act;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.ep-btn-wa {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--ep-wa);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    transition: filter 0.15s ease;
}

.ep-btn-wa:hover {
    filter: brightness(0.95);
    color: #fff !important;
}

.ep-btn-wa svg {
    flex-shrink: 0;
}

.ep-btn-offer {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--ep-orange);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    border: none;
    transition: filter 0.15s ease;
}

.ep-btn-offer:hover {
    filter: brightness(0.95);
    color: #fff;
}

.ep-card__img-wrap .ep-ph {
    font-size: calc(var(--ep-img-thumb) * 0.3);
    color: #d1d5db;
    line-height: 1;
}

.ep-loader-wrap {
    text-align: center;
    padding: 2rem;
}

.ep-loader-wrap img {
    max-width: 200px;
}

@media (max-width: 991.98px) {
    #homeProductsSpotlight {
        padding-bottom: 2rem;
    }

    .ep-card {
        border-radius: 12px;
        box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --ep-img-thumb: 112px;
    }

    .ep-grid {
        gap: 0.85rem;
    }

    .ep-card {
        padding: 0.9rem 0.85rem 1rem;
    }

    .ep-card__name {
        font-size: 0.92rem;
    }

    .ep-card__actions {
        gap: 0.45rem;
    }

    .ep-btn-wa,
    .ep-btn-offer {
        font-size: 0.78rem;
        padding: 0.5rem 0.45rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --ep-img-thumb: 100px;
    }

    #homeProductsSpotlight .container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .ep-grid {
        gap: 0.75rem;
    }

    .ep-card {
        padding: 0.65rem 0.6rem 0.75rem;
        border-radius: 11px;
    }

    .ep-card__grid {
        column-gap: 0.5rem;
        row-gap: 0.4rem;
    }

    .ep-card__desc-block {
        padding-top: 0.2rem;
    }

    .ep-card__img-wrap {
        border-radius: 8px;
        padding: 5px;
    }

    .ep-card__name {
        font-size: clamp(0.78rem, 2.9vw, 0.9rem);
        line-height: 1.28;
    }

    .ep-card__head .ep-card__prices {
        margin-top: 0.28rem;
    }

    .ep-price-line {
        padding: 0.3rem 0.42rem;
        border-radius: 8px;
        gap: 0.28rem 0.4rem;
    }

    .ep-card__head .ep-card__prices .ep-price-label {
        font-size: 0.56rem;
        letter-spacing: 0.05em;
    }

    .ep-card__head .ep-card__prices .ep-price-num {
        font-size: 0.74rem;
    }

    .ep-card__head .ep-card__prices .ep-offer-amt {
        font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    }

    .ep-card__head .ep-card__prices .ep-disc-hint {
        font-size: 0.62rem !important;
        margin-top: 0.15rem;
    }

    .ep-card__desc,
    .ep-desc-body {
        font-size: 0.72rem;
        line-height: 1.42;
        color: #64748b;
    }

    .ep-desc-toggle,
    .ep-desc-toggle-js {
        font-size: 0.68rem;
        margin-top: 0.28rem;
    }

    .ep-card__actions {
        flex-direction: row;
        gap: 0.5rem;
        padding-top: 0.4rem;
    }

    .ep-btn-wa,
    .ep-btn-offer {
        flex: 1;
        min-width: 0;
        min-height: 42px;
        font-size: 0.8rem;
        padding: 0.5rem 0.55rem;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .ep-btn-wa svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 380px) {
    :root {
        --ep-img-thumb: 88px;
    }

    .ep-grid {
        gap: 0.6rem;
    }

    .ep-card {
        padding: 0.55rem 0.45rem 0.65rem;
    }

    .ep-card__name {
        font-size: 0.74rem;
    }

    .ep-btn-wa,
    .ep-btn-offer {
        font-size: 0.72rem;
        min-height: 40px;
    }
}

.ep-home-products-viewall {
    display: flex;
    align-items: center;
    gap: 0.85rem 1rem;
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.1rem;
    background: #0c0e22;
    border-radius: 1.25rem;
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.ep-home-products-viewall:hover {
    color: #fff;
    opacity: 0.94;
    text-decoration: none !important;
}

.ep-home-products-viewall:focus-visible {
    outline: 2px solid var(--ep-orange);
    outline-offset: 3px;
}

.ep-home-products-viewall__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.ep-home-products-viewall__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    text-align: left;
}

.ep-home-products-viewall__title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #fff;
}

.ep-home-products-viewall__sub {
    font-weight: 400;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.ep-home-products-viewall__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ep-orange);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .ep-home-products-viewall {
        padding: 0.85rem 0.9rem;
        gap: 0.65rem 0.75rem;
    }

    .ep-home-products-viewall__title {
        font-size: 0.98rem;
    }

    .ep-home-products-viewall__sub {
        font-size: 0.75rem;
    }

    .ep-home-products-viewall__icon svg {
        width: 42px;
        height: 42px;
    }

    .ep-home-products-viewall__arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Home index (#homeProductsSpotlight) — mobile-only (pixel-matched to mock)    */
/* Header: title + pill | 2-col grid | image 1:2 (w:h) | rounded CTAs         */
/* -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    #homeProductsSpotlight {
        --ep-home-img-col-min: 56px;
        --ep-home-img-col-pct: 34%;
        --ep-home-top-gap: 0.5rem;
        --ep-home-offer-orange: #ff6f00;
        --ep-home-wa-green: #25d366;
    }

    /* Header: “Top Deals” left, green pill right (same row as reference) */
    #homeProductsSpotlight .ep-top-deals-bar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    #homeProductsSpotlight .ep-top-deals-title {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        font-size: clamp(0.88rem, 3.6vw, 1.05rem);
        font-weight: 800;
        color: #111;
        line-height: 1.2;
    }

    #homeProductsSpotlight .ep-top-deals-pill {
        flex: 0 1 46%;
        max-width: 50%;
        min-width: 0;
        font-size: clamp(0.52rem, 2.4vw, 0.68rem);
        font-weight: 600;
        padding: 0.35rem 0.55rem;
        line-height: 1.25;
        text-align: center;
        border-radius: 999px;
    }

    #homeProductsSpotlight .ep-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #homeProductsSpotlight .ep-grid > .ep-card {
        min-width: 0;
        max-width: 100%;
    }

    #homeProductsSpotlight .ep-card {
        padding: 0.75rem;
        border-radius: 12px;
        border: 1px solid #eeeeee;
        overflow: hidden;
        background: #fff;
    }

    #homeProductsSpotlight .ep-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    }

    /* Row 1: image 1:2 (width : height) — portrait frame | text */
    #homeProductsSpotlight .ep-card__grid {
        display: grid;
        grid-template-columns: minmax(var(--ep-home-img-col-min), var(--ep-home-img-col-pct)) minmax(0, 1fr);
        grid-template-areas:
            "img head"
            "seller seller"
            "act act";
        column-gap: var(--ep-home-top-gap);
        row-gap: 0.5rem;
        align-items: start;
        width: 100%;
        min-width: 0;
    }

    #homeProductsSpotlight .ep-card__img-wrap {
        grid-area: img;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 2;
        min-width: 0;
        max-width: 100%;
        min-height: 0;
        padding: 4px;
        border-radius: 10px;
        align-self: start;
        background: #fff;
        border: 1px solid #f0f0f0;
        box-shadow: none;
    }

    #homeProductsSpotlight .ep-card__img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    #homeProductsSpotlight .ep-card__img-wrap .ep-ph {
        font-size: clamp(1rem, 5vw, 1.35rem);
    }

    #homeProductsSpotlight .ep-card__head {
        grid-area: head;
        align-self: start;
        text-align: left;
        align-items: stretch;
        min-width: 0;
    }

    #homeProductsSpotlight .ep-card__name {
        font-size: 0.74rem;
        font-weight: 700;
        line-height: 1.25;
        color: #111;
        text-align: left;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices {
        margin-top: 0.22rem;
        text-align: left;
        width: 100%;
    }

    /* MRP line, then Offer line (hide inline dot separator) */
    #homeProductsSpotlight .ep-price-line {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.12rem;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
    }

    #homeProductsSpotlight .ep-price-line .ep-price-sep {
        display: none;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-mrp {
        line-height: 1.2;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-price-label {
        font-size: 0.56rem;
        letter-spacing: 0.04em;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-price-num {
        font-size: 0.62rem;
        color: #9ca3af;
        font-weight: 500;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-mrp--strike .ep-price-num {
        color: #b4bcc6;
    }

    /* Full “Offer ₹…” line: bold orange (reference) */
    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-offer-row {
        line-height: 1.2;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-offer-row .ep-price-label {
        color: var(--ep-home-offer-orange);
        font-weight: 800;
        font-size: 0.72rem;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-offer-amt {
        font-size: 0.8rem;
        font-weight: 800;
        color: #000!important;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-disc-hint {
        width: 100%;
        margin-top: 0.1rem;
        font-size: 0.56rem !important;
        text-align: left;
        color: #6b7280;
    }

    #homeProductsSpotlight .ep-card__desc-block {
        text-align: left;
        margin-top: 0.2rem;
    }

    #homeProductsSpotlight .ep-card__desc,
    #homeProductsSpotlight .ep-desc-body {
        text-align: left;
        font-size: 0.62rem;
        line-height: 1.36;
        color: #4b5563;
    }

    #homeProductsSpotlight .ep-desc-body.ep-desc-body--collapsed {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        overflow: hidden;
    }

    #homeProductsSpotlight .ep-desc-toggle,
    #homeProductsSpotlight .ep-desc-toggle-js {
        font-size: 0.56rem;
        margin-top: 0.12rem;
        display: inline-block;
    }

    /* Seller strip — #F0F5FF, “By …” in brand blue */
    #homeProductsSpotlight .ep-card__seller {
        grid-area: seller;
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
        width: 100%;
        padding: 0.5rem 0.5rem;
        background: #f0f5ff;
        border-radius: 10px;
        box-sizing: border-box;
        margin-top: 0;
    }

    #homeProductsSpotlight .ep-card__seller .ep-card__seller-ico {
        flex-shrink: 0;
        font-size: 0.95rem;
        color: var(--ep-seller-blue);
        margin-top: 0.04rem;
    }

    #homeProductsSpotlight .ep-card__seller-by {
        line-height: 1.3;
    }

    #homeProductsSpotlight .ep-card__seller-by .ep-seller-prefix {
        color: var(--ep-seller-blue);
        font-weight: 600;
    }

    #homeProductsSpotlight .ep-card__seller-by .text-muted {
        color: rgba(26, 61, 190, 0.82) !important;
        font-weight: 500 !important;
    }

    #homeProductsSpotlight .ep-card__seller-meta-row {
        margin-top: 0.12rem;
    }

    #homeProductsSpotlight .ep-card__seller-meta {
        font-weight: 600;
        color: #15803d;
        line-height: 1.2;
    }

    #homeProductsSpotlight .ep-card__seller-meta-row .ep-card__seller-pin {
        font-size: 0.65rem;
        color: #16a34a;
        line-height: 1;
    }

    @supports (font-size: 1cqi) {
        #homeProductsSpotlight .ep-card__seller-meta-row .ep-card__seller-pin {
            font-size: clamp(0.52rem, 0.3rem + 2cqi, 0.65rem);
        }
    }

    /* Rounded rectangular buttons (reference), equal width */
    #homeProductsSpotlight .ep-card__actions {
        grid-area: act;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0.4rem;
        width: 100%;
        padding-top: 0.15rem;
        margin: 0;
    }

    #homeProductsSpotlight .ep-btn-wa {
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px;
        padding: 0.48rem 0.28rem;
        border-radius: 8px;
        font-size: 0.62rem;
        font-weight: 600;
        -webkit-tap-highlight-color: transparent;
        background: var(--ep-home-wa-green) !important;
        color: #fff !important;
        border: none;
        box-shadow: none;
    }

    #homeProductsSpotlight .ep-btn-wa:hover {
        filter: brightness(0.96);
        color: #fff !important;
    }

    #homeProductsSpotlight .ep-btn-offer {
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px;
        padding: 0.48rem 0.28rem;
        border-radius: 8px;
        font-size: 0.62rem;
        font-weight: 600;
        -webkit-tap-highlight-color: transparent;
        background: var(--ep-home-offer-orange) !important;
        color: #fff !important;
        border: none;
        box-shadow: none;
    }

    #homeProductsSpotlight .ep-btn-offer:hover {
        filter: brightness(0.96);
        color: #fff !important;
    }

    #homeProductsSpotlight .ep-btn-wa svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
}

@media (max-width: 380px) {
    #homeProductsSpotlight {
        --ep-home-img-col-min: 56px;
        --ep-home-img-col-pct: 36%;
        --ep-home-top-gap: 0.4rem;
    }

    #homeProductsSpotlight .ep-top-deals-pill {
        flex-basis: 48%;
        max-width: 52%;
        font-size: 0.5rem;
        padding: 0.3rem 0.42rem;
    }

    #homeProductsSpotlight .ep-grid {
        gap: 0.5rem;
    }

    #homeProductsSpotlight .ep-card {
        padding: 0.65rem 0.55rem 0.7rem;
    }

    #homeProductsSpotlight .ep-card__name {
        font-size: 0.68rem;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-offer-row .ep-price-label {
        font-size: 0.66rem;
    }

    #homeProductsSpotlight .ep-card__head .ep-card__prices .ep-offer-amt {
        font-size: 0.74rem;
    }

    #homeProductsSpotlight .ep-btn-wa,
    #homeProductsSpotlight .ep-btn-offer {
        font-size: 0.56rem;
        min-height: 40px;
        padding: 0.4rem 0.2rem;
        border-radius: 8px;
    }
}

/* -------------------------------------------------------------------------- */
/* Product image fullscreen preview (home + our-products)                     */
/* -------------------------------------------------------------------------- */
.ep-storefront-products-section .ep-card__img-wrap img,
#homeProductsSpotlight .ep-card__img-wrap img,
#ourProductsSpotlight .ep-card__img-wrap img {
    cursor: zoom-in;
}

#epProductImageLightbox.ep-pimg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10850;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#epProductImageLightbox.ep-pimg-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#epProductImageLightbox .ep-pimg-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 14, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#epProductImageLightbox .ep-pimg-lightbox__close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

#epProductImageLightbox .ep-pimg-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

#epProductImageLightbox .ep-pimg-lightbox__close:active {
    transform: scale(0.94);
}

#epProductImageLightbox .ep-pimg-lightbox__stage {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: min(92vh, 1200px);
    transform: scale(0.88);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
    will-change: transform, opacity;
}

#epProductImageLightbox.ep-pimg-lightbox.is-open .ep-pimg-lightbox__stage {
    transform: scale(1);
    opacity: 1;
}

#epProductImageLightbox .ep-pimg-lightbox__img {
    display: block;
    max-width: min(96vw, 1400px);
    max-height: min(92vh, 1200px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    #epProductImageLightbox.ep-pimg-lightbox,
    #epProductImageLightbox .ep-pimg-lightbox__stage {
        transition-duration: 0.01ms !important;
    }

    #epProductImageLightbox .ep-pimg-lightbox__stage {
        transform: scale(1);
        opacity: 1;
    }

    #epProductImageLightbox.ep-pimg-lightbox:not(.is-open) .ep-pimg-lightbox__stage {
        transform: scale(0.96);
        opacity: 0;
    }
}

/* -------------------------------------------------------------------------- */
/* Product detail modal (click .ep-card on home + our-products)               */
/* -------------------------------------------------------------------------- */
#indexProductGrid article.ep-card,
#productGrid article.ep-card {
    cursor: pointer;
}

#indexProductGrid .ep-card__img-wrap,
#productGrid .ep-card__img-wrap {
    cursor: zoom-in;
}

.ep-product-detail-modal .modal-body {
    font-family: 'Inter', 'Poppins', 'Open Sans', sans-serif;
}

.ep-product-detail-modal .ep-pdm-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 576px) {
    .ep-product-detail-modal .ep-pdm-grid {
        grid-template-columns: minmax(120px, 220px) 1fr;
    }
}

.ep-product-detail-modal .ep-pdm-img {
    border-radius: var(--ep-card-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}

.ep-product-detail-modal .ep-pdm-img img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.ep-product-detail-modal .ep-pdm-desc {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    white-space: pre-wrap;
    word-break: break-word;
}

.ep-product-detail-modal .ep-pdm-seller {
    margin-top: 1rem;
}

.ep-product-detail-modal .ep-pdm-actions {
    margin-top: 1rem;
}

.ep-product-detail-modal .ep-pdm-head .ep-card__prices {
    margin-bottom: 0;
}

.ep-product-detail-modal .ep-pdm-extra {
    margin-top: 0.35rem;
}
