/* Product Grid Badges */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-urgency {
    background: #e53e3e;
    /* Red */
    left: auto;
    right: 10px;
}

.badge-new {
    background: #38a169;
    /* Green */
}

.badge-bestseller {
    background: #d69e2e;
    /* Gold */
    top: 35px;
}

/* Quick View Button */
.button-quick-view {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
    width: 100%;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .button-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.button-quick-view:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Price Per MG */
.price-per-mg {
    display: block;
    font-size: 0.85em;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Quick View Modal */
.mp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mp-modal.active {
    display: flex;
    opacity: 1;
}

.mp-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.mp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    color: var(--color-text-muted);
}

.mp-modal-body {
    padding: 2rem;
}

.mp-qv-loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.mp-qv-content {
    display: flex;
    gap: 2rem;
}

.mp-qv-image {
    flex: 1;
}

.mp-qv-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.mp-qv-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mp-qv-title {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mp-qv-meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.mp-qv-meta>div {
    margin-bottom: 0.5rem;
}

.mp-qv-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.mp-qv-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mp-qv-content {
        flex-direction: column;
    }
}