/*
 * MediRoyal Product Card — price, button, animations, grid/list layouts.
 * Continuation of mr-product-card.css
 */

/* ── SOCIAL PROOF ── */
.log-prod-proof {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212, 175, 55, .08);
    border: 1px solid rgba(212, 175, 55, .2);
    padding: 4px 10px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sage-700);
    border-radius: var(--r-pill);
}

.log-proof-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage-500);
    flex-shrink: 0;
    animation: mr-pulse-dot 1.6s ease-in-out infinite;
}

.log-proof-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--sage-700);
}

.log-proof-text strong {
    color: var(--ink-900);
}

/* ── STOCK BAR ── */
.log-stock-row {
    margin-bottom: 10px;
}

.log-stock-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 5px;
}

.log-stock-label span {
    font-weight: 600;
    color: var(--gray-600);
}

.log-stock-label strong {
    color: var(--sage-600);
    font-weight: 700;
}

.log-stock-bar {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.log-stock-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--sage-500);
    transition: width .4s;
}

/* ── PRICE ROW ── */
.log-prod-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.log-prod-price {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    color: var(--plum-700);
}

.log-prod-price-old {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 600;
}

.log-prod-save {
    font-size: 10px;
    font-weight: 800;
    background: var(--blush-100);
    color: var(--plum-700);
    border-radius: 6px;
    padding: 2px 8px;
}

/* ── BUTTON ── */
.log-prod-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    background: var(--ink-900);
    color: var(--paper);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: center;
    transition: all .3s var(--ease);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.log-prod-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}

.log-prod-btn:hover::after {
    left: 130%;
}

.log-prod-btn:hover {
    background: var(--plum-700);
    box-shadow: 0 10px 22px rgba(31, 58, 52, .28);
    transform: translateY(-2px) scale(1.02);
}

.log-prod-btn span {
    position: relative;
    z-index: 1;
    color: inherit;
}

/* ── ANIMATIONS ── */
@keyframes mr-pulse-badge {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .85;
        transform: scale(1.04);
    }
}

@keyframes mr-pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, .4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(212, 175, 55, 0);
    }
}

/* ── LIST VIEW ── */
.log-products-grid.log-list-view {
    grid-template-columns: 1fr;
}

.log-products-grid.log-list-view .log-prod-card-link {
    display: grid !important;
    grid-template-columns: 260px 1fr;
    align-items: start;
}

.log-products-grid.log-list-view .log-prod-img-wrap {
    height: 100%;
    min-height: 200px;
    border-radius: 14px 0 0 14px;
}

.log-products-grid.log-list-view .log-prod-body {
    padding: 20px 24px;
}

/* ── RESPONSIVE (grid column counts live in log-shop.css — single source of truth) ── */
@media (max-width: 1000px) {
    .log-prod-proof {
        padding: 3px 8px;
        margin-bottom: 6px;
    }

    .log-proof-text {
        font-size: 10px;
    }

    .log-stock-row {
        margin-bottom: 8px;
    }

    .log-prod-price-row {
        margin-bottom: 8px;
    }

    .log-prod-price {
        font-size: 18px;
    }

    .log-prod-btn {
        padding: 9px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .log-products-grid.log-list-view .log-prod-card-link {
        grid-template-columns: 1fr;
    }

    .log-products-grid.log-list-view .log-prod-img-wrap {
        border-radius: 14px 14px 0 0;
    }

    .log-prod-save {
        width: 65%;
        text-align: center;
    }

    .log-prod-proof {
        border-radius: 0px
    }

}