/* Quick Variant Selection Overlay */
.product-image {
    overflow: hidden;
    /* Ensure slide-up is contained */
}

.quick-variant-select {
    position: absolute;
    bottom: -100%;
    /* Initially hidden */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    padding: 15px;
    z-index: 20;
    transition: bottom 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--color-border);
}

.product-card:hover .quick-variant-select.active,
.quick-variant-select.active {
    bottom: 0;
}

.qv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.qv-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.qv-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--color-text-muted);
    padding: 5px;
    transition: color 0.2s;
}

.qv-close:hover {
    color: var(--color-primary);
}

.qv-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.qv-list li {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    min-width: 40px;
    text-align: center;
}

.qv-list li:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.qv-list li.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.qv-list li.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
    position: relative;
    background: #f5f5f5;
}

.qv-confirm-btn {
    width: 100%;
    padding: 10px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    font-size: 13px;
}

.qv-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qv-confirm-btn:not(:disabled):hover {
    background: var(--color-primary-light);
}

/* Animations */
@keyframes qvSlideUp {
    from {
        bottom: -100%;
    }

    to {
        bottom: 0;
    }
}