/* Portfolio-details "Our Products" — card layout v2 (mobile-first, matches design mockup) */
.vendor-storefront-root--portfolio-v2 {
    --ep-v2-orange: #f26522;
    --ep-v2-green: #22c55e;
    --ep-v2-green-dark: #16a34a;
    --ep-v2-wa: #25d366;
    --ep-v2-blue: #2563eb;
    --ep-v2-img: 118px;
    --ep-v2-radius: 14px;
}

.vendor-storefront-root--portfolio-v2 .ep-page-title {
    display: none;
}

.vendor-storefront-root--portfolio-v2 .vendor-storefront-panel {
    padding-bottom: 0.5rem !important;
}

.vendor-storefront-root--portfolio-v2 .vendor-storefront-container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
}

.vendor-storefront-root--portfolio-v2 .ep-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-template-columns: 1fr;
}

/* ── Card shell ── */
.vendor-storefront-root--portfolio-v2 .ep-card.ep-card--v2 {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--ep-v2-radius);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
    padding: 0.85rem;
    overflow: visible;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__grid {
    display: grid;
    grid-template-columns: var(--ep-v2-img) 1fr;
    grid-template-areas:
        "img body"
        "trust body";
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    align-items: start;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-trust-row {
    grid-area: trust;
}

/* ── Image column ── */
.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__img-wrap {
    grid-area: img;
    position: relative;
    width: var(--ep-v2-img);
    min-width: var(--ep-v2-img);
    height: var(--ep-v2-img);
    min-height: var(--ep-v2-img);
    max-width: var(--ep-v2-img);
    max-height: none;
    align-self: start;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 6px;
    overflow: hidden;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.vendor-storefront-root--portfolio-v2 .ep-img-disc-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: var(--ep-v2-green);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.2rem 0.38rem;
    border-radius: 0 0 6px 0;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* ── Body column ── */
.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__body {
    grid-area: body;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__name {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

/* ── Price row ── */
.vendor-storefront-root--portfolio-v2 .ep-prices-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.65rem;
    margin-top: 0.15rem;
}

.vendor-storefront-root--portfolio-v2 .ep-price-mrp,
.vendor-storefront-root--portfolio-v2 .ep-price-offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
}

.vendor-storefront-root--portfolio-v2 .ep-prices-v2 .ep-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.2;
}

.vendor-storefront-root--portfolio-v2 .ep-price-offer .ep-lbl {
    color: var(--ep-v2-orange);
}

.vendor-storefront-root--portfolio-v2 .ep-prices-v2 .ep-val {
    font-size: 0.6rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

.vendor-storefront-root--portfolio-v2 .ep-val--strike {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 500;
}

.vendor-storefront-root--portfolio-v2 .ep-val--offer {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ep-v2-orange);
    letter-spacing: -0.02em;
}

.vendor-storefront-root--portfolio-v2 .ep-save-pill {
    margin-left: auto;
    align-self: center;
    background: #dcfce7;
    color: var(--ep-v2-green-dark);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.25;
}

/* ── Description ── */
.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__desc-block {
    border-top: none;
    padding: 0.2rem 0 0;
    margin: 0;
    width: 100%;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-desc-body {
    font-size: 0.72rem;
    color: #4b5563;
    line-height: 1.45;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-desc-body--collapsed {
    -webkit-line-clamp: 2;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-desc-toggle-js {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ep-v2-blue);
    margin-top: 0.15rem;
    text-decoration: none;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-desc-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-desc-toggle-js[aria-expanded="true"] .ep-desc-chevron {
    transform: rotate(180deg);
}

/* Hide star rating on portfolio v2 */
.vendor-storefront-root--portfolio-v2 .ep-product-rating {
    display: none !important;
}

/* ── Trust row (mobile: under image; desktop: bottom-left of body column) ── */
.vendor-storefront-root--portfolio-v2 .ep-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
    width: 100%;
    max-width: var(--ep-v2-img);
    box-sizing: border-box;
}

.vendor-storefront-root--portfolio-v2 .ep-trust-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.08rem;
    min-width: 0;
}

.vendor-storefront-root--portfolio-v2 .ep-trust-item i {
    font-size: 0.95rem;
    line-height: 1;
}

.vendor-storefront-root--portfolio-v2 .ep-trust-item--shield i { color: #2563eb; }
.vendor-storefront-root--portfolio-v2 .ep-trust-item--bolt i { color: var(--ep-v2-orange); }
.vendor-storefront-root--portfolio-v2 .ep-trust-item--star i { color: #eab308; }

.vendor-storefront-root--portfolio-v2 .ep-trust-item span {
    font-size: 0.5rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.1;
    white-space: nowrap;
}

/* ── Action buttons (bottom of body column) ── */
.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.35rem;
    /*border-top: 1px solid #f3f4f6;*/
    width: 100%;
    min-width: 0;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-btn-wa {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: var(--ep-v2-wa) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    min-height: 32px;
    white-space: nowrap;
    transition: filter 0.15s ease;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-btn-wa:active {
    filter: brightness(0.95);
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-btn-share {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: #fff !important;
    color: var(--ep-v2-blue) !important;
    border: 1.5px solid var(--ep-v2-blue) !important;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    min-height: 32px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-btn-share:active {
    background: #eff6ff !important;
}

/* Hide corner share on image */
.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__img-wrap .ep-share {
    display: none !important;
}

/* Hide legacy ribbon / bestseller corner */
.vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-ribbon,
.vendor-storefront-root--portfolio-v2 .ep-card--v2.ep-card--bestseller::before {
    display: none;
}

/* ── Tablet / desktop ── */
@media (min-width: 768px) {
    .vendor-storefront-root--portfolio-v2 {
        --ep-v2-img: 130px;
    }

    .vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__grid {
        grid-template-areas: "img body";
        grid-template-rows: auto;
        row-gap: 0;
    }

    .vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-trust-row {
        grid-area: body;
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        justify-self: start;
        justify-content: flex-start;
        max-width: none;
        width: auto;
        z-index: 1;
    }

    .vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__body {
        min-height: var(--ep-v2-img);
    }

    .vendor-storefront-root--portfolio-v2 .ep-card--v2 .ep-card__actions {
        position: relative;
        z-index: 2;
    }

    .vendor-storefront-root--portfolio-v2 .ep-grid {
        max-width: 640px;
        margin: 0 auto;
    }

    .vendor-storefront-root--portfolio-v2 .ep-page-title {
        display: block;
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) {
    .vendor-storefront-root--portfolio-v2 .ep-grid {
        max-width: 720px;
    }
}

@media (max-width: 360px) {
    .vendor-storefront-root--portfolio-v2 {
        --ep-v2-img: 100px;
    }

    .vendor-storefront-root--portfolio-v2 .ep-save-pill {
        font-size: 0.58rem;
        padding: 0.22rem 0.4rem;
    }
}
